/* Teacher toolbox import card; kept hidden until the workbench mounts. */
.workbench-import-tool{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px;border:1px solid #efd7ca;border-left:3px solid #f15a32;padding:17px;background:linear-gradient(125deg,#fff8f2,#fff 80%);color:#292c34}
.workbench-import-tool[hidden]{display:none!important}
.workbench-import-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#ffebe0;color:#e6562e;font-size:26px;line-height:1}
.workbench-import-copy{min-width:0}.workbench-import-copy>small{display:block;margin-bottom:5px;color:#c76c4e;font-size:9px;font-weight:800;letter-spacing:.12em}.workbench-import-copy>b{display:block;font-size:16px;line-height:1.4}.workbench-import-copy>p{margin:6px 0 0;color:#7a7f88;font-size:12px;line-height:1.65}
.workbench-import-tool>button{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 13px;border:1px solid #292c34;border-radius:8px;background:#292c34;color:#fff;font:inherit;font-size:12px;font-weight:750;cursor:pointer}.workbench-import-tool>button>span{color:#ff9a79;font-size:18px;line-height:1}.workbench-import-tool>button:hover:not(:disabled){background:#3c4049}.workbench-import-tool>button:focus-visible{outline:3px solid #ff9b73;outline-offset:3px}.workbench-import-tool>button:disabled{cursor:default;background:#ece7e3;color:#9b8f86;border-color:#e4dbd5}.workbench-import-tool>button:disabled>span{color:inherit}
#handbookImportLastStatus{grid-column:1/-1;display:block;overflow-wrap:anywhere;border-top:1px solid #f2e5dc;padding-top:11px;font-size:10px;line-height:1.65;color:#a28b7c}
.hi-dialog{width:min(1180px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #e2e4e8;border-radius:16px;color:#25272e;background:#fff;box-shadow:0 30px 120px #151a3266}.hi-dialog::backdrop{background:#171c2b80;backdrop-filter:blur(4px)}.hi-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 42px)}.hi-head{flex-shrink:0;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid #ececef;background:linear-gradient(115deg,#fff7f1,#fff)}.hi-head small{font-size:10px;letter-spacing:2px;font-weight:850;color:#d4512d}.hi-head h2{margin:7px 0;font-size:25px}.hi-head p{margin:0;color:#777d87;font-size:13px}.hi-head>button{border:1px solid #e4e5e9;background:white;border-radius:9px;width:38px;height:38px;font-size:24px;flex-shrink:0;cursor:pointer}.hi-body{overflow:auto;padding:22px 28px;overscroll-behavior:contain;min-height:0}.hi-upload{display:flex;align-items:center;gap:14px;border:1px dashed #e6bb9f;border-radius:10px;padding:18px 22px;cursor:pointer;background:#fffcf9}.hi-upload>span{font-size:28px;color:#ec5a2f}.hi-upload b{font-size:14px}.hi-upload p{margin:5px 0 0;font-size:12px;color:#81818a}.hi-upload:hover,.hi-upload.dragover{border-color:#ff5a2f;background:#fff3e9}.hi-message{margin:13px 0;font-size:13px;line-height:1.65;color:#737984}.hi-message.success{color:#26795b}.hi-message.error{color:#bb552c}.hi-result-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 12px}.hi-result-title b{font-size:14px;overflow-wrap:anywhere}.hi-result-title span{display:block;margin-top:5px;font-size:12px;color:#8b8e98}.hi-result-title button,.hi-adjust{border:1px solid #e3e4e9;border-radius:7px;padding:7px 10px;background:white;color:#4e5663;cursor:pointer;font-size:12px}.hi-table-wrap{border:1px solid #e7e8ed;border-radius:10px;overflow:auto}.hi-table-wrap table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.hi-table-wrap th{padding:10px 12px;text-align:left;background:#f8f8fa;color:#757b87;font-size:11px;font-weight:800}.hi-table-wrap th:first-child{width:54px}.hi-table-wrap th:last-child{width:126px}.hi-table-wrap td{padding:15px 12px;vertical-align:top;border-top:1px solid #ececf1;overflow-wrap:anywhere}.hi-table-wrap td p{margin:6px 0;line-height:1.6}.hi-table-wrap td>small{font-size:11px;color:#8a909c}.hi-table-wrap td>b{display:block;line-height:1.65}.hi-table-wrap td>span{display:block;margin:4px 0;color:#7d8490;font-size:12px;line-height:1.5}.hi-table-wrap input[type=checkbox]{width:16px;height:16px;accent-color:#f15a32;margin:3px}.hi-table-wrap select{width:100%;border:1px solid #e0e3e8;background:white;border-radius:7px;padding:8px 4px;font:inherit;font-size:12px}.hi-table-wrap .hi-match-reason{display:block;margin:6px 0;color:#428168;font-size:11px}.hi-table-wrap .hi-renamed{color:#c46932}.hi-pending{background:#fffaf1}.hi-pending .hi-match-reason{color:#af7926}.hi-adjust{font-size:11px;padding:4px 7px}.hi-table-wrap input[type=search]{box-sizing:border-box;width:100%;margin-top:10px;padding:9px;border:1px solid #dfc6b4;border-radius:7px;font:inherit}.hi-table-wrap [data-hi-search-results]>button{display:block;text-align:left;border:1px solid #e3e5ea;background:#fff;border-radius:7px;padding:10px;width:100%;margin-top:6px;cursor:pointer}.hi-table-wrap [data-hi-search-results]>button:hover{border-color:#ff5a2f}.hi-table-wrap [data-hi-search-results] span,.hi-table-wrap [data-hi-search-results] small{display:block;margin-top:5px;font-size:11px;color:#848a96}.hi-table-wrap [data-hi-search-results] small{color:#d25b34}.hi-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e8e9ed;background:#fff;padding:18px 28px;flex-shrink:0}.hi-footer>div{font-size:13px;font-weight:650;color:#666d79}.hi-footer>button{border:0;border-radius:9px;background:#ff5a2f;color:#fff;font-weight:800;padding:13px 24px;cursor:pointer}.hi-footer>button:disabled{background:#e8eaee;color:#a2a7b0;cursor:default}
@media(max-width:700px){.hi-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.hi-shell{max-height:calc(100dvh - 18px)}.hi-head{padding:18px 16px}.hi-head h2{font-size:22px}.hi-body{padding:16px}.hi-table-wrap table{min-width:620px}.hi-upload{padding:14px}.hi-footer{padding:14px 16px}.hi-footer>div{font-size:11px}.hi-footer>button{padding:12px 15px;white-space:nowrap}}
.hi-dialog{max-width:calc(100vw - 16px)}
.hi-result-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.hi-result-actions [aria-pressed=true]{border-color:#efb091;background:#fff2e9;color:#bc502b}.hi-empty{padding:18px;color:#428168;font-size:13px}.hi-upload:focus-visible{outline:3px solid #ff5a2f55;outline-offset:3px}
@media(max-width:700px){.hi-table-wrap table{min-width:0;display:block}.hi-table-wrap thead{display:none}.hi-table-wrap tbody{display:block}.hi-table-wrap tr{display:block;position:relative;border-bottom:1px solid #e5e7ec;padding:12px 14px}.hi-table-wrap tr:last-child{border-bottom:0}.hi-table-wrap td{display:block;border:0;padding:8px 0}.hi-table-wrap td:first-child{position:absolute;top:15px;left:13px;padding:0}.hi-table-wrap td:nth-child(2){padding-left:28px}.hi-table-wrap td:nth-child(2)::before{content:'原手册';display:block;color:#969ba6;font-size:10px;margin-bottom:4px}.hi-table-wrap td:nth-child(3){padding-top:10px;border-top:1px dashed #e9e9ee}.hi-table-wrap td:nth-child(3)::before{content:'对应当前项目';display:block;color:#969ba6;font-size:10px;margin-bottom:4px}.hi-table-wrap td:nth-child(4){display:flex;align-items:center;gap:12px}.hi-table-wrap td:nth-child(4)::before{content:'定位';color:#838a97;font-size:11px}.hi-table-wrap select{max-width:180px}.hi-result-title{align-items:flex-start}.hi-result-title button{white-space:nowrap}.hi-body{padding:14px}.hi-table-wrap td p{font-size:12px}}
