@charset "UTF-8";
:root{--bg:#f3eee3;--card:#fffbef;--text:#37382e;--muted:#7a776b;--blue:#819475;--blue-d:#61735a;--blue-soft:#e1e6d3;--pink-soft:#efd8c7;--pinkc:#f5e5d7;--line:#d9d1be;--radius:5px;--shadow:2px 5px 12px #5f503017;--btn-fg:#5a634d;--btn-grad:#e4e6d6;--accent:#b76543}
*{box-sizing:border-box}body{margin:0;background:#f1ebdc url('/miniapp-assets/paper-art.png') center bottom/cover fixed;color:var(--text);font:15px/1.75 'Segoe UI','Microsoft YaHei',sans-serif;min-height:100vh}button,input,textarea,select{font:inherit;color:inherit}button,.btn,summary{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9b7444;outline-offset:3px}a{color:var(--accent)}button,input,select{min-height:42px}h1,h2,h3,h4,p{margin:0}h2{font:500 25px/1.5 Georgia,'SimSun',serif;margin-bottom:15px}h3{font:500 20px/1.5 Georgia,'SimSun',serif}h4{font-size:15px}.muted{font-size:13px;color:var(--muted)}.mono{font:12px/1.7 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.hidden,[hidden]{display:none!important}.topbar{max-width:1280px;margin:auto;padding:27px 34px 20px;display:flex;gap:20px;align-items:center;border-bottom:3px double #a29983}.brand{font:500 36px/1.3 Georgia,'SimSun',serif;letter-spacing:2px}.brand small{display:block;font:10px/2 Georgia,serif;letter-spacing:3px;margin-top:6px}.status{font-size:12px;color:var(--muted);margin-left:auto}.menu-btn{display:none}.layout{max-width:1280px;margin:auto}.sidebar{padding:0 32px;border-bottom:1px solid #bcb29c}.nav{display:flex;gap:21px;flex-wrap:wrap}.nav button{border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:15px 4px;color:#6e6b5d}.nav button.on{color:var(--accent);border-color:var(--accent)}.content{padding:32px;min-width:0}.panel{display:none}.panel.on{display:block}.card{position:relative;background:var(--card);border:1px solid #e5dcc9;border-radius:2px 5px 3px 2px;box-shadow:var(--shadow);padding:27px;margin-bottom:24px;min-width:0;overflow-wrap:anywhere}.panel>.card:first-child:before,.taped:before{content:'';position:absolute;width:84px;height:21px;top:-9px;left:35px;background:#d4c595a6;transform:rotate(-5deg);pointer-events:none}.card h2{margin-bottom:14px}.row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.grow{flex:1;min-width:0}.field{display:grid;gap:7px;margin:16px 0}.field label{font-size:13px;color:var(--muted)}input:not([type=checkbox]):not([type=file]),textarea,select{max-width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:#fffdf5}.field input,.field textarea,.field select{width:100%}textarea{min-height:100px;resize:vertical}input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:#6c8463;vertical-align:middle;margin-right:9px}label{line-height:1.7}.btn{display:inline-flex;justify-content:center;align-items:center;padding:9px 16px;border:1px solid var(--line);border-radius:4px;background:#f2eddf;color:#655f4e;text-decoration:none;font-size:13px;gap:6px}.btn:hover{background:#e9e8d8}.btn.primary{background:var(--accent);color:#fff7e9;border-color:var(--accent)}.btn.danger{color:#a54738}.badge,.tag{font-size:11px;padding:3px 8px;border-radius:3px;background:#e5e9d8;color:#59684b}.tag{border:1px solid var(--line)}.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.provider{padding:18px 0;border-top:1px solid var(--line)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat{border-left:2px solid #b7bc9d;padding-left:15px;min-width:0}.stat b{display:block;font-weight:500;font-size:19px;overflow-wrap:anywhere}.emptystate{padding:26px 14px;border:1px dashed var(--line);color:var(--muted);line-height:2}.home-grid,.qq-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(250px,1fr);gap:25px}.home-hero{padding:30px 0 25px;border-bottom:1px solid var(--line);margin-bottom:24px}.home-hero h2{font-size:30px}.kicker{font:11px/1.7 Georgia,serif;letter-spacing:2px;color:var(--muted)}.home-note{background:#e4e7d1;transform:rotate(.6deg);min-height:210px}.home-note .hand{font:24px/1.6 'KaiTi','SimSun',serif;margin:12px 0}.ticket{background:#f1dac9;border-left:6px solid #b97955}.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.entry{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:18px;border:1px solid var(--line);background:#fffcf2;border-radius:4px}.entry b{font:20px Georgia,'SimSun',serif}.entry:hover{background:#eeefdf}.paper-footer{max-width:1200px;margin:0 auto;padding:20px 32px 45px;text-align:center;font:17px 'KaiTi','SimSun',serif;color:#837d67}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.chips button{padding:6px 14px;border:1px solid var(--line);border-radius:3px;background:#fffbf0}.chips button.on{background:#dfe6d1;color:#516847}.leaf,.obcard,.bubble{padding:18px;margin:15px 0;background:#fffdf4;border:1px solid var(--line);border-radius:4px}.leaf .lh{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.leaf .lt{font-size:11px;color:#69805d}.leaf .ld{margin-left:auto;font-size:11px;color:var(--muted)}.leaf .lb{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px}.leaf:not(.open) .lb{max-height:80px;overflow:hidden}.leaf .lx{font-size:11px;color:var(--muted);margin-top:5px}.leaf .lx .less,.leaf.open .lx .more{display:none}.leaf.open .lx .less{display:inline}.impctl{display:inline-flex;gap:5px;align-items:center}.impb{min-height:28px;min-width:28px;border:1px solid var(--line);background:var(--bg)}.impd{color:#9d7958;font-size:11px}.leaf.low{opacity:.7}.ldel,.ledit{cursor:pointer;font-size:12px;color:#98785c}.chat{min-height:240px;max-height:55vh;overflow:auto;background:#f9f6ec;padding:15px;border:1px solid var(--line)}.msg{padding:12px 16px;border-radius:4px;background:#eee9dc;margin:10px 0;max-width:85%;overflow-wrap:anywhere;white-space:pre-wrap}.msg.user{margin-left:auto;background:#e0e7d4}.msg b{display:block;font-size:11px;color:var(--muted)}.modal{position:fixed;inset:0;background:#36322677;display:flex;align-items:center;justify-content:center;padding:20px;z-index:100}.modal .box{background:var(--card);padding:28px;width:min(560px,100%);max-height:90vh;overflow:auto;border-radius:5px}.modal h3{margin-bottom:16px}details.fold{background:#fffaf0;border:1px solid var(--line);margin:16px 0;padding:15px 19px}details.fold summary{font:19px 'SimSun',serif;padding:8px 0}details.fold>.card{box-shadow:none;border:0;padding:18px 0;margin:0}.journal-item{padding:23px;border:1px solid var(--line);background:#fffdf3;position:relative;margin:18px 0}.journal-item time{font:12px Georgia,serif;color:var(--muted)}.journal-text{font:19px/1.9 'KaiTi','SimSun',serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.journal-item details{margin-top:16px;font-size:12px}.journal-item pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;padding:14px;background:var(--bg)}.timeline{border-left:1px solid #b9b29f;padding-left:19px}.record{padding:15px 0;border-bottom:1px dashed var(--line);overflow-wrap:anywhere}.record p{white-space:pre-wrap}.record small{font-size:11px;color:var(--muted)}.record b{font-weight:500;color:#5f7754}.model-route{display:grid;grid-template-columns:140px 1fr 1fr;gap:13px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.model-route select{width:100%;min-width:0}.bottom-nav{display:none}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.browser-shot{width:100%;height:auto;display:block;border:1px solid var(--line);touch-action:none;user-select:none}.browser-toolbar{display:flex;gap:10px;flex-wrap:wrap}.browser-toolbar input{flex:1;min-width:160px}.status-line{padding:15px 18px;background:#e3e7d5;border-radius:3px;margin:12px 0}.toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#414d37;color:#fff;padding:12px 20px;border-radius:4px;z-index:120;max-width:90%;box-shadow:var(--shadow)}.switch-row{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);padding:16px;margin-top:12px;gap:16px}.switch-row input{appearance:none;width:46px;height:26px;flex:0 0 46px;border-radius:20px;background:#c6c1b6;position:relative;border:0;margin:0;cursor:pointer}.switch-row input:after{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;background:#fffdf6;border-radius:50%;box-shadow:1px 1px 3px #0002}.switch-row input:checked{background:#6a8362}.switch-row input:checked:after{left:23px}#qqSave{min-width:160px}.qq-main>.card:first-child{background:#fffcf2}#qqStatus{padding:12px;background:#e0e5d1;margin:15px 0}.qq-aside>.card{background:#e4e7d1}.qq-aside>.card:nth-child(2){background:#f6e2cf}.bubbles{display:grid;gap:10px}.bubble .meta{font-size:12px;color:var(--muted)}.bubble .text{white-space:pre-wrap}.row>input{max-width:100%;min-width:0}.error{color:#ad493c}#journalStatus{min-height:24px}.oblist{display:grid;gap:12px}
@media(max-width:800px){body{background-size:auto 100%;font-size:14px}.topbar{padding:20px;gap:12px;flex-wrap:wrap}.brand{font-size:27px}.brand small{font-size:9px;letter-spacing:2px}.status{font-size:11px}.topbar>.btn{padding:6px 10px;min-height:36px}.sidebar{display:none}.content{padding:24px 16px 100px}.home-grid,.qq-layout{grid-template-columns:1fr;gap:0}.card{padding:23px 20px;margin-bottom:22px}h2{font-size:23px}.home-hero{padding:10px 0 20px}.home-hero h2{font-size:26px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:#fbf6e9;border-top:1px solid #c9bfaa;padding:8px 6px calc(8px + env(safe-area-inset-bottom));z-index:40;box-shadow:0 -4px 15px #74654112}.bottom-nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:11px;min-height:49px;color:#7b776b}.bottom-nav button span{font-size:20px;line-height:1.3}.bottom-nav button.on{color:var(--accent);text-decoration:underline;text-underline-offset:5px}.split,.stats{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr 1fr}.model-route{grid-template-columns:1fr;gap:8px}.model-route b{margin-bottom:3px}.field input,.field select,.field textarea,input,textarea,select{font-size:16px}.btn{min-height:44px}.row{gap:9px}.row>.btn{max-width:100%;white-space:normal}.journal-text{font-size:18px}.paper-footer{display:none}.modal{padding:15px}.modal .box{padding:22px}.entry-grid{gap:10px}.entry{padding:15px}.entry b{font-size:18px}.qq-aside{display:none}.content .panel{min-width:0}.card:before{max-width:80px}.brand:after{content:' ✧';font-size:22px;color:#b69152}#memeList{grid-template-columns:repeat(2,minmax(0,1fr))!important}.timeline{padding-left:10px}.journal-item{padding:17px}.browser-toolbar input{width:100%;flex:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
.card.embedded{border:0;box-shadow:none;padding:24px 0 5px;margin:0;background:transparent}.card.embedded h2{font-size:21px}.card.embedded .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.card.embedded .row label{min-height:40px;display:flex;align-items:center}.qq-main>.card:first-child{border-top:4px solid #ece3cf}.qq-main>.card:first-child:after{content:'✧';position:absolute;top:15px;right:25px;color:#b89557;font-size:28px;pointer-events:none}.qq-main>.card:first-child>.row:first-child{padding-right:25px}dialog{max-width:calc(100vw - 28px);background:var(--card);border:1px solid var(--line);border-radius:6px;padding:26px;box-shadow:0 10px 60px #30291844}dialog::backdrop{background:#3d382e66}.qq-main .switch-row{border-radius:5px;background:#f8f5ea}.qq-main .switch-row:first-of-type{background:none;border:0;padding:7px 0;font-size:12px}.qq-main .fold{margin-top:24px}.qq-main .card.embedded>.muted{margin-top:10px}.topbar .brand{min-width:0}@media(max-width:800px){.card.embedded .row{grid-template-columns:1fr}.topbar{position:relative}.brand{font-size:26px}.brand:after{display:none}.topbar>.status{margin-left:0}.topbar>.btn{margin-left:auto}.card.embedded h2{font-size:20px}.qq-main>.card:first-child:after{display:none}.qq-main>.card:first-child>.row:first-child{padding-right:0}dialog form{min-width:0!important}}

/* Compact reading rhythm; full text remains available without leaving the card. */
.fold-text:not(.expanded){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.text-expand{border:0;background:transparent;color:var(--accent);font:inherit;font-size:13px;min-height:40px;padding:4px 0;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.home-action-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
@media(max-width:800px){
.topbar{padding:12px 16px;gap:8px}.topbar .brand{font-size:21px;line-height:1.3}.brand small{font-size:8px;letter-spacing:1px;margin-top:4px}.topbar>.status{font-size:10px}.topbar>.btn{font-size:12px;padding:5px 8px;min-height:36px}
.content{padding:14px 14px 92px}.home-hero{padding:0 0 12px;margin-bottom:18px}.home-hero .kicker{display:none}.home-hero h2{font-size:21px;line-height:1.45;margin:0 0 5px}.home-hero .muted{font-size:12px;margin:0}
.card{padding:16px;margin-bottom:16px}h2{font-size:20px}.home-note{min-height:0;transform:none}.home-note .hand{font-size:17px;line-height:1.75;margin:10px 0 0}.card>.row{gap:6px}.card>.row>.btn{font-size:12px;padding:6px 10px;min-height:40px}.card>.row>h2{font-size:20px}
.journal-text{font-size:16px;line-height:1.8;margin:10px 0}.journal-item{padding:14px;margin:12px 0}.journal-item time{font-size:11px}.journal-item .row .btn{font-size:12px;padding:5px 10px;min-height:40px}.timeline{padding-left:8px}.journal-item details{margin-top:10px}.home-action-preview{font-size:14px;line-height:1.7;margin-top:8px}#notes .switch-row{padding:8px 0;border:0;font-size:12px;margin-top:8px}#notes>.card>.muted,#actions>.card>.muted{font-size:12px;margin:6px 0}
}
@media(max-width:360px){.topbar .brand{font-size:19px}.topbar>.status{display:none}.brand small{font-size:7px}.content{padding-left:12px;padding-right:12px}}
/* Approved narrow-phone paper layouts (393 x 853 logical viewport). */
.sticker{display:block;flex:none;width:64px;height:64px;background-image:url('/miniapp-assets/journal-stickers.png');background-size:400% 200%;background-repeat:no-repeat;pointer-events:none;opacity:.92}
.sticker-0{background-position:0 0}.sticker-1{background-position:33.333% 0}.sticker-2{background-position:66.667% 0}.sticker-3{background-position:100% 0}.sticker-4{background-position:0 100%}.sticker-5{background-position:33.333% 100%}.sticker-6{background-position:66.667% 100%}.sticker-7{background-position:100% 100%}
.paper-home{max-width:1050px;margin:auto}.home-intro{color:var(--muted);font-size:14px;margin:0 0 24px}.home-pages{display:grid;grid-template-columns:1.05fr 1fr;gap:28px}.home-main,.home-secondary{min-width:0}
.home-note,.home-action{position:relative;padding:20px;border:1px solid #d4d1b9;border-radius:7px;margin-bottom:18px;box-shadow:0 2px 5px #74654108}.home-note{background:#e5e8d4;min-height:0;transform:none}.home-action{background:#fffbef99;border-color:#dccfb7}.note-heading{display:flex;align-items:center;gap:10px;margin-bottom:8px;min-width:0}.note-heading h2,.note-heading>button:first-child:not(.paper-link){font:500 19px/1.4 'Segoe UI','Microsoft YaHei',sans-serif;margin:0}.note-heading>button:first-child{background:none;border:0;color:var(--text);padding:0;cursor:pointer;text-align:left}.note-heading time{font-size:11px;color:var(--muted);margin-left:auto}.note-heading .paper-link{margin-left:auto}.paper-link{background:none;border:0;color:#667653;white-space:nowrap;cursor:pointer;font:12px/1.5 inherit;min-height:36px;padding:0}.home-note .hand{font:16px/1.8 'Segoe UI','Microsoft YaHei',sans-serif;margin:8px 0;white-space:pre-wrap;padding-right:30px}.home-note>.sticker{position:absolute;bottom:9px;right:8px;width:39px;height:39px;opacity:.7}.home-note .text-expand{font-size:12px;min-height:32px;color:#647453}.home-note:before{content:'';position:absolute;left:15px;top:-7px;width:52px;height:15px;transform:rotate(-7deg);background:#c6c99866}.home-note .fold-text:not(.expanded){-webkit-line-clamp:3}.action-peek{display:flex;align-items:center;gap:10px}.action-peek>.sticker{width:55px;height:55px}.home-action-preview{font:14px/1.7 'Segoe UI','Microsoft YaHei',sans-serif;color:var(--text);margin:0;flex:1;min-width:0;-webkit-line-clamp:3}
.paper-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.paper-shortcut{display:flex;gap:8px;align-items:center;min-width:0;text-align:left;background:#fffbef80;border:1px solid #dccfb7;border-radius:7px;padding:12px 8px;color:var(--text);cursor:pointer}.paper-shortcut>.sticker{width:49px;height:49px}.paper-shortcut>span:nth-child(2){min-width:0;flex:1}.paper-shortcut b{display:block;font-size:15px;font-weight:500}.paper-shortcut small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.paper-shortcut>span:last-child{font-size:20px;color:#897b64}
.recent-pages{margin-top:20px}.recent-pages .note-heading{margin-bottom:3px}.recent-page{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-top:1px solid #d4cbb488;padding:12px 0;cursor:pointer;color:var(--text)}.recent-page time{font-size:10px;color:var(--muted);flex:none;width:84px}.recent-page>span{font-size:13px;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0}.home-connection{font-size:10px;color:#8b887a;margin:14px 0 0;text-align:center}
.journal-page{max-width:850px;margin:auto}.journal-heading{display:flex;gap:8px;align-items:center;margin-bottom:16px}.journal-heading h2{font-size:25px;flex:1;margin:0}.icon-button{border:0;background:transparent;font-size:25px;width:40px;height:40px;color:var(--text);cursor:pointer}.journal-day{font-weight:400;font-size:13px;color:var(--muted);margin:14px 0 2px}.paper-event{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr) 70px;gap:12px;padding:18px 0;border-bottom:1px dashed #cfc5af;min-height:128px}.paper-event>time{font:12px/1.6 'Segoe UI',sans-serif;color:var(--muted);padding-top:2px}.paper-event>.sticker{align-self:center;width:70px;height:70px}.event-content{min-width:0}.event-text{font:15px/1.8 'Segoe UI','Microsoft YaHei',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.event-content:has(>.event-details[open])>.event-text{display:none}.event-details>summary{list-style:none;color:#637451;font-size:12px;cursor:pointer;padding:6px 0;min-height:32px}.event-details>summary::-webkit-details-marker{display:none}.event-details[open]>summary{margin-bottom:4px}.event-full{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 12px}.event-details .muted{font-size:11px}.event-details details{font-size:11px;margin-top:12px}.event-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#e9e4d766;padding:10px;font-size:11px}.paper-event:has(.event-details[open]){grid-template-columns:50px minmax(0,1fr)}.paper-event:has(.event-details[open])>.sticker{display:none}.access-gear{font-size:24px!important;border:0;background:transparent;min-width:40px}
@media(max-width:800px){
 body{font-size:14px;background-size:auto 100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}.topbar{padding:12px 16px 6px;gap:8px;border-bottom:0;flex-wrap:nowrap}.topbar .brand{font:500 21px/1.4 'Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:1px}.topbar .brand small{display:none}.topbar>.status{display:block;font-size:10px;margin:0;white-space:nowrap}.topbar>.access-gear{margin-left:auto;padding:0;min-height:40px}.content{padding:8px 14px 84px}.home-intro{font-size:12px;margin:0 0 22px;color:#8a877c}.home-pages{display:block}.home-note,.home-action{padding:13px 14px;margin-bottom:13px}.home-note .hand{font-size:14px;line-height:1.65;margin:7px 0 0}.note-heading{gap:6px;margin-bottom:7px}.note-heading h2,.note-heading>button:first-child:not(.paper-link){font-size:16px}.home-note .text-expand{font-size:12px;margin-top:2px}.home-note .note-heading time{font-size:10px}.home-action-preview{font-size:13px;line-height:1.65}.action-peek>.sticker{width:42px;height:42px}.paper-link{font-size:11px;min-height:30px}.paper-shortcuts{gap:9px}.paper-shortcut{padding:8px 6px;gap:6px;min-height:66px}.paper-shortcut>.sticker{width:42px;height:42px}.paper-shortcut b{font-size:14px}.paper-shortcut small{font-size:10px;line-height:1.5;margin-top:2px}.paper-shortcut>span:last-child{font-size:16px}.recent-pages{margin-top:18px}.recent-page{padding:10px 0;gap:8px}.recent-page time{width:68px;font-size:10px}.recent-page>span{font-size:12px;line-height:1.6}.home-connection{font-size:10px;margin-top:10px}.journal-heading{margin:10px 0 8px}.journal-heading h2{font-size:20px}.journal-day{font-size:12px;margin:6px 0 3px}.paper-event{grid-template-columns:38px minmax(0,1fr) 54px;gap:9px;padding:14px 0;min-height:120px}.paper-event>time{font-size:11px}.paper-event>.sticker{width:54px;height:54px}.event-text{font-size:14px;line-height:1.6}.event-details>summary{font-size:12px;min-height:32px;padding-top:6px}.paper-event:has(.event-details[open]){grid-template-columns:38px minmax(0,1fr)}.bottom-nav{padding:4px 6px calc(4px + env(safe-area-inset-bottom))}.bottom-nav button{font-size:10px;min-height:48px}.bottom-nav button span{font-size:21px}#notes>.card{padding:8px 0;border:0;box-shadow:none;background:transparent}#notesFeed .journal-item{background:#e5e8d480;padding:14px;border-radius:6px}#notes .journal-text{font-size:14px;line-height:1.7}
}
@media(max-width:360px){.topbar .brand{font-size:19px;letter-spacing:0}.topbar>.status{font-size:9px}.content{padding-left:12px;padding-right:12px}.paper-shortcut>.sticker{width:34px;height:34px}.paper-shortcut small{font-size:9px}.paper-shortcut b{font-size:13px}.paper-event{grid-template-columns:33px minmax(0,1fr) 42px;gap:7px}.paper-event>.sticker{width:42px;height:42px}.event-text{font-size:13px}.paper-event:has(.event-details[open]){grid-template-columns:33px minmax(0,1fr)}}

.period-page{max-width:740px;margin:auto}.period-page>.muted{font-size:12px;margin:8px 0}.period-record{border-bottom:1px dashed var(--line);padding:16px 0}.period-record small{display:block;color:var(--muted);font-size:12px}.period-record p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.period-page form{margin-bottom:24px}.period-page textarea{width:100%}
.period-page .field{margin:8px 0;gap:5px}.period-page .split{gap:0 12px}.period-page .status-line{padding:10px 12px;margin:10px 0}.period-page textarea{min-height:70px}.period-page form{margin-bottom:16px}.period-page #periodNotice{font-size:12px;margin:5px 0;min-height:18px}@media(max-width:800px){.period-page{padding:14px}.period-page .field label{font-size:12px}.period-page .status-line{font-size:12px}.period-record{padding:12px 0}.period-record .btn{font-size:12px;min-height:38px}}

/* Pocket calendar: seven equal columns at even the narrowest phone width. */
.period-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:12px 0}
.period-calendar small{text-align:center;color:#8b8576;padding:5px 0}
.period-calendar .period-day{font:inherit;font-size:13px;min-width:0;min-height:36px;padding:6px 0;border:1px solid transparent;border-radius:6px;background:transparent;color:#514c40}
.period-day.actual{background:#c8887e;color:#fff}.period-day.predicted{background:#f0dfd7;border:1px dashed #bc968c}.period-day.today{outline:1px solid #826d51;outline-offset:1px}.period-day:disabled{opacity:.7}
.period-prediction{font-size:12px;line-height:1.8;background:#e8eadb;padding:12px;border-radius:4px}.period-month{margin-top:14px}.period-month b{text-align:center;font-size:14px}
.period-import{margin:16px 0;padding:12px 0;border-block:1px dashed #d2c9b7}.period-import summary{cursor:pointer;font-size:14px}.period-import textarea{width:100%;box-sizing:border-box;font-size:13px;margin:8px 0}.period-import label{font-size:12px}

.reminder-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.reminder-tab{border:0;border-radius:4px;background:transparent;color:#827c6d;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer}.reminder-tab[aria-pressed=true]{background:#e5e8d5;color:#48523d}
.reminder-item{border-bottom:1px dashed #d8ceba;padding:13px 0}.reminder-item summary{display:block;position:relative;list-style:none;cursor:pointer;padding:0 26px 0 0}.reminder-item summary::-webkit-details-marker{display:none}.reminder-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;line-height:1.5;margin-bottom:6px}.reminder-meta time{font-weight:600;color:#745b47}.reminder-kind{color:#8b8576;font-size:11px}.reminder-late{font-size:10px;color:#a36c50}.reminder-preview{font-size:13px;line-height:1.7;color:#514b3e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}.reminder-item[open] .reminder-preview{display:block;-webkit-line-clamp:unset}.reminder-expand{position:absolute;right:0;top:2px;font-size:10px;color:#978b77;writing-mode:vertical-rl}.reminder-item[open] .reminder-expand{visibility:hidden}.reminder-detail{font-size:11px;color:#8b8576;margin-top:10px}.reminder-more{margin-top:14px}.reminder-item summary:focus-visible{outline:2px solid #a77c60;outline-offset:4px}

.period-input-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:end;margin:12px 0;padding:8px 0}.period-input-row label{min-width:0;font-size:12px}.period-input-row input{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:5px;padding:8px 4px;font-size:13px}.period-input-row.invalid{outline:1px solid #ba6452;outline-offset:4px}.period-error{display:block;width:100%;text-align:left;border:0;border-left:3px solid #b7634b;background:#f5e7dd;color:#853f30;font:inherit;font-size:12px;line-height:1.7;padding:10px;margin:10px 0;cursor:pointer}.period-import [aria-pressed=true]{border-color:#b7634b;color:#914d35}.period-import #periodImportSave{margin-top:12px}

/* 模型分工 · 供应商路由卡片 */
.provider-route{border:1px solid var(--line);border-radius:4px;padding:18px;margin:16px 0;background:#fffdf4}
.route-ava{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px;border-radius:50%;background:var(--pink-soft);color:#7c5a3e;font-weight:700;font-size:17px;flex:0 0 38px}
.route-base{margin:4px 0 0;color:var(--muted)}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 4px}
.pill{min-height:34px;padding:5px 14px;border:1px solid var(--line);border-radius:999px;background:#fffbf0;font-size:12.5px}
.pill.on{background:var(--blue);border-color:var(--blue);color:#fff}
.chips-route{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.chips-route .chip{min-height:36px;padding:5px 13px;border:1px dashed var(--line);border-radius:4px;background:#fffbf0;font-size:13px;display:inline-flex;align-items:center;gap:7px}
.chips-route .chip.on{border-style:solid;border-color:var(--blue-d);color:#516847;background:#dfe6d1;font-weight:600}
.chip-act{min-height:0!important;padding:1px 7px;border:1px solid currentColor;border-radius:999px;background:none;font-size:11px;line-height:1.6}
.swap-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:11px;padding:11px;background:#f6f1e0;border:1px dashed var(--line)}
.qq-group-controls{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.qq-group-controls h3{font-size:19px}.qq-group-controls>.muted{margin:8px 0}
#qqGroupSwitches{max-height:420px;overflow-y:auto;margin:10px 0}
.qq-main .qq-group-controls .switch-row{padding:12px;margin-top:8px;border:1px solid var(--line);background:#f8f5ea;font-size:14px}
.qq-group-copy{min-width:0;overflow-wrap:anywhere}.qq-group-copy b,.qq-group-copy small{display:block}
.qq-group-copy b{font-weight:500}.qq-group-copy small{font-size:12px;color:var(--muted);margin-top:3px}
.qq-group-controls input:disabled{opacity:.5;cursor:wait}.qq-group-add{margin-top:12px}
.qq-group-add input{width:120px;min-width:0}
