:root{color:#182230;background:#f5f7fb;font-family:Inter,PingFang SC,Microsoft YaHei,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f5f7fb}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:28px;height:72px;padding:0 40px;background:#fff;border-bottom:1px solid #e3e8ef}.brand-button{padding:0;color:#182230;font-size:20px;font-weight:700;background:none;border:0}.main-nav{display:flex;gap:10px}.main-nav button{height:32px;padding:0 22px;color:#475467;background:transparent;border:0;border-radius:8px}.main-nav button.active{color:#175cd3;font-weight:700;background:#eaf2ff}.service-state,.role-label{color:#344054;font-size:13px}.service-state{display:flex;align-items:center;gap:9px;margin-left:auto}.service-dot{width:10px;height:10px;background:#12b76a;border-radius:999px}.menu-button{display:none;width:40px;height:40px;background:#fff;border:1px solid #d0d5dd;border-radius:8px}.shell-main{padding:32px 64px 52px}.page,.detail-page{max-width:1440px;margin:0 auto}.page-header,.detail-toolbar,.panel-title-row,.dialog-header,.dialog-footer,.preview-header,.issue-select,.summary-line,.editor-actions,.sheet-actions{display:flex;align-items:center}.page-header{justify-content:space-between;margin-bottom:30px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:8px;font-size:28px;line-height:1.2}h2,h3{margin-bottom:18px;font-size:18px}p{color:#667085}.primary-button,.secondary-button,.row-button{min-height:38px;padding:0 18px;border-radius:8px}.primary-button{color:#fff;font-weight:700;background:#175cd3;border:1px solid #175cd3}.primary-button:disabled{background:#98a2b3;border-color:#98a2b3}.secondary-button,.row-button{color:#344054;background:#fff;border:1px solid #d0d5dd}.row-button{color:#fff;font-weight:700;background:#175cd3;border-color:#175cd3}.secondary-button:disabled{color:#98a2b3;background:#f2f4f7}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-bottom:28px}.metric-card,.panel,.detail-toolbar,.preview-panel,.issue-panel,.rule-toolbar,.rule-column,.create-dialog{background:#fff;border:1px solid #d9e0ea;box-shadow:0 8px 20px #1018280a}.metric-card{min-height:118px;padding:26px 24px;border-radius:8px}.metric-card span,.metric-card small{display:block;color:#667085;font-size:13px}.metric-card strong{display:inline-block;margin:14px 14px 0 0;font-size:34px;line-height:1}.metric-danger{color:#b42318}.metric-warning{color:#b54708}.metric-success{color:#027a48}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:24px;margin-bottom:28px}.panel{padding:24px;border-radius:8px}.status-bar{display:flex;width:100%;height:18px;overflow:hidden;background:#eef2f6;border-radius:999px}.status-bar span{display:block}.bar-blue{width:32%;background:#175cd3}.bar-orange{width:22%;background:#f79009}.bar-green{width:30%;background:#12b76a}.legend-row,.risk-grid{display:flex;gap:24px;margin-top:28px;color:#344054;font-size:13px}.risk-grid{margin-top:0}.risk-card{flex:1;min-height:76px;padding:22px;border-radius:8px}.risk-card strong,.risk-card span{display:block}.risk-card span{margin-top:10px;color:#667085;font-size:13px}.risk-card.danger{background:#fef3f2}.risk-card.warning{background:#fffaeb}.risk-card.neutral{background:#f8fafc}.task-panel{padding:0;overflow:hidden}.panel-title-row{justify-content:space-between;padding:22px 24px}.compact-actions{display:flex;gap:12px}select,input,textarea{color:#344054;background:#fff;border:1px solid #d0d5dd;border-radius:8px}select,input{min-height:38px;padding:0 12px}textarea{min-height:72px;padding:10px 12px;resize:vertical}.task-table{width:100%}.task-row{display:grid;grid-template-columns:1.3fr .8fr 1.45fr .7fr 1.25fr .7fr .7fr 104px;gap:16px;align-items:center;min-height:66px;padding:0 32px;border-top:1px solid #e4e7ec}.task-row--head{min-height:42px;color:#667085;font-size:13px;font-weight:700}.task-card-list{display:none}.dangerText{color:#b42318}.badge{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-height:26px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.badge--neutral{color:#344054;background:#f2f4f7}.badge--info{color:#175cd3;background:#eaf2ff}.badge--success{color:#027a48;background:#ecfdf3}.badge--warning{color:#b54708;background:#fffaeb}.badge--danger{color:#b42318;background:#fef3f2}.modal-backdrop,.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:24px;background:#1018285c}.create-dialog{width:min(940px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:8px}.dialog-header{justify-content:space-between;padding:34px 40px 24px;border-bottom:1px solid #e4e7ec}.icon-button,.ghost-icon,.back-button{color:#667085;background:#fff;border:0}.icon-button{width:40px;height:40px;font-size:26px}.create-grid{display:grid;grid-template-columns:1fr 1fr;min-height:480px}.create-panel{padding:30px 40px}.create-panel--rules{border-left:1px solid #e4e7ec}.upload-drop{display:grid;width:100%;min-height:122px;padding:20px;text-align:left;background:#f8fafc;border:1px dashed #b8c4d3;border-radius:8px}.upload-icon{display:inline-grid;place-items:center;width:40px;height:40px;margin-bottom:8px;color:#175cd3;background:#eaf2ff;border-radius:999px}.upload-drop small,.rule-choice small,.detail-card span,.category-card small{color:#667085}.upload-drop em{margin-top:6px;color:#b54708;font-size:12px;font-style:normal}.file-stack,.rule-choice-list{display:grid;gap:12px;margin-top:24px}.file-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:14px 16px;border:1px solid #e4e7ec;border-radius:8px}.file-row.blocked{border-color:#fec84b}.file-row strong,.file-row span,.file-row p{display:block}.file-row span,.file-row p{margin:4px 0 0;font-size:12px}.file-row p,.inline-warning,.delete-reason,.export-reason{color:#b54708}.field-label{display:block;margin:28px 0 12px;font-weight:700}.chip-row{display:flex;flex-wrap:wrap;gap:10px}.choice-chip{min-height:34px;padding:0 18px;color:#344054;background:#f8fafc;border:1px solid #d0d5dd;border-radius:999px}.choice-chip.active{color:#175cd3;font-weight:700;background:#eaf2ff;border-color:#84adff}.rule-choice{display:grid;grid-template-columns:20px 1fr;gap:12px;align-items:start;padding:12px;border:1px solid #d0d5dd;border-radius:8px}.rule-choice small,.rule-choice em{display:block;margin-top:3px;font-size:12px;font-style:normal}.selection-summary{margin-top:18px}.dialog-footer{justify-content:flex-end;gap:12px;padding:24px 40px;border-top:1px solid #e4e7ec}.dialog-footer .inline-warning{margin-right:auto}.detail-toolbar{gap:18px;min-height:64px;margin-bottom:20px;padding:14px 18px;border-radius:8px}.back-button{font-size:22px}.detail-toolbar h1{margin-bottom:4px;font-size:16px}.detail-toolbar p{margin-bottom:0;font-size:12px}.mode-toggle{display:flex;gap:4px;padding:4px;background:#f2f4f7;border-radius:8px}.mode-toggle button{min-height:34px;padding:0 20px;color:#344054;background:#fff;border:1px solid #d0d5dd;border-radius:8px}.mode-toggle button.active{color:#175cd3;font-weight:700;background:#eaf2ff;border-color:#eaf2ff}.toolbar-spacer{flex:1}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 422px;gap:24px}.preview-panel,.issue-panel{border-radius:8px}.preview-panel{padding:26px}.preview-header{gap:18px;margin-bottom:20px}.preview-header span{margin-left:12px;color:#667085;font-size:12px}.zoom-controls{margin-left:auto;color:#667085}.document-frame{position:relative;min-height:614px;padding:40px 9%;background:#fafbfc;border:1px solid #e4e7ec;border-radius:8px}.mock-document{position:relative;min-height:535px;padding:56px 62px;background:#fff;border:1px solid #d0d5dd;border-radius:4px}.mock-document h2{font-size:22px}.mock-document p{margin-bottom:38px;color:#344054;font-size:16px}.doc-line{display:inline-block;padding:9px 14px;color:#182230;background:#fef3f2;border:2px solid #f04438;border-radius:4px}.annotation{position:absolute;z-index:2;min-width:74px;min-height:44px;color:#fff;font-size:12px;font-weight:700;background:#d92d20e0;border:2px solid #d92d20;border-radius:8px}.annotation.active{outline:3px solid #84adff}.redaction{position:absolute;z-index:3;background:#111827;border-radius:3px}.redaction-one{left:22%;top:28%;width:44%;height:9%}.redaction-two{left:47%;top:43%;width:21%;height:8%}.issue-panel{display:grid;grid-template-rows:auto 1fr auto;max-height:760px;overflow:hidden}.summary-box,.decision-box,.issue-list{padding:24px 30px}.summary-box{border-bottom:1px solid #e4e7ec}.summary-line{gap:14px}.issue-list{overflow:auto}.issue-card{padding:18px 20px;margin-bottom:12px;border:1px solid #e4e7ec;border-radius:8px}.issue-card.danger{background:snow;border-color:#fda29b}.issue-card.active{box-shadow:0 0 0 2px #84adff}.issue-select{justify-content:space-between;width:100%;padding:0;text-align:left;background:transparent;border:0}.issue-card p,.issue-card small{display:block;margin:12px 0 0;color:#344054;font-size:13px}.issue-card small{color:#667085;font-size:12px}.issue-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.issue-actions textarea,.issue-actions input{grid-column:1 / -1}.decision-box{background:#f8fafc;border-top:1px solid #e4e7ec}.decision-actions{display:flex;gap:12px}.success-line{color:#027a48}.unavailable-note{margin:14px 0 0;color:#b54708}.mobile-review-bar,.sheet-backdrop{display:none}.rule-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:24px;padding:14px 24px;border-radius:8px}.rule-toolbar input{width:min(336px,100%)}.rule-toolbar .secondary-button{margin-left:auto}.rule-layout{display:grid;grid-template-columns:310px minmax(380px,456px) minmax(420px,1fr);gap:20px}.rule-column{min-height:604px;padding:26px;border-radius:8px}.category-card,.detail-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-bottom:12px;border:1px solid #e4e7ec;border-radius:8px}.category-card.active,.detail-card.active{background:#eaf2ff;border-color:#84adff}.detail-card.danger{background:snow;border-color:#fda29b}.category-card.disabled,.detail-card.disabled{opacity:.68}.category-card button:first-child,.detail-card button:first-child{display:grid;gap:8px;width:100%;padding:18px 20px;text-align:left;background:transparent;border:0}.detail-card .badge{margin-right:14px}.sort-button{width:36px;height:36px;color:#667085;background:#fff;border:1px solid #d0d5dd;border-radius:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label,.issue-sheet label{display:grid;gap:8px;color:#344054;font-size:13px;font-weight:700}.form-grid label:nth-last-child(-n+4){grid-column:1 / -1}.action-fieldset{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0;padding:16px;border:1px solid #e4e7ec;border-radius:8px}.action-fieldset legend{color:#344054;font-weight:700}.action-fieldset label{color:#344054;font-size:13px}.reference-note{padding:16px;background:#f8fafc;border:1px solid #e4e7ec;border-radius:8px}.reference-note .badge{margin-right:8px}.reference-note p{margin:12px 0 0;font-size:12px}.empty-state{padding:26px;background:#f8fafc;border:1px dashed #d0d5dd;border-radius:8px}.toast{position:fixed;right:32px;bottom:32px;z-index:60;padding:14px 18px;color:#027a48;background:#ecfdf3;border:1px solid #abefc6;border-radius:8px;box-shadow:0 12px 30px #10182829}@media (max-width: 1100px){.shell-main{padding:24px}.metric-grid,.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid,.rule-layout{grid-template-columns:1fr}.issue-panel{max-height:none}}@media (max-width: 767px){.topbar{gap:12px;height:64px;padding:0 16px}.menu-button{display:inline-grid;place-items:center}.brand-button{font-size:16px}.main-nav{position:absolute;top:64px;right:16px;left:16px;display:none;flex-direction:column;padding:12px;background:#fff;border:1px solid #d9e0ea;border-radius:8px;box-shadow:0 12px 26px #10182824}.main-nav--open{display:flex}.service-state,.role-label{display:none}.shell-main{padding:18px 14px 90px}.page-header{align-items:flex-start;gap:16px}h1{font-size:24px}.metric-grid,.overview-grid{grid-template-columns:1fr 1fr;gap:12px}.metric-card{min-height:104px;padding:18px}.metric-card strong{font-size:28px}.overview-grid{grid-template-columns:1fr}.risk-grid{flex-direction:column;gap:10px}.task-table{display:none}.task-card-list{display:grid;gap:12px;padding:0 16px 18px}.mobile-task-card{padding:16px;border:1px solid #e4e7ec;border-radius:8px}.mobile-task-card div{display:flex;justify-content:space-between;gap:10px}.create-dialog{width:100%;height:100%;max-height:none;border-radius:0}.modal-backdrop{padding:0}.create-grid{grid-template-columns:1fr}.create-panel{padding:22px}.create-panel--rules{border-top:1px solid #e4e7ec;border-left:0}.dialog-header,.dialog-footer{padding:20px 22px}.dialog-footer{position:sticky;bottom:0;background:#fff}.detail-toolbar{flex-wrap:wrap}.mode-toggle{order:3;width:100%}.mode-toggle button{flex:1}.detail-grid{display:block}.preview-panel{padding:14px}.preview-header{flex-wrap:wrap}.document-frame{min-height:calc(100vh - 260px);padding:18px}.mock-document{min-height:460px;padding:34px 24px}.issue-panel{display:none}.mobile-review-bar{position:fixed;right:12px;bottom:12px;left:12px;z-index:30;display:grid;grid-template-columns:1fr 1.4fr auto;gap:10px;align-items:center;padding:12px;background:#fff;border:1px solid #d9e0ea;border-radius:8px;box-shadow:0 12px 30px #10182829}.sheet-backdrop{z-index:50;display:flex;align-items:flex-end;padding:0}.issue-sheet{position:relative;width:100%;max-height:64vh;overflow:auto;padding:12px 20px 20px;background:#fff;border-radius:8px 8px 0 0}.sheet-handle{width:44px;height:4px;margin:0 auto 14px;background:#d0d5dd;border-radius:999px}.sheet-close{position:absolute;right:12px;top:12px}.issue-sheet textarea,.issue-sheet input{width:100%;margin:8px 0 12px}.rule-toolbar,.panel-title-row{flex-wrap:wrap}.rule-toolbar .secondary-button{margin-left:0}.rule-column{min-height:auto;padding:18px}.form-grid,.action-fieldset{grid-template-columns:1fr}.form-grid label:nth-last-child(-n+4){grid-column:auto}}
