:root {
  color-scheme: dark;
  --page: #171a22;
  --surface: #242936;
  --surface-2: #2c3341;
  --text: #f7f9fc;
  --muted: #c3ccda;
  --pink: #ff278f;
  --cyan-soft: #dff9fc;
  --cyan-ink: #087a8a;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--text); }
.shell { width: min(100%, 720px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 760; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--pink); color: white; }
.readonly { margin-left: auto; padding: 6px 10px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-ink); font-size: 12px; letter-spacing: 0; }
.state { min-height: 52vh; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.state h1 { max-width: 12ch; margin: 0 0 12px; color: var(--text); font-size: clamp(28px, 8vw, 44px); line-height: 1.16; letter-spacing: -.025em; }
.loader { width: 24px; height: 24px; border: 3px solid #3a4352; border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.hero { position: relative; min-height: 420px; overflow: hidden; border-radius: 16px; background: var(--surface-2); box-shadow: 0 18px 46px rgba(5,8,16,.3); }
.hero img { width: 100%; height: min(68vh, 620px); display: block; object-fit: cover; }
.hero.no-image { min-height: 340px; display: grid; place-items: center; font-size: clamp(38px, 12vw, 80px); font-weight: 820; }
.hero-copy { position: absolute; inset: auto 0 0; padding: 70px 24px 24px; background: linear-gradient(transparent, rgba(8,12,21,.8)); }
.hero-copy h1 { margin: 0; font-size: clamp(32px, 9vw, 54px); line-height: 1.08; letter-spacing: -.03em; }
.hero-copy p { margin: 10px 0 0; color: rgba(255,255,255,.84); }
.notice { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: #25333b; color: #c8eff4; line-height: 1.55; }
.panel { margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--surface); color: var(--muted); line-height: 1.7; box-shadow: 0 10px 28px rgba(5,8,16,.2); }
.panel h2 { margin: 0 0 10px; color: var(--text); font-size: 22px; }
.timeline { margin-top: 28px; }
.timeline h2 { font-size: 24px; }
.event { display: grid; grid-template-columns: 92px 1fr; gap: 12px; margin: 18px 0; }
.event time { color: #aeb9c9; font-size: 13px; padding-top: 18px; }
.event .panel { margin: 0; }
.event img, .gallery img { width: 100%; margin-top: 14px; border-radius: 14px; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.gallery img { height: 210px; margin: 0; }
.profile { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: 16px; background: var(--surface); }
.profile img, .avatar-empty { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar-empty { display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.profile h1 { margin: 0 0 8px; font-size: 27px; }
.profile p { margin: 0; color: var(--muted); }
.actions { margin-top: 28px; text-align: center; }
.primary, .secondary { min-height: 50px; display: grid; place-items: center; width: 100%; border: 0; border-radius: 16px; background: var(--pink); color: white; font: inherit; font-weight: 750; text-decoration: none; }
.secondary { width: auto; min-width: 150px; padding: 0 22px; background: var(--surface-2); }
.actions p { color: #aeb9c9; font-size: 13px; line-height: 1.5; }
[hidden] { display: none !important; }
@media (min-width: 720px) { .shell { padding-inline: 24px; } .hero img { height: 620px; } }
@media (prefers-reduced-motion: reduce) { .loader { animation-duration: 1.8s; } }
