:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --border: #E5E1D8;
  --text: #1C1B18;
  --text-muted: #6F6B61;
  --text-subtle: #9C978B;
  --claude: #B9572F;
  --claude-soft: #F7E7DE;
  --claude-mark: #D97757;
  --codex: #2D55C8;
  --codex-soft: #E3E9F9;
  --cat-new: #1C7F4E;
  --cat-new-soft: #E0F1E7;
  --cat-imp: #6450C8;
  --cat-imp-soft: #ECE8FA;
  --cat-chg: #9A6512;
  --cat-chg-soft: #F7ECD7;
  --cat-fix: #5D6370;
  --cat-fix-soft: #ECEDEF;
  --term-bg: #17161A;
  --term-bar: #24232A;
  --sans: "IBM Plex Sans KR", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code {
  font: 500 0.92em var(--mono);
  overflow-wrap: anywhere;
  word-break: normal;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--codex); outline-offset: 2px; border-radius: 4px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 64px; border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark { background: var(--text); color: var(--surface); font: 700 13px/18px var(--mono); padding: 2px 6px; border-radius: 4px; }
.name { font: 600 16px/22px var(--mono); }
.tagline { color: var(--text-muted); font-size: 13px; }
.meta { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.meta a { font: 600 13px var(--mono); text-decoration: none; }
.synced { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.synced i { width: 7px; height: 7px; border-radius: 50%; background: var(--cat-new); }
.filter-open { display: none; }

/* Weekly summary */
.summary { padding: 48px 64px 40px; display: grid; gap: 24px; }
.range { font: 500 13px var(--mono); color: var(--text-subtle); }
.summary h1 { font-size: 32px; line-height: 42px; font-weight: 700; margin-top: 6px; }
.summary-row { display: grid; grid-template-columns: 420px 1fr; gap: 20px; }
.stats, .highlights { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.stats { display: grid; }
.stat { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.stat:last-child { border-bottom: 0; }
.stat > span { color: var(--text-muted); font-weight: 500; }
.stat .nums { display: flex; gap: 16px; }
.stat .num { display: inline-flex; align-items: center; gap: 6px; font: 600 22px/28px var(--mono); }
.highlights { padding: 20px 24px; }
.highlights-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.highlights-head h2 { font-size: 15px; font-weight: 600; }
.highlights-head span { font-size: 12px; color: var(--text-subtle); }
.highlights li { border-bottom: 1px solid var(--border); }
.highlights li:last-child { border-bottom: 0; }
.highlights button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 0; }
.highlights .text { flex: 1; font-weight: 500; }
.highlights .ver { font: 500 12px var(--mono); color: var(--text-subtle); }
.highlights .none { padding: 12px 0; color: var(--text-subtle); }

/* Badges & tags */
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: 999px; font: 600 12px/16px var(--mono); white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge.claude-code { background: var(--claude-soft); color: var(--claude); }
.badge.codex { background: var(--codex-soft); color: var(--codex); }
.logo-claude { fill: var(--claude-mark); }
.logo-codex { fill: var(--text); }
.tag {
  display: inline-flex; justify-content: center; flex: none; width: 52px; padding: 2px 0;
  border-radius: 4px; font-size: 12px; line-height: 16px; font-weight: 600;
}
.tag.new { background: var(--cat-new-soft); color: var(--cat-new); }
.tag.improved { background: var(--cat-imp-soft); color: var(--cat-imp); }
.tag.changed { background: var(--cat-chg-soft); color: var(--cat-chg); }
.tag.fixed { background: var(--cat-fix-soft); color: var(--cat-fix); }

/* Body */
.body { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 8px 64px 80px; align-items: start; }
.filters { display: grid; gap: 28px; position: sticky; top: 24px; }
.filters-head { display: none; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text-subtle);
}
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font: 14px var(--sans); background: none; color: var(--text); }
.group h3 { font-size: 12px; font-weight: 600; color: var(--text-subtle); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 500;
}
.chip .count { font: 500 12px var(--mono); color: var(--text-subtle); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.date-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-selects label { display: grid; gap: 6px; position: relative; font-size: 12px; color: var(--text-muted); }
.date-selects label::after {
  content: ""; position: absolute; right: 18px; bottom: 16px; width: 7px; height: 7px;
  border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text);
  transform: rotate(45deg); pointer-events: none;
}
.date-selects select {
  width: 100%; padding: 9px 40px 9px 10px; border: 1px solid var(--border); border-radius: 8px;
  appearance: none;
  background: var(--surface); color: var(--text); font: 13px var(--sans);
}
.date-selects select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.toggle { display: flex; align-items: center; justify-content: space-between; font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 36px; height: 20px; border-radius: 999px; background: var(--border); position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--text); }
.toggle input:checked + i::after { transform: translateX(16px); }
.toggle input:focus-visible + i { outline: 2px solid var(--codex); outline-offset: 2px; }
.note { font-size: 12px; line-height: 18px; color: var(--text-subtle); }

