/* A compact welcome card, shared across Community, News and Inbox. */
.modal.release-modal { align-items: center; justify-content: center; padding: 12px; }
.release-modal .release-content { width: min(560px,100%); height: auto; max-height: calc(var(--visible-height,100dvh) - 24px); padding: 0; overflow: hidden; border-radius: 26px; display: flex; flex-direction: column; box-shadow: 0 30px 100px #0006; }
.release-content > .close-button { z-index: 2; right: 12px; top: 12px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); }
.release-art { min-height: 112px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: radial-gradient(ellipse at 85% 80%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 70%),var(--surface-raised); border-bottom: 1px solid var(--line); }
.release-art-label { color: var(--accent); font-size: 9px; letter-spacing: .13em; font-weight: 700; margin: 0 0 7px; }
.release-welcome-title { color: var(--text); font-size: 23px; font-weight: 650; letter-spacing: -.03em; margin: 0; }
.release-illustration { width: 110px; height: 74px; margin-right: 30px; position: relative; flex-shrink: 0; }
.release-logo,.release-heart,.release-spark { display: grid; place-items: center; position: absolute; }
.release-logo { width: 60px; height: 60px; left: 0; top: 5px; color: var(--accent-ink); background: var(--accent); border-radius: 22px; transform: rotate(-9deg); box-shadow: 0 8px 24px #0002; }
.release-logo svg { width: 32px; height: 32px; }
.release-heart { width: 36px; height: 36px; right: 9px; bottom: 0; color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; transform: rotate(10deg); }
.release-heart svg { width: 19px; height: 19px; fill: color-mix(in srgb,var(--accent) 15%,transparent); }
.release-spark { right: 0; top: 0; color: var(--accent); transform: rotate(12deg); }
.release-spark svg { width: 16px; height: 16px; }
.release-copy { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.release-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#release-select { max-width: 72%; min-width: 0; min-height: 34px; padding: 5px 10px; font-size: 11px; border-radius: 9px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); text-overflow: ellipsis; }
#release-date { font-size: 10px; color: var(--muted); white-space: nowrap; }
.release-copy > #release-title { font: 700 clamp(23px,5vw,30px)/1.15 var(--font-display); letter-spacing: -.04em; padding: 0; margin: 0; }
.release-summary { font-size: 13px; line-height: 1.6; color: var(--muted); margin: -5px 0 0; }
.release-stage { min-width: 0; }
.release-change,.release-details { border: 1px solid var(--line); background: color-mix(in srgb,var(--accent) 3%,var(--bg)); border-radius: 18px; padding: 18px; }
.release-change { display: flex; align-items: flex-start; gap: 13px; }
.release-change > span { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-raised); border-radius: 13px; color: var(--accent); }
.release-change > span svg { width: 21px; height: 21px; }
.release-change h3 { color: var(--text); font-size: 16px; line-height: 1.4; margin: 0 0 8px; font-weight: 650; }
.release-change p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.release-change-type { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 5px; color: var(--accent); border: 1px solid var(--line); border-radius: 5px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.release-change-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.release-change-pages > button { min-width: 40px; min-height: 40px; font-size: 12px; padding: 7px 12px; border-radius: 12px; }
#release-change-back svg { transform: rotate(180deg); width: 17px; height: 17px; }
.release-steps { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.release-dots { display: flex; align-items: center; gap: 3px; }
.release-dots button { position: relative; min-width: 28px; width: 28px; min-height: 28px; height: 28px; padding: 0; border: 0; background: transparent; }
.release-dots button::after { content: ''; width: 5px; height: 5px; border-radius: 5px; background: var(--subtle); position: absolute; inset: 0; margin: auto; }
.release-dots button[aria-current=true]::after { width: 18px; background: var(--accent); }
#release-change-page { color: var(--muted); font-size: 10px; line-height: 1; }
.release-footer { display: flex; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
#release-continue { min-height: 46px; flex: 1; font-size: 13px; border-radius: 13px; }
#release-info-toggle { width: 46px; min-width: 46px; min-height: 46px; border-radius: 13px; color: var(--muted); }
#release-info-toggle[aria-expanded=true] { color: var(--accent); border-color: var(--accent); }
.release-details h3 { font-size: 16px; margin: 8px 0 10px; }
.release-details-icon { display: inline-flex; color: var(--accent); }
.release-build { font-size: 12px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; margin: 0; }
#release-built-at { color: var(--muted); font-size: 11px; margin: 8px 0 0; }
.release-footer-note,.release-error { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.release-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px 8px; color: var(--muted); font-size: 13px; }
.release-loading-mark { width: 20px; height: 20px; flex-shrink: 0; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: release-spin .9s linear infinite; }
.release-modal [hidden] { display: none !important; }
.release-modal :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes release-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
  .release-art { min-height: 96px; padding: 18px; gap: 6px; }
  .release-welcome-title { font-size: 21px; }
  .release-illustration { width: 74px; margin-right: 26px; height: 64px; }
  .release-logo { width: 50px; height: 50px; border-radius: 18px; }
  .release-logo svg { width: 28px; height: 28px; }
  .release-heart { width: 29px; height: 29px; right: 0; }
  .release-spark { display: none; }
  .release-copy { padding: 18px; gap: 12px; }
  .release-change { padding: 15px; gap: 10px; }
  .release-change > span { width: 32px; height: 32px; border-radius: 11px; }
  .release-change h3 { font-size: 15px; }
  .release-change p { font-size: 12px; }
}
@media (max-height: 650px) {
  .release-art { min-height: 56px; padding: 10px 18px; }
  .release-art-label { font-size: 8px; margin-bottom: 3px; }
  .release-welcome-title { font-size: 17px; }
  .release-illustration { display: none; }
  .release-copy { padding: 12px 18px; gap: 8px; }
  .release-copy > #release-title { font-size: 23px; }
  .release-summary { display: none; }
  .release-change { padding: 12px; }
  .release-change > span { display: none; }
  .release-change h3 { font-size: 14px; margin-bottom: 6px; }
  .release-change p { font-size: 12px; line-height: 1.45; }
  .release-change-pages > button { min-height: 34px; }
  .release-dots button { min-width: 24px; width: 24px; min-height: 24px; height: 24px; }
  .release-steps { gap: 3px; }
  .release-footer { padding-top: 8px; }
  #release-continue,#release-info-toggle { min-height: 40px; }
  .release-details { padding: 12px; }
}
@media (max-height: 440px) and (min-width: 540px) {
  .release-modal .release-content { width: min(720px,100%); }
  .release-art { display: none; }
  .release-copy { display: grid; grid-template-columns: .95fr 1.05fr; gap: 8px 20px; padding: 16px 20px; }
  .release-meta { grid-column: 1/-1; grid-row: 1; padding-right: 44px; }
  .release-copy > #release-title { grid-column: 1; grid-row: 2; align-self: end; }
  .release-summary { display: block; grid-column: 1; grid-row: 3; font-size: 12px; }
  .release-stage { grid-column: 2; grid-row: 2/4; align-self: center; }
  .release-change-pages { grid-column: 2; grid-row: 4; }
  .release-footer { grid-column: 1; grid-row: 4; padding: 0; border: 0; align-self: center; }
  .release-footer-note { grid-column: 1/-1; grid-row: 5; }
  .release-details h3 { margin: 0 0 6px; font-size: 14px; }
  .release-details-icon { display: none; }
  .release-build { font-size: 11px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .release-modal * { animation: none !important; transition: none !important; } }
