:root { --paper-bg:#f5f2eb; --paper-card:#fff; --paper-border:#e3ded4; --ink-title:#1a1917; --ink-body:#3c3933; --ink-muted:#787368; --accent-gold:#b38b4d; --font-serif:"Songti SC","STSong",Georgia,serif; --page-gutter:24px; --mobile-nav-height:64px; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; min-height:100vh; background:var(--paper-bg); color:var(--ink-body); font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI","Microsoft YaHei",sans-serif; font-size:14px; line-height:1.7; }
button,input,textarea,select { font:inherit; }
button { -webkit-tap-highlight-color:transparent; margin:0; vertical-align:middle; }
button::before,button::after { box-sizing:border-box; margin:0; padding:0; line-height:inherit; }
button::-moz-focus-inner { border:0; padding:0; }
.site-brand,.site-tab,.site-account,.shell-button,.shell-link,.shell-auth-tab,.shell-dialog-close { display:inline-flex; align-items:center; justify-content:center; line-height:1.25; text-align:center; gap:8px; }
button:focus-visible,a:focus-visible { outline:2px solid var(--accent-gold); outline-offset:3px; }
.site-shell { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
.site-header { display:flex; align-items:center; gap:24px; max-width:1120px; width:100%; margin:0 auto; padding:20px var(--page-gutter); border-bottom:1px solid var(--paper-border); }
.site-brand { flex-shrink:0; font-family:var(--font-serif); font-size:23px; font-weight:600; letter-spacing:1px; color:var(--ink-title); background:transparent; border:0; padding:0; min-height:44px; cursor:pointer; white-space:nowrap; }
.site-tabs { display:flex; gap:4px; }
.site-tab { border:0; background:transparent; padding:10px 12px; color:var(--ink-muted); border-radius:0; cursor:pointer; font-size:14px; min-height:44px; }
.site-tab-active { background:#eae5db; color:var(--ink-title); }
.site-tab-icon { display:block; width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.site-identity { display:flex; align-items:center; gap:12px; margin-left:auto; min-width:0; }
.site-account { border:1px solid #cec7b9; background:#fff; border-radius:0; padding:10px 14px; font-size:13px; color:var(--ink-body); cursor:pointer; max-width:160px; min-width:0; min-height:44px; }
.site-account-label { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.site-balance { font-size:14px; white-space:nowrap; color:#916d38; }
.site-content { width:100%; flex:1; }
.site-route { min-width:0; }
.site-banners { max-width:1120px; width:100%; margin:0 auto; padding:0 var(--page-gutter); }
.site-banner { display:flex; gap:16px; justify-content:space-between; align-items:center; padding:14px 16px; font-size:13px; color:#805d32; background:#f0e7d8; border:1px solid #dfceb4; margin-top:20px; }
.site-banner>span { min-width:0; overflow-wrap:anywhere; }.site-banner>button { flex-shrink:0; }
.site-footer { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px 24px; padding:20px var(--page-gutter); border-top:1px solid var(--paper-border); color:var(--ink-muted); font-size:12px; }
.shell-button { border:1px solid #1a1917; border-radius:0; background:#1a1917; color:#f7f4ed; min-height:44px; padding:10px 18px; font-size:14px; cursor:pointer; }
.shell-button:disabled { opacity:.5; cursor:wait; }
.shell-secondary { background:#fff; color:#3c3933; border-color:#cec7b9; }
.shell-link { background:none; border:0; color:#787368; font-size:13px; padding:6px 8px; min-height:32px; cursor:pointer; }
.shell-loading { text-align:center; padding:72px 24px; color:var(--ink-muted); }
.site-toast { position:fixed; z-index:100; left:50%; bottom:28px; transform:translate(-50%,12px); max-width:calc(100vw - 32px); width:max-content; opacity:0; pointer-events:none; background:#28241ef5; color:#f7f0e2; padding:12px 18px; font-size:13px; line-height:1.7; transition:opacity .2s,transform .2s; }
.site-toast-visible { opacity:1; transform:translate(-50%,0); }
.shell-dialog { width:min(460px,calc(100vw - 32px)); border:1px solid #cec7b9; border-radius:0; background:#f5f2eb; color:var(--ink-title); padding:0; max-height:calc(100dvh - 32px); overflow:auto; }
.shell-dialog::backdrop { background:#16120ca6; }
.shell-dialog-body { padding:28px; }
.shell-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; position:sticky; top:0; background:#f5f2eb; z-index:1; padding-bottom:16px; }
.shell-dialog-heading h2 { font-family:var(--font-serif); font-size:23px; line-height:1.4; font-weight:600; margin:0; min-width:0; }
.shell-dialog-close { width:40px; min-width:40px; height:40px; min-height:40px; padding:0; border:1px solid #cec7b9; border-radius:0; background:#fff; color:#3c3933; cursor:pointer; font-size:13px; flex-shrink:0; }
.shell-copy { font-size:14px; line-height:1.8; color:var(--ink-muted); white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0 24px; }
.shell-auth-tabs { display:flex; gap:8px; margin:24px 0; }
.shell-auth-tab { flex:1; background:#fff; border:1px solid #cec7b9; color:#787368; font-size:14px; padding:10px 12px; min-height:44px; cursor:pointer; }
.shell-auth-tab-active { background:#1a1917; color:#f7f4ed; border-color:#1a1917; }
.shell-auth-tab:disabled { opacity:.5; cursor:wait; }
.shell-field { display:block; margin:20px 0; font-size:13px; color:#3c3933; }
.shell-field>span { display:block; margin-bottom:8px; }
.shell-field[hidden] { display:none; }
.shell-input { display:block; width:100%; min-width:0; min-height:44px; border:1px solid #cec7b9; border-radius:0; background:#fff; color:#1a1917; padding:10px 12px; line-height:1.25; font-size:16px; }
.shell-input:focus { outline:2px solid #b38b4d; outline-offset:1px; }
.shell-auth-form>.shell-button { width:100%; margin-top:8px; }
.shell-error { color:#9e4b3c; font-size:13px; line-height:1.7; min-height:22px; margin:12px 0; overflow-wrap:anywhere; }
.shell-modal-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; }
.shell-modal-actions>button { min-width:100px; }
.shell-info { max-width:760px; margin:32px auto 48px; padding:0 var(--page-gutter); }
.shell-info h1 { font-family:var(--font-serif); font-size:28px; font-weight:600; line-height:1.35; margin:8px 0 28px; }
.shell-eyebrow { font-size:12px; letter-spacing:1.5px; color:#b38b4d; }
.shell-info-card { padding:24px; background:#fff; border:1px solid var(--paper-border); border-radius:0; margin:20px 0; }
.shell-info-card h2 { font-family:var(--font-serif); font-size:19px; margin:0 0 12px; }
.shell-info-card .shell-copy { margin-bottom:0; }
.shell-noscript { max-width:680px; margin:40px auto; padding:24px; border:1px solid var(--paper-border); background:#fff; color:#787368; }
@media(max-width:900px) { .site-header { gap:16px; }.site-tab { padding:10px; }.site-brand { font-size:21px; } }
@media(max-width:700px) {
 :root { --page-gutter:16px; }
 .site-header { padding:14px var(--page-gutter); gap:10px; }.site-brand { font-size:18px; }.site-identity { gap:8px; }.site-account { max-width:110px; padding:10px 12px; min-height:44px; font-size:13px; }.site-balance { font-size:13px; }
 .shell-link { min-height:44px; }.shell-dialog-close { width:44px;min-width:44px;height:44px;min-height:44px; }
 .site-tabs { position:fixed; z-index:20; bottom:0; left:0; right:0; min-height:calc(64px + env(safe-area-inset-bottom)); background:#fffdf9; border-top:1px solid #e3ded4; margin:0; justify-content:space-around; gap:0; padding:6px 8px calc(6px + env(safe-area-inset-bottom)); }
 .site-tab { flex:1; min-width:0; flex-direction:column; gap:4px; padding:4px 8px; font-size:12px; border-radius:0; }.site-tab-active { background:transparent; color:#1a1917; }.site-tab-icon { width:22px;height:22px; }
 .site-footer { margin-bottom:calc(64px + env(safe-area-inset-bottom)); padding:12px var(--page-gutter); gap:8px 16px; }.site-footer>span { display:none; }.site-footer>.shell-link { font-size:12px; padding:6px 2px; }.site-toast { bottom:calc(82px + env(safe-area-inset-bottom)); }
 .shell-dialog { width:calc(100vw - 24px); max-width:460px; max-height:calc(100dvh - 24px); border-radius:0; padding-bottom:env(safe-area-inset-bottom); }.shell-dialog-body { padding:24px 20px; }
 .shell-info { margin:24px auto 36px; }.shell-info h1 { font-size:24px; }.shell-info-card { padding:20px; }
}
@media(prefers-reduced-motion:reduce) { .site-toast { transition:none; } }
