:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #4f4354;
  background: #fff8fc;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff5fb 0%, #f7f3ff 55%, #fffaf0 100%);
}

main {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.brand {
  color: #6f587a;
  font-weight: 900;
  text-decoration: none;
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a {
  color: #6f587a;
  font-weight: 800;
  text-underline-offset: 3px;
}

.card {
  padding: clamp(24px, 5vw, 48px);
  border: 3px solid #fff;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(103, 78, 118, 0.14);
}

h1 {
  margin: 0;
  color: #725785;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.25;
}

.meta {
  margin: 10px 0 24px;
  color: #8c7b93;
  font-size: 0.92rem;
}

.document {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.9;
}

.status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f0fa;
  line-height: 1.7;
}

.status.error {
  background: #fff0f2;
  color: #a14358;
}

footer {
  margin-top: 24px;
  text-align: center;
  color: #95879a;
  font-size: 0.85rem;
}

[hidden] { display: none !important; }
