.sirman-launcher{position:fixed;right:22px;bottom:22px;z-index:9000;border:0;border-radius:30px;background:linear-gradient(135deg,#147b83,#12374d);color:white;padding:14px 20px;box-shadow:0 8px 28px #132d4140;font:600 14px/1.3 system-ui;cursor:pointer}.sirman-panel{position:fixed;right:22px;bottom:82px;width:390px;height:min(640px,78dvh);max-width:calc(100vw - 24px);z-index:9001;background:#fff;color:#203a47;border:1px solid #d9e6ec;border-radius:20px;box-shadow:0 20px 80px #10293e36;display:flex;flex-direction:column;font:14px/1.5 system-ui;overflow:hidden}.sirman-panel[hidden]{display:none}.sirman-panel>header{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#122e47,#127e87);color:white;padding:17px}.sirman-panel>header small{display:block;font-size:10px;opacity:.85}.sirman-panel button{font:inherit;cursor:pointer;min-height:38px}.sirman-panel>header button{background:none;border:0;color:#fff;font-size:25px;min-width:38px}.sirman-log{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px}.sirman-message{background:#eff5f8;border-radius:13px;padding:12px;margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.sirman-message.user{background:#dcf3ef;margin-left:25px}.sirman-message a{display:block;color:#086e81;text-decoration:underline;margin-top:9px}.sirman-message button{display:block;width:100%;margin:8px 0 0;padding:9px;background:#fff;color:#215466;border:1px solid #cbdfe7;border-radius:9px;text-align:left}.sirman-menu{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-top:1px solid #e2ebee}.sirman-menu button{border:1px solid #dce6eb;border-radius:16px;background:#f7fafc;color:#285a6a;padding:6px 10px;min-height:30px;font-size:11px}.sirman-compose{display:flex;gap:8px;padding:12px;border-top:1px solid #e2ebee}.sirman-compose input{min-width:0;flex:1;border:1px solid #cddde5;border-radius:10px;padding:10px;font:13px system-ui}.sirman-compose button,.sirman-intake>button{border:0;border-radius:10px;background:#087e87;color:white;padding:9px 12px}.sirman-panel>footer{font-size:9px;color:#6c7e87;text-align:center;padding:0 8px 8px}.sirman-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.sirman-intake{display:grid;gap:10px;margin-top:12px}.sirman-intake label{display:grid;gap:4px;font-size:12px}.sirman-intake input,.sirman-intake select,.sirman-intake textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cfdee5;border-radius:8px;padding:9px;font:13px system-ui;background:white}.sirman-login-frame{width:100%;height:360px;border:1px solid #d6e1e8;border-radius:10px;margin-top:12px;background:white}.sirman-print{max-width:850px;margin:35px auto;padding:25px;color:#182f3e;font:14px/1.65 system-ui}.sirman-print header{display:flex;justify-content:space-between;border-bottom:3px solid #0c7a84;padding-bottom:18px}.sirman-print header strong{font-size:28px}.sirman-print header span{font-size:12px}.sirman-print-actions{display:flex;gap:16px;margin:22px 0}.sirman-print dt{font-weight:700}.sirman-print dd{margin:0 0 10px}.sirman-print article{border:1px solid #dce5eb;border-radius:10px;padding:15px;margin:15px 0;break-inside:avoid}.sirman-print article small{display:block;color:#697f8a}.sirman-print footer{border-top:1px solid #cedde5;padding-top:15px;margin-top:30px;font-size:10px}.sirman-print p{overflow-wrap:anywhere}#user-form-dialog,#user-detail-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 28px);border-radius:18px;padding:22px;box-sizing:border-box;overflow:auto}#user-form-dialog form{display:flex;flex-direction:column;gap:14px}#user-form-dialog .dialog-actions,#user-detail-dialog .dialog-actions{position:sticky;bottom:-22px;z-index:4;background:#fff;padding:14px 0;border-top:1px solid #dbe5eb;display:flex;gap:10px;flex-wrap:wrap}#user-form-dialog .dialog-actions button,#user-detail-dialog .dialog-actions button{min-height:42px;padding:10px 16px;border-radius:9px;opacity:1;color:#fff;background:#087e87}#user-form-dialog .dialog-actions .secondary,#user-detail-dialog .dialog-actions .secondary{background:#eef4f8;color:#254b5d;border:1px solid #cddde6}#user-form-dialog .dialog-close,#user-detail-dialog .dialog-close{position:sticky;top:0;float:right;min-width:38px;min-height:38px;z-index:5;background:white;color:#264c5b;border:1px solid #d6e3ea;border-radius:10px}#user-form-dialog input,#user-form-dialog select{min-height:39px;font-size:13px}#user-form-dialog .panel{padding:16px}#user-form-dialog h3{font-size:15px}@media(max-width:600px){.sirman-panel{right:10px;bottom:70px;width:calc(100vw - 20px);height:min(620px,80dvh);border-radius:16px}.sirman-launcher{right:12px;bottom:12px;padding:12px 17px}#user-form-dialog .grid{grid-template-columns:minmax(0,1fr)}.sirman-print{margin:0;padding:16px}.sirman-print header{flex-wrap:wrap}}@media print{.sirman-print-actions,.sirman-launcher,.sirman-panel{display:none!important}.sirman-print{margin:0;max-width:none;padding:0;font-size:11pt}@page{margin:18mm}.sirman-print a{color:#182f3e;text-decoration:none}}

.sirman-panel{padding:0;margin:0;min-height:0;box-sizing:border-box}.sirman-panel *{box-sizing:border-box}.sirman-panel>header{position:relative;top:auto;left:auto;width:auto;height:auto;margin:0;border-radius:0;flex:0 0 auto}.sirman-panel>footer{display:block;position:relative;margin:0;background:#fff;border:0;line-height:1.5}.sirman-message p{font-size:13px;line-height:1.6}.sirman-panel button:disabled{opacity:.6;cursor:wait}

/* Window controls and a text-only source reader remain inside the assistant. */
.sirman-window-actions{display:flex;gap:3px;flex:0 0 auto}.sirman-panel>header .sirman-window-actions button{font-size:22px;min-width:40px;min-height:40px;border-radius:9px}.sirman-panel>header button:hover{background:#ffffff20}.sirman-panel.sirman-fullscreen{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.sirman-fullscreen .sirman-log{padding:24px max(20px,calc((100vw - 960px)/2));scroll-padding-top:20px}.sirman-fullscreen .sirman-compose{padding:14px max(20px,calc((100vw - 960px)/2));background:#fff}.sirman-fullscreen .sirman-menu{padding:10px max(20px,calc((100vw - 960px)/2));background:#fff}.sirman-fullscreen .sirman-message{font-size:15px;line-height:1.7}.sirman-fullscreen .sirman-compose input{font-size:16px}.sirman-expanded{overflow:hidden!important}.sirman-expanded>.sirman-launcher{display:none}.sirman-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;white-space:normal}.sirman-suggestions button{width:auto;flex:0 1 auto;font-size:12px;margin:0;padding:7px 10px;min-height:36px}.sirman-link-choice{border:1px solid #bcd9dd;background:#fff;padding:12px;border-radius:12px;margin-top:12px;white-space:normal}.sirman-link-choice p{margin:0 0 6px}.sirman-reader{position:absolute;inset:74px 0 0;z-index:3;background:#fff;display:flex;flex-direction:column;overflow:hidden;border-top:1px solid #d9e6ec}.sirman-reader>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#eef6f7;flex:0 0 auto}.sirman-reader>header strong{font-size:14px;overflow-wrap:anywhere}.sirman-reader>header button{border:1px solid #c8dfe3;border-radius:10px;background:#fff;color:#194955;min-width:42px;font-size:25px}.sirman-reader-body{overflow:auto;overscroll-behavior:contain;padding:18px;flex:1;min-height:0;white-space:pre-wrap;overflow-wrap:anywhere}.sirman-fullscreen .sirman-reader-body{padding:24px max(20px,calc((100vw - 960px)/2))}.sirman-reader-body p{font:inherit;line-height:1.7;margin:0 0 20px}.sirman-panel button:focus-visible,.sirman-panel a:focus-visible{outline:3px solid #ddac3a;outline-offset:2px}@media(max-width:600px){.sirman-fullscreen .sirman-log{padding:14px}.sirman-fullscreen .sirman-compose{padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.sirman-fullscreen .sirman-menu{padding:8px 12px}.sirman-fullscreen .sirman-message{font-size:14px}.sirman-panel>header{padding:12px}.sirman-reader{top:66px}.sirman-panel input{font-size:16px}.sirman-panel>footer{font-size:10px}}@media(prefers-reduced-motion:reduce){.sirman-panel *{scroll-behavior:auto!important}}

.sirman-checking .sirman-log,.sirman-checking .sirman-reader{visibility:hidden}.sirman-window-actions{gap:0}.sirman-panel>header .sirman-window-actions button{min-width:36px}

.sirman-panel>header .sirman-window-actions [data-new]{font-size:12px;font-weight:600;min-width:68px;padding:0 6px;border:1px solid #ffffff4d;line-height:1.2}

.sirman-report-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.sirman-report-actions button{width:auto;font-size:11px}.sirman-message input[type=file]{max-width:100%;white-space:normal}.sirman-message label{display:grid;gap:8px;margin-top:10px}

.sirman-formatted{white-space:normal;line-height:1.65}.sirman-formatted p{margin:0 0 .9em}.sirman-formatted p:last-child{margin-bottom:0}.sirman-formatted h3{font-size:1.08em;font-weight:700;line-height:1.35;margin:1.1em 0 .5em}.sirman-formatted h3:first-child{margin-top:0}.sirman-formatted ul,.sirman-formatted ol{padding-left:1.45em;margin:.45em 0 1em}.sirman-formatted li{margin:.35em 0}.sirman-formatted strong{font-weight:700}.sirman-report-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;padding-top:10px;border-top:1px solid #d9e6ec}.sirman-report-actions button{font-size:12px;min-height:34px}

.sirman-ai-progress{display:block;margin-top:12px;padding-top:8px;border-top:1px solid #cbd5e1;color:#526677;font-size:.85em;}
