:root{--blue:#2878d6;--blue-soft:#edf5ff;--text:#273142;--muted:#657284;--line:#e2e7ed;--bg:#f3f5f8;--green:#14764a;--red:#b43b32;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button{min-height:44px;padding:0 15px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--text);transition:background .18s}button:hover{background:#f0f5fb}button:disabled{opacity:.45;cursor:default}button.primary{color:white;background:var(--blue);border-color:var(--blue)}button.primary:hover{background:#1d65ba}input,select{height:40px;border:1px solid #cbd5e1;border-radius:4px;padding:0 10px;background:white;color:var(--text);max-width:100%}input[type=number]{width:74px}input[type=checkbox]{height:18px;width:18px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}h1,h2,p{margin:0}h1{font-size:17px}h2{font-size:14px}strong{font-weight:600}[hidden]{display:none!important}:focus-visible{outline:3px solid #8abcf4;outline-offset:2px}.skip{position:absolute;top:-50px}.skip:focus{top:0;background:white;padding:12px;z-index:20}.topbar{margin:14px 16px 12px;background:white;border:1px solid var(--line);border-radius:8px;min-height:64px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;gap:12px}.brand,.header-right{display:flex;align-items:center;gap:14px}.brand strong{font-size:18px}.brand-mark{font-size:25px;color:var(--blue)}.subtitle{padding-left:14px;border-left:1px solid var(--line);color:var(--muted)}.connection{font-size:12px;color:var(--green)}.connection.offline{color:var(--red)}.demo-badge{color:#617289;background:#f1f4f8;padding:4px 8px;border-radius:4px;font-size:12px}.layout{display:grid;grid-template-columns:260px minmax(0,1fr);margin:0 16px 16px;min-height:calc(100vh - 106px);border:1px solid var(--line);border-radius:8px;background:white;overflow:hidden}.sidebar{border-right:1px solid var(--line);padding:16px;background:#fbfcfe}.side-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.side-heading span{color:var(--muted);font-size:12px}.doctor-card{border:1px solid #a9caf0;border-radius:6px;overflow:hidden}.doctor-strip{display:flex;justify-content:space-between;background:var(--blue);color:white;padding:10px 12px;font-size:13px}.doctor-strip span{opacity:.85;font-size:12px}.doctor-body{background:var(--blue-soft);padding:14px;display:flex;flex-direction:column;gap:9px}.doctor-body>strong{font-size:17px}.doctor-body>span{font-size:12px;color:var(--muted)}.doctor-count{display:flex;justify-content:space-between;margin-top:4px;color:var(--muted)}.doctor-count strong{color:var(--blue);font-size:19px}.scenes-heading{margin-top:26px}.scenes{display:flex;flex-direction:column;gap:8px}.scene{padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:5px}.scene.active{border-color:var(--blue);background:var(--blue-soft);color:#1c62b1}.scene-title{font-weight:600}.scene-desc{font-size:12px;color:var(--muted)}.side-note{margin-top:24px;color:var(--muted);font-size:12px;line-height:1.8}.queue-panel{min-width:0}.doctor-tab{display:flex;align-items:center;gap:20px;background:#f8fafc;border-bottom:1px solid var(--line);min-height:48px;padding:0 22px}.doctor-tab strong{color:var(--blue);border-bottom:2px solid var(--blue);align-self:stretch;display:flex;align-items:center;font-size:14px}.doctor-tab span{color:var(--muted);font-size:12px}.queue-heading{padding:18px 22px 12px;display:flex;justify-content:space-between;align-items:center}.queue-heading>div{display:flex;align-items:center;gap:14px}.queue-heading span{color:var(--muted);font-size:13px}.queue-heading .count{color:var(--blue);background:var(--blue-soft);padding:7px 12px;border-radius:4px}.scenario-line{padding:0 22px 16px;display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.scenario-line strong{color:var(--text);white-space:nowrap}.insert-toolbar{margin:0 22px 16px;padding:14px 16px;border:1px solid var(--line);border-radius:6px;background:#f9fbfd;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.incoming{display:flex;align-items:center;gap:10px;min-width:150px}.avatar{height:40px;width:40px;border-radius:6px;background:#e3edfc;color:var(--blue);display:grid;place-items:center;font-weight:600}.incoming>div{display:flex;flex-direction:column;gap:5px}.incoming span:last-child{font-size:12px;color:var(--muted)}.input-fields{display:flex;gap:12px;flex:1}.insert-toolbar>button{align-self:flex-end}.table-wrap{margin:0 22px;max-height:calc(100vh - 372px);min-height:280px;overflow:auto;border:1px solid var(--line);border-radius:5px}table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}th{position:sticky;top:0;background:#f2f5f9;color:#56657a;font-size:12px;font-weight:500;height:38px;z-index:1}td,th{padding:7px 12px;border-bottom:1px solid var(--line)}td{height:49px;font-size:13px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f7faff}.number-col{width:65px}.action-col{width:150px}.patient-name{font-weight:600}.patient-id{display:block;font-size:11px;color:var(--muted);margin-top:2px}.tag{display:inline-block;padding:3px 7px;border-radius:3px;background:#f0f2f5;color:#5b6879;font-size:12px}.tag.return{color:#166549;background:#e5f4ed}.tag.blood{color:#985518;background:#fff0df}.tag.home{color:#315da6;background:#e9f0ff}.tag.passed{color:#825183;background:#f5ebf5}.row-actions{display:flex;gap:4px}.row-actions button{padding:0 8px;min-width:36px;min-height:44px;color:var(--blue);border-color:transparent;background:transparent}.row-actions button:hover{background:var(--blue-soft)}.status-text{color:var(--muted);font-size:12px}.preview-row,.preview-row:hover{background:#eaf4ff}.preview-row td{border-top:2px dashed #83b5ee;border-bottom:2px dashed #83b5ee;color:#195da7}.preview-row .patient-name{color:var(--blue)}.inserted,.inserted:hover{background:#edf9f0}.inserted td:first-child{box-shadow:inset 3px 0 #2d985d}.model-marker td{padding:5px 12px;color:var(--red);background:#fff5f0;height:30px;font-size:12px}.decision,.notice,.error{margin:0 22px 14px;padding:12px 14px;border:1px solid #b3d2f5;background:var(--blue-soft);border-radius:5px}.decision{display:flex;justify-content:space-between;align-items:center;gap:12px}.decision p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:4px}.decision.bad{background:#fff8ed;border-color:#efc68e}.decision.bad strong{color:#87501d}.notice{background:#edf9f0;border-color:#bee1c8;color:var(--green)}.error{background:#fff0ee;border-color:#eebdb6;color:var(--red)}.queue-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;color:var(--muted);font-size:12px}.empty{text-align:center;padding:50px;color:var(--muted)}.detail-panel{margin:0 22px 16px;border-top:1px solid var(--line);padding-top:12px;color:var(--muted);font-size:12px;line-height:1.8}summary{cursor:pointer;min-height:32px}details p{margin:8px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fa;padding:12px;max-height:260px;overflow:auto;font-size:12px}dialog{width:420px;max-width:calc(100vw - 32px);border:1px solid var(--line);border-radius:8px;padding:22px}dialog::backdrop{background:#14243e55}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-header button{font-size:22px}dialog label{margin:14px 0}.checkbox-label{display:flex;flex-direction:row;align-items:center}.helper{font-size:12px;color:var(--muted);line-height:1.8}.dialog-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.danger{color:var(--red)}@media(min-width:1500px){.layout{grid-template-columns:290px minmax(0,1fr)}}@media(max-width:1050px){.layout{grid-template-columns:220px minmax(0,1fr)}.secondary-col{display:none}.scenario-line{align-items:flex-start;flex-direction:column;gap:5px}.table-wrap{max-height:520px}.action-col{width:135px}.incoming{min-width:125px}.insert-toolbar{gap:12px}}@media(max-width:700px){.topbar{margin:8px;flex-wrap:wrap;padding:10px 12px}.header-right{width:100%;justify-content:space-between;gap:8px}.layout{display:block;margin:0 8px 8px}.sidebar{padding:12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.side-heading:first-child,.doctor-card,.side-note{display:none}.scenes-heading{margin:0 0 10px}.scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.scene{padding:8px;min-height:52px}.scene-desc{display:none}.scene-title{font-size:12px}.doctor-tab{padding:0 12px}.queue-heading{padding:14px 12px 10px}.scenario-line{padding:0 12px 12px}.insert-toolbar{margin:0 12px 12px;padding:12px}.incoming{width:100%}.input-fields{min-width:0}.input-fields select{width:145px}.insert-toolbar>button{width:100%}.table-wrap{margin:0 12px;max-height:480px;min-height:220px}td,th{padding:6px;font-size:12px}.number-col{width:36px}.action-col{width:56px}.row-actions button:not(.edit){display:none}.patient-id{font-size:10px}.row-actions button{padding:0 4px;min-width:44px}.decision,.notice,.error{margin:0 12px 12px}.decision{flex-direction:column;align-items:stretch}.decision button{width:100%}.queue-footer{padding:12px;font-size:11px}.detail-panel{margin:0 12px 12px}.queue-heading>div{gap:10px}.queue-heading>div>span{display:none}.demo-badge{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:701px){.layout{height:calc(100vh - 106px);min-height:0}.sidebar{overflow-y:auto}.queue-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}.queue-panel>div:not(.table-wrap),.queue-panel>section,.queue-panel>details{flex-shrink:0}.table-wrap{flex:1;min-height:150px;max-height:none}.action-col{width:170px}.row-actions button{min-width:44px}}
