:root {
  --blue: #1e69ff;
  --blue-soft: #e8f1ff;
  --ink: #111318;
  --muted: #5c6370;
  --line: rgba(0, 0, 0, 0.08);
  --bg: #f2f2f7;
  --card: #ffffff;
  --radius: 22px;
  --gutter: 20px;
  --page-max: 1080px;
}
* { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "SF Pro Text", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; }
.wrap { width: min(var(--page-max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(18px);
  background: rgba(242, 242, 247, 0.82);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 105, 255, 0.18);
}
.brand.back {
  gap: 2px;
  min-height: 36px;
  margin-left: -6px;
  padding: 4px 8px 4px 2px;
  border-radius: 10px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0;
}
.brand.back:hover,
.brand.back:focus-visible {
  background: var(--blue-soft);
}
.brand.back svg {
  display: block;
  flex: 0 0 auto;
}
.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-tabs a,
.nav-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-tabs a:hover,
.nav-tabs a:focus-visible,
.nav-tabs button:hover,
.nav-tabs button:focus-visible {
  color: var(--ink);
  background: #fff;
}
.nav-tabs a.active,
.nav-tabs a.nav-online.active,
.nav-tabs a.nav-progress.active {
  color: var(--blue);
  background: var(--blue-soft);
}
.langs {
  position: relative;
  flex: 0 0 auto;
}
.langs-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.langs-toggle::-webkit-details-marker,
.langs-toggle::marker {
  display: none;
  content: none;
}
.langs[open] .langs-toggle {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: transparent;
}
.langs-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 124px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(17, 19, 24, 0.12);
}
.langs-menu button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.langs-menu button:hover,
.langs-menu button:focus-visible {
  background: var(--bg);
  color: var(--ink);
}
.langs-menu button.active {
  background: var(--blue);
  color: #fff;
}
.hero {
  padding: 72px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 36px;
  align-items: stretch;
}
.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  font-weight: 720;
}
h1 span {
  display: block;
  font-size: 0.42em;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 10px;
  font-weight: 600;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 38em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.wait {
  background: #ececf1;
  color: #8e8e93;
  pointer-events: none;
}
.phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: 100%;
  background: linear-gradient(180deg, #fff, #f7f8fc);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(17, 19, 24, 0.12);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: #fff;
}
.caption {
  text-align: center;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
section { padding: 28px 0 12px; }
h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--line);
  min-height: 176px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.badge.soon {
  color: #6e6e73;
  background: #ececf1;
}
.downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.downloads .card { min-width: 0; }
.downloads .card p { overflow-wrap: anywhere; }
.dl-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ver { color: var(--muted); font-size: 13px; font-weight: 600; }
.dl-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.tiny { font-size: 12px; color: var(--muted); margin-top: 10px; }
.tiny a { color: var(--blue); }
.notes {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}
.notes h4 {
  margin: 16px 0 6px;
  font-size: 15px;
}
.notes h4:first-child { margin-top: 0; }
.notes ol { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.notes a { color: var(--blue); }
.message-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.message-form > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.message-form > label:first-of-type { margin-top: 4px; }
.message-form input:not([type="checkbox"]),
.message-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  outline: none;
}
.message-form input:not([type="checkbox"]):focus,
.message-form textarea:focus {
  border-color: rgba(30, 105, 255, 0.45);
  background: #fff;
}
.page-main .notes.message-form .form-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  min-height: 16px;
}
.page-main .notes.message-form .form-meta .consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  height: 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  line-height: 16px;
}
.page-main .notes.message-form .form-meta .consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.message-form textarea {
  min-height: 140px;
  resize: vertical;
}
.message-form .btn {
  width: auto;
  margin-top: 16px;
  align-self: flex-end;
}
.message-form #message-submit {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.message-form .text-link {
  display: inline;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  vertical-align: baseline;
}
.message-form .text-link:hover {
  text-decoration: underline;
}
.page-main .notes.message-form .form-meta .char-count {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  height: 16px;
  line-height: 16px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.char-count.over {
  color: #c43c3c;
}
.qa {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qa details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 20px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -4px;
}
.qa details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.qa-body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
}
.qa-body h4 {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 15px;
}
.qa-body h4:first-child { margin-top: 0; }
.qa-body ol { margin: 0; padding-left: 18px; }
.qa-body li { margin: 4px 0; }
.qa-body a { color: var(--blue); word-break: break-all; overflow-wrap: anywhere; }
.qa-body code {
  font-size: 0.92em;
  background: var(--blue-soft);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 6px;
}
.qa-body p { margin: 0 0 8px; }
html { scroll-behavior: smooth; }
#qa, #privacy, #about, #download { scroll-margin-top: calc(72px + env(safe-area-inset-top)); }
.features-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.features-head h2 { margin-bottom: 12px; }
.swipe-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  flex: 0 0 auto;
}
.poster-rail {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc(50vw - var(--page-max) / 2));
  padding-block: 4px 18px;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.poster-rail:active { cursor: grabbing; }
