body.detail-page {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.detail-page::before,
.detail-page::after {
  position: fixed;
  inset: -2rem;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.detail-page::before {
  background: url("../_images/_root/bg.webp") center center / cover no-repeat;
  filter: blur(20px) saturate(0.94) brightness(0.94);
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.09);
  animation: detail-background-breathe 18s ease-in-out infinite alternate;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-page::after {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    linear-gradient(90deg, rgba(10, 8, 9, 0.3) 0%, rgba(10, 8, 9, 0.1) 21%, rgba(10, 8, 9, 0.03) 32%, transparent 36%);
}

.page-shell {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(3rem, 8vw, 7rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.back-link::before {
  content: "←";
  transition: transform 180ms ease;
}

.back-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.back-link:hover::before { transform: translateX(-3px); }

.page-hero {
  max-width: 56rem;
  margin: clamp(1.5rem, 5vw, 4rem) auto clamp(1.5rem, 4vw, 2.75rem);
  animation: detail-reveal 820ms 80ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 350;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-wrap: balance;
}

.policy-title { white-space: nowrap; }

.page-rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 1.1rem;
  background: linear-gradient(90deg, var(--accent-strong), rgba(255, 184, 121, 0.08));
}

.page-lead {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
}

.content-panel {
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(28, 22, 22, 0.74), rgba(19, 15, 17, 0.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(108%);
  animation: detail-reveal 900ms 160ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.content-panel > :first-child { margin-top: 0; }
.content-panel > :last-child { margin-bottom: 0; }

.content-panel h2 {
  margin: clamp(3rem, 8vw, 5rem) 0 1.1rem;
  padding-top: 0.2rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 570;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-wrap: balance;
}

.content-panel h2::before {
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
  content: "";
}

.content-panel h3 {
  margin: 2.5rem 0 0.65rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.content-panel p,
.content-panel li {
  color: rgba(255, 250, 242, 0.84);
  font-size: clamp(0.86rem, 1.7vw, 0.97rem);
}

.content-panel ul {
  margin-block: 0.8rem;
  padding-left: 1.25rem;
}

.content-panel li {
  margin-block: 0.52rem;
  padding-left: 0.25rem;
}

.content-panel li::marker { color: rgba(255, 190, 132, 0.74); }

.content-panel a:not(.account-card) {
  color: #ffd9b7;
  text-decoration-color: rgba(255, 217, 183, 0.42);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.content-panel a:not(.account-card):hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

.notice {
  margin-block: 1.5rem 2.5rem;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--accent-strong);
  border-radius: 0 0.7rem 0.7rem 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink-muted);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-block: 1rem 2.5rem;
}

.account-card {
  display: flex;
  min-height: 5.5rem;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

a.account-card:hover {
  border-color: rgba(255, 203, 158, 0.46);
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-2px);
}

.account-name {
  font-size: 0.95rem;
  font-weight: 650;
}

.account-id {
  margin-top: 0.2rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.account-note {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 250, 242, 0.55);
  font-size: 0.7rem;
}

.archive-details {
  margin-block: 1.5rem 3rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.archive-details summary {
  padding: 1rem 1.1rem;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 600;
  list-style-position: inside;
  transition: color 180ms ease, background-color 180ms ease;
}

.archive-details summary:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.archive-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 1rem;
}

.archive-content a {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
}

.page-end {
  display: flex;
  justify-content: flex-start;
  max-width: 56rem;
  margin: 2.5rem auto 0;
}

.page-end .back-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

@keyframes detail-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes detail-background-breathe {
  from { filter: blur(20px) saturate(0.94) brightness(0.94); }
  to { filter: blur(20px) saturate(1.06) brightness(1.02); }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 64rem);
    padding-top: 0.5rem;
  }

  .content-panel {
    padding: 1.25rem;
    border-radius: 1.1rem;
  }

}
