:root { --teal:#2D5A5C; --teal-dark:#244B4D; --tint:#F0FDF9; --ink:#1F1F1F; --body:#4B5563; --muted:#6B7280; --faint:#9CA3AF; --line:#E5E7EB; --soft:#F3F4F6; --bg:#F4F5F7; }
* { box-sizing: border-box; }
body { margin:0; font-family:"Inter",system-ui,sans-serif; background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased; min-height:100vh; display:flex; flex-direction:column; }
a { color:var(--teal); text-decoration:none; font-weight:500; }
a:hover { text-decoration:underline; }
:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
[hidden] { display:none !important; }
.serif { font-family:"Crimson Text",Georgia,serif; }
.masthead { background:#fff; border-bottom:1px solid var(--line); }
.masthead-inner { max-width:960px; margin:0 auto; padding:12px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; color:inherit; }
.brand:hover { text-decoration:none; }
.brand-bar { width:4px; height:32px; background:var(--teal); border-radius:999px; }
.brand-top { font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); margin:0; }
.brand-sub { font-size:11px; color:var(--faint); margin:2px 0 0; }
.wrap { flex:1; display:flex; align-items:flex-start; justify-content:center; padding:48px 16px; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; width:100%; }
.card.narrow { max-width:440px; }
.card.medium { max-width:620px; }
.card.wide { max-width:860px; }
.card-pad { padding:32px; }
@media (max-width:520px){ .card-pad { padding:24px 20px; } }
.card-header { padding:14px 20px; border-bottom:1px solid var(--soft); background:#FAFBFC; border-radius:8px 8px 0 0; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.card-body { padding:20px; }
h1 { font-family:"Crimson Text",Georgia,serif; font-size:30px; font-weight:600; margin:0 0 6px; line-height:1.15; }
h2 { font-family:"Crimson Text",Georgia,serif; font-size:21px; font-weight:600; margin:0; }
.lead { font-size:13.5px; color:var(--muted); line-height:1.65; margin:0; }
.section-title { font-size:11px; font-weight:700; color:var(--teal); text-transform:uppercase; letter-spacing:.06em; margin:0 0 10px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; font-size:13.5px; font-weight:600; border-radius:6px; border:none; cursor:pointer; transition:background .15s, opacity .15s; font-family:inherit; text-decoration:none !important; }
.btn:disabled { opacity:.4; cursor:not-allowed; }
.btn-block { width:100%; }
.btn-primary { background:var(--teal); color:#fff; }
.btn-primary:hover:not(:disabled) { background:var(--teal-dark); }
.btn-discord { background:#5865F2; color:#fff; }
.btn-discord:hover:not(:disabled) { background:#4752C4; }
.btn-secondary { background:var(--soft); color:#374151; border:1px solid var(--line); }
.btn-secondary:hover:not(:disabled) { background:var(--line); }
.btn-danger { background:#fff; color:#B91C1C; border:1px solid #FECACA; }
.btn-danger:hover:not(:disabled) { background:#FEF2F2; }
.btn-ghost { background:transparent; color:var(--teal); border:1px solid var(--line); padding:6px 12px; font-size:12px; }
.btn-ghost:hover { background:var(--tint); }
.choice-group { display:grid; gap:8px; }
.choice-group.row { grid-template-columns:repeat(3,1fr); }
@media (max-width:520px){ .choice-group.row { grid-template-columns:1fr; } }
.choice { border:1px solid var(--line); border-radius:6px; padding:10px 12px; cursor:pointer; display:flex; align-items:center; gap:10px; font-size:13px; font-weight:500; transition:border-color .15s, background .15s; }
.choice:hover { border-color:var(--faint); }
.choice input { accent-color:var(--teal); width:16px; height:16px; margin:0; }
.choice:has(input:checked) { border-color:var(--teal); background:var(--tint); }
.check { display:flex; gap:10px; align-items:flex-start; font-size:13px; line-height:1.6; color:var(--body); cursor:pointer; }
.check input { accent-color:var(--teal); width:16px; height:16px; margin-top:3px; flex:none; }
.toggle-row { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:14px 0; border-bottom:1px solid var(--soft); }
.toggle-row:last-child { border-bottom:none; }
.toggle-row h3 { font-size:13.5px; font-weight:600; margin:0 0 3px; }
.toggle-row p { font-size:12.5px; color:var(--muted); margin:0; line-height:1.55; }
.switch { position:relative; width:40px; height:22px; flex:none; margin-top:2px; }
.switch input { opacity:0; width:0; height:0; position:absolute; }
.switch span { position:absolute; inset:0; background:#D1D5DB; border-radius:999px; transition:background .15s; cursor:pointer; }
.switch span::after { content:""; position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .15s; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background:var(--teal); }
.switch input:checked + span::after { transform:translateX(18px); }
.switch input:disabled + span { opacity:.45; cursor:not-allowed; }
.switch input:focus-visible + span { outline:2px solid var(--teal); outline-offset:2px; }
.divider { height:1px; background:var(--soft); margin:22px 0; }
.note { font-size:12px; color:var(--faint); line-height:1.6; }
.alert { border-radius:6px; padding:11px 14px; font-size:13px; line-height:1.55; }
.alert-error { background:#FEF2F2; color:#991B1B; border:1px solid #FECACA; }
.alert-ok { background:var(--tint); color:var(--teal); border:1px solid #CDEBE3; }
.alert-warn { background:#FFF7ED; color:#9A3412; border:1px solid #FED7AA; }
.list-plain { margin:0; padding-left:18px; font-size:13px; color:var(--body); line-height:1.7; }
.badge { font-size:10px; font-weight:700; padding:3px 8px; border-radius:4px; text-transform:uppercase; letter-spacing:.03em; display:inline-block; }
.badge-teal { background:var(--tint); color:var(--teal); }
.badge-gray { background:#F9FAFB; color:var(--muted); border:1px solid var(--line); }
.badge-orange { background:#FFF7ED; color:#9A3412; }
.badge-red { background:#FEF2F2; color:#991B1B; }
.profile { display:flex; align-items:center; gap:14px; }
.avatar { width:48px; height:48px; border-radius:50%; background:var(--soft); object-fit:cover; border:1px solid var(--line); }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:760px){ .grid-2 { grid-template-columns:1fr; } }
.kv { display:flex; justify-content:space-between; gap:12px; font-size:13px; padding:8px 0; border-bottom:1px solid var(--soft); }
.kv:last-child { border-bottom:none; }
.kv span:first-child { color:var(--muted); }
.kv span:last-child { font-weight:500; text-align:right; }
.spinner { width:24px; height:24px; border:2px solid var(--line); border-top-color:var(--teal); border-radius:50%; animation:spin .8s linear infinite; margin:0 auto; }
@keyframes spin { to { transform:rotate(360deg); } }
.history { max-height:260px; overflow:auto; }
.history div { font-size:12.5px; padding:7px 0; border-bottom:1px solid var(--soft); display:flex; justify-content:space-between; gap:12px; color:var(--body); }
.toast { position:fixed; bottom:20px; right:20px; z-index:50; max-width:360px; }
.footer { border-top:1px solid var(--line); background:#fff; }
.footer-inner { max-width:960px; margin:0 auto; padding:16px 24px; display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; color:var(--faint); }
.footer a { color:var(--muted); }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.001ms !important; transition-duration:.001ms !important; } }
