/* App previews follow FloatNote's native light UI; the surrounding page stays wireframe. */
.window{background:#fff;border:1px solid #c5c7ca;border-radius:12px;box-shadow:0 18px 48px #25332e18,0 3px 9px #25332e0b;color:#242528}
.note{--app-muted:#778090;--app-subtle:#a0a7b5;--app-accent:#5847f5;container-type:inline-size}
.note button{border:0;box-shadow:none;border-radius:6px;gap:6px}
.note button:hover{background:#eaeaf0}
.note button:focus-visible{outline:2px solid var(--app-accent);outline-offset:2px}
.note .window-bar{height:43px;background:#f8f8f7;border:0;padding:0 13px;letter-spacing:0}
.traffic{display:inline-flex;gap:8px;align-items:center;flex-shrink:0}
.traffic i{width:12px;height:12px;border-radius:50%;background:#ff5f57;border:1px solid #e34841}
.traffic i:nth-child(2){background:#febc2e;border-color:#e1a123}.traffic i:nth-child(3){background:#28c840;border-color:#1caf32}
#ai-toggle{padding:0;width:30px;height:30px;min-height:30px;background:transparent}#ai-toggle img{width:25px;height:28px}
.note .toolbar{position:relative;height:49px;background:#f8f8f7;border-bottom:1px solid #dddde0;padding:0 16px;gap:10px;flex-wrap:nowrap}
.note .project{display:flex;gap:6px;align-items:center;font-size:13px;color:#707887;min-width:0;flex:1}
#project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}.project .ph{font-size:14px}
.note .tabs{position:absolute;left:50%;transform:translateX(-50%);padding:2px;background:#ededec;border:1px solid #d2d2d2;border-radius:30px;gap:2px;width:auto;order:0}
.note .tabs button{position:relative;margin:0;min-height:26px;padding:3px 15px;border-radius:24px;font-size:13px;color:#737c8c;background:transparent}
.note .tabs button.active{background:white;color:#232427;box-shadow:0 1px 3px #0000000e;font-weight:600}
.split-lock{display:none;position:absolute;right:3px;top:1px;font-size:9px;color:#b5bbc5}
.note #plan-toggle{min-height:30px;width:30px;padding:0;color:#75808e;font-size:17px;flex-shrink:0;border-radius:50%}
.note #plan-toggle.on{color:var(--app-accent);background:#e7e3fa}
.note-content{position:relative;overflow:hidden;align-items:stretch;background:#fff}
.note .pane,.note-content>.pane:only-child{padding:28px 20px;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#d1d1d1 transparent}
.note .pane+.pane{border-left:1px solid #e5e5e7}
.note .source{padding-top:42px!important;flex:1!important}
.note .source-card{margin:0 0 13px;border:0;border-left:3px solid #d0d0cf;border-radius:9px;background:#f9f9f8;padding:12px 13px;color:#242528;line-height:1.8}
.source-card>a{display:flex;align-items:center;gap:8px;color:#6150ff;font-size:12px;min-width:0;margin-bottom:9px}.source-card>a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-card>a .ph{color:#a0a7b2;font-size:15px}
.note .pane p{font-size:15px;line-height:1.85;color:#25262a;margin:0 0 14px}.note .source-card p{margin:0}
.note .inbox-empty{color:#a0a7b5;padding:29px 16px!important;font-size:16px}
.note .writing,.note-content>.writing:only-child{padding:0;display:flex;flex-direction:column;overflow:hidden}
.piece-bar{height:36px;min-height:36px;display:flex;align-items:center;justify-content:space-between;margin:0 14px;padding:0 3px;border-bottom:1px solid #e4e4e6;color:#9ca5b5;font-size:12px;gap:12px}
.piece-bar>span{display:flex;align-items:center;gap:6px;min-width:0}.piece-bar>span>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.piece-bar>.ph{font-size:16px}
.editor{padding:15px 20px 35px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ccc transparent;flex:1}
.note .editor h2{font-size:28px;line-height:1.45;font-weight:650;color:#202124;margin:0 0 28px;letter-spacing:-.5px}
.note .editor h3{font-size:17px;line-height:1.7;font-weight:600;margin:25px 0 10px}.note .editor p{margin-bottom:16px}
.note .editor-placeholder{color:#a0a7b5}.note .primary{background:#5746ef;color:white;min-height:35px;font-size:13px;padding:8px 17px}.note .primary:hover{background:#4837df}
.note .empty{max-width:360px;color:#27282b}.note .empty-symbol{font-size:32px;margin-bottom:20px}.note .empty h2{font-size:22px;font-weight:600}.note .empty p{font-size:14px;color:#8b93a0;line-height:1.9;margin:12px 0 24px}
.note .tasks-panel{position:absolute;top:10px;right:12px;width:280px;max-width:calc(100% - 24px);padding:12px 14px;background:#fff;border:1px solid #dfdfe1;border-radius:13px;box-shadow:0 8px 28px #00000020;z-index:3}
.panel-head{display:flex;align-items:center;justify-content:space-between;color:#737b8c;font-size:14px}.panel-head small{font-size:12px;color:#9ea5b3;margin-left:4px}.panel-head>div{display:flex;gap:2px}
.note .icon-button{padding:0;width:28px;min-height:28px;margin:0;color:#929aab;font-size:17px;background:transparent}.note .close-panel{color:#e54441}.note .task{border:0;padding:9px 3px;margin:7px 0;gap:10px;font-size:14px;align-items:flex-start}.task[hidden]{display:none}.task input{appearance:none;width:18px;height:18px;min-width:18px;border:1.5px solid #d0d0d0;border-radius:5px;margin:3px 0 0;cursor:pointer}.task input:checked{background:#5948f5;border-color:#5948f5}.task input:checked:after{content:'✓';display:block;color:white;font-size:13px;text-align:center}.task input:checked+span{text-decoration:line-through;color:#999}
.note .task-add{display:flex;text-align:left;line-height:1.7;padding:10px 2px;margin:9px 0 0;color:#8a91a0;font-size:13px;gap:10px;width:100%;min-height:44px;background:transparent}.task-add>span,.task-placeholder>span{width:18px;height:18px;flex-shrink:0;border:1.5px dashed #d2d2d5;border-radius:4px}.task-placeholder{display:flex;align-items:center;gap:10px;color:#aaa;font-size:14px;padding:8px 3px}
.note .assistant-panel{position:absolute;right:16px;bottom:15px;width:320px;max-width:calc(100% - 28px);z-index:3;display:flex;flex-direction:column;max-height:calc(100% - 25px)}
.conversation{position:relative;padding:25px 15px 13px;border:1px solid #eee;border-radius:15px;background:#fffffffa;box-shadow:0 7px 25px #00000020;overflow:auto;scrollbar-width:thin}.note .new-chat{position:absolute;right:10px;top:9px;background:#f8f8f7;border:1px solid #dedede;border-radius:50%;z-index:1}
.note .chat{border:0;margin:12px 0 0;padding:12px 13px;border-radius:17px 17px 17px 3px;background:#f3f1eb;font-size:14px;line-height:1.75;max-width:92%}.note .chat.question{margin-left:auto;background:#e6efff;color:#254678;border-radius:17px 17px 3px 17px}.message-tools{display:flex;justify-content:flex-end;gap:13px;margin:7px 4px 20px;color:#c4c9d3}.note .copy-answer{margin:5px 0}
.assistant-composer{display:flex;align-items:center;gap:8px;margin-top:16px}.assistant-composer>img{width:46px;height:58px;object-fit:contain}.assistant-composer input{min-width:0;flex:1;border:1px solid #ddd;border-radius:24px;padding:10px 13px;background:white;font:14px inherit;height:38px}.assistant-composer input::placeholder{color:#a0a7b5}.note .assistant-send{border-radius:50%;width:38px;min-height:38px;flex-shrink:0;padding:0;background:#5845ef;color:white;font-size:20px}
.browser-tabs{height:42px;background:#e9eaec;display:flex;align-items:center;gap:16px;padding:0 13px;color:#626a74}.browser-tab{background:#fff;height:34px;align-self:flex-end;border-radius:9px 9px 0 0;padding:0 12px;display:flex;align-items:center;gap:11px;max-width:70%;font-size:12px;color:#333}.browser-tab>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.publication-icon{font-size:16px;color:#6c7c84}
.browser-navigation{height:40px;display:flex;align-items:center;gap:14px;padding:0 13px;border-bottom:1px solid #eee;background:#fff;color:#68717c;font-size:17px}.browser-navigation .address{display:flex;gap:8px;align-items:center;margin:0;flex:1;min-width:0;border:0;border-radius:20px;background:#f1f2f3;padding:7px 12px;font-size:11px;letter-spacing:0}.address span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.browser-content{height:calc(100% - 82px);overflow:auto;padding:0 25% 35px 32px;scrollbar-width:none}.publication{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;padding:15px 0;margin-bottom:22px}.publication>span{font:700 28px Georgia,serif;letter-spacing:-1.5px}.publication .ph{font-size:18px;color:#888}
.article-kicker{font-size:10px;color:#7c817f;letter-spacing:1.5px}.browser h2{font-family:'Songti SC','STSong',Georgia,serif;font-size:clamp(24px,2.3vw,36px);font-weight:700;line-height:1.38;letter-spacing:-1px;margin:14px 0}.browser .article-deck{font:14px/1.8 Arial,'PingFang SC',sans-serif;color:#777;margin:0 0 18px}.byline{display:flex;align-items:center;gap:9px;font-size:11px}.author-avatar{width:30px;height:30px;background:#e9ede7;color:#557462;display:grid;place-items:center;border-radius:50%;font-family:serif}.follow{color:#2d8145}.browser .byline small{display:block;letter-spacing:0;font-size:9px;color:#939393;margin-top:5px}.article-rule{height:1px;background:#eee;margin:19px 0}.browser article>p,.selected-passage p{font:15px/1.9 'Songti SC','STSong',Georgia,serif;margin:16px 0;color:#343434}.browser article h3{font:600 18px/1.6 'Songti SC',serif}.selected-passage{position:relative;padding-top:45px}.selected-passage p{margin-top:5px}.selected-passage mark{background:#dbe9ff;color:#244b88;padding:3px 0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
/* Selection popup mirrors FloatNote's src/popup: a solid pill bar (采集 / 翻译
   / 提问) with hairline dividers and the locked indigo accent; panels grow
   upward from the selection. The second shadow layer stands in for the native
   window drop shadow the Tauri popup gets for free. */
.capture-popup{position:absolute;left:0;top:40px;transform:translateY(-100%);z-index:2;max-width:100%;font:13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;color:#202124;user-select:none}
.capture-popup[hidden]{display:none}
.pop-bar,.pop-panel{display:flex;align-items:center;padding:3px;border:.5px solid rgba(0,0,0,.12);border-radius:9px;background:#f8f8f7;box-shadow:0 1px 3px rgba(0,0,0,.08),0 6px 18px rgba(0,0,0,.08);opacity:0;transform:translateY(4px) scale(.98);transform-origin:center bottom;transition:opacity .16s ease,transform .18s cubic-bezier(.22,1,.36,1)}
.capture-popup.is-visible .pop-bar,.capture-popup.is-visible .pop-panel{opacity:1;transform:translateY(0) scale(1)}
.pop-action{display:flex;align-items:center;gap:4px;min-height:28px;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:#202124;font-size:12px;font-weight:500;cursor:pointer;transition:background 120ms cubic-bezier(.22,1,.36,1),color 120ms cubic-bezier(.22,1,.36,1),transform 120ms cubic-bezier(.22,1,.36,1)}
.pop-action .ph{font-size:16px}
.pop-action[data-next] .ph{color:#4f46e5}
.pop-action:not(:disabled):hover{background:rgba(79,70,229,.12);color:#4f46e5}
.pop-action:not(:disabled):active{background:rgba(79,70,229,.12);transform:scale(.97)}
.pop-action:focus-visible{outline:2px solid #4f46e5;outline-offset:-2px}
.pop-divider{width:1px;height:16px;margin:0 1px;background:rgba(0,0,0,.09)}
.pop-panel{width:348px;max-width:100%;flex-direction:column;align-items:stretch;gap:8px;padding:10px;border-radius:10px;line-height:1.45;user-select:text}
.pop-summary{overflow:hidden;color:#6b7280;font-size:11px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.pop-status{display:flex;align-items:center;gap:7px;min-height:48px}
.pop-status .ph{animation:pop-spin .9s linear infinite}
@keyframes pop-spin{to{transform:rotate(360deg)}}
.pop-result{max-height:260px;overflow:auto;padding:8px;border-radius:6px;background:#fff;font-size:13px;line-height:1.6;white-space:pre-wrap;user-select:text}
.pop-question{min-height:86px;max-height:180px;resize:vertical;padding:8px 9px;border:.5px solid rgba(0,0,0,.12);border-radius:6px;outline:none;background:#fff;color:#202124;font:inherit;line-height:1.5;user-select:text}
.pop-question:focus-visible,.pop-result:focus-visible{box-shadow:0 0 0 2px rgba(79,70,229,.12);border-color:#4f46e5}
.pop-footer{display:flex;justify-content:flex-end;gap:6px}
.pop-text{min-height:28px;padding:4px 10px;border:0;border-radius:6px;background:transparent;color:#4f46e5;cursor:pointer}
.pop-text:hover{background:rgba(0,0,0,.05)}
.pop-text:disabled{opacity:.5;cursor:default}
@media (prefers-reduced-motion:reduce){.pop-bar,.pop-panel{transition:none}.pop-status .ph{animation:none}}
@container (max-width:430px){.note .toolbar{padding:0 11px;gap:7px}.note .project{font-size:12px}.note .tabs button{padding:3px 11px;font-size:12px}#project-name{max-width:68px}.note .tabs{left:54%}.note .pane p{font-size:14px}.note .editor h2{font-size:26px}}
@container (max-width:250px){.note .toolbar{height:71px;align-items:flex-start;padding-top:4px}.note .project{padding-top:7px}.note .tabs{top:37px;left:50%}.note .tabs button{padding:2px 17px;min-height:23px}.note .source{padding:27px 13px!important}.note .pane p{font-size:13px}.source-card>a{font-size:11px}.note .inbox-empty{font-size:14px}.note .window-bar{height:35px}}
@media(min-width:681px){main[data-scene="0"] .note,main[data-scene="3"] .note,main[data-scene="4"] .note,main[data-scene="9"] .note{left:55%;width:calc(45% - var(--gutter))}.note .writing{flex:1!important}main[data-scene="1"] .note,main[data-scene="2"] .note{left:71%;width:calc(29% - var(--gutter))}.browser,main[data-scene] .browser{width:51%}.note .editor{padding-top:18px} }
@media(max-width:680px){.note .pane,.note-content>.pane:only-child{padding:20px 12px}.note .source{padding-top:28px!important}.note .source-card{padding:9px}.note .pane p{font-size:12px;line-height:1.8}.note .editor{padding:13px 12px}.note .editor h2{font-size:22px;margin-bottom:22px}.note .editor h3{font-size:14px}.piece-bar{margin:0 8px;font-size:10px;gap:5px}.browser-tabs{height:34px;gap:9px;padding:0 9px}.browser-tabs>.ph{display:none}.browser-tab{height:28px;font-size:9px;padding:0 7px;gap:5px}.traffic{gap:5px}.traffic i{width:9px;height:9px}.browser-navigation{height:33px;gap:7px;padding:0 8px;font-size:13px}.browser-navigation>.ph:nth-last-child(-n+2){display:none}.browser-navigation .address{padding:5px;font-size:8px}.browser-content{height:calc(100% - 67px);padding:0 21% 25px 14px}.publication{padding:10px 0;margin-bottom:14px}.publication>span{font-size:23px}.browser h2{font-size:24px;margin:10px 0}.browser .article-deck{font-size:11px}.browser article>p,.selected-passage p{font-size:12px}.byline{font-size:9px}.browser .byline small{font-size:8px}.article-kicker{font-size:8px;letter-spacing:0}.note .assistant-panel{right:10px;bottom:8px}.note .chat{font-size:12px}.assistant-composer{margin-top:10px}.note .tasks-panel{width:260px}.note .tabs{display:flex!important}.note .project{display:flex!important}.note .toolbar{flex-wrap:nowrap!important}.note .tabs button{font-size:11px!important}.note .source{display:block!important}}
@media(max-height:750px){.browser h2{font-size:25px;line-height:1.3}.publication{margin-bottom:14px;padding:10px 0}.browser .article-deck{font-size:12px;margin-bottom:12px}.article-rule{margin:13px 0}.browser article>p,.selected-passage p{font-size:13px;line-height:1.8}.conversation{padding-top:17px}.note .chat{font-size:12px;line-height:1.6}.message-tools{margin-bottom:12px}.note .editor h2{margin-bottom:20px}}
/* Keep native segmented labels on one line, including narrow capture windows. */
.note .tabs{width:max-content!important;flex-wrap:nowrap}.note .tabs button{white-space:nowrap;flex-shrink:0}
@container (max-width:250px){.note .toolbar{height:76px;min-height:76px}.note .tabs{top:38px}}
@media(max-height:750px){.publication{padding:8px 0;margin-bottom:10px}.browser h2{margin:10px 0}.browser .article-deck{margin-bottom:10px}.article-rule{margin:10px 0}.browser article>p{margin:12px 0}.selected-passage{padding-top:40px}.capture-popup{top:35px}}

main[data-scene] .note .writing{padding:0!important}
main[data-scene] .note .source{padding:42px 20px 25px!important}
main[data-scene] .note-content>.source:not(:only-child),main[data-scene] .note-content>.writing:not(:only-child){flex:0 0 50%!important;width:50%}
.note .editor p.editor-placeholder{color:#a0a7b5}
@media(max-width:680px){main[data-scene] .note .source{padding:28px 12px 20px!important}}
@media(max-width:680px){
 main[data-scene="1"] .browser,main[data-scene="2"] .browser{left:5%;width:90%;top:180px;height:300px;bottom:auto}
 main[data-scene="1"] .note,main[data-scene="2"] .note{left:13%;width:82%;top:465px;bottom:6px}
 .browser-content{padding:0 15px 20px}.browser h2{font-size:20px;line-height:1.4;margin:9px 0}.publication{padding:7px 0;margin-bottom:8px}.publication>span{font-size:21px}
 .browser .article-deck,.browser article>p:first-of-type+.byline~p{display:none}
 .browser article>p{display:none}.browser .byline{margin-top:10px}.article-rule{margin:10px 0}.selected-passage p{font-size:12px;line-height:1.7}.browser .selected-passage{padding-top:40px}
 .capture-popup{top:35px}.capture-popup.panel-open{transform:none}.pop-question{min-height:60px}
 .note .tabs button{padding-left:9px!important;padding-right:9px!important}
}
@media(max-width:680px) and (max-height:740px){main[data-scene="1"] .browser,main[data-scene="2"] .browser{top:158px;height:245px}main[data-scene="1"] .note,main[data-scene="2"] .note{top:390px}.browser .byline,.browser .article-kicker{display:none}}

.note .tabs button:disabled{opacity:.5}.note .tabs button:disabled .split-lock{display:inline-block}
@media(max-width:680px){.browser .byline{display:none}}

/* A quiet fictional publication keeps the article in focus. */
.browser article{container-type:inline-size}
.publication{border-bottom:0;margin-bottom:14px}
.publication>span{font:500 18px/1.4 Arial,'PingFang SC',sans-serif;letter-spacing:3px;color:#6c7c84}
.browser article h2{font-family:Arial,'PingFang SC',sans-serif;font-size:clamp(14px,6.8cqi,28px);font-weight:600;line-height:1.5;letter-spacing:0;white-space:nowrap;margin:0 0 16px}
.author-avatar{display:block;flex-shrink:0;width:30px;height:30px;border-radius:50%;object-fit:cover;background:#e9e5df}
.byline{color:#737775}
/* Bring the opening and closing copy closer to the demo without resizing it. */
@media(min-width:681px){
 main[data-scene="0"] .intro,main[data-scene="9"] .intro{left:calc(var(--gutter) + 2.5%)}
 main[data-scene="0"] .note,main[data-scene="9"] .note{left:52.5%}
}
@media(max-width:680px){.publication{padding:7px 0;margin-bottom:8px}.publication>span{font-size:15px}.browser article h2{font-size:clamp(14px,6.8cqi,23px);margin-bottom:10px}}
