:root {font-family:"Microsoft JhengHei","Noto Sans TC",sans-serif;color:#1f3933;background:#f4f1e9;color-scheme:light}
* {box-sizing:border-box}
body {margin:0}
[hidden] {display:none!important}
h1,h2,p {margin-top:0}
h1 {font-family:"PMingLiU","Noto Serif TC",serif;letter-spacing:.07em;font-size:clamp(1.9rem,4vw,2.6rem);margin-bottom:.45rem}
h2 {font-size:1.15rem}
.login-wrap {min-height:100svh;display:grid;place-content:center;padding:2rem 1rem;position:relative;isolation:isolate}
.landscape {position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,rgba(13,37,36,.45),rgba(30,66,55,.1)),url('/assets/realm-mountains.jpg') center/cover}
.panel {border:1px solid #dad6c4;border-radius:20px;background:#fffdf6;box-shadow:0 14px 55px #16382a25;padding:clamp(1.5rem,4vw,2.75rem);width:100%}
.login-wrap .panel {width:min(420px,calc(100vw - 2rem))}
.emblem {margin-bottom:1rem}
.lead {color:#51675b;line-height:1.6;margin-bottom:1.5rem}
.switcher {display:flex;border-bottom:1px solid #dbdacc;gap:.5rem;margin-bottom:1.4rem}
button,.back {font:inherit;line-height:1.4}
button {border:1px solid #a8b7a8;background:#fffdf8;color:#284d42;border-radius:8px;cursor:pointer;padding:.55rem .85rem}
button:disabled {cursor:wait;opacity:.6}
.switcher button {border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:.5rem .9rem}
.switcher button[aria-pressed="true"] {border-bottom-color:#98733b;color:#1a4235;font-weight:700}
.switcher a {border-bottom:3px solid transparent;padding:.5rem .7rem;text-decoration:none;color:#284d42}
.switcher a[aria-current="page"] {border-bottom-color:#98733b;color:#1a4235;font-weight:700}
label {display:block;font-size:.92rem;font-weight:650;margin:1rem 0}
input {margin-top:.38rem;width:100%;border:1px solid #aab5a9;border-radius:8px;background:#fff;padding:.72rem .8rem;font:inherit;font-weight:400;color:#17362d}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible {outline:3px solid #b68c44;outline-offset:2px}
.primary {width:100%;background:#163e32;color:white;border:0;padding:.8rem;font-weight:700}
.notice {font-size:.9rem;line-height:1.5;color:#8b3a29;margin:.7rem 0}
.notice:empty {display:none}
.admin-wrap {width:min(760px,100%);margin:0 auto;padding:2rem 1rem}
.back {display:inline-block;margin:0 0 1rem;text-decoration:none;color:#245344}
#members {list-style:none;padding:0;margin:0}
#members li {display:flex;gap:.6rem;align-items:center;justify-content:space-between;padding:1rem 0;border-top:1px solid #e0ddcf}
#members small {display:block;color:#586c62;margin-top:.25rem}
.active {font-size:.9rem;color:#37614d}
.issued {border:1px solid #bdad81;background:#f5f0de;padding:1rem;border-radius:10px;margin:1rem 0}
.issued p {font-size:.9rem;line-height:1.6}
.issued pre {white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}
.issued button {margin:0 .3rem .2rem 0}
@media (max-width:500px) {.admin-wrap {padding:1.1rem .8rem}.panel {padding:1.4rem 1.15rem}#members li button {font-size:.85rem}}
.section-nav,.page-head,.form-actions,.member-actions {display:flex;align-items:center;gap:.65rem}
.section-nav,.page-head {justify-content:space-between}
.page-head {align-items:flex-start;margin-bottom:1.1rem}
.page-head .lead {margin:0;font-size:.95rem}
.page-head button,.form-actions .primary {width:auto;flex:none;padding:.68rem 1.1rem}
.member-info {min-width:0;overflow-wrap:anywhere}
.member-actions {justify-content:flex-end;flex-wrap:wrap}
.member-state {display:inline-block;border-radius:20px;background:#e5f1e7;color:#2e5c45;font-size:.74rem;font-weight:700;padding:.2rem .52rem;margin-left:.55rem;vertical-align:middle}
.member-state.pending {background:#f4ead4;color:#76582c}
#members li {display:grid;grid-template-columns:minmax(0,1fr) auto}
.password-wrap {max-width:530px}
.password-wrap .lead:empty {display:none}
.notice[data-tone="success"] {color:#225b45}
.field-help,.dialog-text {color:#51675b;font-size:.9rem;line-height:1.6}
.field-help {margin:-.6rem 0 1.25rem}
dialog {color:inherit;border:1px solid #dad6c4;border-radius:16px;background:#fffdf6;width:min(450px,calc(100% - 1.5rem));max-height:90svh;padding:1.55rem;box-shadow:0 18px 80px #18322635}
dialog::backdrop {background:rgb(16 37 30 / 46%)}
dialog h2 {font-family:"PMingLiU","Noto Serif TC",serif;font-size:1.55rem;margin-bottom:1.2rem}
select {margin-top:.38rem;width:100%;padding:.73rem .8rem;border:1px solid #aab5a9;border-radius:8px;background:#fff;color:#17362d;font:inherit}
.form-actions {justify-content:flex-end;margin-top:1.25rem}
@media (max-width:480px) {
 #members li {grid-template-columns:1fr;gap:.72rem}
 .member-actions {justify-content:flex-start}
 .member-actions button {min-height:38px}
 .section-nav .back {font-size:.9rem}
 .switcher {gap:0;justify-content:space-between}
 .switcher button {padding:.55rem .5rem}
}
