.scan-open{width:100%;margin:0 0 20px!important;min-height:46px;justify-content:center;border-color:#86bdc6!important;color:#bde3e8!important}
.scan-dialog{width:min(1480px,calc(100vw - 40px));height:min(920px,calc(100dvh - 40px));max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid #5d6267;border-radius:8px;background:#23272b;color:#e9ecee;box-shadow:0 30px 100px #0009;display:none;font:14px/1.5 var(--font)}
.scan-dialog[open]{display:flex;flex-direction:column}.scan-dialog::backdrop{background:#101315d9;backdrop-filter:blur(4px)}
.scan-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 25px;border-bottom:1px solid #464b50;background:#282d31}.scan-header>div{min-width:0}.scan-eyebrow{font-size:12px;letter-spacing:.15em;color:#98cbd2}.scan-header h2{font-size:20px;line-height:1.4;margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scan-header button{flex-shrink:0}
.scan-dialog button,.scan-dialog select{color:#e9ecee;background:#30363b;border:1px solid #68727a;border-radius:4px;font:inherit;padding:8px 12px;min-height:38px}.scan-dialog button:hover{background:#414c54;border-color:#b5d4dc}.scan-dialog button:disabled{opacity:.55}.scan-dialog input{accent-color:#8bc7d1}.scan-dialog :is(button,input,select):focus-visible{outline:2px solid #a6dde4;outline-offset:3px}
.scan-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 25px;border-bottom:1px solid #464b50;background:#272c30}.scan-toolbar label{display:flex;gap:9px;align-items:center}.scan-toolbar .scan-switch{margin-left:8px}.scan-switch input{width:16px;height:16px}
.scan-layout{display:grid;grid-template-columns:280px minmax(0,1fr);flex:1;min-height:0}.scan-sidebar{padding:22px 18px;background:#252a2e;border-right:1px solid #464b50;overflow:auto}.scan-sidebar h3{font-size:16px;margin:0 0 6px}.scan-muted{color:#adb6bd;font-size:13px;line-height:1.6}.scan-model{padding:15px 0;border-top:1px solid #465057}.scan-model-name{display:flex;gap:9px;align-items:flex-start}.scan-model-name input{width:17px;height:17px;flex-shrink:0;margin-top:3px}.scan-model-name strong{font-size:14px;overflow-wrap:anywhere;font-weight:500}.scan-model-info{display:block;font-size:12px;color:#aab6bf;margin:7px 0 12px 26px}.scan-model-controls label{display:block;color:#bdc7ce;font-size:14px}.scan-model-controls input{display:block;width:100%;margin:8px 0 12px}.scan-model-controls button{font-size:14px;min-height:32px;padding:5px 10px}.scan-sources{margin-top:20px;padding-top:18px;border-top:1px solid #465057}.scan-sources summary{cursor:pointer;font-weight:600;margin-bottom:12px}.scan-source{display:flex;gap:8px;align-items:center;padding:12px 0;border-top:1px solid #3c4349}.scan-source>span{font-size:14px;overflow-wrap:anywhere;min-width:0;flex:1}.scan-source small{display:block;color:#a9b5bf;margin-top:3px}.scan-source button{padding:6px 9px;font-size:14px;min-height:34px}
.scan-stage{position:relative;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#414b54 0%,#292f35 52%,#1b2025 100%)}.scan-stage:after{content:'';position:absolute;inset:0;pointer-events:none;border:1px solid #ffffff05}.scan-canvas{position:absolute;inset:0;touch-action:none}.scan-canvas canvas{display:block;width:100%;height:100%}.scan-placeholder{position:absolute;inset:25%;text-align:center;display:flex;justify-content:center;flex-direction:column;pointer-events:none;gap:12px;color:#adbac3}.scan-placeholder strong{font-size:22px;line-height:1.35;color:#dde5e9}.scan-gesture{position:absolute;bottom:13px;left:24px;right:24px;margin:0;text-align:center;color:#aab6c0;font-size:12px;pointer-events:none;text-shadow:0 1px 3px #000}
.scan-footer{display:flex;justify-content:space-between;gap:20px;padding:12px 22px;border-top:1px solid #454d55;font-size:12px;color:#9fadb8}.scan-footer>[data-status]{color:#c4e2e7}.scan-error{margin:0;padding:10px 22px;background:#433b2c;border-top:1px solid #8e7848;color:#f2d9a8;font-size:13px;max-height:90px;overflow:auto}.team-workspace #view-inbox>.summary{margin-top:28px;margin-bottom:0}
@media(max-width:800px){.scan-dialog{width:100vw;height:100dvh;border-radius:0;border:0}.scan-header{padding:14px 16px}.scan-header h2{font-size:16px}.scan-toolbar{padding:10px 12px;gap:7px}.scan-toolbar label{font-size:14px}.scan-toolbar .scan-switch{margin-left:0}.scan-layout{display:flex;flex-direction:column;overflow:auto}.scan-stage{order:0;flex-shrink:0;height:48dvh;min-height:260px}.scan-sidebar{order:1;overflow:visible;border-right:0;border-top:1px solid #464b50}.scan-header button,.scan-toolbar button{min-height:42px}.scan-placeholder{inset:20% 12%}.scan-gesture{font-size:12px;bottom:9px;left:12px;right:12px}.scan-footer{padding:9px 14px;flex-wrap:wrap;gap:4px;font-size:12px}.scan-footer>span:last-child{display:none}.scan-model-controls input{min-height:28px}.scan-source button{min-height:42px}.scan-toolbar select{max-width:140px}.scan-error{font-size:12px;padding:8px 14px}}