.poster-rail::-webkit-scrollbar { display: none; }
.posters {
  display: flex;
  gap: 14px;
  width: max-content;
  align-items: stretch;
  padding-inline: max(var(--gutter), calc(50vw - var(--page-max) / 2));
}
.poster {
  flex: 0 0 auto;
  width: auto;
  height: min(62vh, 620px);
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.08);
}
.poster picture, .poster img {
  display: block;
  height: 100%;
  width: auto;
}
.poster img {
  aspect-ratio: 473 / 1024;
  height: 100%;
  width: auto;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.split h2 { margin-bottom: 14px; }
footer {
  padding: 48px 0 calc(36px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
footer strong { color: var(--ink); }
.icp {
  margin: 10px 0 0;
  font-size: 12px;
}
.icp a {
  color: var(--muted);
  text-decoration: none;
}
.icp a:hover { color: var(--blue); }
@media (max-width: 860px) {
  :root { --gutter: 12px; }
  .hero, .grid, .downloads, .split { grid-template-columns: 1fr; }
  .hero { padding: 24px 0 16px; gap: 20px; }
  .phone { display: none; }
  h1 { font-size: clamp(30px, 8.4vw, 44px); }
  h2 { font-size: 24px; }
  .lede { font-size: 16px; }
  header { backdrop-filter: none; background: var(--bg); }
  .nav { min-height: 56px; gap: 8px; }
  .nav-tabs a,
  .nav-tabs button { padding: 6px 8px; font-size: 13px; }
  .langs-toggle { width: 32px; height: 32px; border-radius: 10px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .card { min-height: 0; padding: 18px 16px; }
  .dl-actions .btn, .dl-actions .btn.wait { width: 100%; }
  .poster { height: min(52svh, 460px); border-radius: 18px; }
  .posters { gap: 12px; }
  .qa summary { padding: 14px 16px; font-size: 15px; }
  .qa-body { padding: 0 16px 16px; font-size: 14px; }
  .notes { padding: 16px; }
  section { padding: 20px 0 8px; }
  .page-main { padding: 24px 0 16px; }
  .work-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .brand.back span { display: inline; }
  .nav-tabs { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .progress-glass {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
}

.page-main {
  padding: 40px 0 24px;
  min-height: calc(100svh - 220px);
}
.page-main h1 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  line-height: 1.15;
  font-weight: 720;
}
.work-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin: 0 0 18px;
}
.work-card {
  width: 300px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.06);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  min-height: 196px;
}
.work-intro {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 6px 2px;
}
.work-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.work-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.work-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.work-pct {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 32px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
}
.work-bar {
  height: 8px;
  border-radius: 999px;
  background: #ececf1;
  overflow: hidden;
}
.work-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}
.progress-scene {
  background-color: #8496a5;
  background-image: url("/assets/progress/frame-1.webp?v=20260819o");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.progress-scene header {
  background: rgba(242, 242, 247, 0.42);
}
#progress-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.55s ease;
}
#progress-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.progress-scene.is-loading {
  overflow: hidden;
  height: 100%;
  height: 100dvh;
}
.progress-scene.is-loading #progress-canvas {
  opacity: 1;
}
.progress-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(132, 150, 165, 0.28);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transition: opacity 0.5s ease;
}
.progress-loader.is-done {
  opacity: 0;
  pointer-events: none;
}
.progress-loader-card {
  width: min(280px, calc(100vw - 48px));
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 40px rgba(17, 19, 24, 0.12);
  text-align: center;
}
.progress-loader-card p {
  margin: 0 0 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.progress-loader-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.progress-loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.2s ease;
}
.progress-loader-pct {
  margin: 10px 0 0 !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.progress-track {
  position: relative;
  z-index: 1;
}
.progress-stop {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(88px + env(safe-area-inset-top)) var(--gutter) 48px;
}
.progress-stop.is-end {
  min-height: 140svh;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.progress-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(312px, 100%);
  position: sticky;
  bottom: max(22vh, calc(20px + env(safe-area-inset-bottom)));
}
.progress-works .progress-glass {
  width: 100%;
  padding: 16px 16px 28px;
  position: relative;
}
.progress-glass {
  width: min(520px, 100%);
  padding: 28px 28px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px rgba(17, 19, 24, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.progress-stop.is-active .progress-glass-title {
  opacity: 1;
  transform: translateY(30vh);
  pointer-events: auto;
}
.work-card.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.progress-glass-title {
  width: min(640px, 100%);
  transform: translateY(30vh);
}
.progress-glass h1,
.progress-glass h2 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.progress-glass h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 720;
}
.progress-glass h2 {
  font-size: clamp(16px, 2.4vw, 20px);
  margin: 0;
}
.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
html[lang="en"] .progress-glass .work-sub {
  display: none;
}
html[lang="en"] .work-head {
  margin-bottom: 10px;
}
.progress-glass .work-sub {
  margin: 0 0 10px;
  color: rgba(17, 19, 24, 0.62);
  font-size: 13px;
}
.progress-glass .work-pct {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}
.progress-glass .work-bar {
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  height: 6px;
}
.progress-intro {
  margin: 0;
  padding-right: 44px;
  color: rgba(17, 19, 24, 0.78);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.progress-fallback #progress-canvas,
.progress-fallback #progress-video {
  display: none;
}
.progress-fallback {
  background: var(--bg);
}
.progress-fallback .progress-stop {
  min-height: 0;
  padding: 24px var(--gutter);
}
.progress-fallback .progress-stop.is-end {
  padding-bottom: 24px;
}
.progress-fallback .progress-glass {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.progress-fallback .work-card {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
  .progress-stop {
    justify-content: center;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .progress-glass-title {
    padding: 22px 20px 18px;
  }
  .progress-works .progress-glass {
    padding: 14px 14px 26px;
  }
}
html:has(body.progress-mobile),
.progress-scene.progress-mobile {
  background-image: none;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
.progress-scene.progress-mobile #progress-canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
.progress-scene.progress-mobile .progress-stop[data-stop="0"] {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.progress-scene.progress-mobile .progress-glass-title,
.progress-scene.progress-mobile .progress-stop.is-active .progress-glass-title {
  width: calc(100vw - 32px);
  max-width: none;
  transform: translateY(-20vh);
  padding: 14px 12px 12px;
}
.progress-scene.progress-mobile .progress-glass-title h1 {
  margin: 0;
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.progress-scene.progress-mobile .progress-stop.is-end {
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(88px + env(safe-area-inset-top));
  padding-bottom: 24px;
}
.progress-scene.progress-mobile .progress-works {
  width: min(416px, calc(100vw - 32px));
  gap: 8px;
  position: sticky;
  top: calc(88px + env(safe-area-inset-top));
  bottom: auto;
  max-height: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  align-items: stretch;
}
.progress-scene.progress-mobile .work-card {
  min-width: 0;
  height: 100%;
}
.progress-scene.progress-mobile .progress-works .progress-glass {
  padding: 8px 8px 22px;
}
.progress-scene.progress-mobile .progress-works h2 {
  font-size: 12px;
}
.progress-scene.progress-mobile .work-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.progress-scene.progress-mobile .progress-glass .work-pct {
  right: 8px;
  bottom: 8px;
  font-size: 12px;
}
.progress-scene.progress-mobile .progress-intro {
  font-size: 11px;
  line-height: 1.45;
  padding-right: 32px;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}
.page-main .notes p {
  margin: 0 0 10px;
}
.letter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.letter-list h2 {
  margin: 0 0 4px;
}
#letter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.letter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.06);
}
.letter-original {
  padding: 20px 22px;
}
.letter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.letter-meta strong {
  color: var(--ink);
  font-weight: 700;
}
.letter-date {
  user-select: none;
}
.letter-retract {
  margin-left: auto;
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.letter-retract:hover {
  text-decoration: underline;
}
.letter-reply {
  margin: 0;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  background: var(--blue-soft);
}
.letter-reply-meta {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.letter-reply-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}
.letter-rule {
  height: 1px;
  background: var(--line);
  margin: 14px 0 12px;
  border: 0;
}
.letter-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}
.letter-empty {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.letter-skeleton {
  box-shadow: none;
}
.letter-skeleton .sk-line {
  height: 15px;
  margin-bottom: 12px;
  border-radius: 8px;
  background-color: rgba(17, 19, 24, 0.06);
  background-image: linear-gradient(
    90deg,
    rgba(17, 19, 24, 0) 0%,
    rgba(17, 19, 24, 0.05) 50%,
    rgba(17, 19, 24, 0) 100%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: sk-shimmer 1.5s ease-in-out infinite;
}
.letter-skeleton .sk-meta {
  width: 52%;
  height: 13px;
  margin-bottom: 18px;
}
.letter-skeleton .sk-short {
  width: 38%;
  margin-bottom: 0;
}
@keyframes sk-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .letter-skeleton .sk-line {
    animation: none;
  }
}
.letter-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.letter-pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.letter-pager button:hover:not(:disabled) {
  background: var(--blue-soft);
  border-color: rgba(30, 105, 255, 0.28);
}
.letter-pager button[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.letter-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}
.site-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 18px;
  max-width: min(440px, calc(100vw - 32px));
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.18);
}
.site-dialog::backdrop {
  background: rgba(17, 19, 24, 0.35);
}
.site-dialog p {
  margin: 0 0 16px;
  font-size: 15px;
}
.site-dialog .btn {
  width: 100%;
}
.site-dialog .dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.site-dialog .dialog-actions .btn {
  width: 100%;
}
.site-dialog .dialog-actions-single {
  grid-template-columns: 1fr;
}
.site-dialog .receipt-code {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.04em;
  word-break: break-all;
  user-select: all;
}
.site-dialog .receipt-warn {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.site-dialog input[type="text"],
.site-dialog input[type="password"],
.site-dialog textarea {
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
}
.site-dialog textarea {
  min-height: 120px;
  resize: vertical;
}
.site-dialog .admin-error {
  color: #c0392b;
  font-size: 13px;
  margin: -4px 0 12px;
}
#maintain-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}
html.site-locked #maintain-screen {
  display: flex;
}
html.site-locked body {
  overflow: hidden;
}
#maintain-screen p {
  margin: 0;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 22em;
}
#maintain-screen .icp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom));
  margin: 0;
}
.admin-hot {
  cursor: default;
  user-select: none;
}
.eyebrow {
  user-select: none;
}
