:root{color-scheme:light;--ink:#253a34;--muted:#63756d;--faint:#8a968f;--green:#185c49;--line:#dde4de;--bg:#f6f8f5;--mint:#e4efe8;--side:213px;font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:wait}button,a,input,select,[contenteditable]{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,[contenteditable]:focus-visible{outline:2px solid #4b927b;outline-offset:3px}svg{display:inline-block;width:18px;height:18px;flex:none;vertical-align:middle}button span[data-i],h2 span[data-i],.crumb span[data-i]{display:inline-flex;align-items:center;justify-content:center}button{transition:background-color .15s,color .15s,transform .15s}button:hover{filter:brightness(.96)}button:active{transform:translateY(1px)}[hidden]{display:none!important}
#sidebar{width:var(--side);position:fixed;inset:0 auto 0 0;background:#fcfdfb;border-right:1px solid var(--line);z-index:5;display:flex;flex-direction:column;padding:28px 15px 0;overflow-y:auto}.brand{display:flex;align-items:center;gap:9px;padding-left:9px}.brand-icon{display:grid;place-items:center;background:var(--green);width:40px;height:40px;border-radius:12px;color:#fff;box-shadow:inset 0 0 0 1px #ffffff1a}.brand-icon svg{width:24px;height:24px}.brand b{font-size:25px;letter-spacing:1px;line-height:1}.brand-en{font-family:Georgia,serif;font-size:19px;color:#638374;letter-spacing:-.7px;align-self:center;margin-left:-3px}nav{margin-top:39px}.nav-label{font-size:12px;letter-spacing:1.5px;font-weight:600;color:#87958c;margin:0 12px 11px}.group-label{margin-top:30px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:10px 13px;border-radius:8px;text-align:left;font-size:14px;margin:3px 0;color:#52615a;min-height:40px}.nav-item svg{width:18px;height:18px}.nav-item:hover{background:#f0f4ef}.nav-item.selected{background:#e3eee6;color:#205e48;font-weight:650}.nav-item.selected:after{content:"";width:5px;height:5px;background:#2f775c;border-radius:50%;margin-left:auto}.cat-dot{width:9px;height:9px;border-radius:3px;margin:0 5px;background:var(--cat)}#side-foot{margin-top:auto;padding-top:34px}#calendar{padding:12px 4px 18px}.month-head{display:flex;align-items:center;font-size:13px;font-weight:650;padding:0 4px 8px}.month-head strong{margin-right:auto}.month-head button{width:24px;height:26px;padding:0;color:var(--muted)}.month-head svg{width:14px;height:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.calendar-grid>*{height:23px;line-height:23px;font-size:11px;padding:0;position:relative;font-variant-numeric:tabular-nums}.calendar-grid label{color:#819088}.calendar-grid button:hover{background:var(--mint);border-radius:5px}.calendar-grid .is-today,.calendar-grid .is-selected{background:var(--green);color:white;border-radius:6px}.calendar-grid .has-entry:after{content:"";width:3px;height:3px;border-radius:50%;position:absolute;bottom:0;left:calc(50% - 1px);background:currentColor}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:17px 1px;width:100%;text-align:left}.profile b{font-size:13px}.profile small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.profile i,.market-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#72a484}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e0eadd;color:#47734f}.profile-settings{margin-left:auto;color:#809087}.profile-settings svg{width:16px;height:16px}
.shell{margin-left:var(--side)}.topbar{height:63px;border-bottom:1px solid var(--line);background:#fcfdfa;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,2.6vw,44px);gap:12px}.crumb{display:flex;align-items:center;gap:12px;font-size:13px;color:#79877f}.crumb svg{width:16px;height:16px}.crumb i{font-style:normal;color:#b4bdb6}.crumb strong{color:#46584d;font-weight:550}.search-launch{display:flex;align-items:center;gap:9px;padding:7px 10px;width:202px;border:1px solid #dfe5df;border-radius:8px;background:#f8faf7;color:#7c887f;font-size:12px}.search-launch svg{width:15px;height:15px}kbd{margin-left:auto;border:1px solid #dee3de;border-radius:4px;font:10px ui-monospace,monospace;color:#7b887e;padding:2px 4px;background:white}#menu{display:none}main{max-width:1650px;margin:0 auto;padding:24px clamp(22px,2.6vw,44px) 40px}.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:15px;min-height:168px;display:flex;align-items:center;background:#174e42 url(forest.webp) center / 100% 100% no-repeat;color:white}.hero-copy{padding:23px 32px}.hero-date{display:flex;align-items:center;gap:8px;font-size:13px;letter-spacing:.6px;color:#e0e9dd}.hero-date svg{width:15px;height:15px}.hero h1{font-size:clamp(32px,2.65vw,46px);font-weight:720;letter-spacing:3px;line-height:1.2;margin:12px 0 13px}.hero p{margin:0;font-family:"STKaiti","KaiTi","Songti SC",serif;font-size:15px;line-height:1.6;letter-spacing:.4px;color:#eef5e8}.hero p small{font-family:inherit;font-size:13px;color:#d6e5d8}
.section-heading,.card-head,.editor-foot,.editor-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}h2{font-size:18px;line-height:1.5;font-weight:680;letter-spacing:.2px;margin:0;display:flex;align-items:center;gap:10px}.section-heading h2>span svg{color:var(--green);width:20px;height:20px}.market-section{margin:23px 0}.section-heading{margin-bottom:12px}.market-status,.text-btn{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#69796e;padding:5px 0}.market-status svg,.text-btn svg{width:14px;height:14px}.market-status i{margin-right:6px}.markets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.market-card,.card,.feed-empty,.entry{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 2px 5px #243e2c03}.market-card{position:relative;overflow:hidden;min-height:116px;padding:16px;text-align:left;isolation:isolate}.market-card:hover{border-color:#a7c1af;filter:none}.market-name{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:620}.asset-glyph{width:25px;height:25px;background:var(--light);color:var(--tone);border-radius:7px;display:inline-grid;place-items:center}.asset-glyph svg{width:16px;height:16px}.market-price{font-family:Inter,"Segoe UI",sans-serif;font-size:clamp(22px,2.05vw,31px);line-height:1;letter-spacing:-.8px;display:block;font-weight:650;margin:12px 0 7px;font-variant-numeric:tabular-nums}.market-change{font:600 12px/1.3 "Segoe UI",sans-serif;display:inline-flex;align-items:center;gap:4px;color:#268165}.market-change.up{color:#b64d43}.market-change svg{width:12px;height:12px}.spark{position:absolute;right:10px;bottom:12px;width:42%;height:36px;z-index:-1}
.workgrid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(235px,1fr);gap:18px}.write-column,.utility-column{min-width:0}.utility-column{display:flex;flex-direction:column;gap:16px}.card-head{padding:18px 20px 14px}.heading-icon{border-radius:8px;width:31px;height:31px;color:#2f735a;background:#e4f0e7}.heading-icon.warm{background:#fbf1d8;color:#a17b24}.heading-icon.pink{background:#f7e7df;color:#b37656}.heading-icon svg{width:18px;height:18px}.smart{display:flex;gap:5px;align-items:center;border-radius:20px;padding:5px 8px;font-size:11px;background:#eff5ee;color:#4a7857}.smart[aria-pressed=false]{color:#6a756c;background:#f1f2ef}.smart svg{width:13px;height:13px}.editor-body{margin:0 20px}.editor-body #editor-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 13px}.tab{display:flex;align-items:center;gap:5px;font-size:13px;color:#68786f;padding:7px 10px;border-radius:6px}.tab svg{width:14px;height:14px}.tab[aria-pressed=true]{background:var(--green);color:white}.tab:hover{background:#e4eee6}.tab[aria-pressed=true]:hover{background:var(--green)}.writing-area{margin:10px 0 0}.writing-area #editor,.edit-box{min-height:110px;max-height:380px;overflow-y:auto;padding:7px 1px;line-height:1.8;font-size:16px;overflow-wrap:anywhere;white-space:pre-wrap;outline-offset:0;border-radius:2px}.writing-area #editor:empty:before,.edit-box:empty:before{content:attr(data-placeholder);color:#939e96;pointer-events:none;font-size:15px}.editor-tools{padding:5px 0 12px;color:#849188;font-size:12px}.tool-group{display:flex;gap:3px}.tool-group button,.icon-btn{width:29px;height:29px;display:inline-grid;place-items:center;color:#68776e;border-radius:5px}.tool-group b,.tool-group em{font-family:Georgia,serif;font-size:17px}.tool-group svg{width:16px;height:16px}.tool-group button:hover,.icon-btn:hover{background:#ecf2ed}.editor-foot{padding:11px 20px;border-top:1px solid var(--line);background:#fafcf9;border-radius:0 0 13px 13px}.editor-foot>span{font-size:12px;color:#7e8d82;display:flex;align-items:center;gap:5px}.editor-foot>span svg{width:14px;height:14px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--green);color:#fff;padding:9px 15px;font-size:14px;border-radius:7px;font-weight:560}.primary svg{width:16px;height:16px}
#quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 17px 17px}.quick{background:var(--light);display:flex;align-items:center;gap:9px;border:1px solid var(--edge);border-radius:9px;min-height:47px;padding:10px;color:#465448;font-size:14px;font-weight:550}.quick svg{width:20px;height:20px;color:var(--tone)}.quick .tiny-plus{margin-left:auto;font-size:16px;font-weight:400;color:var(--tone);opacity:.65}.mood-card .card-head{padding-bottom:10px}#moods{display:flex;justify-content:space-between;gap:2px;padding:1px 13px 16px}.mood{font-size:11px;color:#6e786e;min-width:0;padding:2px 4px;display:grid;justify-items:center;gap:5px;border-radius:7px}.mood svg{width:30px;height:30px}.mood.active{background:#eff3eb;box-shadow:0 0 0 1px #c3d4c5}.timeline-section{margin-top:23px}.section-heading h2 small{font-size:12px;background:#e9eee8;color:#687b6e;font-weight:550;border-radius:6px;padding:1px 6px}.feed-empty{display:flex;align-items:center;gap:14px;text-align:left;padding:20px;color:#748176;font-size:13px}.empty-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#f0f4ee;color:#829685}.feed-empty b{font-weight:550;display:block;color:#4c6254;font-size:14px}.feed-empty p{margin:4px 0 0}
.entry{padding:14px 16px;margin-bottom:9px}.entry-head{display:flex;align-items:center;gap:8px;color:#78877c;font-size:12px}.entry-type{background:#eaf2ea;color:#4d7258;border-radius:4px;padding:3px 7px}.entry-buttons{margin-left:auto;display:flex;gap:2px}.entry-buttons svg{width:15px;height:15px}.entry-buttons .liked{color:#a07b27;background:#fcf5df}.entry-buttons .liked svg{fill:#f2deb0}.entry-text{font-size:15px;line-height:1.8;margin:9px 0 0;overflow-wrap:anywhere}.entry-text p,.entry-text div,#editor p{margin:0}.entry-text ul,.entry-text ol{margin:0}.entry-text blockquote,#editor blockquote,.edit-box blockquote{margin:3px 0;padding:0 12px;border-left:3px solid #95b6a1;color:#607866}.archive-title{margin:4px 0 17px;font-size:32px;letter-spacing:.5px}.archive-controls{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.field,select,.edit-box{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:9px 12px;max-width:100%}.archive-controls .field{flex:1;min-width:140px}.date-title{margin:18px 0 9px;font-size:14px;color:#617666}.text-btn:hover{color:var(--green)}
dialog{margin:auto;width:min(470px,calc(100% - 28px));color:var(--ink);background:#fcfdfa;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 20px 65px #18382838;max-height:85dvh;overflow:auto}dialog::backdrop{background:#19372c55;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-head h2{font-size:20px}#dialog-content .field,#dialog-content .edit-box{width:100%}#dialog-content p{line-height:1.7;font-size:14px;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:14px}.secondary{background:#edf2ec;border:1px solid var(--line);border-radius:7px;padding:8px 12px;font-size:14px}.danger{color:#984335}.search-results{max-height:55dvh;overflow:auto;margin-top:12px}.search-item{display:block;width:100%;text-align:left;border-bottom:1px solid var(--line);padding:11px 2px;font-size:15px;overflow-wrap:anywhere}.search-item small{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.backup-row{display:flex;gap:8px;flex-wrap:wrap}.backup-row svg{width:15px;height:15px;margin-right:5px}.detail-price{font-size:32px;letter-spacing:-1px;font-weight:650}.chart-detail{display:block;width:100%;height:110px;margin:14px 0}.dialog-info{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;font-size:13px}.dialog-info dt{color:var(--muted)}.dialog-info dd{margin:0}.quote-note{font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:22px;left:calc(50% + var(--side)/2);transform:translate(-50%,15px);border-radius:9px;padding:10px 16px;background:#234d3f;color:#fff;box-shadow:0 4px 22px #15312626;z-index:20;opacity:0;pointer-events:none;transition:.2s;font-size:14px;text-align:center}#toast.show{transform:translate(-50%,0);opacity:1}
@media(min-width:1550px){:root{--side:234px}.hero{min-height:195px}.market-card{min-height:127px}.writing-area #editor{min-height:145px}.quick{min-height:58px}}
@media(max-height:780px) and (min-width:821px){#sidebar{padding-top:19px}nav{margin-top:25px}.group-label{margin-top:18px}.nav-item{min-height:36px;padding:7px 13px}#side-foot{padding-top:14px}.calendar-grid>*{height:20px;line-height:20px}#calendar{padding-bottom:10px}}
@media(max-width:1150px){:root{--side:178px}#sidebar{padding-left:10px;padding-right:10px}.workgrid{grid-template-columns:minmax(0,1.7fr) minmax(219px,1fr);gap:13px}.card-head{padding:15px}.editor-body{margin:0 15px}.tab{padding:6px 7px}.quick{padding:9px 6px;gap:5px}#quick-actions{padding:0 12px 14px}.market-card{padding:13px}.spark{width:36%;right:6px}.hero{min-height:155px}}
@media(max-width:820px){:root{--side:0px}#sidebar{width:213px;transform:translateX(-100%);transition:transform .2s}body.nav-open #sidebar{transform:none}#veil{position:fixed;inset:0;background:#142c2559;z-index:4}#menu{display:inline-grid}.topbar{height:54px;justify-content:flex-start}.search-launch{margin-left:auto}.workgrid{grid-template-columns:minmax(0,1.7fr) minmax(212px,1fr)}.hero{min-height:151px}.markets{gap:8px}main{padding:15px 18px 30px}.brand{padding-left:7px}nav{margin-top:20px}.group-label{margin-top:15px}#side-foot{padding-top:14px}}
@media(max-width:640px){main{padding:12px 12px 30px}.topbar{padding:0 12px;gap:5px}.crumb{gap:7px}.crumb>span:first-child{display:none}.search-launch{width:auto;padding:7px;border:0;background:none}.search-launch span:nth-child(2),.search-launch kbd{display:none}.search-launch svg{width:19px;height:19px}.hero{min-height:139px;background-size:cover;background-position:58% center;border-radius:11px}.hero-copy{padding:16px;max-width:93%}.hero h1{font-size:30px;letter-spacing:2px;margin:9px 0}.hero p{font-size:12px;text-shadow:0 1px 4px #153d34}.hero p small{font-size:11px}.hero-date{font-size:12px}.market-section{margin:17px 0}.markets{grid-template-columns:repeat(2,minmax(0,1fr))}.market-card{min-height:94px;padding:10px 12px;border-radius:10px}.market-price{font-size:23px;margin:7px 0 4px}.market-name{font-size:12px;gap:6px}.asset-glyph{width:20px;height:20px}.asset-glyph svg{width:14px;height:14px}.spark{width:38%;height:27px;bottom:9px}.section-heading{margin-bottom:8px}h2{font-size:16px}.workgrid,.write-column,.utility-column{display:contents}.editor-card{margin-bottom:12px}.quick-card,.mood-card{margin-top:12px}.timeline-section{margin:0 0 12px}.writing-area #editor{min-height:95px}.utility-column #quick-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.quick{justify-content:center;font-size:12px;min-height:40px}.quick svg{width:16px;height:16px}.quick .tiny-plus{display:none}.card-head{padding:13px 15px}.editor-body #editor-tabs{gap:3px}.tab{font-size:12px;padding:6px 7px}.editor-foot{padding:10px 15px}.market-status,.text-btn{font-size:11px}.mood{font-size:12px;padding:4px 7px}.mood svg{width:33px;height:33px}.search-launch{min-width:36px}#toast{bottom:12px;width:max-content;max-width:93vw}.archive-controls{gap:6px}.archive-controls input,.archive-controls select{font-size:14px;padding:8px}.edit-box{font-size:16px}.archive-title{font-size:26px}#dashboard{display:flex;flex-direction:column}.hero{order:0}.market-section{order:1}.editor-card{order:2}.quick-card{order:3;margin-top:0}.mood-card{order:4}.timeline-section{order:5;margin-top:16px}}
.when{display:grid;gap:6px;margin-bottom:12px;color:var(--muted);font-size:13px}
.market-price small{display:inline-block;color:var(--muted);font-family:inherit;font-size:11px;line-height:1.4;letter-spacing:0;font-weight:450}
.market-cny{display:block;margin:0 0 9px;font-size:13px;line-height:1.4;font-weight:560;color:#395e4c;font-variant-numeric:tabular-nums}
.market-card{vertical-align:top;align-content:start}.market-card .spark{height:24px;bottom:8px}
.dialog-info a{color:var(--green)}
@media(min-width:641px){.hero{background-color:#11463c;background-image:linear-gradient(90deg,#11463c 0%,#11463c 21%,transparent 53%),url(forest.webp);background-size:100% 100%,max(82%,560px) auto;background-position:center,right 22%}}
@media(max-width:640px){.hero{margin-bottom:12px}.editor-card{order:1}.quick-card{order:2}.mood-card{order:3}.market-section{order:4}.timeline-section{margin-top:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.fish-cta{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:6px 14px 6px 6px;border-radius:999px;background:#ffffff2b;color:#fff;text-decoration:none;font-size:13px;font-weight:600;border:1px solid #ffffff42;backdrop-filter:blur(6px);transition:background-color .15s,transform .15s}
.fish-cta img{width:30px;height:30px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #ffffff52}
.fish-cta:hover{background:#ffffff40;transform:translateY(-1px)}
.top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
.fish-top{display:flex;align-items:center;gap:7px;padding:4px 11px 4px 4px;border:1px solid #dbe6dd;border-radius:999px;background:#f8fbf7;color:#3c5c4b;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap;transition:background-color .15s,transform .15s}
.fish-top img{width:30px;height:30px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fff,0 0 0 3px #d5e5d9}
.fish-top:hover{background:#edf5ed;transform:translateY(-1px)}
.top-actions .search-launch{margin-left:0}
@media(max-width:640px){.fish-cta{margin-top:10px;padding:5px 11px 5px 5px;font-size:12px}.fish-cta img{width:26px;height:26px}.fish-top{padding:3px;gap:0}.fish-top img{width:31px;height:31px}.fish-top span{display:none}.top-actions{gap:4px}}
@media(prefers-reduced-motion:reduce){.fish-cta,.fish-top{transition:none}}


.deep-link,.article-read{display:inline-flex;align-items:center;gap:6px;color:var(--green);text-decoration:none;font-size:14px}
.deep-link{background:#e8f1e8;border:1px solid #cddfd0;border-radius:7px;padding:7px 12px;font-weight:600}
.deep-link svg,.article-draft-icon svg{width:16px;height:16px}
.deep-link:hover{background:#dfece1}.editor-tools #smart{margin-left:auto}.editor-tools #word-count{margin-left:7px}
#article-drafts{padding:9px 18px 12px;display:grid;gap:6px;border-top:1px solid var(--line)}#article-drafts[hidden]{display:none}
#article-drafts a{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #e2ebe3;border-radius:9px;background:#f8fbf8;color:var(--green);text-decoration:none;transition:background-color .15s,border-color .15s}
#article-drafts a:hover{background:#eef6ef;border-color:#cadbce}.article-draft-icon{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:8px;background:#e4efe7;color:#2b7057}.article-draft-copy{min-width:0;display:grid;gap:2px}.article-draft-label{font-size:12.5px;line-height:1.35;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.article-draft-time{font-size:11px;line-height:1.3;color:#7b8a81;font-weight:450;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.article-entry-title{margin:11px 0 4px;font-size:18px;overflow-wrap:anywhere}.article-title-link,.entry-buttons a,.search-results a{color:inherit;text-decoration:none}
.article-excerpt{font-size:15px;line-height:1.75;color:var(--muted);margin:4px 0 8px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.article-read{font-size:13px;text-decoration:underline;text-underline-offset:3px}.article-title-link:hover{text-decoration:underline}

dialog:has(.cloud-backup){width:min(590px,calc(100% - 24px))}
.cloud-backup{position:relative;margin:-2px -2px 4px;padding:16px;border:1px solid #cfe0d2;border-radius:13px;background:linear-gradient(145deg,#f7fbf6,#edf5ec);overflow:hidden}
.cloud-backup:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-80px;top:-92px;background:#d8ead9;opacity:.7;pointer-events:none}
.cloud-backup-head{position:relative;z-index:1;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:11px}
.cloud-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#205e49;color:#fff;box-shadow:0 5px 16px #205e4926}
.cloud-mark svg{width:19px;height:19px}
.cloud-backup-head b{display:block;font-size:16px;color:#234c3b;line-height:1.35}
.cloud-backup-head p{margin:3px 0 0!important;font-size:12.5px!important;line-height:1.55!important;color:#687b6d!important}
.cloud-phase{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#e2ebe1;color:#5f7465;font-size:11px;font-weight:650;white-space:nowrap}
.cloud-phase:before{content:"";width:6px;height:6px;border-radius:50%;background:#91a095}
.cloud-phase[data-phase=uploading]{background:#e1edf4;color:#3f708a}
.cloud-phase[data-phase=uploading]:before{background:#5794b3;animation:cloud-pulse 1s ease-in-out infinite}
.cloud-phase[data-phase=success],.cloud-phase[data-phase=current],.cloud-phase[data-phase=restored],.cloud-phase[data-phase=connected]{background:#dcecdf;color:#2e684d}
.cloud-phase[data-phase=success]:before,.cloud-phase[data-phase=current]:before,.cloud-phase[data-phase=restored]:before,.cloud-phase[data-phase=connected]:before{background:#4a986c}
.cloud-phase[data-phase=error]{background:#f5e8e3;color:#8f5141}
.cloud-phase[data-phase=error]:before{background:#c56f59}
.cloud-summary{position:relative;z-index:1;margin-top:12px;color:#607467;font-size:12px;font-variant-numeric:tabular-nums}
.cloud-location{position:relative;z-index:1;margin-top:6px;color:#7b8b80;font-size:11.5px;overflow-wrap:anywhere}
.cloud-location a{color:#2c6850;text-decoration:underline;text-underline-offset:2px}
.cloud-auth{position:relative;z-index:1;margin-top:12px;border:1px solid #d2e1d4;border-radius:10px;background:#ffffff9e;overflow:hidden}
.cloud-auth summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:9px 10px;color:#315f4b;font-size:12.5px;font-weight:650;list-style:none}
.cloud-auth summary::-webkit-details-marker{display:none}
.cloud-auth summary:after{content:"展开";margin-left:auto;color:#819085;font-size:10.5px;font-weight:500}
.cloud-auth[open] summary:after{content:"收起"}
.cloud-auth-state{display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border-radius:999px;background:#eef1ee;color:#748078;font-size:10.5px;font-weight:600}
.cloud-auth-state:before{content:"";width:5px;height:5px;border-radius:50%;background:#9aa49c}
.cloud-auth-state[data-connected=true]{background:#e3efe5;color:#397256}
.cloud-auth-state[data-connected=true]:before{background:#4b966c}
.cloud-auth-body{padding:0 10px 11px;border-top:1px solid #e5ece5}
.cloud-auth-body p{margin:9px 0 8px!important;font-size:12px!important;line-height:1.6!important;color:#657668!important}
.cloud-auth-body .cloud-token-help{margin-top:-3px!important;font-size:11px!important;color:#819085!important}
.cloud-token-link{display:inline-block;color:#2d6b51;font-size:12px;font-weight:650;text-decoration:underline;text-underline-offset:2px}
.cloud-token-input{margin:5px 0 9px;font:500 12px/1.5 "Cascadia Mono","SFMono-Regular",Consolas,monospace}
.cloud-auth-actions{margin-top:0}
.cloud-auth-actions button[hidden]{display:none!important}
.cloud-code-box{position:relative;z-index:1;margin-top:12px;padding:10px 11px;border:1px solid #d5e4d7;border-radius:9px;background:#ffffffb8}
.cloud-code-box label{display:block;margin-bottom:5px;color:#7b8a80;font-size:11px;font-weight:600}
.cloud-code-box code{display:block;color:#294d3e;font:500 12px/1.55 "Cascadia Mono","SFMono-Regular",Consolas,monospace;overflow-wrap:anywhere;user-select:all;letter-spacing:.05px}
.cloud-actions{margin-top:10px}
.cloud-actions button{flex:1 1 auto;min-height:36px}
.cloud-restore{margin-top:14px;border-top:1px solid #d7e4d8;padding-top:12px}
.cloud-restore summary{width:max-content;max-width:100%;cursor:pointer;color:#315f4b;font-size:13px;font-weight:650;list-style:none}
.cloud-restore summary::-webkit-details-marker{display:none}
.cloud-restore summary:before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;margin-right:6px;border-radius:50%;background:#e0ece2;color:#3d7258;font-size:15px;line-height:1}
.cloud-restore[open] summary:before{content:"−"}
.cloud-restore p{margin:9px 0!important}
.cloud-restore .field{margin:5px 0 9px;resize:vertical;min-height:68px;font:500 12px/1.55 "Cascadia Mono","SFMono-Regular",Consolas,monospace}
.field-label{display:block;color:#637568;font-size:12px;font-weight:600}
.backup-status{min-height:20px;margin-top:10px;color:#587060;font-size:12px;line-height:1.5}
.local-backup{margin-top:17px;padding-top:16px;border-top:1px solid #dfe8df}
.backup-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
.backup-section-head b{font-size:14px;color:#2d5140}
.backup-section-head span{color:#7c8b81;font-size:11px;white-space:nowrap}
.local-backup p{margin-top:0!important}
.local-backup .backup-row+*{margin-top:12px}
.backup-row button:disabled{opacity:.55;cursor:wait}
@keyframes cloud-pulse{50%{opacity:.35;transform:scale(.8)}}
@media(max-width:640px){
  dialog:has(.cloud-backup){width:calc(100% - 16px);padding:16px;max-height:90dvh}
  .cloud-backup{padding:13px}
  .cloud-backup-head{grid-template-columns:34px minmax(0,1fr)}
  .cloud-mark{width:34px;height:34px}
  .cloud-phase{grid-column:2;width:max-content;margin-top:1px}
  .cloud-backup-head b{font-size:15px}
  .cloud-auth-actions{display:grid;grid-template-columns:1fr 1fr}
  .cloud-auth-actions .primary:only-child{grid-column:1/-1}
  .cloud-actions{display:grid;grid-template-columns:1fr 1fr}
  .cloud-actions .primary{grid-column:1/-1}
  .cloud-actions button{width:100%}
  .local-backup{margin-top:15px;padding-top:14px}
}
@media(prefers-reduced-motion:reduce){.cloud-phase[data-phase=uploading]:before{animation:none}}

.market-breadth{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:10px 0 2px;padding:6px 7px;border:1px solid #e5ebe5;border-radius:8px;background:#f8faf6;font-variant-numeric:tabular-nums}
.market-breadth-title{grid-column:1/-1;color:#7b8b80;font-size:9px;font-weight:600;letter-spacing:.04em}
.market-breadth>span:not(.market-breadth-title){display:flex;align-items:baseline;gap:3px;min-width:0}
.market-breadth small{color:#88958c;font-size:9px;font-weight:500}
.market-breadth b{font:650 14px/1.2 Inter,"Segoe UI",sans-serif;letter-spacing:-.04em}
.market-breadth .is-up,.dialog-breadth .is-up{color:#b64d43}
.market-breadth .is-down,.dialog-breadth .is-down{color:#268165}
.market-breadth .is-flat,.dialog-breadth .is-flat{color:#78867d}
.market-breadth.is-pending{display:block;color:#89978e;font-size:9px;line-height:1.45;text-align:center}
.dialog-breadth{display:flex;flex-wrap:wrap;gap:7px;font-variant-numeric:tabular-nums}
.dialog-breadth b{padding:4px 7px;border-radius:6px;background:#f4f7f3;font-size:12px;font-weight:650}
#market-state{max-width:min(48vw,410px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#market-state[data-stale=true]{color:#84654a}
.quick-copy{display:grid;min-width:0;text-align:left;line-height:1.2}
.quick-count{margin-top:2px;color:#7d877f;font-size:9px;font-weight:500;white-space:nowrap}
@media(max-width:640px){
  .market-card{min-height:110px}
  .market-breadth{margin-top:7px;padding:5px 6px;gap:2px}
  .market-breadth-title{font-size:8px}
  .market-breadth>span:not(.market-breadth-title){display:grid;grid-template-columns:auto 1fr;gap:2px}
  .market-breadth b{font-size:12px}
  .market-breadth small{font-size:8px}
  #market-state{max-width:58vw;font-size:10px}
  .quick{justify-content:flex-start;padding:8px 5px;gap:4px}
  .quick svg{width:15px;height:15px;flex:0 0 15px}
  .quick-copy>span{font-size:11px;white-space:nowrap}
  .quick-count{font-size:8px;margin-top:1px}
}

.market-card{display:flex;flex-direction:column;align-items:stretch}
.market-trend{display:grid;grid-template-columns:minmax(0,1fr) minmax(54px,40%);align-items:center;gap:8px;min-height:29px}
.market-trend .market-change{min-width:0}
.market-card .spark{position:static;right:auto;bottom:auto;width:100%;height:28px;min-width:0;z-index:auto}
.market-breadth{margin-top:8px}
@media(max-width:1150px){
  .market-trend{grid-template-columns:minmax(0,1fr) minmax(48px,38%)}
}
@media(max-width:640px){
  .market-trend{grid-template-columns:minmax(0,1fr) minmax(48px,38%);gap:5px;min-height:25px}
  .market-card .spark{height:24px}
  .market-breadth{margin-top:6px}
}

/* ===== 阅读（书架 + 阅读器） ===== */
#reading{padding:4px 0 12px}
.shelf-lead{margin:2px 2px 16px}
.shelf-lead h1{margin:0;font-family:"LXGW WenKai","Songti SC","STSong",serif;font-size:22px;color:var(--ink)}
.shelf-lead p{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.6}
.shelf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:16px}
.book-card{display:flex;gap:15px;padding:16px;background:#fcfdfa;border:1px solid var(--line);border-radius:16px;cursor:pointer;text-align:left;font:inherit;color:inherit;transition:.18s;align-items:stretch}
.book-card:hover{border-color:#c3d6c8;box-shadow:0 10px 26px #1c3b2a14;transform:translateY(-2px)}
.book-card:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.book-cover{flex:0 0 74px;width:74px;min-height:106px;border-radius:9px 5px 5px 9px;background:linear-gradient(145deg,#236652,#153c30);color:#f2ece0;display:grid;place-items:center;font-family:"Songti SC","STSong",serif;font-size:34px;box-shadow:inset 0 0 0 1px #ffffff1f,3px 3px 0 #ffffff0d,6px 6px 16px #163f3330;position:relative;overflow:hidden}
.book-cover:before{content:"";position:absolute;left:7px;top:0;bottom:0;width:1px;background:#ffffff2e}
.book-info{display:flex;flex-direction:column;min-width:0;flex:1;justify-content:center}
.book-info h3{margin:0;font-size:16px;color:var(--ink);font-weight:650}
.book-info .book-sub{margin:5px 0 12px;color:var(--muted);font-size:12.5px;line-height:1.55}
.book-prog{margin-top:auto}
.book-prog .bar{height:6px;border-radius:99px;background:#e9efe9;overflow:hidden}
.book-prog .bar i{display:block;height:100%;background:linear-gradient(90deg,#3f8f6d,#185c49);border-radius:99px}
.book-prog .pct{margin-top:6px;font-size:11.5px;color:var(--faint);display:flex;justify-content:space-between;gap:8px}
.book-add{display:grid;place-items:center;padding:18px;border:1.5px dashed #c9d9cd;border-radius:16px;color:var(--faint);font-size:13.5px;background:#fbfdfb;text-align:center;line-height:1.6}
#reader-wrap{display:flex;flex-direction:column;gap:10px}
#reader-wrap[hidden]{display:none}
.reader-bar{display:flex;align-items:center;gap:12px}
.reader-bar #reader-title{color:var(--muted);font-size:13.5px;font-weight:650}
#reader-frame{width:100%;height:calc(100vh - 152px);border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 10px 30px #1c3b2a10}
@media(max-width:820px){.shelf-grid{grid-template-columns:1fr}#reader-frame{height:calc(100vh - 188px)}}
