:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #66768a;
  --line: #dce6ef;
  --surface: #ffffff;
  --soft: #f4f8fb;
  --brand: #11867d;
  --brand-dark: #09645f;
  --blue: #1977b9;
  --purple: #6548e8;
  --gradient: linear-gradient(135deg, #188cc7 0%, #6548e8 100%);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(24, 140, 199, .12), transparent 24rem),
    radial-gradient(circle at 96% 8%, rgba(101, 72, 232, .09), transparent 26rem),
    #edf4f7;
}
a { color: inherit; }
.release-shell { width: min(1080px, calc(100% - 32px)); margin: 18px auto 34px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(220, 230, 239, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(40, 62, 82, .09);
}
.eyebrow { margin: 0 0 4px; color: var(--brand); font-size: 13px; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; }
.header-actions, .topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.topbar-actions a,
.account-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.topbar-actions a:hover { border-color: rgba(17, 134, 125, .55); color: var(--brand-dark); }
.topbar-actions a.active { border-color: transparent; color: #fff; background: var(--gradient); }
.account-menu { position: relative; }
.account-menu summary { gap: 8px; list-style: none; white-space: nowrap; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
}
.account-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 260px;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(38, 58, 76, .18);
}
.account-popover span { color: var(--muted); font-size: 12px; }
.account-popover button {
  margin-top: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.release-timeline { position: relative; display: grid; gap: 14px; margin-top: 16px; }
.release-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 121px;
  width: 2px;
  background: linear-gradient(var(--purple), var(--brand));
  content: "";
  opacity: .25;
}
.release-entry { position: relative; display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 30px; }
.release-date {
  position: sticky;
  top: 16px;
  align-self: start;
  padding-top: 19px;
  text-align: right;
}
.release-date::after {
  position: absolute;
  top: 24px;
  right: -22px;
  width: 9px;
  height: 9px;
  border: 3px solid #edf4f7;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(17,134,125,.25);
  content: "";
}
.featured .release-date::after { background: var(--purple); }
.release-date time { display: block; font-size: 13px; font-weight: 900; letter-spacing: -.02em; }
.release-date span { color: var(--muted); font-size: 11px; font-weight: 700; }
.release-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(45, 67, 86, .08);
}
.featured .release-card { border-top: 4px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; }
.release-card header { margin-bottom: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.version { display: inline-block; margin-bottom: 7px; color: var(--brand); font-size: 12px; font-weight: 900; }
.release-card h2 { margin-bottom: 0; font-size: clamp(18px, 2.5vw, 23px); letter-spacing: -.03em; }
.release-card h3 { margin-bottom: 8px; font-size: 14px; }
.release-card ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #435469; font-size: 13px; line-height: 1.55; }
.release-card li::marker { color: var(--brand); }
.change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.change-grid section + section { padding-left: 22px; border-left: 1px solid var(--line); }
.release-note-inline {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: #435469;
  background: #f2f7f9;
  font-size: 12px;
  line-height: 1.55;
}
.release-note-inline strong { color: var(--brand-dark); }
.release-card footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.release-card footer a {
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--brand-dark);
  background: #e8f6f4;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.release-card footer a:hover { color: #fff; background: var(--brand); }
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0 136px;
  padding: 14px 4px;
  color: var(--muted);
  font-size: 13px;
}
.page-footer a { color: var(--brand-dark); font-weight: 850; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .topbar-actions { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .topbar-actions a { flex: 0 0 auto; white-space: nowrap; }
  .account-menu { align-self: flex-end; }
}

@media (max-width: 680px) {
  .release-shell { width: min(100% - 18px, 620px); margin-top: 9px; }
  .topbar { padding: 20px; border-radius: 18px; }
  .release-timeline::before { left: 8px; }
  .release-entry { grid-template-columns: 1fr; gap: 8px; padding-left: 24px; }
  .release-date { position: relative; top: 0; padding-top: 10px; text-align: left; }
  .release-date::after { top: 16px; right: auto; left: -22px; }
  .change-grid { grid-template-columns: 1fr; gap: 22px; }
  .change-grid section + section { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .release-card { padding: 18px 16px; border-radius: 16px; }
  .page-footer { margin-left: 24px; align-items: flex-start; flex-direction: column; }
  #accountLabel { display: none; }
}
