:root{--paper:#faf8f4;--surface:#fff;--ink:#282d2a;--muted:#7a7c72;--line:#e8e7df;--soft:#f1f2ec;--accent:#ac5140;--accent-dark:#8d3f31;--accent-pale:#f8eee8;--green:#586b50;--radius:18px;font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;font-size:14px;line-height:1.65}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h2{font-size:18px;font-weight:650;letter-spacing:.01em}h3{font-size:16px}small{font-size:12px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ac514070;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #ac514040;border-color:var(--accent)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:12px;z-index:99;padding:12px 18px;background:var(--ink);color:#fff}.skip-link:focus{top:12px}
.sidebar{width:204px;position:fixed;inset:0 auto 0 0;padding:32px 20px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#f5f4ee;z-index:20}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 39px}.brand-symbol{width:45px;height:45px;display:grid;place-items:center;background:var(--ink);color:var(--paper);font-family:"STSong","SimSun",serif;font-size:27px;border-radius:13px 13px 4px 13px;flex-shrink:0}.brand strong{font-family:"STSong","SimSun",serif;display:block;font-size:25px;letter-spacing:3px;line-height:1.35}.brand small{color:var(--muted);font-size:11px}.main-nav{display:grid;gap:8px}.nav-item{min-height:49px;display:flex;align-items:center;gap:12px;padding:11px 16px;text-align:left;border-radius:10px;color:#6c7269;font-weight:500}.nav-item>span:first-child{font-size:22px;width:22px;font-weight:400;line-height:1}.nav-item:hover{background:#eeede5}.nav-item.active{background:#e6e7de;color:#313d2e}.sidebar-note{margin-top:auto;padding:40px 12px 35px}.sidebar-note p{font-family:"STSong","SimSun",serif;font-size:15px;line-height:1.9;margin:18px 0 14px}.sidebar-note small{color:#8d9085;font-size:10px;letter-spacing:.02em}.stitch-line{display:block;width:40px;border-top:2px dashed #b1b3a6}.session-button{display:flex;gap:9px;align-items:center;min-height:44px;border-top:1px solid var(--line);text-align:left;width:100%;font-size:12px;color:var(--muted);padding:16px 12px 0}.status-dot{height:7px;width:7px;flex-shrink:0;background:#b9b7ac;border-radius:50%}.status-dot.connected{background:#668261}
.main-shell{margin-left:204px;padding:0 42px 64px;max-width:1800px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:34px 0 28px;gap:18px}.page-heading p{font-size:12px;color:var(--muted);margin-bottom:4px}.page-heading h1{font-family:"STSong","SimSun",serif;font-size:29px;letter-spacing:.02em;font-weight:600;line-height:1.45}.quiet-button{background:#fff;border:1px solid var(--line);min-height:44px;border-radius:10px;padding:9px 16px;font-size:12px;white-space:nowrap}.quiet-button span{font-size:20px;line-height:0;vertical-align:-1px;margin-right:2px}.mobile-brand{display:none}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin-bottom:28px}.stage-tabs{display:flex;gap:24px}.stage-tab{min-height:55px;padding:0 0 15px;display:flex;align-items:center;gap:8px;color:var(--muted);position:relative;font-size:13px;white-space:nowrap}.stage-tab span{font-size:11px;border:1px solid var(--line);background:#f1f0e9;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;color:#93968a}.stage-tab.active{color:var(--ink);font-weight:600}.stage-tab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--ink)}.stage-tab.active span{background:var(--ink);border-color:var(--ink);color:white}.save-state{font-size:11px;color:#93968a;padding-bottom:15px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,330px);gap:30px;align-items:start}.work-column,.preview-column{min-width:0}.paper-panel{padding:25px 27px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:21px}.section-heading p{color:var(--muted);font-size:12px;margin-top:5px}.segmented{display:flex;padding:3px;border-radius:9px;background:var(--soft);flex-shrink:0}.segmented button{min-height:36px;min-width:51px;padding:5px 10px;font-size:12px;border-radius:7px;color:#777d6e}.segmented button.active{background:#fff;box-shadow:0 1px 4px #3033260c;color:var(--ink);font-weight:600}
.upload-zone{border:1px dashed #c6cbbb;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:217px;background:#f8f9f4;text-align:center;gap:4px;cursor:pointer;position:relative;overflow:hidden}.upload-zone:hover,.upload-zone.dragover{background:#eff2e7;border-color:var(--green)}.upload-zone input,.compact-upload input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}.upload-zone:focus-within,.compact-upload:focus-within{outline:3px solid #ac514070;outline-offset:2px}.upload-zone strong{font-size:14px;margin-top:13px;font-weight:550}.upload-zone>span:not(.upload-illustration){font-size:12px;color:var(--muted)}.upload-zone small{font-size:10px;color:#a0a393;margin-top:4px}.upload-illustration{width:65px;height:46px;position:relative;display:block}.illustration-card{position:absolute;width:43px;height:48px;border:1.5px solid #939d83;background:#f8f9f4;border-radius:5px}.illustration-card.back{transform:rotate(-14deg);left:3px;top:0;background:#e8eddf}.illustration-card.front{transform:rotate(8deg);left:21px;top:5px;display:grid;place-items:center;color:#819075;font-size:26px}.field-hint{font-size:11px;line-height:1.7;color:#96998c}.live-hint{margin-top:12px}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}.media-grid:empty{display:none}.media-tile{position:relative;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--soft);overflow:hidden;cursor:grab}.media-tile.dragging{opacity:.4}.media-tile img,.media-tile video,.media-placeholder{display:block;width:100%;aspect-ratio:3/4;object-fit:cover}.media-placeholder{display:grid;place-items:center;padding:8px;color:var(--muted);font-size:12px}.media-name{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;padding:5px 6px;color:var(--muted)}.media-remove{position:absolute;top:0;right:0;min-width:44px;min-height:44px;display:grid;place-items:center;color:white;font-size:21px;text-shadow:0 1px 4px #000}.media-remove:before{content:"";width:24px;height:24px;border-radius:50%;background:#252a2aa6;position:absolute;z-index:0}.media-remove span{position:relative}.media-badge{position:absolute;left:6px;top:7px;background:#fffdf4e6;border-radius:4px;padding:1px 5px;font-size:9px}.media-order{display:flex;justify-content:space-between;background:white;border-top:1px solid var(--line)}.media-order button{font-size:12px;min-height:44px;min-width:44px;flex:1}.media-order button:disabled{opacity:.2;cursor:default}.media-order button:hover{background:var(--soft)}
label{display:block;font-size:12px;font-weight:500;color:#535b4e}input,textarea,select{display:block;width:100%;min-width:0;padding:11px 12px;min-height:45px;border:1px solid #dedfd5;border-radius:8px;background:#fff;color:var(--ink);margin-top:7px;font-size:13px;transition:border-color .15s}textarea{resize:vertical;line-height:1.9}input::placeholder,textarea::placeholder{color:#a3a698;font-size:12px}select{appearance:auto;padding-right:25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}.optional{font-weight:400;color:#9a9d92;margin-left:5px;font-size:10px}.full-field{margin-top:20px}.field-details{margin-top:17px}.field-details summary{font-size:12px;color:var(--muted);min-height:44px;cursor:pointer;padding:10px 0}.field-details textarea{margin-top:0}.benchmark-panel summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:44px;gap:14px;list-style:none}.benchmark-panel summary::-webkit-details-marker{display:none}.benchmark-panel summary strong{font-size:14px;font-weight:600;display:block}.benchmark-panel summary small{font-size:11px;color:var(--muted);display:block;margin-top:4px}.plus-indicator{font-size:23px;font-weight:300;color:#878d7a}.benchmark-panel details[open] .plus-indicator{transform:rotate(45deg)}.details-content{display:grid;gap:16px;margin-top:20px}.compact-upload{border:1px dashed #cbd0bf;border-radius:8px;padding:11px;text-align:center;background:#f8f9f5;cursor:pointer;font-size:12px;position:relative;min-height:46px}.primary-button,.secondary-button{min-height:45px;border-radius:9px;padding:11px 18px;font-size:12px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:normal}.primary-button{background:var(--accent);color:#fff}.primary-button:hover{background:var(--accent-dark)}.secondary-button{background:white;border:1px solid #dcded3}.secondary-button:hover{background:var(--soft)}.text-button{color:var(--muted);font-size:11px;min-height:44px;padding:9px 5px}.text-button:hover{color:var(--accent)}.compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 12px}.compose-actions .primary-button{min-width:215px;font-size:13px;min-height:48px}.compose-actions .primary-button span{font-size:22px;line-height:1}.pill{display:inline-block;font-size:10px;border-radius:20px;padding:3px 9px;background:var(--soft);color:var(--green)}.field-count{float:right;font-size:10px;color:var(--muted);font-weight:400}.note-body-input{line-height:2;min-height:290px}.editor-actions{display:flex;gap:10px;margin-top:22px}.copy-parts{display:flex;gap:21px;justify-content:center}.title-options{display:grid;gap:8px}.title-option{border:1px solid var(--line);text-align:left;min-height:48px;border-radius:8px;padding:10px 14px;display:flex;gap:12px;align-items:baseline;font-size:13px}.title-option span{font-size:10px;color:var(--muted)}.title-option.selected{border-color:#bc846f;background:#fcf5f0}.review-action{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 8px 20px}.review-action strong{font-size:13px}.review-action p{font-size:11px;color:var(--muted);margin-top:4px}
.preview-column{position:sticky;top:24px}.preview-header{display:flex;justify-content:space-between;align-items:center;margin:-6px 0 10px}.preview-header h2{font-size:13px}.preview-header .text-button{font-size:10px}.note-preview{border:1px solid #e0e2d8;border-radius:17px;overflow:hidden;background:white;box-shadow:0 7px 24px #38402b05}.preview-cover{aspect-ratio:3/4;background:#eeefe7;position:relative;overflow:hidden}.preview-cover img,.preview-cover video{width:100%;height:100%;object-fit:contain;display:block}.cover-placeholder{height:100%;display:flex;flex-direction:column;justify-content:center;padding:34px;position:relative;overflow:hidden}.cover-placeholder>span{font-family:"STSong","SimSun",serif;font-size:25px;line-height:1.7;z-index:1}.cover-placeholder small{font-size:10px;color:#8a8f7e;margin-top:21px;z-index:1}.fabric-lines{position:absolute;width:140%;height:130%;top:0;left:-50px;transform:rotate(-18deg);background:repeating-linear-gradient(90deg,transparent,transparent 7px,#83947508 7px,#83947508 8px);border:1px solid #82946e15;border-radius:48%;box-shadow:15px 8px 0 #d9dfcf40,40px 8px 0 #dce1d530}.note-content{padding:16px 18px}.preview-author{display:flex;align-items:center;gap:7px;font-size:10px;color:#686e61}.avatar{background:#eee9df;color:#686354;font-size:11px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center}.preview-label{margin-left:auto;font-size:9px;color:#a1a599}.note-content h3{font-size:14px;line-height:1.7;margin:13px 0 7px;overflow-wrap:anywhere}.note-content>p{font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.preview-tags{color:#6a807e;margin-top:9px}.preview-footer{display:flex;align-items:center;gap:12px;border-top:1px solid #f0f0e9;margin-top:17px;padding-top:11px;color:#79816d;font-size:19px}.preview-footer small{margin-left:auto;font-size:9px;color:#a0a394}.preview-dots{display:flex;gap:3px;justify-content:center;padding:2px;background:white;flex-wrap:wrap}.preview-dots button{min-width:28px;min-height:28px;padding:8px}.preview-dots button:after{content:"";display:block;width:5px;height:5px;border-radius:50%;background:#d5d9cd}.preview-dots button.active:after{background:var(--accent)}.preview-caption{display:flex;gap:10px;padding:21px 6px;color:#979b8c}.small-mark{font-size:21px;color:#8f9980}.preview-caption p{font-size:10px;line-height:1.9}
.job-progress{border:1px solid #d7dfc9;background:#f2f5ed;border-radius:12px;padding:20px;margin:8px 0 20px}.progress-top{display:flex;align-items:center;gap:10px;font-size:12px}.progress-top>span:last-child{margin-left:auto;color:var(--green);font-size:11px}.progress-track{height:3px;border-radius:2px;background:#dce1d3;margin-top:14px;overflow:hidden}.progress-track div{height:100%;width:0;background:#798768;transition:width .3s}.job-progress p{font-size:10px;color:#879276;margin-top:10px}.spinner{display:inline-block;width:14px;height:14px;border:1.5px solid #ccd5c1;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}.job-progress.failed{background:#fbf0ec;border-color:#e5c8bf}.spinner.paused{animation:none;border-color:#ac5140}.notice{padding:12px 16px;margin-bottom:20px;border-radius:9px;background:#f4ece2;border:1px solid #e9d5be;font-size:12px;color:#806546}.notice button{margin-left:10px;font-weight:600;text-decoration:underline;min-height:30px}.notice.error{background:#fbefea;border-color:#e8c6bc;color:#9d4836}.empty-state{text-align:center;padding:49px 28px}.empty-state p{font-size:12px;color:var(--muted);max-width:330px;margin:10px auto 20px;line-height:1.9}.empty-symbol{font-size:33px;color:#969e89;margin-bottom:13px}.diagnosis-summary{border-top:3px solid var(--green)}.diagnosis-summary p{font-size:13px;line-height:1.95;margin-top:12px;white-space:pre-wrap}.diagnosis-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.diagnosis-list{margin:12px 0 0;padding-left:20px;display:grid;gap:9px;font-size:12px;line-height:1.9}.diagnosis-section-label{margin:19px 0 8px;font-size:12px;font-weight:650;color:var(--green)}.issue{padding:18px 0;border-top:1px solid var(--line)}.issue:first-child{border-top:0;padding-top:0}.issue-top{display:flex;gap:9px;align-items:center;font-size:12px}.severity{font-size:10px;padding:2px 7px;border-radius:4px;background:#f3eee3;color:#8a7953;flex-shrink:0}.severity.high{background:#f8e8e0;color:#a8553e}.issue p{font-size:12px;color:var(--muted);margin:8px 0;white-space:pre-wrap}.issue .suggestion{color:var(--ink);background:#f6f7f2;padding:10px 12px;border-radius:7px}.fact-group{border-bottom:1px solid var(--line);padding:13px 0}.fact-group:last-child{border-bottom:0}.fact-group h3{font-size:12px}.fact-group.unknown h3{color:#a56e48}.skill-trace{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.skill-chip{font-size:10px;background:#f1f3eb;border:1px solid #e1e5d6;border-radius:6px;padding:5px 8px;color:#61734f}.limits-note{font-size:11px;color:var(--muted);padding-top:13px;line-height:1.9}.stale-notice{padding:12px 14px;background:var(--accent-pale);border-radius:8px;font-size:12px;margin-bottom:16px;color:#8d5746}
.traffic-row{padding:12px 0;border-bottom:1px solid var(--line)}.traffic-row:last-child{border-bottom:0}.traffic-row>strong{font-size:12px;color:var(--green)}.traffic-row>p{font-size:12px;line-height:1.9;margin-top:5px;color:#717969;white-space:pre-wrap}.skill-checks{margin-top:3px}
.view-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 24px}.view-intro p,.muted{font-size:12px;color:var(--muted)}.drafts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:22px}.draft-card{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;min-width:0}.draft-open{display:block;width:100%;padding:0;text-align:left}.draft-cover{aspect-ratio:4/3;background:#edf0e5;display:flex;align-items:center;justify-content:center;color:#8a967a;font-family:"STSong","SimSun",serif;font-size:27px}.draft-cover img{width:100%;height:100%;object-fit:cover}.draft-info{padding:15px 16px 6px}.draft-info h3{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.draft-meta{padding:0 16px 10px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px}.draft-meta button{min-height:44px;min-width:44px;color:#8f9187;font-size:11px}.knowledge-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}.knowledge-layout .muted{margin-top:8px}.knowledge-card{padding:23px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:15px}.knowledge-card h3{font-size:15px}.knowledge-card>p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:12px 0;color:#74796a;max-height:240px;overflow:auto}.knowledge-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.usage-panel{max-width:850px}.usage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:26px 0 30px}.usage-stat{padding:22px;background:var(--soft);border-radius:10px}.usage-stat small{display:block;color:var(--muted);font-size:11px}.usage-stat strong{display:block;font-size:29px;font-weight:500;margin-top:7px;overflow-wrap:anywhere}.usage-stat p{font-size:11px;color:var(--muted)}.loading-state{padding:40px;color:var(--muted);font-size:13px}
dialog{border:1px solid var(--line);border-radius:20px;padding:29px;color:var(--ink);max-width:calc(100vw - 32px);box-shadow:0 24px 80px #171e1a30}dialog::backdrop{background:#26312666;backdrop-filter:blur(5px)}.login-dialog{width:400px}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.icon-button{display:grid;place-items:center;font-size:25px;min-width:44px;min-height:44px;border-radius:50%;color:var(--muted)}.icon-button:hover{background:var(--soft)}.login-dialog h2{font-size:21px;margin-top:10px}.login-dialog p{font-size:12px;color:var(--muted);margin:10px 0 23px}.login-dialog .primary-button{width:100%;margin-top:20px}.login-dialog small{display:block;color:#939889;font-size:10px;margin-top:14px;text-align:center}.login-dialog .inline-error{color:#a64430;font-size:12px;margin:10px 0 0}.confirm-dialog{width:390px}.confirm-dialog p{font-size:13px;color:var(--muted);margin:13px 0 20px}.confirm-dialog .editor-actions{justify-content:flex-end}.preview-dialog{width:420px;padding:15px;max-height:92dvh;overflow:auto}.preview-dialog .dialog-top{margin-bottom:10px;padding-left:10px;font-size:13px}.preview-dialog .note-preview{box-shadow:none}.preview-dialog .note-content>p{font-size:13px}.preview-dialog .note-content h3{font-size:17px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:100;background:#30392e;color:#fff;padding:13px 22px;border-radius:11px;font-size:12px;max-width:calc(100vw - 30px);box-shadow:0 7px 24px #28312630;white-space:pre-wrap;overflow-wrap:anywhere}.bottom-nav{display:none}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.main-shell{padding-left:58px;padding-right:58px}.workspace-grid{grid-template-columns:minmax(0,770px) minmax(280px,360px);gap:45px}}
@media(max-width:1200px){.sidebar{width:174px;padding:30px 12px 20px}.brand{gap:9px;padding-left:8px}.brand strong{font-size:23px}.main-shell{margin-left:174px;padding:0 26px 50px}.workspace-grid{gap:22px;grid-template-columns:minmax(0,1fr) 280px}.paper-panel{padding:22px}.stage-tabs{gap:18px}.save-state{display:none}.section-heading h2{font-size:16px}.compose-actions{flex-direction:column;align-items:stretch}.compose-actions .text-button{min-height:35px}.cover-placeholder{padding:26px}.cover-placeholder>span{font-size:22px}}
@media(max-width:960px){.workspace-grid{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.sidebar{width:150px}.brand-symbol{width:36px;height:39px;font-size:23px}.brand strong{font-size:20px}.brand small{font-size:9px}.main-shell{margin-left:150px;padding:0 20px 50px}.nav-item{padding:10px 12px;font-size:12px;gap:8px}.paper-panel{padding:20px}.section-heading{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-heading h1{font-size:25px}.stage-tabs{gap:20px}.preview-cover{aspect-ratio:3/4}.knowledge-layout{grid-template-columns:1fr}.sidebar-note{padding-left:8px;padding-right:4px}.sidebar-note p{font-size:13px}.sidebar-note small{font-size:8px}.editor-actions{flex-wrap:wrap}.review-action{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.sidebar{display:none}.main-shell{margin:0;padding:0 20px 100px}.topbar{padding:22px 0 21px;flex-wrap:wrap;gap:6px}.mobile-brand{display:block;font-family:"STSong","SimSun",serif;font-size:24px;letter-spacing:2px;width:100%;color:#3c4934;margin-bottom:15px}.page-heading p{font-size:10px}.page-heading h1{font-size:25px}.quiet-button{font-size:11px;padding:9px 12px;min-height:44px}.workspace-toolbar{margin-bottom:20px}.stage-tabs{justify-content:space-between;width:100%;gap:12px}.stage-tab{font-size:12px;min-height:52px;padding-bottom:13px;gap:7px}.stage-tab span{width:22px;height:22px}.workspace-grid{grid-template-columns:minmax(0,1fr)}.preview-column{position:static;max-width:420px;width:100%;margin:12px auto 0}.preview-header h2{font-size:14px}.preview-cover{max-height:none}.preview-caption{padding-bottom:5px}.paper-panel{border-radius:15px;padding:23px;margin-bottom:16px}.section-heading{flex-wrap:nowrap;gap:10px;margin-bottom:19px}.section-heading h2{font-size:17px}.section-heading p{font-size:11px}.form-grid{grid-template-columns:1fr 1fr;gap:16px 12px}.segmented button{min-height:38px;min-width:43px;padding:6px 8px;font-size:11px}.upload-zone{min-height:200px}.media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.compose-actions{padding:4px 0 10px;gap:3px}.compose-actions .primary-button{width:100%;min-height:50px}.compose-actions .text-button{min-height:44px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(64px + env(safe-area-inset-bottom));padding:3px 10px env(safe-area-inset-bottom);z-index:30;background:#fcfcf9f5;backdrop-filter:blur(15px);border-top:1px solid #e2e5d9;justify-content:space-around}.bottom-nav button{display:flex;flex-direction:column;gap:0;justify-content:center;align-items:center;min-width:64px;min-height:54px;font-size:10px;color:#909687}.bottom-nav button>span{font-size:23px;line-height:1.3;margin-bottom:2px}.bottom-nav button.active{color:#a64c39}.toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:12px;min-width:190px;text-align:center}.note-content>p{font-size:12px}.note-content h3{font-size:16px}.cover-placeholder>span{font-size:30px}.cover-placeholder{padding:38px}.review-action{flex-direction:row;align-items:center;padding:2px 4px 18px}.review-action p{max-width:175px}.review-action .secondary-button{padding:10px 14px;font-size:11px}.drafts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.draft-info{padding:12px 12px 5px}.draft-info h3{font-size:12px}.draft-meta{padding:0 12px 7px;flex-wrap:wrap;gap:0}.draft-meta button{margin-left:auto}.view-intro{margin:0 0 22px}.view-intro p{font-size:11px;max-width:210px}.usage-grid{gap:10px}.usage-stat{padding:16px 12px}.usage-stat strong{font-size:23px}.usage-stat small{font-size:10px}.knowledge-layout{gap:5px}.editor-actions>.primary-button{flex:1}.media-remove{min-width:44px;min-height:44px}.preview-dots button{min-width:34px;min-height:34px}.job-progress{scroll-margin-top:20px}.notice{font-size:11px}}
@media(max-width:420px){.main-shell{padding-left:15px;padding-right:15px}.paper-panel{padding:20px 17px}.page-heading h1{font-size:23px}.quiet-button{font-size:10px;padding:8px 10px}.stage-tab{font-size:11px;gap:5px}.stage-tabs{gap:8px}.section-heading h2{font-size:16px}.section-heading p{font-size:10px;max-width:180px}.form-grid{grid-template-columns:1fr}.upload-zone{min-height:191px}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.review-action{align-items:flex-start;flex-direction:column}.review-action p{max-width:none}.usage-grid{grid-template-columns:1fr}.usage-stat{display:grid;grid-template-columns:1fr 1fr;align-items:center}.usage-stat strong{margin:0;text-align:right;font-size:25px}.usage-stat p{grid-column:1/-1}.note-content{padding:15px 17px}.copy-parts{gap:14px}.editor-actions{gap:8px}.primary-button,.secondary-button{padding:11px 14px}.benchmark-panel summary small{font-size:10px}.login-dialog{padding:24px}.knowledge-card{padding:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* The working surface stays quiet; material and words carry the hierarchy. */
:root{--paper:#fbfaf7;--line:#ecece5;--surface:#fff;font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif}
.nav-icon{display:block;flex-shrink:0;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.nav-item>span:first-child{width:auto;font-size:inherit;line-height:inherit}
.sidebar{background:#f5f5ef;border-right-color:#eeeee5}
.brand-symbol{border-radius:10px}.sidebar-note .stitch-line{border-top:1px solid #c7cabe;width:24px}
.page-heading h1{font-size:31px;letter-spacing:.025em;line-height:1.55}
.topbar{padding-top:39px;padding-bottom:33px}
.paper-panel{border-color:transparent;padding:29px 30px;margin-bottom:20px}
.section-heading{margin-bottom:24px}.section-heading p{margin-top:7px}
.section-heading h2{font-size:18px;letter-spacing:0;font-weight:600}
.upload-zone{background:#f8f9f5;border-color:#d4d9ca;min-height:208px;gap:5px}
.upload-icon{width:39px;height:39px;fill:none;stroke:#8b977f;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.upload-zone strong{font-weight:550;margin-top:14px}
.field-hint{color:#858b7e;line-height:1.8}
.form-grid{gap:22px 18px}input,textarea,select{border-color:#e1e4d9;background:#fff;border-radius:7px}
.full-field{margin-top:24px}.field-details summary{color:#7e8674}
.primary-button{font-weight:550;letter-spacing:.01em;border-radius:8px}
.compose-actions{padding-top:4px}.compose-actions .primary-button{min-height:49px}
.benchmark-panel summary small{color:#8a9182}
.note-preview{box-shadow:none;border-color:#e5e8de;border-radius:13px}
.preview-cover.is-empty{aspect-ratio:auto;height:192px;background:#f1f3eb}
.cover-placeholder{padding:28px;align-items:center;text-align:center}
.cover-placeholder>span{font-family:inherit;font-size:14px;line-height:1.7;color:#7b856f;font-weight:400}
.cover-placeholder small{font-size:11px;margin-top:8px;color:#929b86}
.preview-column.is-empty .note-content h3{color:#8e9585;font-weight:400}
.preview-column.is-empty .note-content>p{color:#a0a695}
.preview-caption{padding:16px 3px}.preview-caption p{font-size:11px}
.traffic-row{padding:15px 0}.traffic-row>strong{font-weight:550}
.skill-chip{background:#f5f6f1;border-color:transparent}.diagnosis-summary{border-top:2px solid #98a18d}
.stage-tab{font-size:13px}.bottom-nav .nav-icon{margin-bottom:5px}
@media(max-width:1200px){.paper-panel{padding:25px}.page-heading h1{font-size:28px}}
@media(max-width:960px){.paper-panel{padding:23px}.form-grid{gap:18px}.section-heading h2{font-size:16px}}
@media(max-width:760px){
  .main-shell{padding-left:19px;padding-right:19px}.topbar{padding-top:23px;padding-bottom:25px}
  .mobile-brand{font-size:23px;letter-spacing:2px;margin-bottom:19px}
  .page-heading h1{font-size:27px;line-height:1.5;letter-spacing:.01em}
  .page-heading p{font-size:11px;margin-bottom:5px}
  .quiet-button{font-size:11px;border-color:#e7e9df;padding:10px 13px}
  .workspace-toolbar{margin-bottom:23px}.stage-tab{min-height:55px;font-size:12px}
  .paper-panel{padding:25px 23px;border-radius:14px;margin-bottom:20px}
  .section-heading{margin-bottom:22px}.section-heading h2{font-size:18px}.section-heading p{font-size:12px;line-height:1.75}
  label{font-size:13px;font-weight:500}input,textarea,select{font-size:16px;line-height:1.6;padding:12px 13px;min-height:48px;margin-top:9px}
  input::placeholder,textarea::placeholder{font-size:12px;line-height:1.8}
  .form-grid{gap:23px 15px}.full-field{margin-top:24px}.note-body-input{font-size:15px;line-height:2}
  .segmented button{min-height:40px;min-width:44px;font-size:12px}
  .upload-zone{min-height:206px}.upload-zone strong{font-size:15px}.upload-zone>span:not(.upload-illustration){font-size:12px}
  .field-hint{font-size:11px;line-height:1.9}.live-hint{margin-top:15px}
  .preview-column.is-empty{display:none}.preview-cover.is-empty{height:140px}
  .compose-actions .primary-button{min-height:52px;font-size:14px}.compose-actions .text-button{font-size:12px;min-height:48px}
  .bottom-nav{height:calc(67px + env(safe-area-inset-bottom));background:#fcfcf9f7;border-top-color:#e8eade}.bottom-nav button{font-size:10px;font-weight:500;min-height:59px}
  .bottom-nav .nav-icon{width:22px;height:22px;stroke-width:1.5}
  .text-button{font-size:12px}.preview-header .text-button{font-size:11px}
  .diagnosis-summary p{font-size:14px;line-height:1.95}.diagnosis-list,.issue p,.traffic-row>p{font-size:13px;line-height:1.95}
  .traffic-row>strong,.diagnosis-section-label{font-size:13px}.skill-chip{font-size:11px}
}
@media(max-width:420px){
  .main-shell{padding-left:15px;padding-right:15px}.paper-panel{padding:24px 19px}
  .page-heading h1{font-size:24px}.quiet-button{padding:9px 11px;font-size:10px}
  .section-heading h2{font-size:17px}.section-heading p{font-size:11px;max-width:181px}
  .stage-tab{font-size:11px}.segmented button{min-width:42px;font-size:11px}
  .form-grid{grid-template-columns:1fr;gap:23px}.usage-stat{padding:18px}
  .preview-cover.is-empty{height:125px}
}

/* Three simple actions first; optional details stay out of the way. */
.simple-brief-panel .section-heading{margin-bottom:13px}
.simple-brief-field textarea{margin-top:0;min-height:118px;line-height:1.9}
#briefForm>.compose-actions{padding:0 0 18px;margin-top:-2px}
.advanced-panel,.advanced-panel+.benchmark-panel{padding-top:14px;padding-bottom:14px;margin-bottom:12px;background:transparent;border-top:1px solid var(--line);border-radius:0}
.advanced-panel summary strong,.advanced-panel+.benchmark-panel summary strong{font-weight:500;font-size:13px}
.advanced-panel+.benchmark-panel summary small{display:none}
.advanced-panel .details-content{padding-bottom:10px}
@media(max-width:760px){
  #panel-compose .material-panel{padding-bottom:17px;margin-bottom:15px}
  #panel-compose .material-panel .section-heading{margin-bottom:15px}
  #panel-compose .upload-zone{min-height:150px;gap:3px}
  #panel-compose .upload-icon{width:28px;height:28px}
  #panel-compose .upload-zone strong{margin-top:8px;font-size:14px}
  #panel-compose .upload-zone>span{font-size:11px}
  #panel-compose .upload-zone small{font-size:10px;margin-top:2px}
  #panel-compose .live-hint{font-size:10px;line-height:1.7;margin-top:10px}
  #panel-compose .simple-brief-panel{padding-top:20px;padding-bottom:20px;margin-bottom:14px}
  #panel-compose .simple-brief-panel h2{font-size:17px}
  .simple-brief-field textarea{min-height:111px;font-size:16px}
  .simple-brief-field textarea::placeholder{font-size:13px;line-height:1.9}
  #briefForm>.compose-actions{padding-bottom:11px;margin-top:0}
  .advanced-panel,.advanced-panel+.benchmark-panel{padding:9px 4px;margin-bottom:0}
}

.reference-workspace{gap:18px}.reference-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px}.reference-toggle strong{display:block;font-size:13px;font-weight:550}.reference-toggle small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:4px}.reference-toggle input{appearance:none;flex-shrink:0;width:42px;min-height:26px;height:26px;margin:0;padding:3px;border:0;border-radius:18px;background:#d8ddd1;cursor:pointer;transition:background .15s}.reference-toggle input:before{content:"";display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #37452a12;transition:transform .15s}.reference-toggle input:checked{background:var(--green)}.reference-toggle input:checked:before{transform:translateX(16px)}
.reference-source-tabs{display:flex;gap:7px;padding:4px;background:#eef0e8;border-radius:9px;margin:20px 0}.reference-source-tabs button{flex:1;min-height:42px;font-size:12px;color:#7a8270;border-radius:6px;padding:8px}.reference-source-tabs button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #313a2408}
.reference-source-panel{display:grid;gap:12px}.reference-guide{font-size:12px;line-height:1.9;color:var(--muted)}.reference-parse-button{justify-self:start;min-width:112px}.reference-source-panel .field-hint{font-size:10px;margin-top:-6px}
.reference-status{background:#eef3e7;border-radius:8px;padding:13px 15px;margin-top:16px;font-size:12px;color:#586d49;line-height:1.8}.reference-status.error{background:#f8eee7;color:#8e5e44}.reference-status .text-button{display:block;padding-left:0;color:inherit;text-decoration:underline;text-underline-offset:3px}
.reference-result{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.reference-result-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px}.reference-result-heading>span{font-size:10px;color:#929987}.reference-source-media{margin-top:12px}.reference-preview-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.reference-media-preview{margin:0;overflow:hidden;background:#eef1e7;border-radius:8px}.reference-media-preview img,.reference-media-preview video{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#e9ede2}.reference-media-preview figcaption{font-size:10px;color:#7f8873;padding:5px 8px;background:#f4f6ed}.source-media-link{display:inline-block;font-size:11px;color:#688068;border-bottom:1px solid #b4c3a4;margin:5px 12px 5px 0;min-height:30px;padding-top:5px}
.reference-missing{font-size:11px;line-height:1.9;color:#956b49;background:#f8f2e8;padding:12px 14px;margin:13px 0;border-radius:7px}.reference-limitations{padding-left:17px;margin:6px 0 0;display:grid;gap:4px}.reference-text-fields{display:grid;gap:17px;margin-top:23px}.reference-text-fields .media-grid{margin-top:0}
.reference-level-fieldset{border:0;border-top:1px solid var(--line);padding:22px 0 0;margin:24px 0 0;min-width:0}.reference-level-fieldset legend{font-size:13px;font-weight:550;padding:0 8px 0 0}.reference-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.reference-levels button{border:1px solid #dfe4d6;background:#fff;border-radius:9px;padding:10px 3px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#7c8772}.reference-levels strong{font-size:21px;font-weight:500;line-height:1.3}.reference-levels span{font-size:10px;margin-top:4px}.reference-levels button.active{border-color:#99a98a;background:#eef3e6;color:#4a633e}.reference-level-description{font-size:12px;line-height:1.9;color:#5c6751;margin-top:13px}.reference-level-fieldset>small{display:block;font-size:10px;color:#919987;margin-top:7px}
.reproduction-card{border:1px solid #dce4d1;background:#f7f9f2}.reproduction-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.reproduction-heading h2{font-size:15px}.reproduction-status{font-size:10px;white-space:nowrap;border-radius:5px;padding:3px 7px;background:#e9eedf;color:#677956}.reproduction-status.needs_revision,.reproduction-status.outdated,.reproduction-status.unverifiable{background:#f4eadd;color:#9c704b}.reproduction-copy{font-size:12px;line-height:1.9;margin:13px 0 7px}.reproduction-boundary{font-size:10px;color:#869478}.reproduction-attention{font-size:11px;line-height:1.8;color:#92734c;margin-top:11px}.reproduction-checks{margin-top:17px}.reproduction-check{border-top:1px solid #e0e7d6;padding:15px 0}.reproduction-check-heading{display:flex;align-items:center;justify-content:space-between;gap:13px}.reproduction-check-heading strong{font-size:12px;font-weight:550}.check-badge{font-size:10px;white-space:nowrap;padding:2px 6px;background:#e8eddf;border-radius:4px;color:#63814a}.check-badge.failed{color:#a36443;background:#f6e8dd}.check-badge.unknown{color:#928164;background:#f0ecdf}.reproduction-check>p{font-size:12px;line-height:1.9;margin-top:7px;color:#78856a}.reproduction-check>small{display:block;font-size:10px;margin-top:5px;color:#8f9984;overflow-wrap:anywhere}
@media(max-width:760px){.reference-workspace{padding-bottom:15px}.reference-source-tabs{margin:17px 0}.reference-source-tabs button{font-size:12px;min-height:44px}.reference-toggle{padding:2px 0}.reference-toggle input{min-height:26px;font-size:14px}.reference-source-panel input,.reference-source-panel textarea,.reference-text-fields input,.reference-text-fields textarea{font-size:16px}.reference-text-fields{gap:19px}.reference-levels{gap:7px}.reference-levels button{min-height:74px}.reference-level-description{font-size:12px}.reference-result-heading{align-items:flex-start}.reference-preview-gallery{gap:8px}.reference-status{font-size:12px}.reproduction-heading{flex-wrap:wrap}.reproduction-heading h2{font-size:15px}.reproduction-copy,.reproduction-check>p{font-size:13px}.reproduction-check-heading strong{font-size:13px}.reference-parse-button{min-height:46px}}
