:root { color-scheme:light; --bg:#fffaf5; --card:#fff; --text:#30251f; --muted:#7c6e64; --line:#eadfd6; --accent:#bd4b17; --accent-hover:#a43d0e; --soft:#fff0e4; --input:#fffcf9; --error:#b42318; --success:#237047; }
html.theme-dark { color-scheme:dark; --bg:#181715; --card:#24211e; --text:#f5eee8; --muted:#bcafa4; --line:#443c35; --accent:#f5a36c; --accent-hover:#ffb985; --soft:#392b21; --input:#2b2723; --error:#ffaba3; --success:#91d3ae; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--text); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; font-size:14px; line-height:1.6; }
button,input { font:inherit; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px max(28px,calc((100vw - 1120px)/2)); border-bottom:1px solid var(--line); background:var(--card); }
.brand { display:flex; align-items:center; gap:10px; font-size:18px; font-weight:700; white-space:nowrap; }
.brand img { width:32px; height:32px; border-radius:9px; }
.brand span { color:var(--muted); font-weight:400; font-size:13px; margin-left:8px; }
.header-actions { display:flex; gap:20px; align-items:center; font-size:12px; }
.back-link:hover { color:var(--accent); }
main { max-width:1120px; margin:0 auto; padding:40px 0 0; }
h1,h2,p { margin:0; }
h1 { font-size:32px; letter-spacing:-1px; font-weight:650; margin:7px 0; }
h2 { font-size:18px; font-weight:650; }
.eyebrow { font-size:10px; letter-spacing:2px; font-weight:650; color:var(--accent); }
.muted,small { color:var(--muted); }
small { font-size:12px; }
.page-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.heading-spark { font-size:58px; color:var(--accent); opacity:.65; padding-right:16px; }
.identity-card { display:flex; align-items:center; gap:20px; padding:26px 30px; border:1px solid var(--line); background:var(--card); border-radius:18px; margin-bottom:24px; }
.avatar { width:64px; height:64px; flex-shrink:0; display:grid; place-items:center; border:1px solid var(--line); border-radius:20px; font-size:28px; color:var(--accent); background:var(--soft); font-weight:600; }
.identity-text { min-width:0; flex:1; }
.name-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.name-row h2 { font-size:22px; overflow-wrap:anywhere; }
.identity-text p { font-size:12px; margin-top:6px; overflow-wrap:anywhere; }
.badge { display:inline-block; padding:3px 10px; font-size:11px; font-weight:600; border:1px solid var(--line); border-radius:20px; background:var(--soft); color:var(--accent); }
.profile-grid { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:24px; align-items:start; }
.settings-column { display:grid; gap:24px; }
.card { padding:28px; background:var(--card); border:1px solid var(--line); border-radius:18px; }
.section-heading { display:flex; gap:13px; align-items:flex-start; margin-bottom:26px; }
.section-heading p { font-size:12px; margin-top:4px; }
.section-icon { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:10px; background:var(--soft); color:var(--accent); font-size:11px; margin-top:2px; }
fieldset { padding:0; margin:0; border:0; min-width:0; display:grid; gap:19px; }
.field { display:flex; flex-direction:column; gap:8px; min-width:0; }
label { font-size:12px; font-weight:600; }
label .muted { font-weight:400; }
input { width:100%; min-width:0; min-height:46px; border:1px solid var(--line); border-radius:9px; background:var(--input); color:var(--text); padding:11px 13px; outline:none; transition:border-color .2s,box-shadow .2s; }
input::placeholder { color:var(--muted); font-size:12px; }
input:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent); }
input[readonly] { background:var(--bg); color:var(--muted); }
.password-wrap { position:relative; }
.password-wrap input { padding-right:58px; }
.password-toggle { position:absolute; right:5px; top:5px; border:0; border-radius:5px; min-height:36px; color:var(--muted); background:transparent; font-size:11px; padding:0 9px; }
.password-toggle:hover { background:var(--soft); color:var(--accent); }
.password-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-bottom { display:flex; gap:16px; align-items:center; justify-content:space-between; margin-top:3px; }
.joined { font-size:11px; }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:43px; padding:10px 19px; border-radius:9px; font-size:12px; font-weight:600; white-space:nowrap; }
.primary { background:var(--accent); color:white; border:1px solid var(--accent); }
.primary:hover { background:var(--accent-hover); }
html.theme-dark .primary { color:#302016; }
.secondary { color:var(--text); border:1px solid var(--line); background:var(--card); }
.secondary:hover { border-color:var(--accent); color:var(--accent); }
.text-button { color:var(--muted); background:transparent; padding:7px 0; border:0; font-size:12px; }
.text-button:hover { color:var(--accent); }
.message { font-size:12px; color:var(--error); margin-top:12px; overflow-wrap:anywhere; }
.message:empty { display:none; }
.message.success { color:var(--success); }
.membership-card { background:linear-gradient(145deg,var(--soft),var(--card)); }
.membership-top { display:flex; align-items:center; justify-content:space-between; color:var(--accent); margin-bottom:24px; }
.membership-top>span:last-child { font-size:32px; line-height:1; }
.membership-card h2 { font-size:24px; margin-bottom:13px; }
.member-description { color:var(--muted); font-size:13px; margin:20px 0; line-height:1.9; }
.member-details { border-top:1px solid var(--line); padding-top:18px; margin:0 0 24px; font-size:12px; }
.member-details div { margin:0 0 16px; }
dt { color:var(--muted); margin-bottom:4px; }
dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.full-width { width:100%; }
.expiry-notice { margin-bottom:18px; font-size:12px; color:var(--accent); }
.admin-description { padding:20px 0; border-top:1px solid var(--line); font-size:13px; }
.admin-description p { margin-top:7px; }
.admin-footnote { font-size:11px; color:var(--muted); margin-top:15px; }
.aside-note { display:flex; gap:13px; padding:28px 18px; color:var(--muted); font-size:12px; line-height:1.9; }
.aside-note>span { color:var(--accent); font-size:27px; }
footer { color:var(--muted); text-align:center; font-size:11px; padding:30px 0; }
.load-status { margin:40px 0 16px; color:var(--muted); }
[aria-busy="true"]::before { content:""; width:12px; height:12px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media(max-width:1180px) { main { margin:0 28px; } }
@media(max-width:850px) { .profile-grid { grid-template-columns:1fr; } aside { grid-row:1; } .aside-note { display:none; } .membership-card { padding:24px; } .member-details { display:flex; gap:40px; } .membership-top { margin-bottom:12px; } .admin-footnote { display:none; } }
@media(max-width:540px) { .topbar { padding:16px 20px; } .brand span { display:none; } .brand { font-size:16px; } .header-actions { gap:12px; } .back-link { font-size:11px; } main { margin:0 18px; padding-top:26px; } h1 { font-size:28px; } .identity-card { padding:20px; gap:13px; flex-wrap:wrap; } .identity-card #logout { margin-left:auto; } .avatar { width:48px; height:48px; border-radius:15px; font-size:22px; } .name-row h2 { font-size:18px; } .card { padding:22px 19px; } .password-grid { grid-template-columns:1fr; } .form-bottom { flex-wrap:wrap; } .form-bottom button { margin-left:auto; } .member-details { gap:20px; flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { *,*::before { animation:none !important; transition:none !important; } }
