*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#eef2f6;color:#152033}.sidebar{position:fixed;inset:0 auto 0 0;width:275px;background:#0d1b2a;color:white;padding:18px;overflow:auto}.brand{font-size:18px;font-weight:800;margin-bottom:18px}.user{background:#162b42;border-radius:14px;padding:12px;margin-bottom:18px}.user span{display:block;color:#9fb3c8;font-size:12px;margin-top:4px}nav a{display:block;color:#dbeafe;text-decoration:none;padding:10px 12px;border-radius:10px;margin:3px 0}nav a:hover{background:#1f4060}.legend{margin-top:18px;border-top:1px solid #27435f;padding-top:12px}.legend small{display:block;color:#bfd3e7;margin:7px 0}.content{margin-left:275px;min-height:100vh}.topbar{height:58px;background:white;border-bottom:1px solid #dde5ed;display:flex;justify-content:space-between;align-items:center;padding:0 24px;position:sticky;top:0;z-index:2}.page{padding:24px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{background:white;border:1px solid #dde5ed;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(13,27,42,.05);margin-bottom:16px}.metric{font-size:32px;font-weight:800}.muted{color:#65758b}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.btn,button{background:#0d6efd;color:white;border:0;border-radius:10px;padding:10px 14px;text-decoration:none;cursor:pointer;display:inline-block}.btn.secondary,button.secondary{background:#475569}.btn.danger,button.danger{background:#dc2626}.btn.small{padding:6px 9px;font-size:12px}input,select,textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:white}label{font-size:13px;font-weight:700;margin-top:10px;display:block}.table{width:100%;border-collapse:collapse;background:white;border-radius:16px;overflow:hidden}.table th,.table td{padding:12px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.pill{padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;display:inline-block}.p1{background:#fee2e2;color:#991b1b}.p2{background:#ffedd5;color:#9a3412}.p3{background:#fef9c3;color:#854d0e}.p4{background:#dcfce7;color:#166534}.status{background:#e0f2fe;color:#075985}.role-Gold{background:#fef3c7;color:#92400e}.role-Silver{background:#e5e7eb;color:#374151}.role-Bronze{background:#fef3c7;color:#7c2d12}.login{display:grid;place-items:center;min-height:100vh;background:linear-gradient(135deg,#0d1b2a,#1b4965)}.login .card{width:min(430px,92vw)}.chatbox{height:460px;overflow:auto;background:#f8fafc;border-radius:14px;padding:12px}.msg{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:10px;margin:8px 0}.msg b{display:block}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.four{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.note{border-left:4px solid #0d6efd;background:#f8fafc;padding:10px;margin:8px 0;border-radius:8px}.actions{white-space:nowrap}.notice{background:#ecfeff;border:1px solid #a5f3fc;padding:12px;border-radius:12px;margin-bottom:15px}@media(max-width:950px){.sidebar{position:static;width:auto}.content{margin-left:0}.grid,.two,.three,.four{grid-template-columns:1fr}.topbar{position:static}}.editor-toolbar{display:flex;gap:6px;flex-wrap:wrap;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px 12px 0 0;padding:8px;margin-top:6px}.rich-editor{min-height:360px;background:white;border:1px solid #cbd5e1;border-top:0;border-radius:0 0 12px 12px;padding:16px;line-height:1.6;overflow:auto}.rich-editor:focus{outline:2px solid #93c5fd}.guide-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-card h2{margin-bottom:6px}.guide-content{font-size:16px;line-height:1.7}.guide-content img,.rich-editor img{max-width:100%;height:auto;border-radius:12px}.guide-content table,.rich-editor table{width:100%;border-collapse:collapse;margin:12px 0}.guide-content th,.guide-content td,.rich-editor th,.rich-editor td{border:1px solid #cbd5e1;padding:8px}@media(max-width:1100px){.guide-grid{grid-template-columns:1fr}}
.outcome-pill{font-size:12px;font-weight:800;padding:5px 10px;border-radius:999px}.outcome-green{background:#dcfce7;color:#166534}.outcome-orange{background:#ffedd5;color:#9a3412}.outcome-red{background:#fee2e2;color:#991b1b}.outcome-none{background:#e5e7eb;color:#374151}
.decision-card{border-left:5px solid #0d6efd}.decision-item{margin-top:10px;padding:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.alert.danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:12px;border-radius:12px;margin-bottom:15px}.btn.success{background:#16a34a}

.alert.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0;padding:12px;border-radius:12px;margin-bottom:15px}

.risk-card{border-left:5px solid #f59e0b}.risk-item{margin-top:10px;padding:10px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px}.risk-low{background:#dcfce7;color:#166534}.risk-medium{background:#ffedd5;color:#9a3412}.risk-high{background:#fee2e2;color:#991b1b}.risk-unknown{background:#e5e7eb;color:#374151}.btn.warning{background:#f59e0b;color:#111827}

.evidence-card{border-left:5px solid #2563eb}.evidence-item{margin-top:10px;padding:10px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px}.evidence-type{background:#dbeafe;color:#1e40af}.btn.info{background:#2563eb}

.division{background:#dbeafe;color:#1e40af}.category{background:#eff6ff;color:#1d4ed8}

.incident-list{display:flex;flex-direction:column;gap:22px;margin-top:18px}
.incident-card{background:#fff;border:1px solid #dbe3ec;border-radius:20px;padding:20px;box-shadow:0 10px 28px rgba(13,27,42,.08)}
.incident-card + .incident-card{margin-top:6px}
.incident-card-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #e5e7eb;padding-bottom:14px;margin-bottom:14px}
.incident-card-header h2{margin:0 0 6px 0;font-size:21px}
.incident-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.incident-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.incident-meta-grid div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.incident-meta-grid span{display:block;color:#64748b;font-size:12px;font-weight:700;margin-bottom:5px}
.incident-meta-grid strong span{display:inline-block;margin:0;color:inherit}
.incident-summary{background:#f8fafc;border-left:4px solid #0d6efd;border-radius:12px;padding:12px;margin-top:10px}
.incident-section{margin-top:14px;padding-top:12px;border-top:1px solid #e5e7eb}
.empty-incident-card{padding:16px}
@media(max-width:1100px){.incident-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.incident-card-header{display:block}.incident-card-actions{justify-content:flex-start;margin-top:12px}}
@media(max-width:700px){.incident-meta-grid{grid-template-columns:1fr}}


/* Police command aesthetic - login page only */
body.command-login{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:28px;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.28), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14,165,233,.18), transparent 32%),
        linear-gradient(135deg,#06111f 0%,#0b1b31 46%,#101827 100%);
    color:#e5edf7;
    overflow:auto;
}
body.command-login:before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size:42px 42px;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),rgba(0,0,0,.35));
}
.login-shell{
    position:relative;
    width:min(470px,100%);
    z-index:1;
}
.command-badge{
    width:84px;
    height:84px;
    margin:0 auto -28px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#f8fafc,#cbd5e1);
    border:4px solid #facc15;
    box-shadow:0 18px 40px rgba(0,0,0,.35),0 0 0 8px rgba(255,255,255,.06);
    position:relative;
    z-index:2;
}
.command-badge span{
    color:#0b1b31;
    font-weight:900;
    font-size:26px;
    letter-spacing:-1px;
}
body.command-login .login-card{
    width:100%;
    margin:0;
    padding:48px 34px 30px;
    background:rgba(8,20,38,.88);
    border:1px solid rgba(148,163,184,.32);
    border-top:4px solid #facc15;
    border-radius:24px;
    box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter:blur(16px);
}
.command-status-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    color:#93c5fd;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.12em;
    margin-bottom:14px;
}
.status-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 16px #22c55e;
}
body.command-login .login-card h1{
    margin:0;
    text-align:center;
    color:#f8fafc;
    font-size:34px;
    line-height:1.05;
    letter-spacing:-.04em;
}
body.command-login .subtitle{
    margin:8px 0 12px;
    text-align:center;
    color:#facc15;
    font-size:18px;
    font-weight:900;
    letter-spacing:.16em;
    text-transform:uppercase;
}
.login-intro{
    text-align:center;
    color:#b6c4d6;
    margin:0 0 24px;
    line-height:1.5;
}
.command-login-form{
    margin-top:18px;
}
body.command-login label{
    color:#dbeafe;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:11px;
    margin:14px 0 7px;
}
body.command-login input{
    background:rgba(15,23,42,.82);
    border:1px solid rgba(148,163,184,.38);
    color:#f8fafc;
    border-radius:14px;
    padding:13px 14px;
    outline:none;
    transition:border-color .2s, box-shadow .2s, background .2s;
}
body.command-login input::placeholder{color:#64748b}
body.command-login input:focus{
    border-color:#60a5fa;
    box-shadow:0 0 0 4px rgba(96,165,250,.16);
    background:rgba(15,23,42,.96);
}
body.command-login button{
    width:100%;
    margin-top:22px;
    padding:14px 16px;
    border-radius:14px;
    background:linear-gradient(135deg,#1d4ed8,#0f6fbf);
    border:1px solid rgba(147,197,253,.45);
    color:white;
    font-weight:900;
    letter-spacing:.03em;
    text-transform:uppercase;
    box-shadow:0 14px 30px rgba(37,99,235,.28);
}
body.command-login button:hover{
    background:linear-gradient(135deg,#2563eb,#0284c7);
}
body.command-login .login-error{
    width:100%;
    text-align:center;
    padding:10px 12px;
    border-radius:12px;
    margin:0 0 14px;
}
body.command-login .login-notice{
    margin-top:26px;
    padding:16px;
    border-radius:16px;
    background:rgba(2,6,23,.52);
    border:1px solid rgba(250,204,21,.35);
    color:#cbd5e1;
    font-size:12px;
    line-height:1.55;
}
body.command-login .login-notice strong{
    display:block;
    color:#facc15;
    text-transform:uppercase;
    letter-spacing:.1em;
    font-size:11px;
    margin-bottom:8px;
}
body.command-login .login-notice p{
    margin:7px 0 0;
}
@media(max-width:520px){
    body.command-login{padding:18px}
    body.command-login .login-card{padding:46px 22px 24px;border-radius:20px}
    body.command-login .login-card h1{font-size:28px}
}

.own-msg{border-left:4px solid #0d6efd;background:#eff6ff}
.topbar-actions{display:flex;align-items:center;gap:18px}.notification-wrap{position:relative}.notification-bell{position:relative;background:#0d1b2a;border-radius:999px;width:42px;height:42px;padding:0;display:grid;place-items:center}.notification-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:999px;background:#dc2626;color:white;font-size:12px;font-weight:900;display:grid;place-items:center;padding:0 5px}.notification-menu{display:none;position:absolute;right:0;top:48px;width:340px;max-height:430px;overflow:auto;background:white;border:1px solid #dde5ed;border-radius:16px;box-shadow:0 18px 45px rgba(13,27,42,.18);padding:12px;z-index:20}.notification-menu.open{display:block}.notification-item{display:block;color:#152033;text-decoration:none;border-bottom:1px solid #e5e7eb;padding:10px 6px}.notification-item:hover{background:#f8fafc}.notification-item strong,.notification-item span,.notification-item em{display:block}.notification-item span{color:#475569;font-size:13px;margin-top:3px}.notification-item em{color:#64748b;font-size:11px;margin-top:5px}.notification-clear{display:block;text-align:center;margin-top:10px;color:#0d6efd;text-decoration:none;font-weight:800}.mail-read-meta{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:10px;margin:10px 0}

.highlight-row{outline:3px solid #0d6efd;background:#eff6ff!important}
.mail-compose select.mail-select{min-height:150px;background:#fbfdff}
.mail-row{border:1px solid #e5e7eb;border-radius:14px;padding:12px;margin:10px 0;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.mail-row b a{color:#0f172a;text-decoration:none}.mail-row b a:hover{text-decoration:underline}
.mail-reader{border-top:5px solid #0d1b2a}.mail-reader-header{border-bottom:1px solid #e5e7eb;margin-bottom:12px;padding-bottom:12px}.mail-reader-header h2{margin:8px 0 0}
.mail-body{white-space:pre-wrap;font-family:inherit;line-height:1.65;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;min-height:180px;color:#0f172a}

/* Professional internal mail system */
.mail-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.mail-shell{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:start;margin-bottom:18px}
.mail-sidebar{position:sticky;top:86px;padding:14px}
.mail-folder{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;color:#0f172a;text-decoration:none;font-weight:800;margin-bottom:6px;border:1px solid transparent}
.mail-folder:hover{background:#f8fafc;border-color:#e5e7eb}.mail-folder.active{background:#eaf2ff;border-color:#bfdbfe;color:#0d47a1}
.mail-folder-form{border-top:1px solid #e5e7eb;margin-top:12px;padding-top:12px}.mail-folder-create{display:flex;gap:8px}.mail-folder-create input{min-width:0}
.mail-list{padding:16px}.mail-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e5e7eb;border-radius:16px;background:#fff;margin:10px 0;padding:12px 14px;box-shadow:0 8px 22px rgba(15,23,42,.045)}
.mail-card.unread{border-left:5px solid #0d6efd;background:#f8fbff}.mail-card.selected{outline:3px solid rgba(13,110,253,.18)}
.mail-card-main{display:block;color:inherit;text-decoration:none;min-width:0}.mail-card-subject{display:block;font-weight:900;color:#0f172a;margin-bottom:4px}.mail-card-meta{display:block;color:#64748b;font-size:12px;margin-bottom:7px}.mail-card-preview{display:block;color:#334155;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mail-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.mail-card-actions form{margin:0}.mail-card-actions select{max-width:170px;padding:8px 10px;border-radius:10px;border:1px solid #cbd5e1;background:#fff}.btn.danger,button.danger{background:#991b1b!important;border-color:#7f1d1d!important;color:#fff!important}.btn.danger:hover,button.danger:hover{background:#7f1d1d!important}
.professional-mail-reader{border-top:5px solid #0d1b2a;margin:20px 0}.mail-reader-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e7eb;padding-bottom:14px;margin-bottom:14px}.mail-reader-toolbar h2{margin:7px 0 0}.mail-button-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mail-button-row form{margin:0}
.mail-envelope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:14px;margin-bottom:14px}.mail-envelope div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px}.mail-envelope b{color:#475569;text-transform:uppercase;font-size:11px;letter-spacing:.08em}.mail-envelope span{color:#0f172a;overflow-wrap:anywhere}
.preserved-mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.75;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px;min-height:210px;color:#0f172a;font-size:15px}
.professional-compose{margin-top:20px}.mail-compose-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin-bottom:14px}.professional-compose textarea{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}.professional-compose .mail-select{border-radius:12px;border:1px solid #cbd5e1;padding:10px;background:#fbfdff}
@media(max-width:900px){.mail-shell{grid-template-columns:1fr}.mail-sidebar{position:static}.mail-card{grid-template-columns:1fr}.mail-card-actions{justify-content:flex-start}.mail-envelope{grid-template-columns:1fr}.mail-reader-toolbar,.mail-titlebar,.mail-compose-heading{flex-direction:column}}

.mail-sidebar-heading{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:900;margin:14px 4px 6px}.mail-folder-line{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:6px;align-items:center}.mail-folder-line .mail-folder{margin-bottom:0}.mail-folder-line form{margin:0}.mail-folder-delete{width:28px;height:28px;border-radius:999px;border:1px solid #fecaca;background:#fff;color:#991b1b;font-weight:900;display:grid;place-items:center;padding:0}.mail-folder-delete:hover{background:#fee2e2}.muted-pill{background:#e5e7eb;color:#475569;border:1px solid #cbd5e1}

/* Enhanced internal mail composer */
.enhanced-compose{border-top:5px solid #0d1b2a;overflow:visible}.enhanced-compose .mail-compose-heading h2{margin:6px 0 0}.email-compose-form{margin:0}.email-compose-panel{border:1px solid #dbe3ec;border-radius:18px;background:linear-gradient(180deg,#ffffff,#fbfdff);box-shadow:0 14px 34px rgba(15,23,42,.055);overflow:visible}.email-field-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px;align-items:start;border-bottom:1px solid #e5e7eb;padding:14px 16px}.email-field-row label,.message-editor-wrap label{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:#475569;font-weight:900;margin-top:10px}.subject-row input{border:0;background:transparent;padding:10px 0;font-size:16px;font-weight:800;box-shadow:none}.subject-row input:focus{outline:none;box-shadow:none}.recipient-picker{position:relative;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:48px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;padding:7px 10px;transition:border-color .2s,box-shadow .2s}.recipient-picker:focus-within{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.11)}.recipient-picker.recipient-error{border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.1)}.recipient-chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.recipient-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #bfdbfe;background:#eff6ff;color:#0f172a;border-radius:999px;padding:5px 6px 5px 10px;font-size:13px;font-weight:900}.recipient-chip small{font-size:11px;color:#475569;font-weight:800}.recipient-chip button{width:22px;height:22px;border-radius:999px;border:0;background:#dbeafe;color:#1e3a8a;display:grid;place-items:center;padding:0;font-weight:900}.recipient-chip button:hover{background:#bfdbfe}.recipient-picker input[data-recipient-search]{flex:1 1 220px;min-width:180px;border:0!important;background:transparent!important;padding:9px 4px!important;box-shadow:none!important}.recipient-picker input[data-recipient-search]:focus{outline:none;box-shadow:none!important}.recipient-suggestions{display:none;position:absolute;left:10px;right:10px;top:calc(100% + 6px);background:#fff;border:1px solid #dbe3ec;border-radius:14px;box-shadow:0 18px 42px rgba(15,23,42,.18);z-index:40;max-height:290px;overflow:auto;padding:6px}.recipient-suggestions.open{display:block}.recipient-suggestion{width:100%;text-align:left;border:0;background:#fff;color:#0f172a;border-radius:10px;padding:10px 12px;display:block}.recipient-suggestion:hover,.recipient-suggestion:focus{background:#f1f5f9;outline:none}.recipient-suggestion strong{display:block;font-size:14px}.recipient-suggestion span{display:block;font-size:12px;color:#64748b;margin-top:2px}.recipient-no-results{padding:12px;color:#64748b;font-size:13px}.message-editor-wrap{padding:16px}.message-editor-wrap label{display:block;margin:0 0 8px}.message-editor-wrap textarea{width:100%;border:1px solid #cbd5e1;border-radius:16px;background:#fff;padding:16px;font-size:15px;line-height:1.65;resize:vertical;min-height:300px}.message-editor-wrap textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.11)}.compose-actionbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px}.send-mail-btn{padding:12px 18px;border-radius:14px;font-weight:900}@media(max-width:700px){.email-field-row{grid-template-columns:1fr;gap:6px}.email-field-row label{margin-top:0}.compose-actionbar{flex-direction:column;align-items:stretch}.send-mail-btn{width:100%}}

/* Internal mail compose polish: dropdown recipients, white subject box, rich formatting */
.subject-row input.subject-input-white{width:100%;border:1px solid #cbd5e1!important;background:#fff!important;border-radius:14px!important;padding:12px 14px!important;font-size:16px;font-weight:800;box-shadow:none!important}
.subject-row input.subject-input-white:focus{outline:none!important;border-color:#2563eb!important;box-shadow:0 0 0 4px rgba(37,99,235,.11)!important}
.recipient-suggestions{display:none;position:absolute;left:10px;right:10px;top:calc(100% + 6px);background:#fff;border:1px solid #dbe3ec;border-radius:14px;box-shadow:0 18px 42px rgba(15,23,42,.18);z-index:80;max-height:290px;overflow:auto;padding:6px}.recipient-suggestions.open{display:block}.recipient-suggestion{width:100%;text-align:left;border:0;background:#fff;color:#0f172a;border-radius:10px;padding:11px 12px;display:flex;align-items:center;gap:6px}.recipient-suggestion:hover,.recipient-suggestion:focus{background:#f1f5f9;outline:none}.recipient-suggestion strong{font-size:14px;font-weight:900}.recipient-suggestion span{font-size:13px;color:#64748b;font-weight:800}.recipient-chip small{display:none}.mail-format-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border:1px solid #cbd5e1;border-bottom:0;border-radius:16px 16px 0 0;background:#f8fafc;padding:8px}.mail-format-toolbar button{border:1px solid #dbe3ec;background:#fff;color:#0f172a;border-radius:10px;padding:7px 10px;font-size:13px;font-weight:900;cursor:pointer}.mail-format-toolbar button:hover{background:#eaf1fb}.mail-rich-editor{width:100%;min-height:310px;border:1px solid #cbd5e1;border-radius:0 0 16px 16px;background:#fff;padding:16px;font-size:15px;line-height:1.65;outline:none;overflow:auto}.mail-rich-editor:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.11)}.mail-rich-editor:empty:before{content:attr(data-placeholder);color:#94a3b8}.preserved-mail-body p{margin:0 0 1em}.preserved-mail-body ul,.preserved-mail-body ol{margin:0 0 1em 1.3em}.preserved-mail-body blockquote{border-left:4px solid #cbd5e1;margin:1em 0;padding:.5em 1em;background:#f8fafc;color:#334155;border-radius:8px}.preserved-mail-body a{color:#2563eb;text-decoration:underline}

/* Dashboard internal mail summary */
.dashboard-stat-link{display:block;text-decoration:none;color:inherit}
.dashboard-stat-link:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.12)}
.dashboard-mail-card{margin-top:18px}
.dashboard-mail-card h2{margin:0;font-size:20px;letter-spacing:-.01em}
.dashboard-mail-list{display:grid;gap:10px;margin-top:12px}
.dashboard-mail-item{display:block;text-decoration:none;color:#0f172a;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:13px 15px;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
.dashboard-mail-item:hover{background:#f8fafc;border-color:#cbd5e1;box-shadow:0 10px 22px rgba(15,23,42,.08);transform:translateY(-1px)}
.dashboard-mail-item.unread{font-weight:900;border-left:5px solid #2563eb;background:linear-gradient(90deg,#eff6ff 0%,#fff 72%)}
.dashboard-mail-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px;min-height:20px}
.dashboard-mail-readstate{display:flex;align-items:center;gap:7px}
.dashboard-mail-dot{display:inline-block;width:9px;height:9px;border-radius:999px;background:#2563eb;box-shadow:0 0 0 3px #dbeafe}
.dashboard-mail-readstate em{font-style:normal;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.dashboard-mail-readstate .unread-badge{background:#dbeafe;color:#1e3a8a;border:1px solid #bfdbfe}
.dashboard-mail-readstate .read-badge{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}
.dashboard-mail-time{color:#64748b;font-size:12px;font-weight:700;white-space:nowrap}
.dashboard-mail-subject{display:block;font-size:15px;line-height:1.25;margin-bottom:5px;color:#0f172a;font-weight:750}
.dashboard-mail-item.unread .dashboard-mail-subject{font-weight:950;color:#0b1220}
.dashboard-mail-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#475569;font-size:13px;font-weight:650;line-height:1.35;margin-bottom:4px}
.dashboard-mail-rank{display:inline-flex;align-items:center;border:1px solid #e2e8f0;background:#f8fafc;color:#334155;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:800}
.dashboard-mail-preview{display:block;color:#64748b;font-size:13px;font-weight:600;line-height:1.35}
.dashboard-mail-item.unread .dashboard-mail-meta,.dashboard-mail-item.unread .dashboard-mail-preview{font-weight:800;color:#334155}

/* Two-line To/CC recipient autocomplete results */
.recipient-suggestions .recipient-suggestion{display:block!important;text-align:left!important;padding:11px 12px!important}
.recipient-suggestions .recipient-suggestion strong{display:block!important;font-size:14px!important;font-weight:900!important;color:#0f172a!important;line-height:1.25!important}
.recipient-suggestions .recipient-suggestion span{display:block!important;font-size:12px!important;color:#64748b!important;margin-top:3px!important;font-weight:800!important;line-height:1.25!important}

/* Dashboard mail preference + quick-open actions */
.dashboard-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.dashboard-card-head h2{margin:0}
.dashboard-card-subtitle{margin:4px 0 0;color:#64748b;font-size:13px;font-weight:650}
.dashboard-card-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.dashboard-mail-limit-form{display:flex;align-items:center;gap:7px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px;color:#475569;font-size:13px;font-weight:800}
.dashboard-mail-limit-form select{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:4px 8px;font-weight:900;color:#0f172a;min-width:54px}
@media (max-width: 720px){.dashboard-card-head{flex-direction:column;align-items:stretch}.dashboard-card-actions{justify-content:flex-start}}

/* Investigation completion marker */
.incident-completed-box{margin:12px 0 14px;padding:12px 14px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:14px;color:#14532d;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.incident-completed-box strong{font-size:14px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.incident-completed-box span{font-size:14px;font-weight:850}

.command-room-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.command-room-tab{padding:10px 14px;border-radius:999px;background:#e2e8f0;color:#0f172a;text-decoration:none;font-weight:800}.command-room-tab.active{background:#0d6efd;color:#fff}.command-chat-help{margin:8px 0 14px}.command-chatbox{border:1px solid #dbe3ec}.command-chat-msg-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.command-chat-senderline{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}.command-chat-msg-head b{display:inline;font-weight:900}.command-chat-msg-head .muted,.command-chat-meta{display:inline;font-size:12px;white-space:nowrap}.command-chat-text{margin-top:8px;line-height:1.5}.inline-delete{margin:0;margin-left:auto}.inline-delete button{white-space:nowrap}.command-chat-form textarea{min-height:110px}
