
#employee-dialog{--emp-navy:#062a59;--emp-blue:#245784;--emp-line:#b6dced;box-sizing:border-box;width:min(1380px,calc(100vw - 72px));height:min(830px,calc(100dvh - 64px));max-width:none;max-height:none;padding:6px;margin:auto;border:3px solid var(--emp-navy);outline:2px solid #9bc8df;outline-offset:3px;background:#e4f4fb;color:var(--emp-navy);box-shadow:0 24px 100px #082c5959;overflow:visible;font-family:inherit;font-size:14px;line-height:1.65}
#employee-dialog::backdrop{background:#123b6485;backdrop-filter:blur(4px)}
#employee-dialog[open]{animation:emp-enter .24s cubic-bezier(.2,.75,.25,1)}
#employee-dialog *,#employee-dialog *:before,#employee-dialog *:after{box-sizing:border-box}
#employee-dialog button,#employee-dialog textarea{font:inherit}
#employee-dialog button{cursor:pointer}
#employee-dialog button:focus-visible,#employee-dialog summary:focus-visible,#employee-dialog textarea:focus-visible{outline:3px solid #1683ff;outline-offset:3px}
.emp-shell{height:100%;display:grid;grid-template-columns:218px minmax(0,1fr) minmax(340px,1.03fr);gap:18px;padding-right:14px}
.emp-profile{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:22px 19px 18px;background:var(--emp-blue);color:#fff;border:1px solid #87b5cf;scrollbar-width:thin}
.emp-id-card{text-align:center}.emp-portrait-frame{width:114px;height:125px;margin:0 auto 12px;display:grid;place-items:center;border:3px solid #b2d9ed;background:linear-gradient(#d5f0fc,#effaff);box-shadow:3px 3px 0 #0b345c}
.emp-portrait{width:96px!important;height:104px!important;image-rendering:pixelated;object-fit:contain}.emp-dept{margin:0;color:#bee5f8;font-size:12px}.emp-identity h1{margin:2px 0 0;font-size:25px;font-weight:700;letter-spacing:.06em;line-height:1.5}.emp-role{font-size:11px;color:#d3ebf8;line-height:1.5;margin:3px 0 13px}.emp-status{display:inline-flex;gap:7px;align-items:center;font-size:11px;font-weight:700;padding:3px 10px;background:#deeff8;color:#245784}.emp-status i{width:6px;height:6px;background:currentColor}.emp-status.working,.emp-status.in{color:#006d70;background:#d9f5ed}.emp-status.approval,.emp-status.trouble,.emp-status.error{background:#fff1c6;color:#805d05}
.emp-nav{display:grid;gap:5px;margin-top:23px;padding:13px 0;border-block:1px solid #7aabc2}.emp-nav button{border:0;background:transparent;color:#e8f7ff;text-align:left;padding:9px 10px;font-size:13px}.emp-nav button span{color:#bee9fc;display:inline-block;width:22px}.emp-nav button[aria-current],.emp-nav button:hover{background:#42769d;color:white}.emp-nav button[aria-current]{box-shadow:inset 3px 0 #abe5fc}.emp-personality{font-size:12px;line-height:1.8;color:#cbe5f5;margin:17px 0}.emp-profile-foot{border-top:1px solid #6d99b6;margin-top:auto;padding-top:15px;display:grid;gap:4px}.emp-profile-foot span,.emp-profile-foot small{font-size:11px;color:#c1e0f1}.emp-profile-foot strong{font-size:13px;font-weight:500}
.emp-work,.emp-talk{margin:16px 0;min-width:0;min-height:0;background:#f8fcff;border:2px solid #91b6cb;box-shadow:2px 2px 0 #bfd5e2;display:flex;flex-direction:column}.emp-panel-head{height:43px;flex:none;display:flex;align-items:center;gap:10px;padding:0 15px;background:var(--emp-blue);color:#fff;border-bottom:1px solid var(--emp-navy)}.emp-panel-head h2{font-size:15px;font-weight:500;letter-spacing:.05em;margin:0}.emp-square{height:7px;width:7px;background:#a4daed;flex:none}.emp-chat-state{margin-left:auto;font-size:10px;color:#caeaf8;white-space:nowrap}.emp-work-body{overflow:auto;min-height:0;flex:1;padding:18px;scrollbar-width:thin;scrollbar-color:#9ab9c9 transparent;overscroll-behavior:contain}.emp-current{padding:12px 13px;background:#edf7fc;border-left:3px solid #54b4e9;margin-bottom:22px}.emp-kicker{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#527e9d}.emp-kicker span{font-size:10px}.emp-current p{margin:5px 0 0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.emp-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.emp-section-title h3,.emp-schedule h3{font-size:12px;font-weight:500;color:#527e9d;margin:0}.emp-section-title>span{font-size:11px;color:#527e9d}.emp-duty{border-bottom:1px solid #d6e8f2;padding:10px 0}.emp-duty summary{cursor:pointer;display:flex;align-items:flex-start;gap:9px;list-style:none}.emp-duty summary::-webkit-details-marker{display:none}.emp-duty-icon{display:grid;place-items:center;flex:none;width:23px;height:23px;border:2px solid #96c7e1;background:#245784;color:#ffe763;line-height:1}.emp-duty strong{font-size:12px;font-weight:600;flex:1;line-height:1.7}.emp-when{flex:none;font-size:10px;color:#5c82a1;padding-top:3px}.emp-duty ul{margin:9px 0 5px;padding-left:44px;font-size:11px;line-height:1.85;color:#50738c}.emp-duty li+li{margin-top:3px}.emp-destination{font-size:10px;color:#7391a6;margin:6px 0 0 32px}.emp-schedule{margin-top:25px}.emp-schedule dl{margin:10px 0 0}.emp-schedule dl>div{display:flex;gap:14px;padding:10px 0;border-top:1px solid #d6e8f2;font-size:12px}.emp-schedule dt{color:#688ba1;flex:none;width:28px}.emp-schedule dd{margin:0;overflow-wrap:anywhere}.emp-schedule small{display:block;color:#688ba1;font-size:11px;margin-top:3px}
.emp-messages{flex:1;min-height:0;overflow:auto;padding:17px 14px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9ab9c9 transparent}.emp-message{display:flex;gap:9px;align-items:flex-start;margin-bottom:18px}.emp-message>div{min-width:0;max-width:calc(100% - 45px)}.emp-chat-avatar{width:34px!important;height:38px!important;flex:none;object-fit:contain;image-rendering:pixelated;border:1px solid #b8dfef;background-color:#edf9ff}.emp-bubble{border:1px solid #133c68;border-bottom-width:2px;box-shadow:2px 2px 0 #c2d3df;background:white;padding:10px 12px;font-size:12px;line-height:1.85;overflow-wrap:anywhere;white-space:normal}.emp-message-meta{font-size:10px;color:#7290a7;margin:5px 0 0}.emp-message.mine{justify-content:flex-end}.emp-message.mine .emp-bubble{background:#e7f4fe;border-color:#93c5e8;box-shadow:none}.emp-message.mine .emp-message-meta{text-align:right}.emp-message.failed .emp-bubble{background:#fff8eb;border-color:#dbbe84;color:#79591a}.emp-text-button{border:0;background:transparent;color:#0765c6;padding:6px 0;font-size:12px;text-align:left;display:block;text-decoration:underline;text-underline-offset:4px}.emp-typing{display:inline-flex;gap:3px;margin-right:8px;vertical-align:middle}.emp-typing i{width:4px;height:4px;background:#5386aa;animation:emp-dot 1s infinite alternate}.emp-typing i:nth-child(2){animation-delay:.2s}.emp-typing i:nth-child(3){animation-delay:.4s}.emp-chat-empty{min-height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:15px 8px}.emp-welcome-avatar{height:88px!important;width:80px!important;object-fit:contain;image-rendering:pixelated;margin-bottom:15px}.emp-chat-empty strong{font-size:15px}.emp-chat-empty p{font-size:12px;line-height:1.8;max-width:235px;color:#7391a8;margin:10px 0 23px}.emp-chat-empty button{background:white;border:1px solid #bbd8e9;color:#386b92;font-size:12px;padding:8px 16px;margin:4px}.emp-chat-empty button:hover{background:#eaf5fe}
.emp-composer{flex:none;padding:13px 13px 10px;border-top:1px solid #bdd8e8;background:#f8fcff}.emp-composer form{display:flex;align-items:stretch;gap:9px}.emp-composer textarea{resize:none;min-width:0;flex:1;background:white;border:1.5px solid #123f72;border-radius:5px;padding:10px 11px;color:#173f68;line-height:1.55;font-size:12px;min-height:58px;max-height:140px}.emp-composer textarea::placeholder{color:#8ba1b4}.emp-send{border:2px solid #082d5c;background:#245784;color:#fff;box-shadow:0 3px 0 #082d5c;padding:0 13px;font-weight:600!important;align-self:stretch;margin-bottom:3px;white-space:nowrap;font-size:12px!important}.emp-send span{margin-left:4px;color:#bceeff}.emp-send:hover:not(:disabled){background:#326c9e}.emp-send:disabled{opacity:.5;cursor:default!important}.emp-compose-note{display:flex;gap:5px;justify-content:space-between;font-size:9px;color:#8099ac;margin-top:8px}.emp-send-error{font-size:11px;color:#985626;background:#fff5e6;padding:7px;margin:0 0 8px}.emp-close{position:absolute;right:-12px;top:-13px;width:34px;height:34px;background:#245784;color:#fff;border:2px solid #a1cae0;box-shadow:2px 2px 0 #082d5c;font-size:25px!important;line-height:1}.emp-close:hover{background:#123e6a}.emp-empty{color:#6d8ba3;font-size:12px;line-height:1.8;margin:15px 0}.emp-output{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:white;border:1px solid #c5dfea;padding:13px 11px;margin:0 0 9px;color:#174c7c}.emp-output:hover{background:#eaf7ff;border-color:#75b9e6}.emp-output>span:nth-child(2){min-width:0;flex:1}.emp-output strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.emp-output small{font-size:10px;color:#8199ac;display:block;margin-top:4px}.emp-file-type{font-size:9px;width:36px;flex:none;padding:7px 2px;text-align:center;background:#e2f3fc;border:1px solid #b6d6e6}.emp-document{height:100%;display:flex;flex-direction:column;gap:10px}.emp-document>strong{font-size:12px;overflow-wrap:anywhere}.emp-document iframe{flex:1;min-height:280px;width:100%;border:1px solid #c3dbe8;background:white}.emp-run{border-bottom:1px solid #c9dfec;padding:13px 0}.emp-run summary{display:flex;flex-wrap:wrap;align-items:center;gap:7px;cursor:pointer;font-size:11px}.emp-run summary strong{font-size:12px;font-weight:500;flex:1}.emp-run time{font-size:10px;color:#7a96a9}.emp-run-status{font-size:10px;background:#e4f4f5;color:#33737c;padding:2px 5px}.emp-run-status.error{background:#fff1ce;color:#936519}.emp-run pre{font-family:inherit;font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:white;color:#52738d}
@keyframes emp-enter{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}@keyframes emp-dot{to{opacity:.25;transform:translateY(-2px)}}
@media(max-width:1100px){#employee-dialog{width:calc(100vw - 42px);height:calc(100dvh - 44px)}.emp-shell{grid-template-columns:172px minmax(0,1fr) minmax(280px,1.1fr);gap:11px;padding-right:6px}.emp-profile{padding:19px 12px 13px}.emp-work-body{padding:13px}.emp-duty summary{flex-wrap:wrap}.emp-when{padding-left:32px;width:100%;padding-top:0;margin-top:-3px}.emp-compose-note>span:last-child{display:none}.emp-panel-head{padding-inline:11px}.emp-personality{font-size:11px}}
@media(max-width:760px){#employee-dialog{width:calc(100vw - 24px);height:calc(100dvh - 30px);padding:4px;border-width:2px}.emp-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(100px,.72fr) minmax(245px,1fr);gap:8px;padding:0}.emp-profile{padding:10px 12px;display:block;overflow:visible}.emp-id-card{display:flex;gap:13px;text-align:left;align-items:center}.emp-portrait-frame{height:65px;width:61px;margin:0;flex:none;border-width:2px}.emp-portrait{height:59px!important;width:55px!important}.emp-identity h1{font-size:21px;display:inline;margin-right:10px}.emp-dept{font-size:10px}.emp-role{display:none}.emp-status{font-size:10px;padding:2px 7px}.emp-nav{display:flex;gap:5px;margin:9px 0 0;padding:8px 0 0;border-bottom:0}.emp-nav button{flex:1;text-align:center;padding:5px 2px;font-size:11px;white-space:nowrap}.emp-nav button span{width:14px}.emp-profile-foot,.emp-personality{display:none}.emp-work,.emp-talk{margin:0;box-shadow:none;border-width:1px}.emp-panel-head{height:32px}.emp-panel-head h2{font-size:12px}.emp-work-body{padding:10px 12px}.emp-current{margin-bottom:14px;padding:8px 10px}.emp-messages{padding:11px}.emp-message{margin-bottom:12px}.emp-bubble{padding:8px 10px}.emp-composer{padding:8px 10px 7px}.emp-composer textarea{min-height:45px;height:45px;font-size:16px;padding:9px;line-height:1.45}.emp-send{padding-inline:12px}.emp-compose-note{font-size:8px;margin-top:4px}.emp-close{right:-7px;top:-9px;width:29px;height:29px;font-size:22px!important}.emp-when{width:auto;padding:2px 0 0;margin:0}.emp-chat-empty{padding:3px}.emp-welcome-avatar{display:none}.emp-chat-empty strong{font-size:13px}.emp-chat-empty p{margin:5px 0;font-size:11px}.emp-chat-empty button{font-size:11px;padding:4px 9px}.emp-document iframe{min-height:100px}}
@media(prefers-reduced-motion:reduce){#employee-dialog[open],.emp-typing i{animation:none}#employee-dialog::backdrop{backdrop-filter:none}}
