:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --line: #e8e5dd;
  --line-strong: #d9d5ca;
  --text: #1c1b18;
  --muted: #6e6a62;
  --faint: #a19c91;
  --orange: #ff6a1a;
  --orange-ink: #c2470a;
  --orange-soft: #fff1e8;
  --ai: #6b4cf6;
  --ai-soft: #efebff;
  --sf: #0b8a72;
  --sf-soft: #e0f4ee;
  --shadow-sm: 0 1px 2px rgba(28, 27, 24, .05);
  --shadow-md: 0 6px 18px -6px rgba(28, 27, 24, .14), 0 2px 4px rgba(28, 27, 24, .04);
  --shadow-lg: 0 24px 60px -12px rgba(28, 27, 24, .28);
  --radius: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --surface: #1d1c1a;
    --surface-2: #191917;
    --line: #2c2b28;
    --line-strong: #3a3934;
    --text: #f0eee9;
    --muted: #a8a399;
    --faint: #6f6b63;
    --orange-ink: #ff8a4c;
    --orange-soft: #33201550;
    --ai: #a993ff;
    --ai-soft: #2a2440;
    --sf: #45c9ab;
    --sf-soft: #15302a;
    --shadow-md: 0 6px 18px -6px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner, .filters-inner {
  max-width: 1680px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.filters-inner { padding-top: 0; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark { color: var(--orange); display: grid; }
.brand-mark svg { width: 34px; height: 34px; stroke: none; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: -.01em; }
.brand-text span { color: var(--muted); font-size: 12.5px; }

.weeknav { display: flex; align-items: center; gap: 6px; }
.week-label {
  min-width: 190px; text-align: center; font-weight: 600; font-size: 15px;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, opacity .15s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.pill-btn {
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 500; cursor: pointer; margin-left: 6px;
  box-shadow: var(--shadow-sm); transition: background .15s, opacity .15s;
}
.pill-btn:hover:not(:disabled) { background: var(--surface-2); }
.pill-btn:disabled { opacity: .4; cursor: default; }

/* ---------- filters ---------- */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.segmented {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
}
.segmented button {
  border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px;
  font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.chip {
  height: 36px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip-ai[aria-pressed="true"] { background: var(--ai-soft); color: var(--ai); border-color: color-mix(in srgb, var(--ai) 35%, transparent); }
.chip-sf[aria-pressed="true"] { background: var(--sf-soft); color: var(--sf); border-color: color-mix(in srgb, var(--sf) 35%, transparent); }
.chip-ai[aria-pressed="true"] svg { fill: currentColor; }
.summary { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary b { color: var(--text); font-weight: 600; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-launch { background: var(--orange); }
.dot-show { background: transparent; box-shadow: inset 0 0 0 2px var(--faint); }

/* ---------- week grid ---------- */
main { max-width: 1680px; margin: 0 auto; padding: 18px 24px 40px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: start; }
.day { min-width: 0; }
.day-head {
  display: flex; align-items: baseline; gap: 8px; padding: 4px 4px 10px;
  border-bottom: 2px solid var(--line); margin-bottom: 10px;
}
.day-name { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day-num { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.day-count { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.day.today .day-head { border-bottom-color: var(--orange); }
.day.today .day-name { color: var(--orange-ink); }
.today-pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--orange); color: #fff; padding: 2px 7px; border-radius: 99px; align-self: center;
}
.day.future .day-num, .day.future .day-name { color: var(--faint); }
.cards { display: grid; gap: 8px; }

.card {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px 10px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  animation: rise .28s ease both;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.card.launch {
  border-color: color-mix(in srgb, var(--orange) 30%, var(--line));
  background: linear-gradient(180deg, var(--orange-soft), var(--surface) 70%);
}
.card-kind {
  display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px;
}
.card.launch .card-kind { color: var(--orange-ink); }
.card-kind .batch { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.card-name {
  font-weight: 600; font-size: 14.5px; line-height: 1.25; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tag {
  margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat svg { width: 13px; height: 13px; }
.stat.hot { color: var(--orange-ink); font-weight: 600; }
.badges { display: inline-flex; gap: 4px; margin-left: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
}
.badge svg { width: 10px; height: 10px; }
.badge-ai { background: var(--ai-soft); color: var(--ai); }
.badge-sf { background: var(--sf-soft); color: var(--sf); }
.badge-loc { background: color-mix(in srgb, var(--line) 60%, transparent); color: var(--muted); font-weight: 600; letter-spacing: 0; }

.more {
  width: 100%; height: 32px; border-radius: 9px; border: 1px dashed var(--line-strong); background: transparent;
  color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s;
}
.more:hover { background: var(--surface); color: var(--text); }
.quiet {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center;
  color: var(--faint); font-size: 12.5px;
}

.empty-week {
  margin: 8px auto 0; max-width: 460px; text-align: center; color: var(--muted);
  padding: 28px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface-2);
}
.empty-week strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty-week button { margin-top: 12px; }

/* skeletons */
.skel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 12px; }
.skel i {
  display: block; height: 10px; border-radius: 5px; margin: 6px 0;
  background: linear-gradient(90deg, var(--line) 0%, var(--surface-2) 50%, var(--line) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.skel i:nth-child(1) { width: 40%; height: 8px; }
.skel i:nth-child(2) { width: 85%; height: 13px; }
.skel i:nth-child(3) { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

/* ---------- detail drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 18, 14, .32); z-index: 40; animation: fade .2s ease; }
.drawer {
  position: fixed; z-index: 41; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slide .26s cubic-bezier(.2, .8, .2, 1);
}
.drawer-handle { display: none; }
.drawer-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.drawer-body { overflow-y: auto; padding: 26px 28px 28px; overscroll-behavior: contain; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

.d-kind { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-right: 44px; }
.d-kind.launch { color: var(--orange-ink); }
.d-kind .when { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.d-name { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; margin: 10px 0 6px; font-weight: 700; }
.d-tag { font-size: 16px; color: var(--muted); margin: 0 0 18px; line-height: 1.45; }
.d-stats { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.d-stat { display: grid; }
.d-stat b { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.d-stat span { font-size: 12px; color: var(--muted); }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line); background: var(--surface);
  transition: background .15s, border-color .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); border-color: transparent; }
.btn-hn { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-hn:hover { background: #f05c0d; border-color: #f05c0d; }

.facts { display: grid; gap: 8px; margin-bottom: 22px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.fact-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.fact-icon svg { width: 16px; height: 16px; }
.fact-ai .fact-icon { background: var(--ai-soft); color: var(--ai); }
.fact-sf .fact-icon { background: var(--sf-soft); color: var(--sf); }
.fact-off .fact-icon { background: color-mix(in srgb, var(--line) 70%, transparent); color: var(--muted); }
.fact b { display: block; font-size: 13.5px; }
.fact span { color: var(--muted); font-size: 12.5px; }
.fact a { color: var(--muted); }

.d-desc h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 8px; }
.d-desc p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.d-desc .none { color: var(--faint); font-style: italic; }
.d-desc .fade { position: relative; max-height: 420px; overflow: hidden; }
.d-desc .fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--surface)); }
.readmore { border: 0; background: none; padding: 0; color: var(--orange-ink); font-weight: 600; cursor: pointer; }

/* ---------- footer ---------- */
.about { border-top: 1px solid var(--line); background: var(--surface-2); }
.about-inner { max-width: 1100px; margin: 0 auto; padding: 30px 24px 44px; }
.about h2 { font-size: 15px; margin: 0 0 14px; letter-spacing: -.01em; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.about h3 { font-size: 13px; margin: 0 0 6px; display: flex; align-items: center; gap: 7px; }
.about p { margin: 0; color: var(--muted); font-size: 13px; }
.about .fineprint { margin-top: 20px; font-size: 12px; color: var(--faint); }

/* ---------- smaller screens ---------- */
@media (max-width: 1200px) {
  .week { grid-template-columns: repeat(7, 232px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-padding: 0 24px; }
  .day { scroll-snap-align: start; }
}
@media (max-width: 820px) {
  .top-inner { flex-wrap: wrap; padding: 12px 16px 10px; gap: 10px; }
  .filters-inner { padding: 0 16px 10px; flex-direction: column; align-items: stretch; gap: 8px; }
  .top { position: static; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .segmented { grid-column: 1 / -1; }
  .segmented button { flex: 1; justify-content: center; }
  .chip { justify-content: center; }
  .weeknav { width: 100%; }
  .week-label { flex: 1; min-width: 0; font-size: 15px; }
  .brand-text span { display: none; }
  main { padding: 6px 16px 30px; }
  .week { display: block; overflow: visible; margin: 0; padding: 0; }
  .day { margin-bottom: 18px; }
  .day-head { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 10px; }
  .day.empty-day { margin-bottom: 6px; }
  .day.empty-day .day-head { position: static; border-bottom-width: 1px; margin-bottom: 0; padding-bottom: 8px; }
  .day.empty-day .quiet { display: none; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0;
    animation: up .28s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom);
  }
  .drawer-handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 8px auto 0; }
  .drawer-body { padding: 14px 20px 24px; }
  .d-name { font-size: 23px; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 480px) {
  .about-grid { grid-template-columns: 1fr; }
  .pill-btn { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v2: press cards ---------- */
.dot-press { background: var(--text); }
.card.press { border-color: var(--line); background: var(--surface); }
.card.launch { border-color: color-mix(in srgb, var(--orange) 30%, var(--line)); background: linear-gradient(180deg, var(--orange-soft), var(--surface) 70%); }
.card-kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.press .card-kind { color: var(--muted); }
.card .card-name { -webkit-line-clamp: 3; font-size: 14px; }
.card.big { padding: 14px 14px 12px; border-width: 1px; box-shadow: var(--shadow-md); }
.card.big .card-name { font-size: 16.5px; line-height: 1.25; letter-spacing: -.015em; -webkit-line-clamp: 4; }
.card.big .card-tag { -webkit-line-clamp: 3; margin-top: 6px; }
.card.big.press { background: linear-gradient(180deg, color-mix(in srgb, var(--ai-soft) 55%, var(--surface)), var(--surface) 75%); border-color: color-mix(in srgb, var(--ai) 22%, var(--line)); }
.card-co { font-size: 12px; font-weight: 600; color: var(--text); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-big { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.fact-launch .fact-icon { background: var(--orange-soft); color: var(--orange-ink); }
.coverage { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.coverage a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; transition: background .15s, border-color .15s; }
.coverage a:hover { background: var(--surface-2); border-color: var(--line-strong); }
.cov-outlet { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cov-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cov-when { font-size: 12px; color: var(--faint); }
.d-stat b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  .segmented button { padding: 0 6px; font-size: 13px; }
}
.cards, .card { min-width: 0; }
.card { overflow: hidden; }
.badges { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.card.big .card-name { font-size: 16px; -webkit-line-clamp: 3; }
.card.big .card-tag { -webkit-line-clamp: 2; }

/* =========================== v3: the timeline =========================== */
body.v3 .top-inner, body.v3 .filters-inner { max-width: 760px; }
body.v3 .filters-inner { justify-content: flex-start; }
.feed-wrap { max-width: 760px; margin: 0 auto; padding: 4px 24px 40px; }
.timeline { position: relative; padding-left: 30px; min-height: 60vh; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 0; width: 2px; border-radius: 1px; background: linear-gradient(var(--line-strong), var(--line) 70%); }

.t-day { position: relative; padding-bottom: 6px; }
.t-head {
  position: sticky; top: var(--head-h, 0px); z-index: 6; display: flex; align-items: baseline; gap: 10px;
  margin: 0 -24px 6px -30px; padding: 16px 24px 10px 30px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.t-head::before { content: ""; position: absolute; left: 3px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--line-strong); }
.t-day:first-child .t-head::before { box-shadow: inset 0 0 0 3px var(--orange); }
.t-main { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.t-sub { font-size: 13px; color: var(--muted); }
.t-count { margin-left: auto; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-quiet { margin: 2px 0 14px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: 13.5px; }

.t-item { position: relative; margin: 0 0 12px; animation: rise .3s ease both; }
.t-dot { position: absolute; left: -25px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--bg); }
.t-dot.launch { background: var(--orange); }
.t-dot.big { left: -26px; width: 12px; height: 12px; }

.tcard {
  display: block; width: 100%; padding: 0; text-align: left; cursor: pointer; overflow: hidden; color: inherit; font: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tcard:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tcard.launch { border-color: color-mix(in srgb, var(--orange) 28%, var(--line)); }
.tcard.compact { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; padding: 14px 14px 14px 16px; align-items: start; }
.tcard.compact.launch { background: linear-gradient(90deg, var(--orange-soft), var(--surface) 55%); }
.tcard.big .tc-body { padding: 14px 18px 16px; }

.tc-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tc-out { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard.launch .tc-out { color: var(--orange-ink); }
.more-out { color: var(--faint); font-weight: 500; letter-spacing: .02em; text-transform: none; }
.tc-top time { margin-left: auto; flex: none; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-head { margin: 6px 0 4px; font-size: 16px; font-weight: 650; line-height: 1.3; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard.big .tc-head { font-size: 21px; line-height: 1.22; letter-spacing: -.02em; margin-top: 8px; }
.tc-sum { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard.big .tc-sum { font-size: 15px; -webkit-line-clamp: 3; }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 12.5px; min-width: 0; }
.c-co { font-weight: 600; }
.c-city { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); }
.c-city svg { width: 12px; height: 12px; }
.c-stat { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-stat svg { width: 13px; height: 13px; }
.c-meta .badges { margin-left: auto; }
.badge-startup { background: color-mix(in srgb, var(--sf) 13%, transparent); color: var(--sf); }

/* pictures and their placeholders */
.pic { overflow: hidden; background: var(--line); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic-lg, .ph-lg { aspect-ratio: 1200 / 630; width: 100%; }
.pic-sm, .ph-sm { width: 132px; aspect-ratio: 4 / 3; border-radius: 11px; flex: none; }
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, hsl(var(--h) 72% 93%), hsl(calc(var(--h) + 40) 62% 85%));
  color: hsl(var(--h) 42% 30%);
}
.ph-initial { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ph-lg .ph-initial { font-size: 84px; }
.ph-name { font-size: 15px; font-weight: 600; opacity: .75; }
.ph-logo { width: 56px; height: 56px; border-radius: 12px; background: #fff; padding: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); object-fit: contain; }
.ph-lg .ph-logo { width: 96px; height: 96px; border-radius: 20px; padding: 10px; }
@media (prefers-color-scheme: dark) {
  .ph { background: linear-gradient(135deg, hsl(var(--h) 28% 22%), hsl(calc(var(--h) + 40) 30% 15%)); color: hsl(var(--h) 65% 82%); }
}

/* loading */
.t-skel { height: 128px; margin: 14px 0 12px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.t-skel.short { height: 84px; }
.feed-end { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 0 10px 30px; color: var(--faint); font-size: 13px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--orange); animation: spin .8s linear infinite; }
.feed-end.done .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { border: 0; background: none; padding: 0; color: var(--orange-ink); font-weight: 600; cursor: pointer; }

.to-today {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; box-shadow: var(--shadow-md);
}
.to-today svg { width: 15px; height: 15px; }

/* detail panel: the picture across the top */
.d-hero { margin: -26px -28px 18px; }
.d-hero .pic-lg, .d-hero .ph-lg { border-radius: 17px 17px 0 0; }
.drawer-close { box-shadow: var(--shadow-md); }

@media (max-width: 820px) {
  body.v3 .top { position: static; }
  body.v3 .filters .chip-ai { grid-column: 1 / -1; }
  .feed-wrap { padding: 0 14px 30px; }
  .timeline { padding-left: 22px; }
  .timeline::before { left: 5px; }
  .t-head { top: 0; margin: 0 -14px 6px -22px; padding: 14px 14px 9px 22px; flex-wrap: wrap; row-gap: 0; }
  .t-head::before { left: -1px; top: 20px; }
  .t-main { font-size: 19px; }
  .t-dot { left: -21px; top: 18px; }
  .t-dot.big { left: -22px; }
  .tcard.compact { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; padding: 12px; }
  .pic-sm, .ph-sm { width: 92px; }
  .ph-sm .ph-initial { font-size: 32px; }
  .ph-sm .ph-logo { width: 44px; height: 44px; }
  .tcard.big .tc-head { font-size: 19px; }
  .tcard.big .tc-body { padding: 12px 14px 14px; }
  .d-hero { margin: -14px -20px 16px; }
  .d-hero .pic-lg, .d-hero .ph-lg { border-radius: 0; }
  .feed-end { padding-left: 22px; }
}
/* a big card without a picture gets a shorter banner, not a full-size empty frame */
.tcard.big .ph-lg { aspect-ratio: 3.2 / 1; }
.tcard.big .ph-lg .ph-initial { font-size: 56px; }
.tcard.big .ph-lg .ph-logo { width: 72px; height: 72px; }
@media (max-width: 820px) {
  .tcard.big .ph-lg { aspect-ratio: 2.3 / 1; }
  .tcard.big .ph-lg .ph-logo { width: 60px; height: 60px; border-radius: 14px; padding: 7px; }
  .tcard.big .ph-lg .ph-initial { font-size: 48px; }
  .tcard.big .ph-lg .ph-name { font-size: 13.5px; }
}
/* sticky day headers: solid enough that cards scrolling under them don't show through */
.t-head { background: color-mix(in srgb, var(--bg) 97%, transparent); }
body.v3 .top { background: color-mix(in srgb, var(--bg) 97%, transparent); }
