:root{color-scheme:light;--ink:#1d1d1f;--muted:#86868b;--line:#e5e5e9;--paper:#fff;--bg:#f5f5f7;--green:#007aff;--soft:#eaf3ff;--gold:#a56a00;--blue:#007aff;--shadow:0 2px 8px #1d1d1f03,0 12px 32px #1d1d1f03}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:13px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","PingFang SC",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dcdce1;border-radius:8px;background:#fff;color:#303036;padding:8px 13px;box-shadow:0 1px 2px #00000004;transition:background .16s,box-shadow .16s,transform .16s}button:hover{background:#f5f5f7;border-color:#c9c9d0}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:default;transform:none}button.primary{background:var(--blue);border-color:transparent;color:white;box-shadow:0 2px 4px #007aff15}button.primary:hover{background:#006ee6}button:focus-visible,a:focus-visible{outline:3px solid #007aff66;outline-offset:3px}input,select,textarea{border:1px solid #dedee3;border-radius:8px;background:#fff;color:var(--ink);padding:9px 11px;width:100%;outline:none;transition:border-color .16s,box-shadow .16s}input:focus,textarea:focus,select:focus{border-color:#007aff99;box-shadow:0 0 0 3px #007aff18}input::placeholder,textarea::placeholder{color:#a0a0a6}textarea{resize:none;line-height:1.7;font-size:13px}select{cursor:pointer}h2,h3,p{margin:0}h2{font-size:14px;font-weight:600;letter-spacing:-.25px}h3{font-size:13px;font-weight:600}.hidden{display:none!important}
/* A quiet, translucent navigation rail. */
.rail{position:fixed;inset:0 auto 0 0;width:78px;background:#eeeef080;border-right:1px solid #dedee480;display:flex;align-items:center;flex-direction:column;gap:12px;padding:24px 9px;z-index:5;backdrop-filter:blur(22px)}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:#1d1d1f;color:#fff;border-radius:11px;font-size:25px;font-weight:700;letter-spacing:-2px;padding-right:2px;margin-bottom:30px;box-shadow:0 3px 6px #0000000a}.rail-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:transparent;border:0;box-shadow:none;width:58px;height:64px;padding:9px 4px;color:#8e8e93;border-radius:13px}.rail-btn svg{width:21px;height:21px;stroke-width:1.6}.rail-btn span{font-size:11px;font-weight:500}.rail-btn.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px #00000006}.rail-btn:hover{background:#ffffffa6;border:0}.rail-bottom{margin-top:auto}.app-shell{margin-left:78px}header{height:72px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e5e5e980;background:#ffffffd9;backdrop-filter:blur(20px)}.brand{display:flex;align-items:center;gap:20px;font-size:12px;color:#86868b;white-space:nowrap}.brand b{font-size:23px;font-weight:700;letter-spacing:-1.2px;color:#1d1d1f}.brand b span{color:inherit}.brand i{height:16px;width:1px;background:#dddde2}.header-actions{display:flex;align-items:center;gap:12px;min-width:0}.header-note{display:flex;align-items:center;gap:6px;font-size:10px;color:#8e8e93}.local-dot{width:5px;height:5px;border-radius:100%;background:#34c759}.header-actions .header-note{display:none}.demo-tag{background:#f0f0f3;color:#7b7b82;padding:4px 7px;border-radius:5px}.account-button{font-size:11px;background:#f5f5f7;border-color:transparent;padding:8px 12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-progress{display:flex;align-items:center;gap:9px;font-size:11px;padding:8px 12px;background:#edf5ff;border:0;color:#3a6eaa;max-width:350px;box-shadow:none}.task-progress span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-progress progress{width:55px;height:4px;accent-color:var(--blue);flex-shrink:0}
.workspace{max-width:1700px;margin:auto;padding:30px 34px 24px}.clientbar{display:flex;gap:28px;align-items:center;margin-bottom:28px}.client-picker{flex:1;min-width:0}.client-picker>label{font-size:11px;font-weight:500;color:var(--muted);display:block;margin-bottom:8px;letter-spacing:.25px}.picker-line{display:flex;align-items:center;gap:10px}.picker-line select{font-size:28px;font-weight:600;letter-spacing:-.8px;padding:0 24px 0 0;max-width:450px;width:auto;border:0;background:transparent;border-radius:0;box-shadow:none;text-overflow:ellipsis}.icon-button{padding:3px 6px;background:#e8e8ed;border:0;box-shadow:none;color:#74747b;font-size:18px;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;line-height:1}.client-metrics{display:flex;gap:26px;color:#8b8b91;font-size:11px;white-space:nowrap}.client-metrics>span{display:flex;flex-direction:column;gap:4px}.client-metrics strong{color:#343438;font-size:23px;letter-spacing:-.6px;font-weight:500;font-variant-numeric:tabular-nums}.clientbar>.primary{font-size:12px;padding:10px 16px;margin-left:8px;border-radius:10px}
.review-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:15px}.document-control{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.document-control label{font-size:11px;color:var(--muted);white-space:nowrap}.document-control select{max-width:510px;background:#fff;padding:8px 11px;font-size:12px;min-width:0}.document-manage{font-size:11px;white-space:nowrap;padding:7px 4px;background:transparent;border:0;color:var(--blue);box-shadow:none}.review-tools{display:flex;gap:8px;align-items:center}.review-tools select{width:104px;font-size:12px;padding:8px 10px}.review-tools button{font-size:12px;white-space:nowrap;padding:8px 12px}.timelinebar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 2px 12px;color:#8e8e93;font-size:11px}.timelinebar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.timelinebar b{color:#55555c;font-size:11px;font-weight:500}.timelinebar select{max-width:150px;padding:5px 9px;font-size:11px;border:0;background:transparent;color:#77777e}.timeline-dot{width:5px;height:5px;background:var(--blue);border-radius:50%}.timelinebar .text-button{font-size:11px;padding:2px 4px}
/* Annotation and source sit together in a single focused surface. */
.review{background:#fff;border:1px solid #e4e4e9;border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}.review-top{height:49px;border-bottom:1px solid #eeeef1;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#ffffff}.review-top strong{font-size:12px;letter-spacing:.15px;font-variant-numeric:tabular-nums}.badge{font-size:10px;padding:4px 8px;border-radius:5px;background:#fff4df;color:#a56a00;margin-left:10px}.origin{font-size:10px;color:#98989e;margin-left:13px}.nav{display:flex;align-items:center;gap:6px;color:#8e8e93;font-size:11px;font-variant-numeric:tabular-nums}.nav>span{margin-right:9px}.nav button{padding:2px 8px;font-size:19px;border:0;background:#f5f5f7;border-radius:6px;box-shadow:none;line-height:23px}.review-body{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);height:clamp(330px,calc(100dvh - 440px),610px)}.editor{padding:22px 24px;display:flex;flex-direction:column;gap:13px;min-height:0;overflow:auto}.editor-heading{display:flex;align-items:center;justify-content:space-between;flex:none;margin-bottom:2px}.editor-heading select{width:126px;font-size:11px;padding:6px 9px;background:#f5f5f7;border-color:transparent}.field{margin:0;min-width:0}.field label{display:block;font-size:11px;font-weight:500;color:#73737b;margin-bottom:6px}.field label span{font-size:10px;color:#ababaf;margin-left:5px;font-weight:400}.editor .field{flex:1;min-height:64px;display:flex;flex-direction:column}.editor textarea{flex:1;min-height:40px;max-height:135px;background:#fafafb;padding:9px 12px;border-color:#e8e8ed;border-radius:9px}.editor textarea:focus{background:#fff;border-color:#007aff80}.editor #reason,.editor #correction{font-size:12px;color:#55555d}.text-button{background:none;border:0;color:var(--blue);font-size:11px;padding:0;text-align:left;flex:none;width:fit-content;box-shadow:none}.text-button:hover{background:none;color:#005ac0}.source{border-left:1px solid #e9e9ee;background:#fcfcfd;padding:22px 24px;display:flex;flex-direction:column;min-height:0}.source-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:10px}.source-legend{font-size:10px}.source-name{font-size:11px;color:#717178;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px;flex:none}.source-meta{font-size:10px;color:#a0a0a7;margin-bottom:16px;flex:none}.source-meta a{color:var(--blue);margin-left:10px;text-decoration:none}.source-text{flex:1;min-height:0;overflow:auto;white-space:normal;line-height:1.95;font-size:13px;color:#515159;padding-right:8px;scrollbar-width:thin;scrollbar-color:#d2d2d8 transparent;position:relative;overflow-wrap:anywhere}.source-text p{margin:0 0 10px}.source-text h1,.source-text h2,.source-text h3,.source-text h4{margin:15px 0 8px;color:#303036;font-size:15px;line-height:1.5}.source-text h1{font-size:19px}.source-text h2{font-size:17px}.source-text table{border-collapse:separate;border-spacing:0;border:1px solid #dddde5;border-radius:9px;width:100%;margin:12px 0;font-size:12px;line-height:1.75;background:#fff;overflow:hidden}.source-text th,.source-text td{border-right:1px solid #e6e6eb;border-bottom:1px solid #e6e6eb;padding:10px 12px;min-width:88px;text-align:left;vertical-align:top;overflow-wrap:anywhere}.source-text th{background:#f0f1f5;color:#35353d;font-weight:600}.source-text tr:last-child td{border-bottom:0}.source-text tr>:last-child{border-right:0}.source-text code{font:11px ui-monospace,SFMono-Regular,Menlo,monospace;background:#eeeff3;padding:2px 4px;border-radius:4px}.source-text pre{padding:13px;background:#f0f1f5;border-radius:9px;white-space:pre-wrap}.source-text pre code{padding:0;background:none}.source-text blockquote{border-left:3px solid #c7ddfa;margin:12px 0;padding:4px 14px;color:#777781}.source-text ul,.source-text ol{padding-left:22px}.source-text mark{background:#e8f1ff;color:#234b7d;cursor:pointer;border-bottom:1px solid #bcd5fa;padding:2px 0;border-radius:2px}.source-text mark.current{background:#dbeaff;color:#153c6d;border-bottom-color:#78adf2}.type-label{display:inline-block;color:#4673ab;font-size:8px;padding:1px 5px;margin:0 3px;background:#e9f1ff;border-radius:4px;line-height:1.9;vertical-align:middle;white-space:nowrap;cursor:pointer}.type-label.current{background:var(--blue);color:#fff}.actionbar{display:flex;align-items:center;justify-content:space-between;padding:12px 23px;border-top:1px solid #e9e9ee;gap:10px;min-height:61px}.actionbar>span{font-size:10px;color:#a0a0a6}.actions{display:flex;gap:8px}.actions button{font-size:12px;padding:8px 14px}.actions #skip{border-color:transparent;background:transparent;color:#8e8e93;box-shadow:none}
.relations{margin-top:16px;border:1px solid #e4e4e9;border-radius:16px;background:white;padding:18px 24px;box-shadow:var(--shadow)}.relation-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.relation-heading>div{display:flex;gap:16px;align-items:center}.relation-heading h2{font-size:13px;white-space:nowrap}.relation-heading h2 span{font-size:10px;color:#a0a0a6;font-weight:400;margin-left:4px}.relationship-note{font-size:10px;color:#a0a0a6}.relation-heading button:not(.basis-help){font-size:11px;padding:6px 9px;border:0;color:var(--blue);box-shadow:none}.chain{display:grid;grid-template-columns:1fr 36px 1fr 36px 1fr;gap:12px;align-items:center;min-height:86px}.chain-lane{min-width:0;max-height:145px;overflow:auto;scrollbar-width:thin}.lane-label{font-size:10px;color:#a0a0a6;margin-bottom:7px}.node{display:block;width:100%;text-align:left;border:1px solid #e6e6eb;border-radius:10px;padding:10px 13px;background:#fbfbfd;box-shadow:none}.node+.node{margin-top:6px}.node.current{background:#f0f6ff;border-color:#c9ddfa}.node small{font-size:10px;color:#7d8fa8}.node p{font-size:12px;line-height:1.7;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rel-explain{font-size:10px;color:#8e8e96;margin-bottom:5px;line-height:1.6}.chain-arrow{font-size:19px;color:#bdc4cd;text-align:center;border-bottom:1px solid #c7cdd6;line-height:7px;align-self:center}.chain-arrow.inferred{border-bottom-style:dashed}.chain-arrow.none{visibility:hidden}.chain-empty{font-size:11px;color:#b0b0b7;border:1px dashed #e2e2e8;border-radius:10px;padding:17px 13px;line-height:1.7;background:#fdfdfe}.relation-card+.relation-card{margin-top:7px}.relation-card.inferred .node,.relation-card.unverified .node{border-style:dashed}.basis-help{border:0;background:none;padding:0;text-align:left;cursor:pointer;box-shadow:none}.basis-help:hover{background:none;color:#7d7d86}.basis-link{font-size:9px;color:#7e96b6;border:0;background:transparent;padding:0 2px;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px;box-shadow:none}
.empty-panel{min-height:410px;border:1px solid #e5e5eb;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#85858f;background:#fff;box-shadow:var(--shadow)}.empty-icon{font-size:31px;color:#c1ccdb;background:#f1f5fa;border-radius:18px;padding:16px;line-height:1}.empty-panel h2{font-size:21px;color:#393940;font-weight:600;letter-spacing:-.5px}.empty-panel p{font-size:12px;line-height:1.9;text-align:center;max-width:450px;padding:0 16px}.empty-panel button{font-size:12px;margin-top:5px;padding:10px 17px}
/* Native-style sheets, controls, and secondary views. */
dialog{border:1px solid #ffffffd9;border-radius:20px;padding:30px;width:min(560px,calc(100% - 32px));max-height:88dvh;color:var(--ink);background:#fffffffa;box-shadow:0 25px 90px #00000026,0 0 0 1px #00000008;overflow:auto}dialog::backdrop{background:#17172530;backdrop-filter:blur(7px)}dialog[open]{animation:sheet-in .2s ease-out}dialog h2{font-size:23px;font-weight:600;letter-spacing:-.7px;margin-bottom:12px}.close{float:right;display:grid;place-items:center;width:25px;height:25px;font-size:20px;padding:0;border:0;border-radius:50%;background:#f0f0f3;color:#93939c;line-height:1;box-shadow:none}.description{font-size:12px;color:#8a8a94;line-height:1.85;margin:8px 0}.modalfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:26px}.modalfoot button{font-size:12px}dialog .field{margin-top:18px}dialog textarea{resize:vertical}.source-tabs{display:flex;gap:3px;background:#eeeef1;border:0;border-radius:10px;padding:3px;margin:22px 0 14px}.source-tabs button{flex:1;padding:7px 10px;border:0;border-radius:7px;background:none;font-size:11px;color:#77777e;white-space:nowrap;box-shadow:none}.source-tabs button.active{color:#303036;background:white;font-weight:500;box-shadow:0 1px 4px #00000012}.date-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.status-text{font-size:12px;color:#4e7eb7;line-height:1.8;margin-top:13px;white-space:pre-wrap;overflow-wrap:anywhere}.client-list{margin:20px 0}.client-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid #eeeeF2}.client-item b{font-size:13px;font-weight:500}.client-item p{font-size:11px;color:var(--muted);margin-top:6px}.client-item button{font-size:11px}.management-info{min-width:0;flex:1}.management-info>b{display:block;overflow-wrap:anywhere}.management-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}.management-actions button{font-size:11px;padding:6px 9px}.danger-text{color:#e04843;border-color:transparent;background:transparent;box-shadow:none}.danger-text:hover{background:#fff0f0}.danger-primary{background:#ff453a!important;color:white!important;border-color:transparent!important}.delete-name{font-size:17px;line-height:1.7;margin:18px 0;overflow-wrap:anywhere}.spread{justify-content:space-between}.settings-dialog{margin:auto auto auto 96px;width:min(510px,calc(100% - 112px));height:calc(100dvh - 48px);max-height:none;border-radius:20px}.settings-section{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.setting-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0;gap:12px}.setting-row b{font-size:12px;font-weight:500}.setting-row p{font-size:11px;color:#95959e;line-height:1.8;margin-top:5px}.pill{font-size:10px;background:#edf6ff;color:#6591be;white-space:nowrap;padding:5px 8px;border-radius:6px}.external{display:inline-block;font-size:11px;color:var(--blue);margin-top:12px;text-decoration:none}.settings-buttons{display:flex;gap:9px;margin-top:14px}.settings-buttons button{font-size:11px}.inline-form{display:flex;gap:8px}.inline-form button{white-space:nowrap}details summary{font-size:11px;color:#7d92ac;cursor:pointer;margin-top:12px}.checkbox-line{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.8;margin-top:20px;color:#696974}.checkbox-line input{width:15px;height:15px;margin-top:4px;accent-color:var(--blue)}.listrel{display:flex;align-items:center;gap:10px;font-size:11px;padding:13px 0;border-bottom:1px solid var(--line)}.listrel span{flex:1}.listrel small{display:block;font-size:10px;color:#8e9bb0;margin-top:5px}.listrel button{font-size:10px;padding:5px 7px}.basis-title{font-size:13px;margin:16px 0;line-height:1.8}.basis-rules{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.basis-rules p{font-size:12px;color:#85858e;line-height:1.9;margin-top:10px}#basisContent blockquote{border-left:3px solid #c7ddfa;background:#f5f8ff;margin:16px 0;padding:14px;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}#documentsDialog{width:min(750px,calc(100% - 32px))}#trashDialog{width:min(680px,calc(100% - 32px))}#clientDialog{width:min(660px,calc(100% - 32px))}.import-manifest{max-height:250px;overflow:auto;font-size:12px;line-height:1.7}.manifest-row{padding:11px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.manifest-row b{display:block;font-weight:500}.manifest-row small{display:block;color:#97979f}.manifest-row.failed,.manifest-row.limited,.manifest-row.partial{color:#b57a24}.manifest-row a{font-size:11px;color:inherit}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:80%;background:#28282eea;backdrop-filter:blur(15px);color:white;border:1px solid #ffffff20;border-radius:13px;padding:13px 20px;font-size:12px;z-index:250;box-shadow:0 8px 30px #00000018;line-height:1.6}.login-gate{position:fixed;inset:0;z-index:100;background:#f5f5f7;display:grid;place-items:center;padding:30px}.login-gate>div{max-width:430px}.login-gate b{font-size:38px;letter-spacing:-2px;color:#1d1d1f}.login-gate h1{font-size:30px;letter-spacing:-1px;margin:40px 0 15px}.login-gate p{font-size:14px;line-height:1.9;color:#86868b}.login-link{display:inline-block;background:var(--blue);color:white;border-radius:10px;padding:13px 20px;text-decoration:none;margin:24px 0}.booting .app-shell,.booting .sidebar{visibility:hidden}.booting:after{content:'正在连接工作区…';position:fixed;inset:0;display:grid;place-items:center;background:#f5f5f7;color:#86868b;z-index:200}.login-gate.hidden,.task-progress.hidden{display:none}#annotationPrinciples{min-height:130px;line-height:1.8}#tasksList{max-height:55vh}#tasksList .management-actions{margin-top:9px}#googleImportFields{padding:10px 0}#chooseGoogleFiles{margin:10px 0}
@keyframes sheet-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(min-width:761px) and (max-height:850px){header{height:62px}.workspace{padding-top:22px}.clientbar{margin-bottom:22px}.review-body{height:clamp(300px,calc(100dvh - 395px),430px)}.editor,.source{padding:18px 21px}.editor{gap:9px}.editor .field{min-height:58px}.review-top{height:44px}.relations{padding:14px 21px}.relation-heading{margin-bottom:10px}.chain{min-height:76px}.chain-lane{max-height:112px}}
@media(max-width:1100px){.workspace{padding-left:24px;padding-right:24px}header{padding:0 24px}.client-metrics{gap:18px}.clientbar{gap:18px}.task-progress{max-width:265px}.document-control select{max-width:350px}.relationship-note{display:none}.editor,.source{padding:18px}.chain{gap:8px;grid-template-columns:1fr 22px 1fr 22px 1fr}.review-tools button{padding:8px 10px}.document-control label{display:none}}
@media(max-width:760px){.rail{width:58px;padding:20px 4px;gap:10px}.brand-mark{width:31px;height:31px;font-size:23px;margin-bottom:22px}.rail-btn{width:46px;height:58px;border-radius:11px}.rail-btn span{font-size:10px}.rail-btn svg{width:20px;height:20px}.app-shell{margin-left:58px}header{padding:0 18px;height:60px}.brand{gap:12px}.brand b{font-size:21px}.brand>span,.brand i{display:none}.workspace{padding:22px 16px}.clientbar{gap:14px;flex-wrap:wrap;margin-bottom:21px}.client-picker{flex-basis:60%}.picker-line select{font-size:24px;max-width:220px}.client-metrics{order:3;flex-basis:100%;gap:24px}.client-metrics>span{flex-direction:row;gap:6px;align-items:baseline}.client-metrics strong{font-size:17px}.clientbar>.primary{margin-left:auto;font-size:11px;padding:9px 12px}.review-toolbar{flex-wrap:wrap;gap:12px;padding-bottom:12px}.document-control{flex-basis:100%}.document-control select{max-width:none}.review-tools{width:100%;justify-content:flex-end}.review-tools button,.review-tools select{font-size:11px}.timelinebar{gap:6px;font-size:10px;align-items:center}.timelinebar>div{gap:6px}.timelinebar b{font-size:10px}.timelinebar select{max-width:115px;font-size:10px}.review-body{height:auto;grid-template-columns:1fr}.editor{height:350px;padding:18px}.source{height:370px;padding:18px;border-left:0;border-top:1px solid var(--line)}.review-top{padding:0 16px;height:46px}.origin{font-size:9px;margin-left:7px}.actionbar{min-height:57px;flex-wrap:wrap;padding:11px 14px}.actions{margin-left:auto}.actions button{font-size:11px;padding:8px 10px}.actionbar>span{font-size:9px}.relations{padding:16px;margin-top:14px}.chain{display:flex;overflow:auto;align-items:flex-start;padding-bottom:7px;gap:10px}.chain-lane{min-width:175px;max-height:145px}.chain-arrow{min-width:20px}.relation-heading h2{font-size:12px}.relation-heading>div{gap:6px}.relation-heading h2 span{font-size:9px}.settings-dialog{margin:auto;width:calc(100% - 30px);height:auto;max-height:88dvh}.management-actions{flex-wrap:wrap;justify-content:flex-end;max-width:145px}.client-item{align-items:flex-start}.management-actions button{font-size:10px}.header-actions{gap:7px}.task-progress{max-width:155px;font-size:10px;padding:7px 9px}.task-progress progress{display:none}.account-button{max-width:85px;font-size:10px}.source-text table{font-size:11px}.source-text td,.source-text th{padding:8px;min-width:80px}dialog{padding:25px;border-radius:18px}.toast{font-size:11px}.empty-panel{min-height:370px}.empty-panel h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.source-text{white-space:normal}.source-text table{white-space:normal}
@media(min-width:761px) and (max-height:850px){.workspace{padding-top:18px}.clientbar{margin-bottom:18px}.picker-line select{font-size:26px}.client-picker>label{margin-bottom:6px}.review-toolbar{padding-bottom:11px}.timelinebar{padding-bottom:9px}.review-body{height:clamp(260px,calc(100dvh - 470px),380px)}.editor{gap:8px;padding-top:15px;padding-bottom:15px}.editor .field{min-height:50px}.editor textarea{padding:7px 10px;min-height:32px}.actionbar{min-height:54px;padding-top:9px;padding-bottom:9px}.relations{margin-top:12px;padding-top:12px;padding-bottom:12px}.chain{min-height:68px}.chain-lane{max-height:95px}.relation-heading{margin-bottom:8px}.chain-empty{padding:13px}.node{padding:8px 12px}}
/* Information-first workflow, retaining the quiet macOS visual language. */
.workflow-status{font-size:12px;color:var(--muted,#86868b);margin:0 0 13px;line-height:1.6}
.document-control{flex:1;min-width:0}.document-control select{max-width: min(47vw,690px);min-width:180px}.document-control #upload{white-space:nowrap}
.feedback-chips{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 8px}.feedback-chips button{padding:4px 9px;font-size:11px;min-height:25px;border-radius:7px;background:#f5f5f7;color:#6e6e73;border:1px solid transparent;box-shadow:none}.feedback-chips button[aria-pressed=true]{background:#fff0df;color:#9c5a11;border-color:#f2d1a4}
.chain-summary{padding:17px 21px;cursor:pointer;font-size:14px;font-weight:600;list-style-position:inside}.chain-summary span{font-size:12px;color:#86868b;font-weight:400;margin-left:12px}.relations:not([open]) .relation-heading{display:none}.relations[open] .chain-summary{border-bottom:1px solid #eeeef0}.chain-actions{display:flex;gap:8px}.relations #chainGaps{margin:0 20px 10px;color:#91611d;font-size:12px}.relations #chainGaps:empty{display:none}
.source{background:#fbfbfd}.source-text{line-height:1.85}.review-body{grid-template-columns:minmax(320px,.83fr) minmax(400px,1.17fr);height:clamp(400px,calc(100dvh - 380px),740px)}
.editor .field{margin-bottom:15px}.editor .correction-field textarea{min-height:60px}
@media(max-height:850px) and (min-width:1001px){.review-body{height:clamp(360px,calc(100dvh - 350px),520px)}.editor{padding-top:18px}.editor .field{margin-bottom:12px}.editor textarea{min-height:64px}.source-text{font-size:13px}}
@media(max-width:1100px){.document-control{flex-wrap:wrap}.document-control select{max-width:calc(100vw - 260px)}.review-tools{flex-wrap:wrap;justify-content:flex-end}.review-toolbar{align-items:flex-start}}
@media(max-width:850px){.review-body{grid-template-columns:1fr;height:auto}.source{min-height:380px}.editor{border-bottom:1px solid #e8e8ed}.document-control select{max-width:calc(100vw - 110px)}.chain-summary span{display:block;margin:6px 0 0 18px}}
/* Apple Store-inspired cards: quiet canvas, generous corners and soft elevation. */
:root{--bg:#f5f5f7;--shadow:0 4px 24px rgba(0,0,0,.045),0 1px 3px rgba(0,0,0,.025)}
body{background:#f5f5f7;color:#1d1d1f}header{height:60px;background:rgba(255,255,255,.78);border-bottom:0}.workspace{padding-top:16px;max-width:1660px}.clientbar{margin-bottom:20px;min-height:48px}.picker-line select{font-size:32px;letter-spacing:-1.1px}.client-metrics{gap:24px;align-items:center}.client-metrics strong{font-size:22px}.model-setup-link{border:0;background:transparent;color:#0066cc;box-shadow:none;font-size:12px;padding:5px 0}.client-metrics>span{font-size:10px;color:#86868b}
.review-toolbar{margin-bottom:12px;padding-bottom:0;gap:16px}.document-control{gap:10px;flex:1;min-width:0}.document-control label{font-size:11px}.document-control select{flex:1;width:auto;max-width:none;font-size:12px;min-width:120px;border-radius:12px;border:0;background:#fff;height:36px;box-shadow:0 1px 5px #00000004}.document-control #upload,.document-control #manageDocuments{font-size:11px;font-weight:400;padding:7px 10px;min-height:30px;height:30px;line-height:16px;white-space:nowrap;border-radius:999px;flex:none}.document-control #upload{background:#0071e3;box-shadow:none;border:0;color:#fff}.document-control #manageDocuments{background:transparent;color:#0066cc;border:0}.review-tools{gap:6px}.review-tools button,.review-tools select{font-size:11px;height:32px;padding:6px 11px;border:0;background:#fff;box-shadow:none;border-radius:999px}.review-tools select{width:95px}
.review{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.review-top{border:0;background:transparent;padding:0 5px;height:38px;margin-bottom:9px}.review-body{gap:20px;grid-template-columns:minmax(310px,.83fr) minmax(400px,1.17fr);height:clamp(420px,calc(100dvh - 315px),760px)}.editor,.source{background:#fff;border:0;border-radius:24px;box-shadow:var(--shadow);padding:24px 26px}.editor{gap:20px;overflow:auto}.editor-heading{margin:0}.editor-heading h2,.source-heading h2{font-size:17px;font-weight:600;letter-spacing:-.3px}.info-type{background:#f5f5f7;color:#6e6e73;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:500;white-space:nowrap}.annotation-readout{flex:1;min-height:110px;padding:6px 0 18px}.annotation-summary{font-size:21px;font-weight:600;line-height:1.6;letter-spacing:-.35px;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}.annotation-reason{font-size:13px;line-height:1.85;color:#6e6e73;white-space:pre-wrap;overflow-wrap:anywhere}.annotation-summary.awaiting-ai{font-size:25px;margin-top:16px}.annotation-reason.awaiting-ai{max-width:340px;color:#86868b}.annotation-readout .text-button{margin-top:18px;font-size:12px}
.review-corrections{flex:none;padding-top:18px;border-top:1px solid #f0f0f2}.review-corrections .field{flex:none;min-height:0;margin-bottom:0}.review-corrections label{font-size:11px;margin-bottom:10px}.review-corrections textarea{display:block;width:100%;height:62px;min-height:62px;max-height:130px;padding:10px 12px;font-size:12px;background:#f5f5f7;border:0;border-radius:12px;resize:vertical}.feedback-chips{gap:5px;margin-bottom:10px}.feedback-chips button{font-size:10px;border-radius:999px;background:#f5f5f7;padding:4px 8px;min-height:24px}.correction-editor{margin-top:14px}.correction-editor>summary{font-size:11px;cursor:pointer;color:#0066cc;list-style:none}.correction-editor>summary::after{content:' ＋'}.correction-editor[open]>summary::after{content:' −'}.correction-editor .field{margin-top:13px}.correction-editor select{font-size:12px;width:100%;height:34px;border-radius:10px}.correction-editor .text-button{margin-top:12px}.source-heading{margin-bottom:15px}.source-meta{margin-bottom:16px}.source-text{font-size:13px;line-height:1.85}.source-text h1{font-size:22px}.source-text h2{font-size:19px}
.actionbar{border:0;background:transparent;min-height:58px;padding:13px 4px 0}.actions button{font-size:11px;border-radius:999px;padding:8px 15px;box-shadow:none}.actions .primary{background:#0071e3;border-color:transparent}.relations{border:0;border-radius:24px;box-shadow:var(--shadow);padding:0;margin-top:18px;overflow:hidden}.chain-summary{padding:21px 26px;font-size:13px}.relations .relation-heading,.relations #graph{margin:18px 24px}.relations .chain-summary span{font-size:11px}
.task-notice{display:flex;align-items:center;gap:0;border-radius:999px;background:#eaf3ff;padding-right:5px;max-width:400px}.task-progress{background:transparent;max-width:360px;font-size:10px;border-radius:999px;padding:7px 10px;min-width:0}.task-dismiss{width:22px;height:22px;min-width:22px;padding:0;border-radius:50%;border:0;background:transparent;box-shadow:none;font-size:16px;color:#6891bf;line-height:20px}.task-dismiss:hover{background:#d7e8fb}
@media(min-width:761px) and (max-height:850px){.workspace{padding-top:14px}.clientbar{margin-bottom:14px}.picker-line select{font-size:29px}.review-body{height:clamp(390px,calc(100dvh - 305px),550px)}.editor,.source{padding:22px 24px}.editor{gap:16px}.editor .field{min-height:0}.editor .correction-field textarea{min-height:58px}.annotation-summary{font-size:19px}.review-top{height:34px}.actionbar{min-height:53px}.relations{margin-top:14px}.chain-summary{padding:18px 24px}}
@media(max-width:1100px){.document-control{flex-wrap:wrap}.document-control select{max-width:none;flex-basis:60%}.review-tools{flex-wrap:wrap}.review-body{grid-template-columns:minmax(280px,.85fr) minmax(330px,1.15fr);gap:16px}.editor,.source{padding:20px}.annotation-summary{font-size:18px}.document-control #upload,.document-control #manageDocuments{font-size:11px}}
@media(max-width:850px){.review-body{grid-template-columns:1fr;height:auto}.editor,.source{height:auto;min-height:380px}.source{height:520px}.clientbar{flex-wrap:wrap}.client-metrics{gap:16px}.document-control{width:100%}.review-toolbar{flex-wrap:wrap}.review-tools{width:100%}.task-notice{max-width:220px}.task-progress{max-width:185px}.editor .annotation-readout{min-height:120px}.workspace{padding-top:14px}.picker-line select{font-size:27px}.review-corrections textarea{min-height:62px}.client-metrics>span{flex-direction:row;align-items:baseline}.client-metrics strong{font-size:17px}}

/* Keep the source picker compact even on wide displays. */
.document-control select{flex:0 1 360px;width:360px;max-width:360px;min-width:160px}
@media(max-width:1100px){.document-control select{flex-basis:300px;max-width:360px}}
@media(max-width:600px){.document-control select{flex:1 1 180px;max-width:100%;width:100%}}

.annotation-save-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.annotation-save-row span{flex:1;color:var(--muted,#86868b);font-size:12px}.annotation-save-row button{flex-shrink:0}

.table-snapshot-note{font-size:12px;color:#86868b;margin:4px 0 14px}.source-grid-scroll{overflow:auto;border:1px solid #e8e8ed;border-radius:12px;max-height:280px}.source-grid{border-collapse:separate!important;border-spacing:0;font-size:12px!important;margin:0!important;width:100%}.source-grid th{position:sticky;top:0;background:#f5f5f7;color:#6e6e73;z-index:1}.source-grid td{max-width:280px;min-width:130px;white-space:pre-wrap;overflow-wrap:anywhere}.source-grid .current-record td,.source-grid .current-record>th{background:#f0f7ff}.record-detail{padding:18px 0}.record-detail h3{font-size:14px;margin-bottom:14px}.record-detail dl>div{display:grid;grid-template-columns:minmax(85px,25%) 1fr;gap:14px;padding:10px 0;border-bottom:1px solid #f0f0f2}.record-detail dt{font-size:12px;color:#86868b}.record-detail dd{margin:0;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}.table-understanding{font-size:12px;padding:12px;border-radius:12px;background:#f5f5f7}.table-understanding summary{cursor:pointer}

.editor,.source{min-width:0}.source-grid-scroll{width:100%;max-width:100%;box-sizing:border-box}.table-pages{display:flex;gap:8px;justify-content:flex-end;margin:10px 0}.table-pages button{font-size:11px;padding:6px 10px}.table-understanding{margin:0 0 14px}@media(max-width:850px){.review-body{grid-template-columns:minmax(0,1fr)}.annotation-summary{font-size:18px}.source-text{width:100%}}

.table-scope-note{font-size:12px;line-height:1.7;color:#936017;background:#fff7e8;border-radius:10px;padding:10px 12px;margin:0 0 12px}

.ai-source-notice{font-size:12px;line-height:1.7;padding:12px;border-radius:12px;background:#eef6ff;color:#32628b;flex:none}.ai-source-notice[hidden]{display:none}.ai-source-notice.failed,.ai-source-notice.partial{background:#fff3eb;color:#a34422}.ai-source-notice button{margin-top:8px;display:block;font-size:12px}.ai-failure{color:#ad4227;white-space:pre-wrap}.task-progress{max-width:460px}.task-progress span{overflow:hidden;text-overflow:ellipsis}

.sync-warning{margin:12px 32px 0;padding:12px 16px;border-radius:12px;background:#fff3dc;color:#7c4a00;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px}.sync-warning.hidden{display:none}

.task-notice{max-width:560px}.task-progress span{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;text-align:left}@media(max-width:850px){header{height:auto;min-height:60px;padding-top:8px;padding-bottom:8px}.task-notice{max-width:270px}.task-progress{max-width:250px}}

.quick-type{width:auto;max-width:160px;min-height:30px;border:1px solid transparent;padding:5px 28px 5px 12px;cursor:pointer;box-shadow:none;flex-shrink:0;background-color:#f5f5f7}.quick-type:hover{background-color:#eaf3ff;color:#0071e3}.quick-type:focus-visible{outline:3px solid #0071e333;border-color:#0071e3}

/* Sign-in: a quiet introduction, with the same typography and cards as the workspace. */
.login-gate{overflow:auto;display:block;padding:0;background:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
.login-gate>.login-page{width:100%;max-width:none;min-height:100%;padding:36px clamp(24px,6.3vw,100px) 26px;display:flex;flex-direction:column;box-sizing:border-box}
.login-header{display:flex;align-items:center;gap:22px;min-height:40px;max-width:1160px;width:100%;margin:0 auto}
.login-wordmark{font-size:29px;font-weight:750;letter-spacing:-1.6px;line-height:1;color:#1d1d1f}.login-wordmark>span{color:#1d1d1f}.login-header-divider{width:1px;height:22px;background:#d9d9df}.login-product-name{font-size:13px;color:#737378;letter-spacing:.02em}
.login-layout{width:100%;max-width:1040px;flex:1;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 420px;align-items:center;gap:clamp(48px,7vw,112px);padding:68px 0 88px}
.login-eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:.18em;line-height:1.5;color:#737378;margin-bottom:26px}
.login-gate h1{font-size:clamp(44px,4.5vw,64px);font-weight:600;line-height:1.2;letter-spacing:-.05em;margin:0;color:#1d1d1f}.login-gate h1>span{color:#6e6e73}
.login-gate .login-intro-copy{font-size:18px;line-height:1.8;letter-spacing:.015em;color:#6e6e73;margin:26px 0 0}
.login-features{display:flex;flex-wrap:wrap;column-gap:22px;row-gap:14px;margin-top:46px}.login-features>span{display:flex;align-items:center;gap:7px;font-size:12px;color:#6e6e73;white-space:nowrap}.login-features svg{width:19px;height:19px;color:#5b5b61;flex-shrink:0}
.login-card{background:#fff;border:1px solid #fff;border-radius:30px;padding:44px 38px 30px;box-shadow:0 2px 6px #1d1d1f02,0 18px 65px #1d1d1f06;animation:login-appear .5s ease-out both}
.login-app-icon{width:56px;height:56px;display:grid;place-items:center;background:#1d1d1f;border-radius:16px;font-size:38px;font-weight:700;letter-spacing:-3px;line-height:1;color:#fff;padding-right:3px;box-sizing:border-box;box-shadow:0 4px 12px #1d1d1f0d;margin-bottom:31px}
.login-card h2{font-size:29px;font-weight:600;line-height:1.25;letter-spacing:-1px;margin:0;color:#1d1d1f}.login-gate .login-card-copy{font-size:14px;line-height:1.7;color:#6e6e73;margin:12px 0 0}
.login-gate .login-link{display:flex;align-items:center;justify-content:center;gap:10px;position:relative;background:#0071e3;color:#fff;border:0;border-radius:13px;min-height:52px;padding:12px 20px;margin:32px 0 0;text-decoration:none;font-size:15px;font-weight:500;line-height:1.5;transition:background .16s ease,box-shadow .16s ease;box-sizing:border-box}.login-link:hover{background:#0077ed;box-shadow:0 4px 15px #0071e31a}.login-link:active{background:#0068d1}.login-lark-icon{width:25px;height:25px}.login-button-arrow{position:absolute;right:17px;width:17px;height:17px;opacity:.85}
.login-gate .login-account-note{font-size:11px;color:#737378;line-height:1.7;text-align:center;margin:15px 0 0;letter-spacing:.01em}
.login-card-bottom{border-top:1px solid #ededf0;margin-top:32px;padding-top:20px;text-align:center}.login-gate .login-status{font-size:11px;line-height:1.8;color:#737378;margin:0 0 10px;overflow-wrap:anywhere}.login-status:empty{display:none}.login-privacy{font-size:11px;line-height:1.8;color:#6e6e73;text-decoration:none}.login-privacy:hover{color:#0071e3;text-decoration:underline}.login-privacy>span{padding-left:3px;font-size:12px}.login-gate a:focus-visible{outline:3px solid #0071e3;outline-offset:5px}
.login-footer{max-width:1160px;width:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#737378;font-size:10px;line-height:1.8;letter-spacing:.02em}
@keyframes login-appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){.login-gate>.login-page{padding:26px 24px 22px}.login-header{gap:15px}.login-wordmark{font-size:26px}.login-product-name{font-size:12px}.login-layout{grid-template-columns:minmax(0,1fr);max-width:420px;gap:35px;padding:50px 0}.login-intro{text-align:center}.login-eyebrow{font-size:9px;margin-bottom:18px}.login-gate h1{font-size:43px;line-height:1.23;letter-spacing:-2px}.login-gate .login-intro-copy{font-size:15px;line-height:1.8;margin-top:19px}.login-intro-copy br{display:none}.login-features{justify-content:center;margin-top:24px;column-gap:17px;row-gap:10px}.login-features>span{font-size:11px;gap:5px}.login-features svg{width:17px;height:17px}.login-card{border-radius:26px;padding:30px 28px 25px}.login-app-icon{width:48px;height:48px;font-size:33px;border-radius:14px;margin-bottom:25px}.login-card h2{font-size:27px}.login-gate .login-link{margin-top:25px}.login-card-bottom{margin-top:25px}.login-footer{font-size:9px}.login-footer>span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.login-card{animation:none}.login-link{transition:none}}
.login-gate .login-header{justify-content:flex-start;background:transparent;border:0;padding:0;height:auto;position:static;box-shadow:none;flex-shrink:0}

/* Review clarity refinements: keep the Apple-like quiet hierarchy while making the active evidence unmistakable. */
.source-title{display:flex;align-items:center;gap:10px;min-width:0}.source-focus{display:inline-flex;align-items:center;min-height:22px;padding:4px 9px;border-radius:999px;background:#eaf3ff;color:#2864a4;font-size:10px;line-height:1;white-space:nowrap}.source-focus.is-warning{background:#fff4df;color:#94631b}.picker-line select{font-size:21px;line-height:1.2;letter-spacing:-.35px;max-width:330px;min-width:0;padding:5px 28px 5px 0;appearance:auto}.picker-line select option{font-size:14px}.sync-warning{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 24px;border:1px solid #f0d9a5;background:#fff8e8;color:#805c1c;border-radius:14px;margin:0 34px 18px;box-shadow:0 4px 14px rgba(132,93,20,.06)}.sync-warning>div{display:flex;flex-direction:column;gap:3px;min-width:0}.sync-warning strong{font-size:12px;color:#704b0c}.sync-warning span{font-size:11px;line-height:1.5}.sync-warning button{flex:none;border:1px solid #e6c77d;background:#fff;color:#805c1c;border-radius:999px;padding:8px 13px;font-size:11px}.table-evidence-note{margin:10px 0;padding:9px 11px;border-radius:10px;background:#fff7e8;color:#8a631d;font-size:11px;line-height:1.55}.source-text tr.current-record>th{background:#e6f0ff;color:#23558f;box-shadow:inset 3px 0 #2f80ed}.source-text tr.current-record>td{background:#f4f8ff}.source-text tr.current-record mark.current{background:#cfe3ff;color:#174d86;border-bottom-color:#4b93ec}.actionbar{margin:0 24px;padding:12px 0 15px;border-top:1px solid #ececf0}.actionbar>span{font-size:10px;color:#96969e}.actions{align-items:center}.actions button{min-height:36px}.actions .primary{padding-inline:18px;box-shadow:0 5px 12px rgba(0,113,227,.16)}
@media(max-width:760px){.sync-warning{margin:0 16px 14px;padding:11px 13px;align-items:flex-start}.sync-warning button{padding:7px 10px}.source-title{gap:7px}.source-focus{font-size:9px}.picker-line select{font-size:20px;max-width:220px}.actionbar{margin:0 14px;padding-top:10px}}

/* Navigation and review controls: keep the canvas spacious while preserving a quick restore path. */
.rail{transition:width .2s ease,padding .2s ease}.app-shell{transition:margin-left .2s ease}.rail-collapse{position:absolute;right:-13px;bottom:18px;width:27px;height:27px;display:grid;place-items:center;padding:0;border:1px solid #dedee4;border-radius:50%;background:#fff;color:#6e6e73;box-shadow:0 2px 8px #00000012;font-size:17px;line-height:1;z-index:2}.rail-collapse span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.rail.is-collapsed{width:0;padding-left:0;padding-right:0;border-right:0}.rail.is-collapsed>*:not(.rail-collapse){visibility:hidden}.rail.is-collapsed .rail-bottom{position:absolute;left:0;bottom:0;width:0}.rail.is-collapsed .rail-collapse{right:auto;left:0}.app-shell.rail-collapsed{margin-left:0}.nav{gap:10px}.nav>span{margin-right:8px}.nav button{width:31px;height:31px;display:grid;place-items:center;padding:0;border-radius:50%;font-size:20px}.review-corrections{display:flex;flex-direction:column;gap:12px}.review-corrections .actionbar{margin:0;padding:12px 0 0;border-top:1px solid #ececf0}.review-corrections .actionbar>span{max-width:52%;line-height:1.5}.review-corrections .actions{margin-left:auto}
@media(max-width:760px){.rail.is-collapsed{width:0}.review-corrections .actionbar{margin:0;padding-top:10px}.review-corrections .actionbar>span{max-width:45%}}

/* Keep the review card self-contained: edit controls and decisions share one compact row. */
.editor{overflow:hidden}
.correction-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
.correction-footer .correction-editor{flex:1;min-width:0}
.correction-footer .correction-editor>summary{white-space:nowrap}
.correction-footer .actionbar{flex:0 0 auto;margin:0;padding:0;border:0;min-height:36px;display:flex;align-items:center}
.correction-footer .actionbar>span{display:none}
.correction-footer .actions{margin-left:0;gap:7px}
.correction-footer .actions button{min-height:34px;padding:7px 13px}
@media(max-width:760px){.editor{overflow:hidden}.correction-footer{gap:8px}.correction-footer .actions button{font-size:10px;padding:7px 10px}}

/* Compact native selects and a dismissible sync notice. */
.picker-line select{width:auto;max-width:fit-content;padding-right:4px}
.editor-heading select{width:auto;min-width:86px;max-width:126px;padding-right:4px}
.sync-warning-actions{display:flex;align-items:center;gap:8px;flex:none}.sync-warning-dismiss{width:28px;height:28px;padding:0;border:0!important;background:transparent!important;color:#9a7a3b!important;font-size:20px!important;line-height:1;border-radius:50%!important;box-shadow:none!important}.sync-warning-dismiss:hover{background:#fff2cf!important}
.rail{gap:10px}.rail-collapse{position:relative;right:auto;bottom:auto;align-self:flex-end;margin:0 0 4px;width:27px;height:27px}.rail .brand-mark{margin-bottom:24px}.rail.is-collapsed .rail-collapse{position:absolute;left:0;top:18px;right:auto;margin:0}.rail.is-collapsed .rail-bottom{display:none}

/* Quiet desktop-workbench pass: compact chrome, clear edges, less visual weight. */
body{background:#f7f7f8;color:#202124}
header{height:56px;padding:0 26px;background:#fff;border-bottom:1px solid #e8e8eb;box-shadow:none}
.brand{gap:16px;font-size:12px}.brand b{font-size:21px}.brand i{height:18px;background:#d6d6da}.brand>span{color:#6f7076;font-size:12px}
.rail{width:64px;padding:18px 7px;background:#f1f1f3;border-right:1px solid #e3e3e6;backdrop-filter:none}.app-shell{margin-left:64px}.rail .brand-mark{width:32px;height:32px;border-radius:9px;font-size:22px;margin-bottom:20px}.rail-btn{width:50px;height:54px;border-radius:9px;gap:4px}.rail-btn.active{box-shadow:none;background:#fff}.rail-btn span{font-size:10px}.rail-collapse{width:24px;height:24px;font-size:15px;box-shadow:none;background:#fff}
.workspace{max-width:1540px;padding:24px 28px 22px}.clientbar{margin-bottom:20px;min-height:42px}.picker-line select{font-size:27px;font-weight:600}.client-metrics{gap:22px}.client-metrics strong{font-size:20px}.review-toolbar{margin-bottom:14px}.document-control select{height:34px;border:1px solid #e4e4e8;border-radius:8px;box-shadow:none}.document-control #upload,.document-control #manageDocuments{border-radius:8px}.review-tools button,.review-tools select{border:1px solid #e4e4e8;border-radius:8px;background:#fff}
.review-body{gap:14px}.editor,.source{border:1px solid #e4e4e8;border-radius:14px;box-shadow:0 1px 2px #00000008;padding:20px 22px}.editor{gap:16px}.editor-heading h2,.source-heading h2{font-size:16px}.annotation-summary{font-size:19px;line-height:1.55}.annotation-reason{font-size:12px}.info-type{border:1px solid #e4e4e8;border-radius:8px;background:#fafafa}.review-corrections{padding-top:14px}.review-corrections textarea{border:1px solid #e5e5e8;border-radius:8px;background:#fafafa}.feedback-chips button{border-radius:7px}.correction-editor>summary{color:#4d6f9d}.source{background:#fff}.source-heading{margin-bottom:12px}.source-text{font-size:12px;line-height:1.8}.relations{border:1px solid #e4e4e8;border-radius:14px;box-shadow:none;background:#fff}.chain-summary{padding:17px 22px}
.sync-warning{margin:0 28px 14px;border-radius:10px;box-shadow:none}
@media(max-width:760px){.rail{width:56px}.app-shell{margin-left:56px}.workspace{padding:18px 14px}.editor,.source{border-radius:12px;padding:18px}.sync-warning{margin:0 14px 12px}}

/* GPT-like sidebar toggle: a small quiet chevron at the upper-left edge. */
.rail{position:fixed}.rail-collapse{position:absolute;left:9px;top:10px;right:auto;bottom:auto;width:28px;height:28px;border:1px solid #dedee4;border-radius:8px;background:#fff;color:#6e6e73;box-shadow:0 1px 4px #00000012;font-size:19px;line-height:1;z-index:4}.rail .brand-mark{margin-top:38px}.rail.is-collapsed .rail-collapse{position:absolute;left:7px;top:12px;right:auto}.rail.is-collapsed .brand-mark{margin-top:38px}

/* Lightweight top workspace: keep import and progress discoverable without a dense toolbar. */
.clientbar{margin-bottom:14px;min-height:38px}.picker-line select{font-size:25px}.client-metrics{gap:18px}.client-metrics strong{font-size:18px}.client-metrics>span{font-size:10px}.review-toolbar{padding:0;margin-bottom:12px;min-height:34px}.document-control{gap:8px}.document-control label{font-size:10px}.document-control #upload{height:32px;min-height:32px;padding:6px 12px;font-size:11px}.document-control #manageDocuments{height:32px}.review-tools{margin-left:auto}.review-tools select{height:32px}.task-notice{max-width:340px;padding-right:3px}.task-progress{padding:6px 9px;font-size:10px}

/* Lightweight top workspace: keep import and progress discoverable without a dense toolbar. */
.clientbar{margin-bottom:14px;min-height:38px}.picker-line select{font-size:25px}.client-metrics{gap:18px}.client-metrics strong{font-size:18px}.client-metrics>span{font-size:10px}.review-toolbar{padding:0;margin-bottom:12px;min-height:34px}.document-control{gap:8px}.document-control label{font-size:10px}.document-control #upload{height:32px;min-height:32px;padding:6px 12px;font-size:11px}.document-control #manageDocuments{height:32px}.review-tools{margin-left:auto}.review-tools select{height:32px}.task-notice{max-width:340px;padding-right:3px}.task-progress{padding:6px 9px;font-size:10px}

/* Keep the floating toggle clear of the wordmark when the rail is collapsed. */
.app-shell.rail-collapsed header{padding-left:58px}.app-shell.rail-collapsed .brand{gap:14px}.rail-collapse{font-size:0}.rail-collapse::before{content:'‹';font-size:19px;line-height:1}.rail.is-collapsed .rail-collapse::before{content:'›'}.rail-collapse:focus-visible{outline:2px solid #0071e3;outline-offset:2px}

/* Sidebar toggle icon: compact hamburger button with content stacked below. */
.rail-collapse{width:64px;height:64px;left:0;top:14px;border-radius:12px;background:#f8fafc;border:2px solid #d4dce5;box-shadow:none;display:grid;place-items:center}
.rail-collapse::before{content:'';display:block;width:26px;height:3px;border-radius:3px;background:#5c6670;box-shadow:0 8px 0 #5c6670,0 -8px 0 #5c6670}
.rail-collapse:hover{background:#fff;border-color:#c7d1dc}
.rail .brand-mark{margin-top:92px}
.rail.is-collapsed .rail-collapse{left:8px;top:14px;width:50px;height:50px}
.rail.is-collapsed .brand-mark{margin-top:82px}
@media(max-width:760px){.rail-collapse{width:52px;height:52px;left:2px}.rail-collapse::before{width:22px;height:2px;box-shadow:0 7px 0 #5c6670,0 -7px 0 #5c6670}.rail .brand-mark{margin-top:78px}}

/* Match the hamburger toggle to the 32px M mark. */
.rail-collapse{width:36px;height:36px;left:14px;top:12px;border-radius:9px;border-width:1.5px;padding:0;display:grid;place-items:center}
.rail-collapse::before{width:18px;height:2px;box-shadow:0 6px 0 #5c6670,0 -6px 0 #5c6670}
.rail .brand-mark{margin-top:64px}
.rail.is-collapsed .rail-collapse{left:8px;top:12px;width:36px;height:36px}
.rail.is-collapsed .brand-mark{margin-top:64px}
@media(max-width:760px){.rail-collapse{width:34px;height:34px;left:11px}.rail-collapse::before{width:17px;height:2px;box-shadow:0 6px 0 #5c6670,0 -6px 0 #5c6670}.rail .brand-mark{margin-top:60px}}

/* The toggle is icon-only: centered three-line hamburger, no arrow glyph. */
.rail-collapse{font-size:0;position:absolute;display:grid;place-items:center;overflow:hidden}
.rail-collapse::before{content:'';position:absolute;left:50%;top:50%;width:18px;height:2px;transform:translate(-50%,-50%);border-radius:2px;background:#5c6670;box-shadow:0 -6px 0 #5c6670,0 6px 0 #5c6670}

/* Override legacy collapsed-state chevron: hamburger only in both states. */
.rail.is-collapsed .rail-collapse::before{content:''!important;position:absolute;left:50%;top:50%;width:18px;height:2px;transform:translate(-50%,-50%);background:#5c6670;box-shadow:0 -6px 0 #5c6670,0 6px 0 #5c6670}

/* Final sidebar alignment: remove the standalone m tile and match the nav button size. */
.rail{padding-top:78px}
.rail-collapse{width:50px;height:54px;left:7px;top:18px;border-radius:9px;border:1px solid #d4dce5;background:#f8fafc}
.rail-collapse::before,.rail.is-collapsed .rail-collapse::before{width:20px;height:2px;box-shadow:0 -6px 0 #5c6670,0 6px 0 #5c6670}
.rail.is-collapsed{padding-top:0}
.rail.is-collapsed .rail-collapse{left:8px;top:14px;width:50px;height:54px}

/* Keep Settings in the navigation stack, never floating outside a collapsed rail. */
.rail{padding-top:78px}
.rail .brand-mark{display:none}
.rail .rail-bottom{display:contents}
.rail #settingsNav{margin-top:0;flex-shrink:0}
.rail-collapse,.rail.is-collapsed .rail-collapse{position:fixed;top:calc((var(--studio-header-height,48px) - 30px)/2);bottom:auto;left:17px;right:auto;width:30px;height:30px;margin:0;padding:0;font-size:0;visibility:visible;display:grid;place-items:center;border-radius:6px}
.rail-collapse::before,.rail.is-collapsed .rail-collapse::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:22px!important;height:2px!important;background:#5c6670;border-radius:2px;box-shadow:0 -8px 0 #5c6670,0 8px 0 #5c6670!important}
.rail.is-collapsed{width:0;padding:0;border:0}
.rail.is-collapsed #settingsNav,.rail.is-collapsed .rail-btn{display:none;visibility:hidden}
.rail.is-collapsed .rail-bottom{display:contents;visibility:visible}
.rail.is-collapsed .rail-collapse{left:17px}
.app-shell.rail-collapsed header{padding-left:64px}
.app-shell>header{--studio-header-height:48px;height:var(--studio-header-height);position:sticky;top:0;z-index:4}
:root{--studio-header-height:48px}
@media(max-width:760px){:root{--studio-header-height:52px}.app-shell>header{--studio-header-height:52px}.rail-collapse,.rail.is-collapsed .rail-collapse{left:13px}}

/* Bring the customer and review workspace closer to the compact header. */
.workspace{padding-top:10px}
@media(max-width:760px){.workspace{padding-top:8px}}

.annotation-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:10px}.annotation-context .text-button{font-size:10px;padding:2px 0}.annotation-context>span{margin-right:auto}.identity-fields{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:12px}.identity-fields input,.identity-fields select{min-width:0}