.feed { min-width: 0; }
.mobile-tools { display: none; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tabs button { padding-bottom: 12px; font-size: 15px; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; border-color: var(--text); }
.empty { color: var(--text-subtle); padding: 40px 0; text-align: center; }

/* Vertical timeline */
.entry { display: grid; grid-template-columns: 108px 16px 1fr; grid-template-areas: "date rail cards"; column-gap: 12px; }
.date-btn {
  grid-area: date; align-self: start; display: grid; justify-items: end; gap: 2px;
  padding: 14px 10px 10px; border-radius: 8px; border: 1px solid transparent; text-align: right;
}
.date-btn:hover, .date-btn[aria-expanded="true"] { background: var(--surface); border-color: var(--text); }
.date-btn .md { font: 600 18px/24px var(--mono); color: var(--text-muted); }
.entry:first-child .date-btn .md { color: var(--text); }
.date-btn .wd { font-size: 12px; color: var(--text-subtle); }
.date-btn .more { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.date-btn .label { display: none; }
.rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; }
.rail .top { width: 2px; height: 22px; background: var(--border); }
.entry:first-child .rail .top { background: transparent; }
.rail .line { width: 2px; flex: 1; background: var(--border); transform-origin: top; }
.dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--border);
}
.dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-subtle); }
.entry:first-child .dot { background: var(--cat-new-soft); border-color: var(--cat-new); }
.entry:first-child .dot::after { background: var(--cat-new); }
.cards { grid-area: cards; display: grid; gap: 12px; padding-bottom: 32px; min-width: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; display: grid; gap: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version { font: 600 20px/26px var(--mono); }
.when { flex: 1; font-size: 13px; color: var(--text-subtle); white-space: nowrap; }
.counts { font: 500 12px var(--mono); color: var(--text-muted); }
.src { font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.src:hover { text-decoration: underline; }
.release-summary { color: var(--text-muted); line-height: 22px; }
.items { display: grid; gap: 10px; }
.item { display: flex; gap: 12px; align-items: flex-start; line-height: 20px; }
.item .tag { margin-top: 0; }
.item p { flex: 1; min-width: 0; }
.more-btn { justify-self: start; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.more-btn:hover { color: var(--text); }
.pre-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; border: 1px dashed var(--border); border-radius: 12px;
  color: var(--text-subtle); font-size: 13px; text-align: left; width: 100%;
}

/* Feature list view */
.feature-list { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 24px; }
.feature-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; }
.feature-row:last-child { border-bottom: 0; }
.feature-row .text { flex: 1; font-weight: 500; min-width: 0; }
.feature-row .ver { font: 500 12px var(--mono); color: var(--text-subtle); white-space: nowrap; }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .entry .card, .js .entry .pre-row { opacity: 0; transform: translateY(24px); transition: opacity .48s var(--ease), transform .48s var(--ease); }
  .js .entry .dot { transform: scale(.6); opacity: .3; transition: transform .24s var(--ease), opacity .24s; }
  .js .entry .rail .line { transform: scaleY(0); transition: transform .48s var(--ease) .12s; }
  .js .entry.in .card, .js .entry.in .pre-row { opacity: 1; transform: none; }
  .js .entry.in .dot { transform: none; opacity: 1; }
  .js .entry.in .rail .line { transform: none; }
}

