:root { font: 16px/1.55 "Segoe UI", "Microsoft YaHei UI", sans-serif; color: #17251e; background: #f4f6f4; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(calc(100% - 32px), 440px); margin: clamp(40px, 12vh, 120px) auto; padding: 30px; background: white; border: 1px solid #dce2dd; border-radius: 16px; }
header, .account-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header { margin-bottom: 32px; padding-bottom: 15px; border-bottom: 1px solid #e3e7e4; }
header span, p, small { color: #53645a; }
h1 { margin: 0 0 8px; font-size: 1.65rem; }
p { margin: 0 0 22px; }
form { display: grid; gap: 16px; }
label, .identity { display: grid; gap: 5px; }
input, button { font: inherit; }
input { width: 100%; padding: 9px 12px; border: 1px solid #a9b7ae; border-radius: 8px; }
button { cursor: pointer; }
form button { padding: 10px 16px; color: white; font-weight: 600; background: #214936; border: 0; border-radius: 8px; }
button:disabled { opacity: .65; }
.link { border: 0; background: transparent; color: #256447; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
#switch-mode { margin-top: 12px; }
.identity { margin: 12px 0; padding: 12px; background: #f3f6f4; border-radius: 8px; }
code { overflow-wrap: anywhere; }
#activation-form { margin-top: 20px; }
#notice:not(:empty) { margin: 16px 0 0; }
#notice:empty { margin: 0; }
#notice.error { color: #993e2f; }
[hidden] { display: none !important; }
main:has(#account:not([hidden])) { width: min(calc(100% - 32px), 860px); margin-top: 40px; }
nav { display:flex; gap:6px; border-bottom:1px solid #dce3de; margin:14px 0 18px; }
nav button { background:transparent;border:0;border-bottom:2px solid transparent;padding:9px 14px;color:#526457; }
nav button[aria-pressed=true] {border-color:#286543;color:#163d28;font-weight:600;}
h2 { font-size:1.08rem; margin:24px 0 10px; }
.referral {padding:14px 18px;border:1px solid #b9d4c4;border-radius:10px;background:#f4faf6;}
.referral h2 {margin-top:0;}
.referral p {margin:8px 0;}
.primary {background:#214936;border:0;border-radius:8px;color:white;padding:8px 12px;margin-right:10px;}
#account form {max-width:480px;}
select {width:100%;font:inherit;padding:9px 12px;color:inherit;background:white;border:1px solid #a9b7ae;border-radius:8px;}
#partner-counts {display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:16px 0;}
#partner-counts div {background:#f3f6f4;padding:12px 15px;border-radius:8px;}
dt {font-size:.83rem;color:#53645a;} dd {font-size:1.2rem;font-weight:600;margin:3px 0 0;}
.record-list {overflow-x:auto;}
.record-list p {font-size:.9rem;background:#f7f9f7;margin:0;padding:14px 16px;border-radius:8px;}
.record-list table {width:100%;border-collapse:collapse;font-size:.9rem;}
.record-list td,.record-list th {text-align:left;padding:10px 8px;border-bottom:1px solid #e2e7e4;white-space:nowrap;}
.record-list th {font-weight:500;color:#53645a;background:#f5f7f5;}
#share-card .link {justify-self:start;}
@media (max-width:600px) { main {padding:20px;} main:has(#account:not([hidden])) {margin:12px auto;} }
