:root{--paper:#f5f4ef;--surface:#fffefa;--white:#fff;--ink:#252e2b;--muted:#77807a;--line:#dedfd7;--line-soft:#e9eae3;--green:#244c43;--green-deep:#173b32;--green-soft:#eaf0e8;--sand:#eae7dc;--amber:#91702c;--amber-bg:#f5efe0;--danger:#a44539;--shadow:0 6px 26px #25352b08;--radius:12px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--green);text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #789e89;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:650;line-height:1.35;letter-spacing:.025em}h2{font-size:17px;font-weight:650}h3{font-size:15px;font-weight:650}svg{width:20px;height:20px;display:block;flex:none}button svg{pointer-events:none}.skip-link{position:fixed;top:-100px;left:15px;z-index:100;background:white;padding:10px}.skip-link:focus{top:10px}.boot{height:100vh;display:grid;place-content:center;gap:14px;text-align:center}.brand-mark{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--green);color:#f9f7ed;font-family:serif;font-size:24px;font-weight:600}.boot .brand-mark{margin:auto}.shell{min-height:100vh;padding-left:86px}.rail{position:fixed;z-index:30;inset:0 auto 0 0;width:86px;background:#efeee8;border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;padding:27px 12px 20px;gap:30px}.brand{display:flex;align-items:center;flex-direction:column;gap:7px;color:var(--green);text-decoration:none;font-weight:650;font-size:12px}.rail nav{display:grid;gap:10px;width:100%}.nav-button{border:0;background:transparent;color:#858b83;border-radius:11px;padding:13px 5px 9px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;position:relative}.nav-button svg{width:21px;height:21px}.nav-button:hover{color:var(--green);background:#e5e8df}.nav-button.active{color:var(--green);background:#dfe7da;font-weight:650}.nav-button .dot{width:5px;height:5px;border-radius:10px;background:#a78a50;position:absolute;right:14px;top:11px}.rail-footer{margin-top:auto;display:grid;gap:13px;justify-items:center;color:var(--muted);font-size:10px;letter-spacing:.1em}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#d9ddcf;color:var(--green);font-weight:600;font-size:12px}.workspace{max-width:1580px;margin:auto;padding:30px 39px 32px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:20px}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.breadcrumb .divider{color:#c6cbc1}.top-actions{display:flex;align-items:center;gap:13px}.tag{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.5;border-radius:5px;padding:4px 8px;white-space:nowrap;background:#eaece5;color:#6a746a}.tag.status{background:#ecebe4}.tag.olive{background:var(--green-soft);color:var(--green)}.tag.amber{background:var(--amber-bg);color:var(--amber)}.tag.subtle{border:1px solid var(--line);background:transparent}.status-dot{width:5px;height:5px;background:#9c9f8d;border-radius:50%}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p{margin-top:8px;color:var(--muted);font-size:13px}.page-tools{display:flex;gap:9px;flex:none;align-items:center}.button{border:1px solid var(--line);border-radius:7px;padding:9px 14px;min-height:40px;background:var(--surface);color:#48564b;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;white-space:nowrap;line-height:1.5;font-weight:500;font-size:12px}.button:hover{background:#f0f2e9;border-color:#bfc6b8}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:var(--green-deep)}.button.ghost{background:transparent;border-color:transparent;padding-left:7px;padding-right:7px}.button.danger{color:var(--danger)}.button.small{min-height:34px;padding:6px 10px;font-size:11px}.button svg{width:16px;height:16px}.icon-button{border:0;background:transparent;color:var(--muted);padding:8px;border-radius:5px}.icon-button:hover{background:var(--sand);color:var(--ink)}.editor-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(350px,.92fr);gap:23px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:20px 23px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line-soft)}.section-title{display:flex;align-items:center;gap:10px}.section-num{font-size:10px;letter-spacing:.1em;color:#98a18d;font-weight:550;border:1px solid #dbe0d1;border-radius:4px;padding:2px 5px;line-height:1.4}.panel-head h2{font-size:14px}.panel-body{padding:21px 24px}.panel-footer{padding:15px 23px;border-top:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fafaf5}.field{display:grid;gap:7px;margin-bottom:18px}.field:last-child{margin-bottom:0}.field label,.field-label{font-size:11px;letter-spacing:.02em;font-weight:600;color:#697366;display:flex;justify-content:space-between;align-items:center}.optional{color:#9aa190;font-size:10px;font-weight:400}.field input,.field textarea,.field select,.search-input,.select{border:1px solid #dfe3d8;background:#fffefb;border-radius:7px;color:var(--ink);padding:10px 12px;width:100%;min-height:40px;font-size:13px;line-height:1.8}.field input::placeholder,.field textarea::placeholder{color:#a9ad9f}.field input:focus,.field textarea:focus,.field select:focus,.search-input:focus{border-color:#8ca18b;outline:none;box-shadow:0 0 0 3px #dce7d954}.field textarea{resize:vertical;min-height:105px}.field textarea.stem{min-height:135px}.field textarea.answer{min-height:92px;background:#fafbf5;font-size:12px}.field input.title-input{font-size:16px;font-weight:550;padding:10px 12px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-row .field{margin:0}.field select,.select{padding-right:26px;min-height:38px;line-height:1.4}.compact-select{appearance:none;border:1px solid var(--line);color:var(--green);background:var(--surface);border-radius:6px;padding:7px 26px 7px 10px;font-size:11px;max-width:185px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237e8b75' stroke-width='1.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center}.word-count{font-size:10px;color:#a0a797}.helper{font-size:11px;color:var(--muted);line-height:1.7}.editor-footer-actions{display:flex;gap:8px}.panel-stack{display:grid;gap:19px}.framework-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.framework-line strong{font-size:12px;font-weight:600}.framework-line span{font-size:10px;color:var(--muted)}.matrix{display:grid;grid-template-columns:82px repeat(3,minmax(0,1fr));grid-template-rows:26px repeat(3,65px);gap:6px;max-width:100%}.matrix-column{font-size:10px;color:#76826e;text-align:center;display:flex;justify-content:center;align-items:center}.matrix-row{font-size:11px;color:#7a8272;align-self:center;line-height:1.6;white-space:normal;padding-right:5px}.matrix-cell{border:1px solid #e2e5d9;border-radius:7px;background:#f7f8f1;color:#b5bdab;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;padding:5px}.matrix-cell:hover{background:#e9efe2;border-color:#a4b89b;color:var(--green)}.matrix-cell.selected{background:#315b4c;border-color:#315b4c;color:#f6faef;box-shadow:0 2px 5px #23442b11}.matrix-cell.reviewed{background:#436d59}.matrix-cell.preview-selection{outline:2px solid #8fa878;outline-offset:2px}.matrix-cell svg{width:21px;height:21px}.matrix-cell .cell-caption{font-size:9px}.matrix-cell .cell-count{font-size:17px;font-weight:500}.matrix-caption{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#919a85;margin-top:13px}.legend{display:flex;align-items:center;gap:5px}.legend-square{width:7px;height:7px;background:var(--green);border-radius:2px}.result-summary{margin-top:21px;padding-top:17px;border-top:1px solid var(--line-soft)}.result-label{font-size:13px;font-weight:650;line-height:1.7;color:var(--green);margin-bottom:8px}.result-description{font-size:12px;line-height:1.9;color:#727b6e}.result-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.result-top .result-label{margin:0}.evidence-list{display:grid;gap:16px}.evidence-item{display:flex;gap:10px}.evidence-marker{width:19px;height:19px;flex:none;display:grid;place-content:center;border:1px solid #e1e6d9;border-radius:50%;font-size:10px;color:#94a184;margin-top:1px}.evidence-item blockquote{margin:0;color:#495a44;font-size:12px;line-height:1.8}.evidence-item p{font-size:11px;color:var(--muted);margin-top:5px}.evidence-item mark{background:#ecf0e3;color:inherit;padding:1px 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.review-card{padding:20px 23px}.review-card .review-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.review-card .review-header p{font-size:11px;color:var(--muted);margin-top:4px}.review-form{border-top:1px solid var(--line-soft);margin-top:15px;padding-top:16px;display:grid;gap:12px}.review-form .field{margin:0}.review-form textarea{min-height:72px;font-size:12px}.review-history{border-top:1px solid var(--line-soft);margin-top:16px;padding-top:12px;font-size:11px;color:var(--muted)}.review-history strong{font-weight:550;color:#576d52}.processing{border-top:1px solid var(--line-soft);padding:13px 23px;color:var(--muted);font-size:10px}.processing summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}.processing summary::after{content:'＋';color:#8d9784}.processing[open] summary::after{content:'−'}.processing dl{display:grid;grid-template-columns:1fr 1fr;gap:8px 15px;padding:14px 0 1px;margin:0;font-size:11px}.processing dt{color:#8a937e}.processing dd{margin:0;color:#5f6e56;text-align:right;overflow-wrap:anywhere}.inline-notice{padding:12px 15px;border:1px solid #dedecb;background:#f3f3e9;border-radius:7px;color:#7e8267;font-size:11px;line-height:1.75;margin-bottom:20px;display:flex;gap:8px;align-items:flex-start}.inline-notice svg{width:16px;height:16px;margin-top:2px}.inline-notice.error{background:#fbefeb;border-color:#ead8d1;color:#94564b}.footer-note{margin-top:24px;display:flex;justify-content:space-between;gap:14px;color:#9b9f8f;font-size:10px}.footer-note a{color:#88937c;text-decoration:none}.empty-state{padding:44px 20px;text-align:center;display:grid;justify-items:center;gap:11px;color:var(--muted)}.empty-state svg{width:30px;height:30px;color:#b2bba7}.empty-state h3{color:#63725b;font-size:14px}.empty-state p{font-size:12px;max-width:320px;line-height:1.8}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:19px}.search-wrap{position:relative;flex:1;min-width:190px;max-width:420px}.search-wrap svg{position:absolute;left:12px;top:12px;width:16px;height:16px;color:#9ba58e}.search-input{padding-left:38px;background:var(--surface);font-size:12px;min-height:40px}.filter-row{display:flex;gap:7px;flex-wrap:wrap}.filter-chip{padding:6px 12px;border:1px solid var(--line);background:var(--surface);color:#818a74;border-radius:6px;font-size:11px;min-height:34px}.filter-chip.active{border-color:#5c7958;background:#e5ecdc;color:#3f6239}.table-header{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(200px,1.5fr) 100px 85px 35px;gap:17px;padding:13px 23px;background:#f4f5ec;border-bottom:1px solid var(--line);font-size:10px;color:#8c947e}.item-row{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(200px,1.5fr) 100px 85px 35px;gap:17px;align-items:center;padding:19px 23px;cursor:pointer;border-bottom:1px solid var(--line-soft);transition:background .1s}.item-row:last-child{border-bottom:0}.item-row:hover{background:#f7f9ef}.item-row h3{font-size:13px;font-weight:550;color:#45513e}.item-row .item-meta{font-size:10px;color:#a0a58f;margin-top:3px}.item-row .item-label{font-size:11px;color:#8b937c;line-height:1.7}.item-row .item-date{font-size:10px;color:#a1a58f}.item-row .arrow{color:#b4bba8}.stats-strip{display:flex;gap:0;margin-bottom:23px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.stat{padding:20px 27px;flex:1;border-right:1px solid var(--line-soft)}.stat:last-child{border-right:0}.stat p{font-size:10px;color:#949d84}.stat strong{display:block;font-size:24px;color:#55674b;font-weight:500;margin-top:3px;line-height:1.4}.stat small{font-size:10px;color:#a7ac9a;font-weight:400;margin-left:6px}.library-grid-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px}.library-grid-layout .table-header,.library-grid-layout .item-row{grid-template-columns:minmax(150px,1.5fr) minmax(150px,1.3fr) 86px 25px}.library-grid-layout .item-date{display:none}.filtered-cell{font-size:11px;color:#758669;margin:12px 0 18px;display:flex;align-items:center;gap:10px}.access-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:23px}.settings-list{display:grid;gap:0}.settings-row{padding:16px 0;border-bottom:1px solid var(--line-soft);display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.settings-row:first-child{padding-top:0}.settings-row:last-child{border-bottom:0;padding-bottom:0}.settings-row h3{font-size:12px;margin-bottom:4px}.settings-row p{font-size:11px;color:var(--muted);line-height:1.8;max-width:430px}.settings-row .tag{margin-top:2px}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.access-note{font-size:12px;color:#7c876f;line-height:1.9}.access-note p+p{margin-top:12px}.access-note ul{padding-left:19px;margin:12px 0 0}.access-note li{margin:6px 0}.usage-bar{height:6px;border-radius:6px;background:#e9eddf;margin:18px 0 8px;overflow:hidden}.usage-bar span{display:block;height:100%;background:#789368;width:0;max-width:100%}.usage-values{display:flex;justify-content:space-between;font-size:11px;color:#869577}.user-row{padding:13px 0;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;gap:12px}.user-row:last-child{border:0}.user-row .user-details{flex:1;min-width:0}.user-row strong{font-size:12px;font-weight:550}.user-row p{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.invite-output{border:1px solid var(--line);border-radius:7px;padding:13px;background:#f4f7eb;overflow-wrap:anywhere;font-size:11px}.invite-output code{display:block;margin:8px 0;font-family:ui-monospace,monospace;color:#4a5e3d}.error-text{font-size:12px;color:var(--danger)}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px}.auth-card{width:min(100%,420px);background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:33px}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px}.auth-brand h1{font-size:23px}.auth-brand p{font-size:10px;color:var(--muted);letter-spacing:.13em}.auth-card h2{font-size:17px;margin-bottom:7px}.auth-card>.helper{margin-bottom:23px}.auth-tabs{display:flex;gap:6px;margin-bottom:21px}.auth-tabs button{flex:1}.auth-card .button.primary{width:100%}.auth-note{margin-top:21px;font-size:10px;text-align:center;color:#919c81}.mobile-brand{display:none}.mobile-bottom{display:none}.toolbar-menu{position:relative}.toolbar-menu summary{list-style:none}.toolbar-menu summary::-webkit-details-marker{display:none}.menu-content{position:absolute;right:0;top:calc(100% + 6px);min-width:210px;padding:6px;z-index:22;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 30px #273a2420}.menu-content button{display:flex;align-items:center;gap:9px;text-align:left;background:transparent;border:0;border-radius:5px;width:100%;padding:10px 11px;font-size:12px;color:#647556}.menu-content button:hover{background:#edf1e4}.menu-content svg{width:16px;height:16px}.busy-spin{width:15px;height:15px;border:1.5px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;z-index:100;bottom:26px;left:50%;transform:translate(-50%,15px);max-width:calc(100vw - 30px);width:max-content;background:#294c3f;color:#f4f8ec;border:1px solid #486653;border-radius:9px;padding:11px 17px;font-size:12px;box-shadow:0 5px 22px #1b332627;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#794637;border-color:#a16b5a}.skeleton-panel{height:400px;background:#f0f0e7;border-radius:12px}.mobile-spacer{display:none}.reveal{animation:reveal .22s ease-out}@keyframes reveal{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}.inline-empty{font-size:11px;color:var(--muted);padding:8px 0}.text-link{border:0;background:transparent;padding:0;font-size:11px;color:var(--green);text-decoration:underline;text-underline-offset:3px}.card-kicker{font-size:10px;letter-spacing:.1em;color:#929c82;margin-bottom:8px}.review-notice{font-size:10px;color:#9d967a;margin-top:12px}.button-group{display:flex;gap:8px;align-items:center}.summary-number{font-size:11px;color:#9aa38c}.no-wrap{white-space:nowrap}
.deep-review-action{display:flex;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}.usage-note{margin-top:13px}
.editor-column{display:grid;gap:18px;align-content:start;min-width:0}.cell-code{position:absolute;left:7px;top:4px;font-size:10px;opacity:.8}.matrix-cell{padding-top:12px}.matrix-column{line-height:1.4}.import-steps{display:flex;gap:25px;margin:0 0 23px;color:#8b9480;font-size:12px;flex-wrap:wrap}.import-steps>span{display:flex;align-items:center;gap:8px}.import-steps b{width:22px;height:22px;border:1px solid #d5ddcb;border-radius:50%;font-size:11px;font-weight:500;display:grid;place-items:center}.import-steps .active{color:var(--green)}.import-steps .active b{border-color:#7f9878;background:#e9eee0}.import-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px;align-items:start}.import-layout>.panel{min-width:0}.import-empty{padding:58px 18px;display:grid;justify-items:center;text-align:center;gap:15px}.import-empty h3{font-size:17px;color:#4c6558;font-weight:500}.import-empty p{max-width:280px;font-size:12px;color:var(--muted);line-height:1.9}.upload-symbol{width:53px;height:62px;border:1px solid #bdc9b8;border-radius:7px;color:#607a60;font-size:23px;display:grid;place-items:center;margin-bottom:4px;background:#f2f5eb}.source-panel{transition:box-shadow .15s}.source-panel.drag-over{box-shadow:0 0 0 3px #7d9c75;background:#eff5e9}.source-strip{display:flex;overflow-x:auto;gap:10px;padding:0 0 13px;max-width:100%;scrollbar-width:thin}.source-thumb{background:#f5f6ef;border:1px solid #d8dfcf;border-radius:7px;padding:5px;display:flex;flex-direction:column;gap:5px;align-items:center;flex:none;width:78px;color:var(--muted);font-size:9px}.source-thumb.selected{border-color:#54775b;box-shadow:0 0 0 1px #54775b}.source-thumb img{width:62px;height:73px;object-fit:contain;background:#fff}.source-preview{background:#e9ebe4;border:1px solid #dce2d3;border-radius:7px;max-height:610px;overflow:auto;padding:10px;display:flex;align-items:flex-start;justify-content:center}.source-preview>img{width:100%;height:auto;object-fit:contain;max-height:590px;background:#fff;box-shadow:0 2px 9px #23352912}.source-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;flex-wrap:wrap}.source-caption>span{font-size:11px;overflow-wrap:anywhere;color:#7b8870;flex:1;min-width:100px}.source-caption .button-group{gap:5px}.source-caption .button{padding:6px 9px;font-size:10px}.source-text-note{margin-top:14px}.source-panel .panel-body{padding-bottom:16px}.native-text{margin-top:17px;border-top:1px solid var(--line);padding-top:12px}.native-text summary{font-size:11px;color:var(--green);cursor:pointer}.native-text pre{white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:11px;color:#7b8370;max-height:200px;overflow:auto;margin:12px 0;padding:10px;background:#f3f5ed;border-radius:5px}.native-text p{margin-top:8px}.import-source-footer{flex-wrap:wrap;gap:10px}.import-source-footer .helper{max-width:none}.pdf-picker{border:1px solid #d6deca;border-radius:8px;background:#f0f4e8;padding:15px;margin-bottom:20px}.pdf-picker h3{font-size:13px;overflow-wrap:anywhere;margin-bottom:5px}.pdf-picker>p{font-size:11px;color:#7b8971;line-height:1.8}.pdf-page-controls{display:flex;gap:7px;align-items:flex-end;margin-top:12px}.pdf-page-controls .field{flex:1;min-width:0;margin:0}.pdf-page-controls .button{font-size:10px;padding:8px 10px}.pdf-page-controls input{background:#fff}.pdf-picker #pdf-range-help{margin-top:7px}.import-progress{padding:12px 16px;display:flex;gap:10px;align-items:center;border:1px solid #d7dfcb;border-radius:7px;background:#edf3e3;font-size:12px;color:#58784b;margin-bottom:17px;overflow-wrap:anywhere}.import-guide{padding:31px 12px;color:#879278}.import-guide h3{font-size:15px;margin:17px 0 9px;font-weight:500;color:#627657}.import-guide p,.import-guide li{font-size:12px;line-height:2}.import-guide ol{padding-left:19px;margin-top:21px}.extract-controls{display:flex;align-items:flex-end;gap:10px}.extract-controls .field{margin:0;flex:1}.extract-controls .button{min-height:40px}.extract-help{margin:8px 0 24px}.draft-selector{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin:4px 0 20px}.draft-selector label{font-size:11px;flex:none;color:#7d8974}.draft-selector select{min-width:0;flex:1;border:1px solid var(--line);border-radius:6px;padding:8px;background:#f9faf4;font-size:11px;color:#5a6d50}.draft-selector .button{font-size:10px;padding:8px 9px;flex:none}.page-checks{border:0;padding:0;margin:0 0 19px;display:flex;flex-wrap:wrap;gap:8px}.page-checks legend{font-size:11px;color:#6b7b5f;margin-bottom:9px}.page-checks label{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;padding:7px 9px;font-size:10px;color:#738366;background:#f7f9f0}.page-checks input,.source-confirm input,.batch-confirm input{width:16px;height:16px;accent-color:var(--green);flex:none}.import-draft-footer{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-wrap:wrap;align-items:center;gap:13px}.import-draft-footer>.helper{flex-basis:100%}.import-footnote{margin-top:19px;color:#909a85;font-size:10px;line-height:1.9}.import-privacy{margin:-3px 0 20px}.recent-imports{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}.recent-imports>summary{font-size:12px;color:#6f8063;cursor:pointer;margin-bottom:11px}.recent-import{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line-soft)}.recent-import>div:first-child{min-width:0}.recent-import strong{font-size:11px;font-weight:500;display:block;overflow-wrap:anywhere}.recent-import span{display:block;font-size:10px;color:#919b85;margin-top:5px}.recent-import .button{font-size:10px}.source-review-instruction{font-size:12px;line-height:1.9;color:#7d8973;margin-bottom:15px}.item-source-pages{display:flex;gap:10px;overflow:auto;max-width:100%;padding:0 0 12px}.item-source-page{border:1px solid var(--line);background:#f6f8f0;border-radius:7px;padding:7px;display:flex;flex-direction:column;gap:5px;flex:0 0 126px;text-align:left;min-width:0;color:#7a8970}.source-image-wrap{background:#fff;display:grid;place-items:center;width:110px;height:130px;overflow:hidden}.source-image-wrap img{max-width:110px;max-height:130px;object-fit:contain}.item-source-page>span:not(.source-image-wrap){font-size:9px;overflow-wrap:anywhere;line-height:1.6}.item-source-page small{font-size:9px;color:#9aa48b}.source-image-wrap .missing-source{font-size:10px;color:#9b7954;padding:8px}.source-confirm{margin-top:12px;border-top:1px solid var(--line);padding-top:15px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.source-confirm label{font-size:11px;color:#6b7d5e;line-height:1.8;display:flex;gap:7px;align-items:center;flex:1;min-width:200px}.source-confirm>p{flex-basis:100%}.source-dialog{border:1px solid #cdd5c5;background:#f6f7ef;border-radius:12px;padding:15px;max-width:min(96vw,1100px);max-height:94vh;width:850px;color:#54714e;box-sizing:border-box}.source-dialog::backdrop{background:#172b25bf}.source-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}.source-dialog-head strong{font-size:12px;overflow-wrap:anywhere;font-weight:500}.source-dialog-image{overflow:auto;max-height:calc(90vh - 120px);background:#e1e5da;border-radius:5px;text-align:center}.source-dialog-image img{max-width:100%;height:auto;display:block;margin:0 auto}.source-dialog>.helper{margin-top:8px}.extraction-note{margin:-7px 0 18px}.import-editor textarea{min-height:90px}.agent-run{margin-top:20px;border:1px solid var(--line);border-radius:9px;background:#f8faf2;padding:20px}.agent-run-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.agent-run h3{font-size:13px;font-weight:550}.agent-stages{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0}.agent-stage{font-size:10px;line-height:1.6;color:#8f9b82;border-top:2px solid #dfe5d6;padding-top:8px}.agent-stage.complete{color:#527549;border-color:#719167}.agent-stage.active{color:#345b45;border-color:#345b45}.agent-events{list-style:none;margin:12px 0;padding:0;max-height:180px;overflow:auto}.agent-events li{font-size:11px;color:#7d8d70;padding:6px 0;border-bottom:1px solid #e6ebde;line-height:1.7}.batch-confirm{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#657b55;line-height:1.8;margin:17px 0}.batch-confirm input{margin-top:3px}.batch-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.batch-controls select{max-width:170px;font-size:11px;padding:9px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#627953}.agent-item-list{list-style:none;margin:15px 0 0;padding:0}.agent-item-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:11px}.agent-item-list button{text-align:left}.batch-summary{font-size:11px;line-height:1.8;color:#7c8b70;margin-top:10px}.import-draft-footer .text-link{font-size:11px}.source-panel .button-group{flex-wrap:wrap}
@media(max-width:960px){.import-layout{gap:17px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.source-caption>.button-group{width:100%}.extract-controls{flex-wrap:wrap}.extract-controls .field{min-width:130px}.pdf-page-controls{flex-wrap:wrap}.pdf-page-controls .field{flex-basis:100%}.draft-selector{flex-wrap:wrap}.draft-selector label{flex-basis:100%}}
@media(max-width:740px){.import-layout{grid-template-columns:1fr;gap:17px}.import-empty{padding:30px 13px}.import-empty h3{font-size:15px}.import-steps{gap:12px;font-size:10px;margin-bottom:17px}.import-steps>span{gap:5px}.import-steps b{width:19px;height:19px;font-size:10px}.import-steps>span:last-child{display:none}.source-preview{max-height:500px;padding:7px}.source-preview>img{max-height:none}.source-caption>.button-group{width:auto}.source-caption .button{min-height:35px}.source-thumb{width:69px}.source-thumb img{width:55px;height:66px}.source-panel .panel-footer{gap:9px}.import-source-footer .helper{max-width:100%;font-size:9px}.extract-controls{flex-wrap:nowrap}.extract-controls .field{min-width:0}.extract-controls .button{font-size:11px;min-height:44px}.draft-selector label{flex-basis:auto}.draft-selector select{font-size:14px;min-height:40px}.page-checks label{min-height:37px;font-size:11px}.page-checks legend{font-size:11px}.import-draft-footer{gap:13px}.import-draft-footer>.button.primary{width:100%;min-height:44px}.import-footnote{font-size:9px}.source-review-instruction{font-size:11px}.source-confirm label{min-width:100%;font-size:11px}.source-confirm>.button{min-height:40px}.recent-import{gap:10px}.recent-import .button-group{gap:5px}.recent-import .button{padding:7px 9px;min-height:36px}.agent-run{padding:16px}.agent-stages{gap:7px}.agent-stage{font-size:9px}.batch-confirm{font-size:11px}.batch-controls>.button.primary{flex:1;min-height:42px}.source-dialog{padding:11px;border-radius:9px}.source-dialog-head strong{font-size:11px}.source-dialog-head .button{min-height:35px}.mobile-bottom{grid-template-columns:repeat(5,1fr)!important}.cell-code{font-size:9px}.editor-column{gap:16px}.import-editor .field textarea{font-size:14px}.import-editor .field select{font-size:16px}.pdf-page-controls input{font-size:16px}.agent-item-list li{font-size:10px}.item-source-pages{gap:8px}.import-progress{font-size:11px}}
@media(min-width:1500px){.workspace{padding:34px 48px}.editor-layout{gap:28px;grid-template-columns:minmax(0,1.1fr) minmax(400px,.9fr)}.panel-body{padding:24px 28px}.panel-head{padding-left:28px;padding-right:28px}.matrix{grid-template-rows:26px repeat(3,74px)}}
@media(max-width:1200px){.workspace{padding:26px 25px}.editor-layout{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);gap:18px}.panel-body{padding:19px 20px}.panel-head{padding:18px 20px}.matrix{grid-template-columns:74px repeat(3,minmax(0,1fr));grid-template-rows:25px repeat(3,60px)}.matrix-row{font-size:10px}.matrix-cell .cell-caption{font-size:8px}.library-grid-layout{grid-template-columns:minmax(0,1fr)}.library-grid-layout>.panel{max-width:500px}.item-row,.table-header{gap:12px;padding-left:18px;padding-right:18px}.library-grid-layout .table-header,.library-grid-layout .item-row{grid-template-columns:minmax(170px,1.4fr) minmax(180px,1.4fr) 100px 25px}.access-grid{gap:18px}.footer-note{line-height:1.8}}
@media(max-width:960px){.shell{padding-left:73px}.rail{width:73px;padding-left:8px;padding-right:8px}.workspace{padding:24px}.topbar{margin-bottom:24px}.page-heading{align-items:flex-start}.page-heading h1{font-size:24px}.editor-layout{grid-template-columns:1fr}.panel-stack{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.panel-stack>.matrix-panel{grid-row:span 2}.panel-stack>.evidence-panel{min-width:0}.matrix{grid-template-columns:72px repeat(3,minmax(0,1fr));grid-template-rows:26px repeat(3,65px)}.panel-stack>.review-card{padding:18px}.review-header{flex-wrap:wrap}.access-grid{grid-template-columns:1fr}.top-actions .tag.subtle{display:none}.field textarea.stem{min-height:110px}}
@media(max-width:740px){.shell{padding-left:0;padding-bottom:83px}.rail{display:none}.workspace{padding:0 17px 23px}.topbar{margin:0 -17px 23px;padding:17px 19px 13px;border-bottom:1px solid var(--line);background:#f0efe8;min-height:70px;gap:10px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;color:var(--green);font-weight:650;font-size:15px}.mobile-brand .brand-mark{width:29px;height:29px;border-radius:8px;font-size:18px}.mobile-brand small{font-size:9px;letter-spacing:.06em;font-weight:400;margin-left:2px;color:#8c987e}.top-actions{gap:8px}.top-actions .avatar{display:none}.top-actions .tag{font-size:9px;padding:4px 6px}.page-heading{margin-bottom:19px;gap:10px;flex-wrap:wrap}.page-heading h1{font-size:23px}.page-heading p{font-size:11px;margin-top:6px}.page-tools{gap:6px;max-width:100%;flex-wrap:wrap}.page-tools .button{padding:8px 11px;font-size:11px;min-height:37px}.page-heading>.page-tools{margin-left:auto;padding-top:2px}.editor-layout{gap:16px}.panel-stack{display:grid;grid-template-columns:1fr;gap:16px}.panel-head{padding:17px 18px}.panel-body{padding:18px}.panel-footer{padding:14px 17px}.panel-head h2{font-size:13px}.matrix{grid-template-columns:78px repeat(3,minmax(0,1fr));grid-template-rows:25px repeat(3,68px);gap:7px}.matrix-row{font-size:10px}.matrix-cell .cell-caption{font-size:9px}.matrix-cell svg{width:20px;height:20px}.matrix-panel .panel-body{padding:20px 18px}.field{gap:6px;margin-bottom:17px}.field label{font-size:10px}.field input,.field select,.field textarea{font-size:16px;line-height:1.8}.field input.title-input{font-size:16px}.field textarea{font-size:14px}.field textarea.answer{font-size:13px}.compact-select{font-size:10px;max-width:162px}.editor-footer-actions .button{font-size:11px;min-height:39px}.panel-footer>.helper{font-size:9px;max-width:100px}.result-description{font-size:12px}.evidence-item blockquote{font-size:12px}.evidence-list{gap:17px}.review-card{padding:17px 18px}.review-header{flex-wrap:nowrap}.review-card .review-header p{font-size:10px}.review-card h3{font-size:13px}.mobile-bottom{position:fixed;bottom:0;left:0;right:0;z-index:35;display:grid;grid-template-columns:repeat(4,1fr);background:#f7f7f0f7;border-top:1px solid #dbe0cf;padding:8px 12px max(9px,env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.mobile-bottom .nav-button{padding:5px 0;gap:3px;font-size:9px;min-height:47px;border-radius:8px}.mobile-bottom .nav-button svg{width:20px;height:20px}.mobile-bottom .nav-button.active{background:#e5ecdc}.mobile-bottom .nav-button .dot{right:calc(50% - 17px);top:5px}.footer-note{font-size:9px;margin-top:20px;display:block}.footer-note span{display:block}.footer-note span+span{margin-top:5px}#toast{bottom:92px;font-size:11px;max-width:calc(100vw - 26px);white-space:normal;width:max-content}.stats-strip{margin-bottom:17px}.stat{padding:15px 13px}.stat p{font-size:9px}.stat strong{font-size:22px}.stat small{font-size:9px;margin-left:3px}.library-toolbar{gap:11px;margin-bottom:14px}.search-wrap{max-width:none;flex-basis:100%}.search-input{font-size:16px;padding-top:8px;padding-bottom:8px}.filter-chip{font-size:10px;padding:5px 10px}.table-header{display:none!important}.item-row,.library-grid-layout .item-row{grid-template-columns:1fr auto;gap:5px 13px;padding:18px}.item-row h3{font-size:13px}.item-row .item-label{grid-column:1;grid-row:2;font-size:10px}.item-row .item-status{grid-row:1;grid-column:2}.item-row .item-date{display:none}.item-row .arrow{grid-column:2;grid-row:2;justify-self:end}.item-row .arrow svg{width:15px;height:15px}.item-row .tag{font-size:9px}.library-grid-layout{gap:17px}.library-grid-layout>.panel{max-width:none}.inline-notice{font-size:10px;padding:11px 12px;gap:6px;margin-bottom:16px}.access-grid{gap:16px}.settings-row{gap:10px;padding:15px 0}.settings-row h3{font-size:12px}.settings-row p{font-size:10px}.settings-row .tag{font-size:9px}.access-note{font-size:11px}.processing{padding:12px 18px}.field-row{grid-template-columns:1fr}.page-tools .toolbar-menu .menu-content{right:0}.page-heading .summary-number{font-size:10px}.auth-card{padding:27px 23px}.auth-shell{padding:19px}.review-form .field select{font-size:14px}.review-form textarea{font-size:14px}}
@media(max-width:390px){.workspace{padding-left:12px;padding-right:12px}.topbar{margin-left:-12px;margin-right:-12px;padding-left:14px;padding-right:14px}.mobile-brand small{display:none}.page-heading h1{font-size:21px}.page-heading .page-tools .button span.hide-small{display:none}.matrix{grid-template-columns:70px repeat(3,minmax(0,1fr));gap:5px}.matrix-column{font-size:9px}.matrix-row{font-size:9px}.panel-body{padding:16px}.panel-head{padding:16px}.panel-footer{padding:13px 15px}.button{padding-left:11px;padding-right:11px}.compact-select{max-width:148px}.stat{padding:14px 10px}.tag{font-size:9px}.review-card .review-header p{max-width:180px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.rail,.mobile-bottom,.topbar,.page-tools,.panel-footer,.review-card,.processing,#toast{display:none!important}.shell{padding:0}.workspace{padding:0;max-width:none}.editor-layout{display:block}.panel,.panel-stack{break-inside:avoid;box-shadow:none;margin-bottom:14px}.panel-stack{display:block}.field textarea{height:auto;min-height:80px}.footer-note{color:#555}.matrix-cell.selected{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.draft-source-labels{margin-bottom:18px}.source-origin-label{font-size:11px;color:#4e7155;margin-bottom:8px;line-height:1.8}.batch-controls{margin-top:13px}.agent-run .helper{margin-top:7px}

.nine-wrap{container-type:inline-size;min-width:0}.nine-grid{display:grid;grid-template-columns:24px minmax(64px,.62fr) repeat(3,minmax(0,1fr));grid-template-rows:auto auto repeat(3,minmax(66px,auto));gap:6px;max-width:100%}.nine-axis{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;background:var(--green-soft);color:var(--green);font-size:11px;font-weight:650;letter-spacing:.05em;line-height:1.3}.nine-axis small{font-size:10px;font-weight:450;letter-spacing:.02em;color:#6f8476}.nine-axis-top{padding:6px 10px}.nine-axis-side{writing-mode:vertical-rl;padding:10px 3px;gap:6px}.nine-col,.nine-row{display:flex;flex-direction:column;gap:2px;min-width:0;color:#56655c;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.nine-col{align-items:center;justify-content:flex-end;text-align:center;padding:3px 2px 5px;border-bottom:1px solid var(--line-soft)}.nine-row{grid-column:2;justify-content:center;padding:4px 4px 4px 2px;border-right:1px solid var(--line-soft)}.nine-code{font-size:12px;font-weight:650;color:var(--green);line-height:1.2}.nine-abbr{font-size:9px;letter-spacing:.07em;color:#949c8b}.nine-grid .matrix-cell{min-height:66px;padding-top:16px}.nine-grid .cell-code{left:8px;top:5px;font-size:10px;font-weight:600;letter-spacing:.03em;opacity:.85}.nine-grid .matrix-cell.has-items{background:#eef3ea;border-color:#cbd8c4;color:var(--green)}.nine-grid .matrix-cell.selected{background:#315b4c;border-color:#315b4c;color:#f6faef}.nine-grid .matrix-cell.selected.reviewed{background:#436d59}.nine-grid .cell-count{line-height:1.1}.nine-grid .cell-caption{font-size:9px;opacity:.8}.nine-legend{display:none;margin:12px 0 0;gap:6px;font-size:11px;line-height:1.5;color:#5f6d64}.nine-legend div{display:grid;grid-template-columns:18px 1fr;gap:6px}.nine-legend dt{font-weight:650;color:var(--green)}.nine-legend dd{margin:0}
@container (max-width:440px){.nine-col .nine-name{display:none}.nine-col{justify-content:center}.nine-col .nine-abbr{font-size:10px}.nine-legend{display:grid}.nine-grid{grid-template-columns:22px minmax(58px,.7fr) repeat(3,minmax(0,1fr));gap:5px}.nine-row{font-size:10px}}
@container (max-width:680px){.nine-grid.is-en .nine-col .nine-name{display:none}.nine-grid.is-en .nine-col{justify-content:center}.nine-legend.is-en{display:grid}}
.framework-fixed{display:flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:var(--green-soft);color:var(--green);font-weight:600;font-size:13px}.library-toolbar .framework-fixed{min-height:0;padding:6px 10px;font-size:12px;white-space:nowrap}.project-framework-fixed{font-size:12px;color:var(--muted);white-space:nowrap}
/* English row labels ("Procedural knowledge") need ~52px at 10px; 58px minus padding split "knowledge" mid-word. */
@container (max-width:440px){.nine-grid.is-en{grid-template-columns:22px minmax(66px,.7fr) repeat(3,minmax(0,1fr))}}