/* Drawer */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(640px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--bg); color: var(--text);
  box-shadow: -8px 0 32px rgb(0 0 0 / .18); overflow: hidden; flex-direction: column;
}
.drawer[open] { display: flex; }
.drawer::backdrop { background: rgb(28 27 24 / .32); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: slide-in .32s var(--ease); }
  @keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
}
.drawer-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 24px 32px 0; display: grid; gap: 16px; }
.drawer-title { display: flex; align-items: center; gap: 12px; }
.drawer-title > div { flex: 1; }
.drawer-title h2 { font: 600 22px/30px var(--mono); }
.drawer-title p { font-size: 13px; color: var(--text-muted); }
.drawer .back { display: none; }
.release-tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.release-tabs button { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid transparent; opacity: .55; white-space: nowrap; }
.release-tabs button[aria-selected="true"] { opacity: 1; border-color: var(--text); }
.release-tabs .v { font: 600 14px var(--mono); }
.drawer-body { overflow-y: auto; padding: 24px 32px 40px; display: grid; gap: 20px; align-content: start; flex: 1; }
.lead { display: grid; gap: 6px; }
.lead p:first-child { font-size: 15px; font-weight: 500; line-height: 24px; }
.lead .src-line { font-size: 12px; color: var(--text-subtle); }
.lead .src-line a { color: inherit; }
.pending { font-size: 13px; color: var(--text-muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; padding: 12px 14px; }

.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; display: grid; gap: 16px; min-width: 0; }
.feature-head { display: flex; align-items: center; gap: 10px; }
.feature-head h3 { font-size: 17px; line-height: 24px; font-weight: 700; }
.sec { display: grid; gap: 8px; }
.sec > h4 { font-size: 12px; font-weight: 600; color: var(--text-subtle); margin: 0; }
.sec > p { line-height: 22px; }
.steps { display: grid; gap: 8px; counter-reset: step; }
.steps li { display: flex; gap: 10px; line-height: 20px; counter-increment: step; }
.steps li::before {
  content: counter(step); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--border); font: 600 11px var(--mono); color: var(--text-muted);
}
.surface-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bg); justify-self: start; }
.surface-tabs button { padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.surface-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; border: 1px solid var(--border); padding: 4px 11px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.surface-tabs button:disabled { color: var(--text-subtle); text-decoration: line-through; cursor: not-allowed; }
.terminal { background: var(--term-bg); border-radius: 10px; overflow: hidden; }
.terminal .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--term-bar); }
.terminal .bar i { width: 9px; height: 9px; border-radius: 50%; }
.terminal .bar i:nth-child(1) { background: #FF5F57; }
.terminal .bar i:nth-child(2) { background: #FEBC2E; }
.terminal .bar i:nth-child(3) { background: #28C840; }
.terminal .bar span { flex: 1; text-align: center; font: 11px var(--mono); color: #8E8B95; margin-right: 27px; }
.terminal pre { margin: 0; padding: 14px 16px 16px; font: 400 12.5px/20px var(--mono); color: #F2F0EA; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal .comment { color: #7D7A84; }
.terminal .ui { color: #C9C6CF; }
.terminal .hl { color: #E6A27F; }
.terminal .p-cmd { color: #7FB98F; }
.terminal .p-in { color: #E6A27F; }
.shot { display: grid; gap: 8px; }
.shot img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.shot figcaption, .flow-note { font-size: 12px; color: var(--text-muted); }
.flow { display: grid; }
.flow li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.flow li.changed { background: var(--cat-chg-soft); border: 1px solid var(--cat-chg); }
.flow li > b { font: 600 12px/20px var(--mono); color: var(--text-muted); }
.flow li.changed > b { color: var(--cat-chg); }
.flow li strong { display: block; font-size: 13px; line-height: 20px; }
.flow li span { display: block; font-size: 12px; line-height: 18px; color: var(--text-muted); }
.flow .arrow { display: block; padding: 2px 0 2px 16px; background: none; color: var(--text-subtle); }
.flow-diff { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.flow-diff s { color: var(--text-subtle); }
.flow-diff b { color: var(--cat-chg); }
.na { padding: 14px; border: 1px dashed var(--border); border-radius: 8px; background: var(--bg); font-size: 12px; color: var(--text-subtle); }
.na strong { display: block; font-size: 13px; color: var(--text-muted); }
.source { border-top: 1px dashed var(--border); padding-top: 12px; display: grid; gap: 6px; }
.source p { font: 400 11.5px/18px var(--mono); color: var(--text-muted); overflow-wrap: anywhere; word-break: normal; }
.source small { font-size: 11.5px; color: var(--text-subtle); }
.rest h3 { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.rest .items { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }

/* Mobile */
@media (max-width: 900px) {
  body { font-size: 14px; }
  .topbar { padding: 14px 16px; }
  .tagline, .meta .synced, .meta a { display: none; }
  .filter-open { display: grid; }
  .summary { padding: 24px 16px 20px; gap: 16px; }
  .summary h1 { font-size: 24px; line-height: 32px; margin-top: 4px; }
  .summary-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; background: none; border: 0; }
  .stat { display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border) !important; border-radius: 10px; }
  .stat > span { font-size: 12px; }
  .stat .num { font-size: 18px; line-height: 24px; gap: 4px; }
  .stat .nums { gap: 10px; }
  .highlights { padding: 16px; }
  .highlights .badge .tn, .feature-row .badge .tn { display: none; }
  .highlights .badge, .feature-row .badge { padding: 5px; }
  .body { grid-template-columns: 1fr; padding: 0 16px 40px; gap: 0; }
  .filters {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 100vw); z-index: 20; background: var(--bg);
    padding: 20px 16px; overflow-y: auto; align-content: start; transform: translateX(100%); transition: transform .28s var(--ease);
    box-shadow: -8px 0 32px rgb(0 0 0 / .18); visibility: hidden;
  }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-head button { font-size: 13px; color: var(--text-muted); }
  .mobile-tools { display: flex; margin-bottom: 16px; }
  .tabs { margin-bottom: 20px; }
  .entry { grid-template-columns: 16px 1fr; grid-template-areas: "rail date" "rail cards"; }
  .rail .top { display: none; }
  .date-btn { display: flex; justify-content: space-between; align-items: center; padding: 0 0 10px; border: 0; text-align: left; }
  .date-btn:hover, .date-btn[aria-expanded="true"] { background: none; }
  .date-btn .md, .date-btn .wd { display: none; }
  .date-btn .label { display: inline; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .cards { padding-bottom: 24px; gap: 10px; }
  .card { padding: 16px; gap: 12px; }
  .card-head { gap: 8px; }
  .version { font-size: 17px; line-height: 22px; }
  .when { text-align: right; font-size: 12px; }
  .card .counts, .card .src { display: none; }
  .release-summary { font-size: 13px; line-height: 20px; }
  .feature-list { padding: 4px 16px; }
  .drawer { width: 100vw; box-shadow: none; }
  .drawer::backdrop { background: transparent; }
  .drawer-head { padding: 14px 16px 0; gap: 12px; }
  .drawer .back { display: grid; }
  .drawer .close { display: none; }
  .drawer-title h2 { font-size: 17px; line-height: 22px; }
  .drawer-title p { font-size: 12px; }
  .drawer-body { padding: 16px 16px 32px; gap: 14px; }
  .feature { padding: 16px; gap: 14px; }
  .feature-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .feature-head h3 { font-size: 16px; line-height: 22px; }
  .terminal pre { font-size: 11.5px; line-height: 18px; padding: 12px; }
}
