/* Gary 的深海 AI 视频实验室 — deep-sea showroom. Brand green from the DeepSea
   tokens, pushed toward bioluminescent teal on a near-black abyss. */
:root {
  --abyss: #03070a;
  --bg: #050b0f;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(150, 255, 232, .10);
  --line-2: rgba(150, 255, 232, .20);
  --text: #ecf7f4;
  --text-2: #b9cdc9;
  --muted: #7f9893;
  --glow: #6cf2d2;
  --glow-2: #36c5a2;
  --brand: #36a590;
  --deep: #006659;
  --warm: #ffd36b;
  --hot: #ff7a8a;
  --violet: #7c8cff;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --top: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); background: var(--abyss); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(124, 140, 255, .10), transparent 60%),
    radial-gradient(1000px 800px at -10% 10%, rgba(54, 197, 162, .12), transparent 60%),
    linear-gradient(180deg, #04090c 0%, #03070a 40%, #02060a 100%);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 50; background: var(--glow); color: #02140f; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.i { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); background: rgba(3, 7, 10, .82); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(12px)) { .topbar { background: rgba(3, 7, 10, .55); backdrop-filter: blur(14px) saturate(140%); } }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 720; font-size: 15px; letter-spacing: .01em; white-space: nowrap; color: var(--text); }
.brand svg { width: 28px; height: 28px; color: var(--glow); filter: drop-shadow(0 0 10px rgba(108, 242, 210, .55)); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav > a, .pop > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; cursor: pointer; }
.topnav > a:hover, .pop > summary:hover { color: var(--text); background: var(--surface-2); }
.topnav > a[aria-current="page"] { color: var(--glow); }
.top-follow { margin-left: auto; }
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.pop-panel {
  position: absolute; top: calc(100% + 10px); left: 0; width: 300px; padding: 8px; border-radius: var(--r-md);
  background: rgba(7, 18, 23, .97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; gap: 2px;
}
.pop-panel a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; min-height: 44px; border-radius: 10px; }
.pop-panel a:hover, .pop-panel a[aria-current="page"] { background: var(--surface-2); }
.pop-panel b { font-weight: 620; font-size: 15px; }
.pop-panel small { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.pop.mobile { display: none; margin-left: auto; }
.pop.mobile > summary { border: 1px solid var(--line-2); color: var(--text); }
.pop.mobile .pop-panel { left: auto; right: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font-size: 15.5px; font-weight: 650; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn .i { width: 18px; height: 18px; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-glow {
  color: #021610; background: linear-gradient(135deg, #8ff7df 0%, #4fd9b6 45%, #22a98a 100%);
  box-shadow: 0 10px 32px rgba(54, 197, 162, .32), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(54, 197, 162, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-glow em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(2, 22, 16, .14); font-family: var(--mono); font-size: 13px; }
.btn-glow em .i { width: 14px; height: 14px; }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: rgba(108, 242, 210, .5); background: rgba(108, 242, 210, .07); }

/* ---------- shared decor ---------- */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--glow); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(108, 242, 210, .05); color: var(--text-2); font-size: 13.5px; }
.eyebrow code { color: var(--glow); font-size: 12.5px; }
.eyebrow .sep { color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 rgba(108, 242, 210, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108, 242, 210, .55); } 70% { box-shadow: 0 0 0 10px rgba(108, 242, 210, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 242, 210, 0); } }
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(108, 242, 210, .13), transparent 60%);
}
[data-glow]:hover::before { opacity: 1; }

