:root {
  color-scheme: dark;
  --bg: #090b10; --panel: #12161e; --text: #eef1f6; --muted: #a6b0c1;
  --border: #2b3342; --soft: #1b2330; --accent: #d7e8f5; --accent-ink: #111721;
  --error: #ffb5bc; --error-bg: #301b23;
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 19% 35%, #141b292e, transparent 55%), var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 4px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); cursor: pointer; text-decoration: none; font-weight: 500; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
button:hover, .button:hover { background: var(--soft); border-color: #64748b; }
button.primary { background: linear-gradient(115deg, #f2eaf4, #d7e8f5 65%, #d8efea); border-color: #e1e8f1; color: var(--accent-ink); box-shadow: 0 2px 16px #c9def00c; }
button.primary:hover { background: #f0f5fa; box-shadow: 0 3px 22px #c9def01c; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #b9dbff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -.045em; }
h2 { font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
h3 { font-size: 16px; font-weight: 600; }
p, dd, code { overflow-wrap: anywhere; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px max(28px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid #2b334280; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: -.025em; color: var(--text); text-decoration: none; }
/* Crop only the supplied image's monogram; keep the original PNG intact. */
.monogram { position: relative; display: block; overflow: hidden; width: 38px; aspect-ratio: 830 / 550; mix-blend-mode: lighten; }
.monogram img { position: absolute; width: 189.88%; height: auto; max-width: none; left: -43.13%; top: -30%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.layout { max-width: 1160px; margin: auto; }
.layout:not(.member) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: calc(100svh - 88px); }
.brand-stage { display: flex; flex-direction: column; align-items: center; padding: 52px 32px 80px; }
.brand-art { position: relative; width: min(100%, 380px); aspect-ratio: 920 / 615; overflow: hidden; mix-blend-mode: lighten; animation: pearl-breathe 6s ease-in-out infinite; }
.brand-art img { position: absolute; width: 171.31%; height: auto; max-width: none; left: -34.78%; top: -17.89%; }
.brand-wordmark { margin-top: 32px; font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
.brand-dot { color: #ff3046; }
.brand-caption { margin-top: 14px; color: var(--muted); font-size: 14px; letter-spacing: .025em; }
@keyframes pearl-breathe { 0%, 100% { transform: scale(.99); opacity: .88; } 50% { transform: scale(1); opacity: 1; } }
.layout.member { display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.layout.member .brand-stage { display: none; }
nav { padding: 30px 16px; border-right: 1px solid var(--border); min-height: calc(100vh - 88px); }
nav button { display: flex; width: 100%; justify-content: flex-start; border-color: transparent; background: transparent; color: var(--muted); margin-bottom: 5px; }
button[aria-current="page"] { color: var(--accent); background: var(--soft); }
.nav-note { margin: 26px 12px 0; font-size: 12px; }
main { padding: 36px 30px 64px; min-width: 0; }
.policy-page { max-width: 860px; margin: 0 auto; }
.page-heading { margin-bottom: 26px; }
.page-heading p { margin-top: 9px; max-width: 62ch; color: var(--muted); }
.auth { max-width: 430px; margin: 24px auto; }
.auth .panel { padding: 32px; background: linear-gradient(145deg, #171c26, #10141c); box-shadow: 0 24px 80px #00000030, inset 0 1px 0 #ffffff05; border-radius: 20px; }
.auth .page-heading h1 { font-size: 30px; }
.auth .page-heading p { font-size: 14px; }
.auth > .actions { margin: 0 0 20px; padding: 5px; background: #10141c; border: 1px solid var(--border); border-radius: 13px; gap: 6px; }
.auth > .actions button { flex: 1; background: transparent; border-color: transparent; color: var(--muted); }
.auth > .actions button[aria-current="page"] { background: #232c3b; color: var(--text); border-color: #354155; box-shadow: 0 2px 8px #00000020; }
.auth > .actions button:hover { color: var(--text); background: var(--soft); }
.panel { padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; min-width: 0; }
.panel > h2, .panel > h3 { margin-bottom: 16px; }
.panel > p + p { margin-top: 12px; }
.panel + .panel, .panel + .grid, .grid + .panel { margin-top: 20px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid > .panel { margin: 0; }
.stack { display: grid; gap: 20px; }
.stack > .panel { margin: 0; }
dl { margin: 0; display: grid; gap: 13px; }
dl > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; max-width: 100%; }
form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: #d6deea; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; padding: 11px 13px; min-height: 48px; border: 1px solid #354155; border-radius: 9px; background: #0d1118; color: var(--text); font-size: 16px; transition: border-color .18s ease, background-color .18s ease; }
input:not([type="checkbox"]):hover, select:hover, textarea:hover { border-color: #667891; }
textarea { resize: vertical; min-height: 84px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form-status { font-size: 14px; }
.form-status.error { color: var(--error); }
.form-status:empty { display: none; }
.panel form + form, .panel dl + form, .panel dl + .actions, .panel p + form { margin-top: 24px; }
.output { margin-top: 18px; padding: 14px; border-radius: 8px; background: var(--soft); }
.output code { display: block; white-space: pre-wrap; font-size: 16px; user-select: all; margin: 8px 0; }
.release { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.release:last-child { border-bottom: 0; padding-bottom: 0; }
.release:first-child { padding-top: 0; }
.release .hint { margin-top: 5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap table { min-width: 560px; }
caption { text-align: left; font-size: 21px; font-weight: 500; margin-bottom: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; max-width: 28ch; vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.notice { max-width: 660px; margin: 0 auto 24px; padding: 14px 18px; background: var(--soft); border: 1px solid var(--border); border-radius: 10px; }
.notice.error { color: var(--error); background: var(--error-bg); }
.skip-link { position: absolute; top: -100px; left: 12px; padding: 12px; background: var(--panel); z-index: 1; }
.skip-link:focus { top: 12px; }
.noscript { margin: 24px; }
@media (max-width: 900px) {
  .layout:not(.member) { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .brand-stage { padding-inline: 24px; }
  main { padding-inline: 24px; }
  .auth .panel { padding: 26px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 76px; padding: 16px 20px; }
  .site-header .actions { gap: 8px; }
  .layout:not(.member), .layout.member { display: block; min-height: auto; }
  .brand-stage { padding: 28px 20px 0; }
  .brand-art { width: 104px; }
  .brand-wordmark { margin-top: 12px; font-size: 25px; }
  .brand-caption { display: none; }
  nav { display: flex; gap: 5px; flex-wrap: wrap; min-height: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  nav button { width: auto; margin: 0; padding: 9px 12px; }
  .nav-note { display: none; }
  main { padding: 24px 20px 40px; }
  .grid { grid-template-columns: 1fr; }
  .auth { margin: 0 auto; }
  .auth .panel, .panel { padding: 24px 20px; }
  .notice { margin: 0 20px 20px; }
  dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  button.primary, .auth > .actions button[aria-current="page"] { border: 1px solid ButtonText; }
}