.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gridlines {
  position: absolute; inset: -1px;
  background-image: linear-gradient(rgba(150, 255, 232, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 255, 232, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.orb.a { width: 560px; height: 560px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(54, 197, 162, .55), transparent 65%); }
.orb.b { width: 460px; height: 460px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(124, 140, 255, .38), transparent 65%); animation-delay: -8s; }
.orb.c { width: 520px; height: 380px; left: 30%; bottom: -220px; background: radial-gradient(circle, rgba(0, 102, 89, .6), transparent 65%); animation-delay: -14s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

/* ---------- home hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; min-height: 600px; }
.hero h1 { margin-top: 26px; }
.hero .name {
  display: block; font-size: clamp(60px, 8.6vw, 124px); font-weight: 820; letter-spacing: -.04em; line-height: .95;
  background: linear-gradient(180deg, #ffffff 0%, #d9f6ef 45%, #6cf2d2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(108, 242, 210, .18));
}
.hero .role { display: block; margin-top: 18px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 680; letter-spacing: -.01em; color: var(--text); }
.hero-lede { margin-top: 20px; max-width: 560px; color: var(--text-2); font-size: 16.5px; line-height: 1.85; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badges li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13px; }
.badges li:first-child { border-color: rgba(108, 242, 210, .35); color: var(--glow); background: rgba(108, 242, 210, .06); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.wall { position: relative; height: 580px; }
.device {
  position: absolute; display: block; overflow: hidden; border-radius: 26px; background: #071216;
  border: 1px solid rgba(150, 255, 232, .22); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .025), 0 0 60px rgba(54, 197, 162, .12);
  transform: rotate(var(--rot, 0deg)); transition: box-shadow .35s ease; animation: bob 7s ease-in-out infinite;
}
.device video { width: 100%; height: 100%; object-fit: cover; }
.device.tall { aspect-ratio: 9 / 16; }
.device.wide { aspect-ratio: 16 / 9; border-radius: 18px; }
.device:hover { box-shadow: 0 36px 90px rgba(0, 0, 0, .65), 0 0 0 6px rgba(108, 242, 210, .08), 0 0 80px rgba(54, 197, 162, .3); z-index: 5; }
.device.d1 { width: 37%; left: 0; top: 56px; --rot: -6deg; z-index: 2; }
.device.d2 { width: 40%; left: 30%; top: 0; --rot: 1.5deg; z-index: 3; animation-delay: -2.3s; }
.device.d3 { width: 35%; right: 0; top: 84px; --rot: 6deg; z-index: 1; animation-delay: -4.1s; }
.device.d4 { width: 62%; left: 8%; bottom: 8px; --rot: -2.5deg; z-index: 4; animation-delay: -1.2s; }
@keyframes bob { 0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); } 50% { transform: rotate(var(--rot, 0deg)) translateY(-10px); } }
.device-tag {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px;
  border-radius: 999px; background: rgba(3, 10, 13, .72); border: 1px solid rgba(150, 255, 232, .25); font-size: 12px; font-weight: 600; color: #fff;
}
@supports (backdrop-filter: blur(8px)) { .device-tag { background: rgba(3, 10, 13, .45); backdrop-filter: blur(8px); } }
.device-tag i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 8px #ff4d5e; }

.hero-foot { position: relative; z-index: 1; margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stats > div { padding: 18px 0 4px; border-top: 1px solid var(--line-2); }
.stats b { display: block; font-family: var(--mono); font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13.5px; }
.ticker {
  margin-top: 26px; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 20px; border-radius: 14px;
  border: 1px solid rgba(108, 242, 210, .25); background: linear-gradient(90deg, rgba(108, 242, 210, .09), rgba(108, 242, 210, .02));
}
.ticker b { color: var(--glow); font-size: 14px; white-space: nowrap; }
.ticker-text { flex: 1; min-width: 0; color: var(--text-2); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .i { color: var(--glow); }
.ticker:hover { border-color: rgba(108, 242, 210, .5); }

/* ---------- sections ---------- */
.section { position: relative; padding: 88px 0; }
.section.tight { padding: 24px 0 56px; }
.sec-head { margin-bottom: 36px; max-width: 760px; }
.sec-head h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 48px); font-weight: 780; letter-spacing: -.025em; }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* ---------- tool cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tool {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); grid-column: span 2;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tool:hover { transform: translateY(-4px); border-color: rgba(108, 242, 210, .38); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(54, 197, 162, .12); }
.tool .media { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 30%, #0b2a2c, #050c10 70%); aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.tool .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tool:hover .media video { transform: scale(1.04); }
.tool .media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(5, 11, 15, .75), transparent); pointer-events: none; }
.tool-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 20px; flex: 1; }
.kind { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--glow); background: rgba(108, 242, 210, .08); border: 1px solid rgba(108, 242, 210, .25); }
.kind.live { color: #241a00; background: linear-gradient(135deg, #ffe08f, #ffc542); border-color: transparent; }
.kind.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff3d50; box-shadow: 0 0 6px #ff3d50; }
.tool h3 { margin-top: 8px; font-size: 24px; font-weight: 760; letter-spacing: -.015em; }
.tool .en { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.tool .tag { margin-top: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.chips span { display: inline-flex; align-items: center; gap: 5px; }
.chips .i { width: 15px; height: 15px; color: var(--glow); }
.go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--glow); white-space: nowrap; }
.go .i { transition: transform .25s ease; }
.tool:hover .go .i, .metric:hover .go .i { transform: translateX(4px); }

.tool.feature { grid-column: span 4; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.tool.feature .media { order: 2; aspect-ratio: auto; border-bottom: 0; border-left: 1px solid var(--line); min-height: 100%; }
.tool.feature .tool-body { order: 1; padding: 34px 34px 30px; justify-content: flex-end; }
.tool.feature h3 { font-size: clamp(30px, 3.2vw, 44px); }
.tool.feature .tag { font-size: 16px; -webkit-line-clamp: 5; }
.tool.tall { grid-column: span 2; grid-row: span 2; }
.tool.tall .media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.tool.wide { grid-column: span 3; }
.tool.wide .media.wide { aspect-ratio: 16 / 9; }
.tool.wide:has(.media.tall) { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.tool.wide:has(.media.tall) .media { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.tool.mini .media { aspect-ratio: 16 / 9; }
.tool.mini .tag { -webkit-line-clamp: 2; }
.tool.mini h3 { font-size: 20px; }

.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.minis .tool { grid-column: auto; }

/* code-drawn visuals for tools without a demo video */
.media.art { display: grid; place-items: center; }
.vz { width: 100%; padding: 24px; font-family: var(--mono); }
.vz-bridge { display: flex; align-items: center; gap: 6px; }
.vz-bridge .node { flex: none; padding: 10px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 18, 22, .9); text-align: center; }
.vz-bridge .node b { display: block; font-size: 12px; color: var(--text); }
.vz-bridge .node small { font-size: 10.5px; color: var(--muted); }
.vz-bridge .relay { border-color: rgba(108, 242, 210, .5); box-shadow: 0 0 24px rgba(108, 242, 210, .25); }
.vz-bridge .relay b { color: var(--glow); }
.vz-bridge .wire { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(108, 242, 210, .4) 0 6px, transparent 6px 11px); overflow: hidden; }
.vz-bridge .wire i { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); animation: flow 2.4s linear infinite; }
.vz-bridge .wire i:nth-child(2) { animation-delay: -.8s; }
.vz-bridge .wire i:nth-child(3) { animation-delay: -1.6s; }
.vz-bridge .wire.rev i { animation-direction: reverse; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
@keyframes flow { from { left: -6px; } to { left: 100%; } }
.vz-quota { display: grid; gap: 14px; }
.vz-quota .bar { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.vz-quota .bar i { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.vz-quota .bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, #22a98a, #6cf2d2); }
.vz-quota .bar:nth-child(3) i::after { background: linear-gradient(90deg, #ff7a8a, #ffd36b); }
.vz-quota .bar em { font-style: normal; text-align: right; color: var(--text); }
.vz-quota small { text-align: right; font-size: 11px; color: var(--muted); }

/* ---------- about ---------- */
.about-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.about-copy h2 { margin: 14px 0 22px; font-size: clamp(30px, 4vw, 48px); font-weight: 780; letter-spacing: -.025em; }
.about-copy p { color: var(--text-2); font-size: 17px; line-height: 1.95; margin-bottom: 16px; }
.circle { padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(108, 242, 210, .08), rgba(255, 255, 255, .02) 60%); }
.circle h3 { margin-top: 12px; font-size: 24px; font-weight: 760; }
.circle > p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.circle ul { margin: 18px 0 22px; display: grid; gap: 10px; }
.circle li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(3, 10, 13, .5); border: 1px solid var(--line); font-size: 14px; }
.circle li b { color: var(--glow); font-weight: 650; }
.circle li span { color: var(--text-2); }

/* ---------- footer ---------- */
.footer { position: relative; padding: 40px 0 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 14, 18, .6), rgba(2, 6, 9, .9)); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: start; }
.follow-card { display: flex; gap: 26px; align-items: center; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.follow-card img { width: 148px; height: 148px; padding: 8px; border-radius: 14px; background: #fff; flex: none; }
.follow-card h2 { margin-top: 10px; font-size: 22px; font-weight: 740; line-height: 1.35; }
.follow-card p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
.follow-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-tools { display: grid; gap: 4px; align-content: start; }
.footer-tools .kicker { margin-bottom: 8px; }
.footer-tools a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); font-size: 14.5px; }
.footer-tools a:hover { color: var(--glow); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-family: var(--mono); }

/* ---------- project page ---------- */
.p-hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.p-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; min-height: 40px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--glow); }
.p-copy h1 {
  margin-top: 22px; font-size: clamp(46px, 6.2vw, 88px); font-weight: 820; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #d9f6ef 50%, #6cf2d2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-copy .lede { margin-top: 22px; color: var(--text-2); font-size: 18px; line-height: 1.85; max-width: 560px; }
.stage { margin: 0; display: grid; justify-items: center; gap: 14px; }
.stage-frame { position: relative; width: 100%; overflow: hidden; border-radius: 24px; border: 1px solid rgba(150, 255, 232, .25); background: #061114; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 7px rgba(255, 255, 255, .03), 0 0 90px rgba(54, 197, 162, .18); }
.stage.tall .stage-frame { width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 30px; }
.stage.wide .stage-frame { aspect-ratio: 16 / 9; }
.stage.art .stage-frame { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.stage video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.stage figcaption { color: var(--muted); font-size: 13.5px; text-align: center; max-width: 440px; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metrics.one { grid-template-columns: minmax(0, 560px); }
.metric { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s ease, transform .25s ease; }
.metric:hover { border-color: rgba(108, 242, 210, .38); transform: translateY(-2px); }
.metric h3 { font-size: 16px; font-weight: 650; line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.metric-grid div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
.metric-grid div span { grid-column: 2; }
.metric-grid .i { width: 16px; height: 16px; color: var(--glow); }
.metric-grid b { font-family: var(--mono); font-size: 22px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-grid span { font-size: 12px; color: var(--muted); }
.metric .go { margin-top: auto; }

.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 26px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.feat .idx { font-family: var(--mono); font-size: 34px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(108, 242, 210, .7); letter-spacing: -.02em; }
.feat h3 { margin-top: 12px; font-size: 18.5px; font-weight: 720; }
.feat p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }

.why-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.why-text p { color: var(--text-2); font-size: 17px; line-height: 1.95; margin-bottom: 18px; }
.why-text.slim p { font-size: 15px; line-height: 1.85; margin: 18px 0 0; max-width: 560px; color: var(--muted); }
.read-more { margin-top: 8px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(108, 242, 210, .05); }
.read-more small { font-family: var(--mono); font-size: 12px; color: var(--glow); white-space: nowrap; }
.read-more b { flex: 1; font-weight: 650; font-size: 15px; }
.read-more .i { color: var(--glow); }
.read-more:hover { border-color: rgba(108, 242, 210, .5); }

.start-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.start-box { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.code { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 12px; background: #020507; border: 1px solid var(--line-2); }
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 13.5px; color: var(--glow); }
.code code::before { content: "$ "; color: var(--muted); }
.code button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
.code button:hover { border-color: var(--glow); }
.start-box h3 { margin: 22px 0 10px; font-size: 16px; }
.start-box li { position: relative; padding: 8px 0 8px 26px; color: var(--text-2); font-size: 15px; border-bottom: 1px solid var(--line); }
.start-box li:last-child { border-bottom: 0; }
.start-box li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--glow); box-shadow: 0 0 8px rgba(108, 242, 210, .6); }

/* ---------- radar ---------- */
.radar-today { padding: 34px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(108, 242, 210, .08), rgba(255, 255, 255, .02) 55%); }
.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.today-head h2 { margin-top: 12px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 780; letter-spacing: -.02em; }
.stamp { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.summary { margin: 24px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--glow); font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.75; color: var(--text); }
.counts { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.counts div { padding-top: 14px; border-top: 1px solid var(--line-2); }
.counts b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 700; color: #fff; }
.counts span { font-size: 13px; color: var(--muted); }
.radar-cols { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px; }
.panel { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.heads { display: grid; gap: 8px; }
.heads li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(3, 10, 13, .55); border: 1px solid var(--line); }
.grade { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--mono); font-weight: 800; font-size: 15px; }
.grade.g-S { color: #241a00; background: linear-gradient(135deg, #ffe08f, #ffc542); box-shadow: 0 0 18px rgba(255, 197, 66, .35); }
.grade.g-A { color: #021610; background: linear-gradient(135deg, #8ff7df, #36c5a2); }
.grade.g-B { color: var(--text); background: var(--surface-2); }
.heads b { font-weight: 650; font-size: 15.5px; }
.verdict { font-size: 13px; color: var(--glow); white-space: nowrap; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(3, 10, 13, .55); border: 1px solid var(--line); font-size: 14.5px; }
.topic em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.t-new em { color: #021610; background: var(--glow); }
.t-up em { color: #241a00; background: var(--warm); }
.t-hot em { color: #2a0006; background: var(--hot); }
.note { margin-top: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

.nf { min-height: 60vh; display: grid; align-items: center; }
.nf-in { position: relative; z-index: 1; }
.nf h1 { margin-top: 20px; font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.03em; }
.nf .lede { margin-top: 14px; color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wall { height: 460px; max-width: 620px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool, .tool.tall, .tool.wide { grid-column: span 1; grid-row: auto; }
  .tool.feature { grid-column: span 2; grid-row: auto; }
  .tool.tall .media { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .tool.wide:has(.media.tall) { display: flex; }
  .tool.wide:has(.media.tall) .media { aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--line); }
  .p-hero-in, .why-in, .start-in, .about-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .topnav, .top-follow { display: none; }
  .pop.mobile { display: block; }
}
@media (max-width: 680px) {
  :root { --top: 58px; }
  .wrap { padding: 0 16px; }
  .brand { font-size: 14px; }
  .brand svg { width: 24px; height: 24px; }
  .hero { padding: 28px 0 24px; }
  .hero .role { margin-top: 12px; }
  .hero-lede { font-size: 15.5px; }
  .wall { height: 380px; }
  .device.d1 { width: 40%; top: 30px; }
  .device.d2 { width: 42%; left: 29%; }
  .device.d3 { width: 38%; top: 56px; }
  .device.d4 { width: 70%; left: 4%; bottom: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .ticker-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ticker { padding: 12px 16px; }
  .section { padding: 60px 0; }
  .bento, .minis, .feats, .metrics { grid-template-columns: 1fr; }
  .tool.feature { grid-column: auto; display: flex; }
  .tool.feature .media { order: 0; aspect-ratio: 4 / 5; border-left: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .tool.feature .tool-body { padding: 22px; }
  .tool.feature h3 { font-size: 30px; }
  .p-hero { padding: 24px 0 36px; }
  .p-copy .lede { font-size: 16px; }
  .stage.tall .stage-frame { width: min(300px, 100%); }
  .metric-grid b { font-size: 18px; }
  .follow-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .circle { padding: 22px; }
  .circle li { grid-template-columns: 1fr; gap: 2px; }
  .radar-today, .panel { padding: 22px; }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .heads li { grid-template-columns: 34px 1fr; }
  .heads .verdict { grid-column: 2; white-space: normal; }
  .today-head { flex-direction: column; align-items: flex-start; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .vz { padding: 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* feature card numbers and the radar card's live summary */
.big-stats { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.big-stats div { padding-top: 12px; border-top: 1px solid var(--line-2); }
.big-stats b { display: block; white-space: nowrap; font-family: var(--mono); font-size: clamp(19px, 1.85vw, 28px); font-weight: 700; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big-stats span { font-size: 12.5px; color: var(--muted); }
.tool .today { margin-top: 8px; color: var(--text); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tool .today b { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: rgba(108, 242, 210, .12); color: var(--glow); font-size: 13px; }
.tool .today-n { margin-top: 6px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.tool.feature .tool-body { justify-content: center; }
.vz-quota .w82 { --w: 82%; } .vz-quota .w46 { --w: 46%; } .vz-quota .w13 { --w: 13%; }
.media.focus-upper video { object-position: 50% 30%; }

/* ---------- full radar issue ---------- */
.p-hero.slim { padding: 40px 0 8px; }
.p-hero.slim .wrap { position: relative; z-index: 1; }
.p-hero.slim h1 { margin-top: 18px; font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.03em; }
.plats { margin-top: 16px; color: var(--muted); font-size: 13px; }
.rtabs { position: sticky; top: calc(var(--top) + 8px); z-index: 10; margin: 18px 0 0; display: flex; gap: 6px; overflow-x: auto; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 10, 13, .88); scrollbar-width: none; }
@supports (backdrop-filter: blur(10px)) { .rtabs { background: rgba(4, 10, 13, .6); backdrop-filter: blur(12px); } }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; }
.rtabs a:hover { background: var(--surface-2); color: var(--text); }
.rsec { padding-top: 56px; }
.rsec > h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 780; letter-spacing: -.02em; }
.rsec-desc { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.rsec > h2 + * { margin-top: 20px; }
.rsec-desc + * { margin-top: 20px; }
.heads.big { gap: 12px; }
.heads li.head { grid-template-columns: 40px 1fr; align-items: start; padding: 18px 20px; }
.heads li.head .grade { width: 40px; height: 40px; font-size: 17px; }
.head h3 { font-size: 17.5px; font-weight: 700; line-height: 1.45; }
.head .verdict { margin-top: 4px; white-space: normal; }
.head .why { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.h-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.h-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; color: var(--glow); }
.rtopics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rtopic { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.rtopic header, .deep header { display: flex; align-items: center; gap: 10px; }
.rtopic h3, .deep h3 { font-size: 18px; font-weight: 720; }
.lab { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.lab.t-new { color: #021610; background: var(--glow); }
.lab.t-up { color: #241a00; background: var(--warm); }
.lab.t-hot { color: #2a0006; background: var(--hot); }
.lab.t-steady { color: var(--text); background: var(--surface-2); }
.t-sum { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.t-metrics { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.samples { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sample { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(3, 10, 13, .55); display: flex; flex-direction: column; }
.s-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #071216; cursor: pointer; overflow: hidden; }
.s-media img { width: 100%; height: 100%; object-fit: cover; }
.s-media.playing { cursor: default; }
.s-media.playing.tall { aspect-ratio: 9 / 16; }
.s-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.s-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: rgba(3, 10, 13, .72); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.s-play .i { width: 18px; height: 18px; }
.s-media:hover .s-play { background: var(--glow); color: #021610; }
.s-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.s-title { font-size: 13.5px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.s-title:hover { color: var(--glow); }
.s-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.basis { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.basis summary { cursor: pointer; color: var(--glow); font-size: 13.5px; min-height: 32px; display: flex; align-items: center; }
.basis ul { margin-top: 6px; display: grid; gap: 6px; }
.basis li { position: relative; padding-left: 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.basis li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--glow); }
.hw { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hw-col { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.hw-col h3 { font-size: 15px; margin-bottom: 10px; color: var(--glow); }
.hw-col li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hw-col li:last-child { border-bottom: 0; }
.hw-col li span { width: 20px; flex: none; font-family: var(--mono); color: var(--muted); }
.hw-col a:hover { color: var(--glow); }
.news { display: grid; gap: 2px; }
.news li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.news li a:hover { color: var(--glow); }
.news li span { flex: none; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.repos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.repo { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.repo:hover { border-color: rgba(108, 242, 210, .38); }
.repo b { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.repo p { color: var(--text-2); font-size: 13.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.repo-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.repo-meta .i { width: 14px; height: 14px; color: var(--glow); }
.repo-meta i { font-style: normal; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tool-side { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.deeps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.deep { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.deep dl { margin: 14px 0 0; display: grid; gap: 10px; }
.deep dt { font-size: 12.5px; color: var(--glow); font-family: var(--mono); }
.deep dd { margin: 2px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.past { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.past a { display: flex; min-width: 0; gap: 16px; align-items: baseline; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.past a:hover, .past a[aria-current="page"] { border-color: rgba(108, 242, 210, .38); }
.past b { flex: none; width: 88px; color: var(--glow); }
.past span { min-width: 0; color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .rtopics, .deeps { grid-template-columns: minmax(0, 1fr); }
  .repos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .repos, .tool-side { grid-template-columns: minmax(0, 1fr); }
  .samples { grid-template-columns: minmax(0, 1fr); }
  .rsec { padding-top: 40px; }
  .news li { flex-direction: column; gap: 2px; }
  .past a { flex-direction: column; align-items: stretch; gap: 2px; }
}
.s-media video { width: 100%; height: 100%; background: #000; }
.kind-tag { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.outlier { margin-top: 8px; font-size: 13.5px; color: var(--warm); line-height: 1.7; }
.h-rows { margin: 12px 0 0; display: grid; gap: 8px; }
.h-rows div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.h-rows dt { font-size: 12.5px; color: var(--glow); font-family: var(--mono); padding-top: 2px; }
.h-rows dd { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.h-links a { gap: 6px; }
.h-links a .lab { font-size: 11px; padding: 1px 6px; }
.h-links a .i { width: 14px; height: 14px; }
.news li > div { min-width: 0; }
.news li p { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.repo .use { color: var(--muted); font-size: 12.5px; -webkit-line-clamp: 2; }
.rtopic, .deep { scroll-margin-top: calc(var(--top) + 80px); }
@media (max-width: 680px) { .h-rows div { grid-template-columns: 1fr; gap: 2px; } }
.footer-in.solo { grid-template-columns: minmax(0, 760px); }

/* headlines lead with what they are about: the topic's video (plays in place) and three more covers */
.heads li.head.has-media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.h-text { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
.h-media { min-width: 0; }
.h-strip { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h-strip .s-media { border-radius: 10px; border: 1px solid var(--line); }
.h-strip .s-play { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.h-strip .s-play .i { width: 13px; height: 13px; }
@media (max-width: 900px) {
  .heads li.head.has-media { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 680px) {
  .heads li.head.has-media { padding: 14px; }
  .h-text { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .h-text .grade { width: 34px; height: 34px; font-size: 15px; }
}

/* share cards: a button on every headline, topic and repo; the dialog shows the picture assets/share.js draws */
.share-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(3, 10, 13, .6); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.share-btn::after { content: ""; position: absolute; inset: -6px -4px; }
.share-btn .i { width: 15px; height: 15px; }
.share-btn:hover { border-color: var(--glow); color: var(--glow); }
.heads li.head { position: relative; }
.head > .share-btn { position: absolute; top: 14px; right: 14px; }
.head h3 { padding-right: 84px; }
.h-text { position: relative; }
.h-text > .share-btn { position: absolute; top: 0; right: 0; }
.rtopic header .share-btn { margin-left: 10px; }
.rtopic header h3 + .share-btn { margin-left: auto; }
.repo-wrap { position: relative; display: flex; min-width: 0; }
.repo-wrap .repo { flex: 1; min-width: 0; padding-right: 96px; }
.repo-wrap .share-btn { position: absolute; top: 12px; right: 12px; }
.head:target, .rtopic:target, .repo-wrap:target .repo { border-color: var(--glow); box-shadow: 0 0 0 2px rgba(108, 242, 210, .55), 0 0 40px rgba(108, 242, 210, .18); }
.heads li.head, .repo-wrap { scroll-margin-top: calc(var(--top) + 80px); }
.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px rgba(108, 242, 210, .8), 0 0 60px rgba(108, 242, 210, .35); } 100% { box-shadow: 0 0 0 2px rgba(108, 242, 210, .55); } }
html.sd-lock { overflow: hidden; }
.sd { width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #071216; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
.sd[open] { display: flex; flex-direction: column; }
.sd [hidden] { display: none; }
.sd::backdrop { background: rgba(2, 6, 8, .72); }
.sd-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.sd-head h2 { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.sd-x:hover { background: var(--surface-2); color: var(--text); }
.sd-x .i { width: 20px; height: 20px; }
.sd-stage { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .02); }
.sd-frame { position: relative; width: min(100%, calc((100dvh - 236px) * .75)); aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #f5fffc; }
.sd-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-touch-callout: default; user-select: auto; }
.sd-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: #556; background: linear-gradient(135deg, #f5fffc, #f8fbff 58%, #fffaf0); }
.sd-wait::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #d9f5ef; border-top-color: #248f80; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sd-foot { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.sd-tip { min-height: 20px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.sd.inapp .sd-tip { color: var(--glow); font-weight: 650; font-size: 14px; }
.sd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sd.inapp .sd-acts { grid-template-columns: 1fr; }
.sd.inapp .sd-save { display: none; }
.sd-acts button { height: 44px; border-radius: 10px; font-size: 15px; font-weight: 650; cursor: pointer; }
.sd-save { background: var(--glow); border: 1px solid var(--glow); color: #021610; }
.sd-save:hover { background: #8ff7df; }
.sd-copy { background: none; border: 1px solid var(--line-2); color: var(--text-2); }
.sd-copy:hover { border-color: var(--glow); color: var(--glow); }
.sd-acts button:disabled { background: var(--surface-2); border-color: var(--line); color: var(--muted); cursor: default; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #ecf7f4; color: #021610; font-size: 14px; padding: 10px 16px; border-radius: 999px; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 680px) {
  .head > .share-btn { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } .sd-wait::before { animation: none; } }

/* agent page: the MCP address, one card per client, what to ask */
.mcp-url { margin-top: 28px; max-width: 860px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(3, 10, 13, .6); }
.mcp-url .kicker { margin-bottom: 10px; }
.code.url code::before, .code.block code::before { content: none; }
.code.big code { font-size: 17px; font-weight: 650; }
.code.block { align-items: flex-start; }
.code.block pre { flex: 1; min-width: 0; margin: 0; overflow-x: auto; }
.code.block pre code { display: block; white-space: pre; font-size: 13px; line-height: 1.6; color: var(--glow); }
.note { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.note a, .fine a { color: var(--glow); }
.clients { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.client h3 { font-size: 17px; font-weight: 720; }
.client p { margin: 6px 0 12px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.asks { margin-top: 20px; display: grid; gap: 8px; }
.asks li { display: grid; grid-template-columns: 160px 190px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(3, 10, 13, .55); }
.asks b { font-weight: 680; }
.asks code { font-size: 12.5px; color: var(--glow); }
.asks span { color: var(--text-2); font-size: 14px; }
.fine { margin-top: 16px; display: grid; gap: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.75; padding-left: 1.2em; list-style: disc; }
@media (max-width: 900px) {
  .clients { grid-template-columns: minmax(0, 1fr); }
  .asks li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.code.url code { white-space: normal; word-break: break-all; }
@media (max-width: 680px) { .code.big code { font-size: 15px; } .mcp-url { padding: 16px; } }

/* hot timeline (/radar/timeline/): one section per lane (next big ones, month cards to swipe, month list), then YouTube history */
.tl-lede { max-width: 780px; margin-top: 16px; color: var(--text-2); font-size: 17px; line-height: 1.85; }
.tl-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-meta span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-family: var(--mono); font-size: 12.5px; }
.tl-jump { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 650; }
.tl-jump a:hover { border-color: var(--glow); color: var(--glow); }

/* a lane: its own band so the two never read as one list */
.lane-sec { position: relative; padding: 56px 0 24px; scroll-margin-top: var(--top); }
.lane-sec + .lane-sec { border-top: 1px solid var(--line); }
.lane-sec.lane-ai { --accent: #9aa6ff; --accent-bg: rgba(124, 140, 255, .14); background: linear-gradient(180deg, rgba(124, 140, 255, .05), transparent 340px); }
.lane-sec.lane-video, #yt-hot { --accent: var(--glow); --accent-bg: rgba(108, 242, 210, .12); }
.lane-sec.lane-video { background: linear-gradient(180deg, rgba(108, 242, 210, .045), transparent 340px); }
.lane-head .kicker { color: var(--accent); }
.lane-head h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 820; letter-spacing: -.02em; }
.lane-head .rsec-desc { margin-top: 10px; max-width: 720px; font-size: 15px; color: var(--text-2); }
.lane-sub { margin-top: 36px; font-size: 20px; font-weight: 760; }
.lane-sub + * { margin-top: 14px; }
.lane-note { color: var(--muted); font-size: 13.5px; }
.lane-note + .hs-wrap { margin-top: 12px; }

/* text cover for an event without a picture */
.ph { display: grid; place-items: center; background: linear-gradient(135deg, rgba(108, 242, 210, .22), rgba(0, 102, 89, .35)); color: var(--glow); }
.ph.lane-ai { background: linear-gradient(135deg, rgba(124, 140, 255, .3), rgba(40, 46, 110, .45)); color: #c4cbff; }
.ph b { font-size: 15px; font-weight: 800; letter-spacing: .08em; }

/* the next big ones: picture on top, days to go over it */
.nxs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nx { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(3, 10, 13, .6); overflow: hidden; transition: border-color .2s, transform .2s; }
.nx:hover { border-color: var(--accent); transform: translateY(-2px); }
.nx-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.nx-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 18px; }
.nx-big { position: absolute; top: 12px; left: 12px; display: flex; align-items: baseline; gap: 5px; padding: 6px 12px 7px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(3, 8, 11, .8); }
@supports (backdrop-filter: blur(8px)) { .nx-big { background: rgba(3, 8, 11, .6); backdrop-filter: blur(8px); } }
.nx-n { font-family: var(--mono); font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.nx-n.sm { font-family: var(--sans); font-size: 16px; letter-spacing: 0; }
.nx-u { color: var(--text); font-size: 14px; }
.nx-title { font-size: 19px; font-weight: 760; line-height: 1.35; color: var(--text); }
.nx-date { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

/* the year: one card per month, swiped sideways */
.hs-wrap { position: relative; }
.hs { overflow-x: auto; overflow-y: hidden; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; scroll-behavior: smooth; }
.hs:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; border-radius: 12px; }
.hs-grid { display: flex; align-items: flex-start; gap: 10px; width: max-content; }
.hs-col { display: flex; flex-direction: column; flex: none; width: 236px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 10, 13, .6); overflow: hidden; }
.hs-col.w2 { width: 460px; }
.hs-col.empty { width: 92px; background: none; border-style: dashed; }
.hs-col.now { border-color: rgba(255, 211, 107, .6); box-shadow: inset 3px 0 0 var(--warm); }
.hs-m { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--accent-bg); }
.hs-m b { font-size: 15px; font-weight: 760; color: var(--text); white-space: nowrap; }
.hs-col.gone .hs-m { background: rgba(255, 255, 255, .03); }
.hs-col.gone .hs-m b { color: var(--muted); font-weight: 650; }
.hs-col.now .hs-m { background: rgba(255, 255, 255, .03); }
.hs-col.empty .hs-m { border-bottom: 0; background: none; }
.hs-now { padding: 2px 10px; border-radius: 999px; background: var(--warm); color: #241a00; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.hs-items { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.hs-items:empty { display: none; }
.hs-col.w2 .hs-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-ev { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); transition: border-color .2s; }
.hs-ev:hover { border-color: var(--accent); }
.hs-ev.maybe { border-style: dashed; }
.hs-ev.gone { color: var(--text-2); }
.hs-img { flex: none; width: 40px; height: 40px; border-radius: 7px; object-fit: cover; }
.hs-img.ph b { font-size: 10.5px; letter-spacing: 0; }
.hs-ev > span { display: flex; flex-direction: column; min-width: 0; }
.hs-ev b { display: block; max-height: 2.8em; overflow: hidden; color: inherit; font-size: 13.5px; font-weight: 620; line-height: 1.4; }
.hs-ev small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.hs-ev.big { padding: 6px; border-color: rgba(255, 211, 107, .32); background: rgba(255, 211, 107, .05); }
.hs-ev.big .hs-img { width: 64px; height: 64px; border-radius: 8px; }
.hs-ev.big b { font-size: 14.5px; font-weight: 760; }
.hs-go { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5, 12, 16, .92); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.hs-go:hover { border-color: var(--accent); color: var(--accent); }
.hs-go.prev { left: -16px; }
.hs-go.next { right: -16px; }
.hs-go:disabled { opacity: 0; pointer-events: none; }

/* one lane's month list: month label on a spine, cards two across */
.tl { margin-top: 4px; }
.tl-month { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 20px; padding: 12px 0; }
.tl-month::before { content: ""; position: absolute; top: 0; bottom: 0; left: 45px; width: 2px; background: var(--accent); opacity: .3; }
.tl-month.gone::before { background: rgba(255, 255, 255, .5); opacity: .2; }
.tl-mh { position: sticky; top: calc(var(--top) + 16px); z-index: 2; align-self: start; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line-2); background: #071419; text-align: center; }
.tl-mh b { font-size: 18px; font-weight: 800; line-height: 1.3; }
.tl-mh small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; line-height: 1.4; }
.tl-month.gone .tl-mh { border-color: var(--line); background: #060e12; }
.tl-month.gone .tl-mh b { color: var(--text-2); }
.tl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; align-items: start; }
.ev { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); scroll-margin-top: calc(var(--top) + 24px); }
.ev-img { display: block; width: 132px; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, .04); }
.ev-body { min-width: 0; }
.ev.st-done { background: rgba(255, 255, 255, .022); }
.ev.heat-3 { border-color: rgba(255, 211, 107, .3); background: linear-gradient(180deg, rgba(255, 211, 107, .06), rgba(255, 255, 255, .02) 60%); }
.ev header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; }
.ev time { color: var(--text-2); font-family: var(--mono); font-weight: 650; }
.ev .st { padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; line-height: 20px; }
.st-sched .st { color: var(--glow); border-color: rgba(108, 242, 210, .4); }
.st-today .st { color: #241a00; background: var(--warm); border-color: var(--warm); font-weight: 700; }
.st-due .st, .st-exp .st { color: var(--warm); border-color: rgba(255, 211, 107, .5); border-style: dashed; }
.st-unc .st { color: var(--hot); border-color: rgba(255, 122, 138, .5); border-style: dashed; }
.ev .cd { color: var(--glow); font-family: var(--mono); font-weight: 700; }
.ev .hot { padding: 0 8px; border-radius: 999px; background: linear-gradient(135deg, #ffe08f, #ffc542); color: #241a00; font-size: 12px; font-weight: 750; line-height: 20px; }
.ev h4 { margin: 6px 0 0; font-size: 17px; font-weight: 740; line-height: 1.4; }
.ev.heat-3 h4 { font-size: 18px; }
.ev .what { margin-top: 4px; color: var(--text); font-size: 14px; line-height: 1.7; }
.ev .why { margin-top: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.ev .why b { margin-right: 8px; color: var(--accent); font-size: 12px; font-weight: 650; }
.ev footer { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 12.5px; }
.ev .src a { display: inline-block; margin: -10px 0 -10px 6px; padding: 10px 0; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ev .src a:hover { color: var(--glow); text-decoration-color: var(--glow); }
.ev:target { border-color: var(--glow); box-shadow: 0 0 0 2px rgba(108, 242, 210, .55), 0 0 40px rgba(108, 242, 210, .18); }
.tl-pastbox > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 56px; padding: 14px 20px; border-radius: var(--r-md); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 13.5px; cursor: pointer; }
.tl-pastbox > summary::-webkit-details-marker { display: none; }
.tl-pastbox > summary:hover { border-color: var(--accent); }
.tl-pastsum b { color: var(--text); font-size: 16px; font-weight: 740; }
.tl-pastsum .more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 650; }
.tl-pastsum .more::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.tl-pastbox[open] .tl-pastsum .more::after { transform: translateY(2px) rotate(-135deg); }
.tl-pastbox:not([open]) .more .c, .tl-pastbox[open] .more .o { display: none; }
.tl-pastbox[open] > summary { margin-bottom: 6px; }
.tl-today { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin: 18px 0; padding: 18px 0; scroll-margin-top: calc(var(--top) + 24px); }
.tl-today::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, transparent, var(--warm) 12%, var(--warm) 88%, transparent); box-shadow: 0 0 18px rgba(255, 211, 107, .45); }
.tl-pill { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--warm); background: #1b1505; color: var(--warm); font-size: 15px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 32px rgba(255, 211, 107, .25); }
.tl-pill .pulse { background: var(--warm); animation: none; box-shadow: 0 0 10px var(--warm); }
.tl-up, .tl-down { position: relative; color: var(--muted); font-size: 13px; }
.tl-up { justify-self: end; transform: translateY(-17px); }
.tl-down { justify-self: start; transform: translateY(17px); }

.nx-img.ph, .hs-img.ph, .ev-img.ph, .yt-img.ph { display: grid; place-items: center; }   /* after the picture rules that set display: block */
.nx-img.ph b { font-size: 22px; letter-spacing: .2em; opacity: .8; }
@media (max-width: 1100px) {
  .tl-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lane-sec { padding-top: 40px; }
  .nxs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nx { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; }
  .nx-img { height: 100%; min-height: 104px; aspect-ratio: auto; }
  .nx-body { padding: 12px 16px; }
  .nx-big { top: 8px; left: 8px; padding: 4px 8px 5px; border-radius: 9px; }
  .nx-n { font-size: 22px; }
  .nx-n.sm { font-size: 13px; }
  .nx-u { font-size: 12px; }
  .nx-title { font-size: 16.5px; }
  .hs-go { display: none; }
  .hs-col { width: 200px; }
  .hs-col.w2 { width: 340px; }
  .hs-col.empty { display: none; }
  .hs-col.now { display: flex; }
  .tl-month { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 0 10px 22px; }
  .tl-month::before { left: 6px; }
  .tl-mh { position: static; flex-direction: row; align-items: baseline; gap: 8px; justify-self: start; margin-left: -22px; padding: 4px 14px; }
  .tl-today { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding: 6px 0; }
  .tl-up, .tl-down { justify-self: center; transform: none; }
}
@media (max-width: 680px) {
  .tl-lede { font-size: 15.5px; }
  .ev { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .ev-img { width: 88px; aspect-ratio: 1; }
  .ev h4, .ev.heat-3 h4 { font-size: 16px; }
  .nx { grid-template-columns: 112px minmax(0, 1fr); }
  .hs-ev.big .hs-img { width: 52px; height: 52px; }
}

/* YouTube 历史热点: peak bars against one anchor, then one card per wave with its YouTube search curve */
.yt-sub { margin-top: 22px; font-size: 16px; font-weight: 720; color: var(--text); }
.yt-compare { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.yt-compare a { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 4.5em; align-items: center; gap: 12px; min-height: 36px; padding: 2px 6px; border-radius: 8px; }
.yt-compare a:hover { background: var(--surface-2); }
.yc-n { color: var(--text); font-size: 14px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yc-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.yc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff4e5b, #ff8a65); }
.yt-compare .anchor .yc-bar i { background: linear-gradient(90deg, var(--warm), #ffe08f); }
.yt-compare b { color: var(--text-2); font-family: var(--mono); font-size: 13px; font-weight: 650; text-align: right; }
.yc-bar i.w1 { width: 1.5%; } .yc-bar i.w5 { width: 5%; } .yc-bar i.w10 { width: 10%; } .yc-bar i.w15 { width: 15%; } .yc-bar i.w20 { width: 20%; } .yc-bar i.w25 { width: 25%; } .yc-bar i.w30 { width: 30%; } .yc-bar i.w35 { width: 35%; } .yc-bar i.w40 { width: 40%; } .yc-bar i.w45 { width: 45%; } .yc-bar i.w50 { width: 50%; } .yc-bar i.w55 { width: 55%; } .yc-bar i.w60 { width: 60%; } .yc-bar i.w65 { width: 65%; } .yc-bar i.w70 { width: 70%; } .yc-bar i.w75 { width: 75%; } .yc-bar i.w80 { width: 80%; } .yc-bar i.w85 { width: 85%; } .yc-bar i.w90 { width: 90%; } .yc-bar i.w95 { width: 95%; } .yc-bar i.w100 { width: 100%; }
.yts { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.yt { min-width: 0; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); scroll-margin-top: calc(var(--top) + 24px); }
.yt:target { border-color: var(--glow); box-shadow: 0 0 0 2px rgba(108, 242, 210, .55); }
.yt header { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.yt-img { display: block; width: 132px; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; }
.yt-kind { color: var(--muted); font-size: 12.5px; }
.yt h3 { margin-top: 2px; font-size: 19px; font-weight: 760; line-height: 1.35; }
.yt-what { margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.yt-chart { margin-top: 14px; }
.yt-spark { display: block; width: 100%; height: auto; }
.yt-spark .area { fill: rgba(255, 78, 91, .16); }
.yt-spark .line { fill: none; stroke: #ff6b6b; stroke-width: 2.5; stroke-linejoin: round; }
.yt-spark line.pk { stroke: rgba(255, 255, 255, .25); stroke-width: 1; stroke-dasharray: 3 3; }
.yt-spark circle.pk { fill: #fff; stroke: #ff6b6b; stroke-width: 2.5; }
.yt-axis { margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.yt-axis span:nth-child(2) { font-family: var(--sans); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-stats { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.yt-stats li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); }
.yt-stats b { display: block; color: #fff; font-family: var(--mono); font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.yt-stats span { color: var(--muted); font-size: 12px; }
.yt-rec { margin-top: 12px; padding: 8px 12px; border-left: 3px solid #ff6b6b; border-radius: 0 8px 8px 0; background: rgba(255, 78, 91, .07); color: var(--text); font-size: 14px; line-height: 1.7; }
.yt-more { margin-top: 10px; }
.yt-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--glow); font-size: 13.5px; font-weight: 650; cursor: pointer; list-style: none; }
.yt-more > summary::-webkit-details-marker { display: none; }
.yt-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.yt-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.yt-why { color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.yt footer { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.yt footer a { display: inline-block; margin: -10px 0 -10px 6px; padding: 10px 0; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.yt footer a:hover { color: var(--glow); }
@media (max-width: 900px) {
  .yt-compare, .yts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .yt { padding: 14px; }
  .yt header { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .yt-img { width: 88px; aspect-ratio: 1; }
  .yt h3 { font-size: 17px; }
  .yt-stats { gap: 6px; }
  .yt-stats li { padding: 6px 7px; }
  .yt-stats b { font-size: 13.5px; }
  .yt-stats span { font-size: 11px; }
  .yt-compare a { grid-template-columns: 7.5em minmax(0, 1fr) 4em; gap: 8px; }
}
/* 情报站底部的常见问题（Gary 11/16 SEO/GEO）：details 折叠，不用脚本 */
.faq { margin-top: 18px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 10, 13, .55); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 680; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--glow); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; overflow-wrap: anywhere; }
.faq a { color: var(--glow); }
