*{box-sizing:border-box} :root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#101b29;background:#fcfcfa;font-synthesis:none;--navy:#031b30;--teal:#00899b;--muted:#65717d;--line:#e1e6e8}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #0eafc3;outline-offset:3px}[hidden]{display:none!important}svg{width:20px;height:20px;stroke-width:1.7;flex-shrink:0}.primary{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--teal);color:white;border-radius:7px;padding:15px 18px;font-weight:600}.primary:hover{background:#007383}.secondary{padding:12px 16px;border:1px solid #bad7db;border-radius:6px;color:#006978}.icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:6px}.icon:hover{background:#eef4f4}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.3px}.shell{display:grid;grid-template-columns:240px 340px minmax(330px,1fr) 335px;grid-template-rows:74px minmax(0,1fr);height:100dvh;min-height:650px}.sidebar{grid-row:1/3;background:var(--navy);color:#fafcfe;padding:22px 17px 16px;display:flex;flex-direction:column;gap:16px;overflow:auto}.brand{display:flex;align-items:center;gap:13px;padding:0 8px}.brand>svg{width:34px;height:34px;color:#12b5c0}.brand strong{font-size:23px;letter-spacing:-.5px}.brand small{display:block;font-size:12px;margin-top:3px}.identity{display:flex;align-items:center;gap:5px;font-size:10px;color:#c8e9df;padding-left:9px;margin-top:-10px}.identity svg{width:13px;height:13px}.sidebar .primary{margin:5px 0 8px}.sidebar nav button{display:flex;align-items:center;gap:15px;text-align:left;padding:13px 12px;width:100%;border-radius:6px;margin:3px 0;font-size:15px}.sidebar nav button.active{background:#006b7c}.sidebar nav button:hover{background:#12364a}.sidebar nav button span{margin-left:auto}.sidebar hr{border:0;border-top:1px solid #294053;margin:22px 2px}.workspace-link{border-top:1px solid #294053;padding:20px 10px}.workspace-link a{display:flex;align-items:center;gap:12px;margin-top:18px;font-size:13px}.workspace-link a svg:last-child{margin-left:auto;width:15px}.side-aura{margin-top:auto;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px}.side-aura img{width:75px;height:75px;object-fit:contain}.side-aura strong{font-weight:500;font-size:14px}.side-aura small{font-size:11px;color:#aac2d1}.sidebar #logout{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:15px;color:#b6cad7}.topbar{grid-column:2/5;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding:12px 22px;background:#fff}.topbar form{display:flex;align-items:center;gap:10px;border:1px solid #d5dcdf;border-radius:7px;padding:0 11px;max-width:510px;flex:1}.topbar input{border:0;background:none;min-width:0;width:100%;height:42px;font-size:14px;outline-offset:0}.topbar select{max-width:220px;border:1px solid var(--line);padding:10px;border-radius:6px;background:white;font-size:12px;min-width:0}.org{font-size:13px;margin-left:auto;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:44px;height:44px;background:#e5dafa;color:#33324c;font-size:15px;flex-shrink:0}.user-avatar{background:#008293;color:white;width:38px;height:38px;font-size:13px}.aura-toggle{display:none}.message-list{display:flex;flex-direction:column;border-right:1px solid var(--line);min-height:0;overflow:hidden;background:#fff}.list-head{display:flex;align-items:center;justify-content:space-between;padding:18px 21px 10px}.list-head h1{font-size:23px;letter-spacing:-.5px;margin:0}.tabs{display:flex;gap:25px;padding:0 22px;border-bottom:1px solid var(--line)}.tabs button{padding:15px 4px;font-size:13px;border-bottom:3px solid transparent}.tabs .selected{color:#006a78;border-color:var(--teal);font-weight:600}.brief{display:flex;align-items:center;gap:11px;margin:10px;padding:15px 12px;background:#eaf6f6;border-radius:7px;font-size:12px;line-height:1.5;color:#215866}.brief svg{color:var(--teal)}#messages{overflow:auto;flex:1}.mail-row{display:flex;align-items:flex-start;gap:12px;width:100%;padding:21px 14px;text-align:left;border-bottom:1px solid #e9ebed;border-left:3px solid transparent;min-height:112px}.mail-row:hover{background:#f4f9f9}.mail-row.selected{background:#edf6f6;border-left-color:var(--teal)}.mail-row:nth-child(3n) .avatar{background:#dcebdc}.mail-row:nth-child(3n+1) .avatar{background:#f4e5cb}.mail-copy{flex:1;min-width:0}.mail-meta{display:flex;gap:8px;align-items:center}.mail-meta strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-meta time{font-size:10px;color:var(--muted);white-space:nowrap;margin-left:auto}.mail-copy h3{font-size:13px;line-height:1.5;margin:7px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.mail-copy p{font-size:12px;color:var(--muted);margin:0;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paging{min-height:49px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:4px 10px;font-size:11px;color:var(--muted)}.reader{padding:30px 28px;overflow:auto;min-width:0}.reader h2{font-size:24px;line-height:1.4;letter-spacing:-.6px;margin:0 0 25px;overflow-wrap:anywhere}.sender{display:flex;align-items:flex-start;gap:13px;margin:0 0 30px}.sender strong{font-size:13px}.sender p{font-size:12px;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}.sender time{font-size:11px;color:var(--muted);margin-left:auto;white-space:nowrap}.summary{background:#f0f9f9;border:1px solid #b6dfe4;padding:18px;border-radius:8px;line-height:1.7;margin-bottom:30px;font-size:13px}.summary small{display:flex;align-items:center;gap:9px;color:#00677b;font-size:11px;font-weight:600;letter-spacing:.35px}.summary p{margin:10px 0 0}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.9 Inter,"Segoe UI",sans-serif;margin:25px 0 30px}.attachment{display:flex;gap:10px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:6px;font-size:12px;margin:10px 0;overflow-wrap:anywhere}.attachment small{display:block;color:var(--muted);margin-top:4px}.message-actions{display:flex;gap:12px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.message-actions .primary{padding:12px 20px}.empty{text-align:center;color:var(--muted);padding:50px 22px;font-size:13px;line-height:1.8}.empty svg{width:40px;height:40px;color:#8badb5;margin-bottom:12px}.empty h2{font-size:19px;color:#29414b;letter-spacing:-.25px}.reader-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:90%}.reader-empty h2{margin:14px 0 0}.aura-panel{border-left:1px solid var(--line);padding:25px 22px 18px;display:flex;flex-direction:column;gap:13px;overflow:auto;background:#fdfdfb}.protection-status{font-size:11px;color:#53756a;display:flex;align-items:center;gap:8px}.protection-status svg{width:14px}.aura-brand{display:flex;align-items:center;gap:15px;margin:3px 0 8px}.aura-brand img{width:78px;height:78px;object-fit:contain}.aura-brand h2{font-size:35px;letter-spacing:2px;margin:0;font-weight:650}.aura-brand p{font-size:11px;margin:6px 0;color:var(--muted)}.aura-notice{padding:20px 17px;border:1px solid #a9d9d3;border-radius:11px;font-size:13px;line-height:1.7}.aura-notice p{color:var(--muted);font-size:12px;margin:9px 0 0}.aura-panel h3{font-size:14px;margin:9px 0 1px}.assistant-action{display:flex;align-items:center;gap:12px;padding:15px 12px;border:1px solid #dce1e5;border-radius:8px;font-size:12px;text-align:left;background:#fff}.assistant-action svg:last-child{margin-left:auto;width:15px}.assistant-action:hover{border-color:#8cbec6;background:#f4fafa}.aura-answer{font-size:12px;line-height:1.7;color:#45616d;white-space:pre-wrap;overflow-wrap:anywhere}.protection-card{display:flex;align-items:flex-start;gap:12px;border:1px solid #e4d4ba;border-radius:9px;padding:16px 12px;font-size:12px;margin:5px 0}.protection-card>svg{color:#b1722e;width:26px;height:26px}.protection-card strong{color:#8d591d;font-size:12px}.protection-card p{font-size:11px;color:var(--muted);line-height:1.65}.text-button{display:inline-flex;align-items:center;gap:7px;color:#006f80;padding:0;font-size:11px;font-weight:600}.text-button svg{width:14px;height:14px}.aura-controls{margin-top:auto;border:1px solid #dde3e6;border-radius:10px;padding:10px;font-size:10px;display:flex;flex-wrap:wrap;gap:10px}.aura-controls form{display:flex;align-items:center;border:1px solid #a9c3cf;border-radius:7px;padding:3px 6px;width:100%}.aura-controls input[type=text],#aura-input{border:0;background:none;width:100%;min-width:0;font-size:11px;padding:9px 4px}.aura-controls label{display:flex;align-items:center;gap:4px}.aura-controls input[type=checkbox]{accent-color:var(--teal)}.aura-controls small{color:var(--muted);line-height:1.6}.toast{position:fixed;top:84px;left:50%;transform:translateX(-50%);padding:16px 22px;border:1px solid #b8d3d7;border-radius:10px;background:white;box-shadow:0 7px 30px #00172822;max-width:min(450px,90vw);z-index:30;font-size:13px;line-height:1.6}.mobile-only{display:none}dialog{border:1px solid #c6dce0;border-radius:13px;width:min(650px,95vw);max-height:95dvh;padding:25px;box-shadow:0 20px 80px #00172840}dialog::backdrop{background:#041b3060}dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}dialog h2{font-size:22px;margin:0}dialog label{display:block;font-size:12px;color:#4f6371;margin:13px 0}dialog input,dialog textarea{width:100%;display:block;border:1px solid #cbd7dd;border-radius:5px;padding:11px;margin-top:7px;color:#152535;background:white}dialog textarea{resize:vertical}dialog footer{display:flex;gap:12px;margin:15px 0}dialog small{color:var(--muted);font-size:11px}#compose-status{font-size:12px;color:#9a4729;line-height:1.6}#login{min-height:100dvh;display:grid;place-items:center;background:var(--navy);padding:25px}.login-card{width:min(480px,100%);text-align:center;color:white;padding:35px 20px}.login-orb{width:125px;height:125px;object-fit:contain;margin-bottom:20px}.login-card .eyebrow{display:block;color:#7ed4d9}.login-card h1{font-size:46px;letter-spacing:-1.7px;line-height:1.16;margin:24px 0}.login-card p{font-size:15px;line-height:1.8;color:#bbcdd6}.login-button{margin:30px 0 20px}.login-card .fine{font-size:12px}.subtle{display:inline-block;margin-top:22px;font-size:12px;color:#8cd4da;text-decoration:underline}.error-text{color:#934b2b}.reader-back{display:none}
@media(min-width:1600px){.shell{grid-template-columns:255px 360px minmax(400px,1fr) 360px}.reader{padding:34px}.aura-panel{padding:26px}}
@media(max-width:1250px){.shell{grid-template-columns:210px 310px minmax(300px,1fr)}.topbar{grid-column:2/4;gap:12px}.aura-panel{display:none;position:fixed;right:0;top:0;bottom:0;width:335px;z-index:20;box-shadow:-5px 0 30px #00172822}.aura-panel.open{display:flex}.aura-toggle{display:inline-flex}.aura-panel .mobile-only{display:inline-flex;align-self:flex-end}.org{display:none}.brand strong{font-size:21px}.reader{padding:25px 22px}.sender{flex-wrap:wrap}.sender time{margin-left:57px}.topbar select{max-width:180px}}
@media(max-width:860px){.shell{grid-template-columns:72px 285px minmax(250px,1fr)}.sidebar{padding:20px 10px}.brand{padding:0;justify-content:center}.brand span,.identity,.sidebar .primary,.sidebar nav,.workspace-link,.side-aura strong,.side-aura small,.sidebar #logout{display:none}.side-aura img{width:48px;height:48px}.sidebar.open{position:fixed;inset:0 auto 0 0;width:240px;z-index:25;box-shadow:10px 0 40px #00172833;padding:22px 17px}.sidebar.open .brand{justify-content:flex-start}.sidebar.open .brand span,.sidebar.open .identity,.sidebar.open nav,.sidebar.open .workspace-link,.sidebar.open #logout{display:block}.sidebar.open .primary{display:flex}.topbar .mobile-only{display:inline-flex}.topbar{padding:10px;gap:7px}.topbar select{max-width:135px}.reader{padding:23px 18px}.reader h2{font-size:20px}.sender time{display:none}.mail-row{padding:18px 11px}.mail-row .avatar{width:35px;height:35px;font-size:12px}}
@media(max-width:650px){.shell{grid-template-columns:1fr;grid-template-rows:65px minmax(0,1fr);min-height:0}.sidebar{display:none}.sidebar.open{display:flex}.topbar{grid-column:1;gap:5px}.topbar select{max-width:125px;padding:8px 3px;font-size:10px}.topbar form{min-width:60px}.topbar input{font-size:11px}.topbar .user-avatar{display:none}.message-list{grid-column:1;grid-row:2}.reader{display:none;grid-column:1;grid-row:2;background:#fcfcfa;padding:16px 20px}.shell.reading .reader{display:block}.shell.reading .message-list{display:none}.reader-back{display:inline-flex;margin-bottom:17px;font-size:12px;align-items:center;gap:8px;color:#006c7d}.aura-panel{width:min(355px,100vw)}.mail-row{padding:20px 17px;min-height:105px}.mail-meta strong{font-size:14px}.mail-copy h3{font-size:14px}.mail-row .avatar{width:43px;height:43px}.list-head{padding-top:18px}.sender time{display:block;margin:0 0 0 auto}.reader h2{margin-bottom:20px}dialog{padding:18px}dialog footer{flex-wrap:wrap}.login-card h1{font-size:39px}.toast{top:74px}.brief{padding:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.list-tools{display:flex;gap:4px}.quick-compose{color:#007686}.mail-row{padding:16px 14px;min-height:96px}.mail-row.unread .mail-meta strong,.mail-row.unread h3{font-weight:750;color:#071b2c}.priority-pill{font-size:9px;font-weight:700;letter-spacing:.25px;text-transform:uppercase;color:#006c79;background:#ddf2f2;border-radius:999px;padding:3px 6px;white-space:nowrap}.message-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:9px 0 16px;margin:-12px 0 22px;border-bottom:1px solid var(--line)}.toolbar-action{display:inline-flex;align-items:center;gap:6px;padding:8px 9px;border-radius:6px;color:#3b5663;font-size:11px;white-space:nowrap}.toolbar-action:hover{background:#eaf5f5;color:#006b79}.toolbar-action svg{width:16px;height:16px}#login{width:100%;min-width:100vw}
.nav-close{display:none}.sidebar.open .nav-close{display:inline-flex;align-self:flex-end;margin-bottom:-15px}
@media(min-width:651px){.sidebar nav button{font-size:16px}.mail-meta strong,.mail-copy h3{font-size:14px}.mail-copy p{font-size:13px}.message-body{font-size:16px}.sender strong{font-size:14px}.sender p{font-size:13px}.summary{font-size:14px}.assistant-action{font-size:13px}.aura-notice{font-size:14px}.aura-notice p,.aura-answer{font-size:13px}.protection-card p{font-size:12px}.aura-controls small{font-size:10px}}
.custom-folders{display:flex;flex-direction:column}.workspace-link button{display:flex;align-items:center;gap:12px;width:100%;color:#e6f4f6;margin-bottom:20px}.mail-open-button{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;text-align:left}.mail-select{margin:14px 0 0;accent-color:var(--teal)}.row-star{margin-top:8px;color:#8b979d;padding:5px}.row-star.active{color:#d09521}.row-star.active svg{fill:currentColor}.row-star:hover{color:#b47b13}.thread-count{font-size:10px;background:#e7ecee;color:#48606a;border-radius:999px;padding:2px 6px}.row-badges{display:flex;color:#70828a;margin-top:7px}.row-badges svg{width:14px;height:14px}.bulk-bar{display:flex;align-items:center;gap:9px;padding:9px 12px;border-bottom:1px solid var(--line);background:#f4fafa;font-size:11px;overflow-x:auto}.bulk-bar label,.bulk-bar button{display:flex;align-items:center;gap:5px;white-space:nowrap}.bulk-bar button{padding:7px;border-radius:5px}.bulk-bar button:hover{background:#dceeee}.bulk-bar svg{width:14px;height:14px}.bulk-bar select{margin-left:auto;min-width:105px;border:1px solid var(--line);background:#fff;border-radius:5px;padding:6px}.thread-message{border-bottom:1px solid var(--line);padding:5px 0 22px;margin-bottom:24px}.thread-message:last-of-type{border-bottom:0}.attachment-actions{display:flex;gap:10px;margin-left:auto}.unsubscribe{display:inline-flex;margin:5px 0 16px}.file-chip{display:inline-flex;padding:7px 9px;margin:4px;border-radius:999px;background:#edf5f5;color:#355f68;font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 16px}.form-grid .wide{grid-column:1/-1}.form-grid .check{display:flex;align-items:center;gap:8px;margin-top:27px}.form-grid .check input{width:auto;margin:0}.dialog-close{margin-left:auto}dialog select{width:100%;display:block;border:1px solid #cbd7dd;border-radius:5px;padding:11px;margin-top:7px;background:#fff}dialog fieldset{border:1px solid var(--line);border-radius:8px;margin:20px 0;padding:12px}dialog legend{font-size:12px;font-weight:700}.undo-bar{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:50;display:flex;gap:22px;align-items:center;background:#072436;color:white;padding:13px 18px;border-radius:9px;box-shadow:0 10px 35px #00172855;font-size:13px}.undo-bar button{color:#64d4dc;font-weight:700}.attachment-list{display:flex;flex-wrap:wrap;margin:4px 0 10px}body[data-density=compact] .mail-row{min-height:72px;padding:10px 12px}body[data-density=compact] .mail-row .avatar{width:34px;height:34px;font-size:11px}body[data-reading=list] .reader{display:none}body[data-reading=list] .shell{grid-template-columns:240px minmax(380px,1fr) 335px}body[data-reading=list] .message-list{border-right:0}html[data-theme=dark]{color-scheme:dark;--navy:#021521;--muted:#9eb0b8;--line:#29404a;background:#0d1b22;color:#eef5f7}html[data-theme=dark] body,html[data-theme=dark] .reader,html[data-theme=dark] .message-list,html[data-theme=dark] .topbar,html[data-theme=dark] .aura-panel{background:#0d1b22;color:#eef5f7}html[data-theme=dark] .topbar form,html[data-theme=dark] .topbar select,html[data-theme=dark] dialog,html[data-theme=dark] dialog input,html[data-theme=dark] dialog textarea,html[data-theme=dark] dialog select,html[data-theme=dark] .assistant-action,html[data-theme=dark] .bulk-bar select{background:#132832;color:#eef5f7;border-color:#38515b}html[data-theme=dark] .mail-row:hover,html[data-theme=dark] .mail-row.selected{background:#17313a}html[data-theme=dark] .summary,html[data-theme=dark] .brief,html[data-theme=dark] .bulk-bar{background:#15343a;color:#d8eff1}

.vision-summary{display:block;margin-top:10px;color:#006f80;font-weight:650}.attachment-scan-note{color:#006f80!important}.preview-stage{position:relative;display:grid;place-items:center;min-height:260px;max-height:65vh;overflow:auto;border-radius:10px;background:#0b1820}.preview-stage img{display:block;max-width:100%;max-height:62vh;transition:filter .25s ease}.preview-stage img.safety-blurred{filter:blur(28px);transform:scale(.96)}.preview-reason{font-size:13px;line-height:1.6;color:var(--muted)}#attachment-preview{width:min(850px,95vw)}#attachment-preview header{border-bottom:1px solid var(--line);padding-bottom:13px}#attachment-preview header small{display:block;margin-top:6px;color:#006f80}
.security-details{margin-top:14px;padding-top:14px;border-top:1px solid #cbdfe1}.security-details>strong{display:flex;align-items:center;gap:7px;font-size:12px}.security-details>strong svg{width:15px}.auth-results,.security-metrics,.sender-controls,.feedback-controls{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.auth-results span,.security-metrics span{font-size:9px;font-weight:700;letter-spacing:.25px;padding:5px 7px;border-radius:999px;background:#e7eff1;color:#49626b}.auth-results .auth-pass{background:#dff2e7;color:#276240}.auth-results .auth-fail,.auth-results .auth-softfail{background:#f9ded8;color:#8f3028}.security-details>small{display:block;margin-top:8px;color:var(--muted);overflow-wrap:anywhere}.sender-controls{padding-top:8px}.sender-controls .text-button,.feedback-controls .text-button{padding:6px 8px;border:1px solid #bfd6d9;border-radius:5px}.feedback-controls{align-items:center;padding:9px;border-radius:8px;background:rgba(255,255,255,.45)}.feedback-controls small{width:100%;color:var(--muted)}.feedback-controls.is-recorded{background:#def4e9}.feedback-controls.is-recorded small{color:#236448;font-weight:700}.feedback-controls.is-recorded button{opacity:.58}
.aura-insight{border:1px solid #b6dfe4;border-left:4px solid #168595;border-radius:9px;background:#f1fbfb;padding:15px 16px;margin:0 0 20px;font-size:12px;line-height:1.65}.aura-insight.caution{border-color:#e0c792;border-left-color:#bd7b18;background:#fff9ed}.aura-insight.review{border-color:#e4aaa7;border-left-color:#c64742;background:#fff2f1}.aura-insight.loading{display:flex;align-items:center;gap:9px;color:#58737c}.aura-insight.loading svg{animation:aura-spin 1s linear infinite}.aura-insight-head{display:flex;align-items:center;gap:8px}.aura-insight-head svg{width:18px}.aura-insight-head span{margin-left:auto;text-transform:uppercase;letter-spacing:.08em;font-size:9px;color:var(--muted)}.aura-insight p{margin:9px 0}.aura-insight ul{margin:8px 0;padding-left:18px}.aura-insight small{display:block;color:var(--muted);margin-top:8px}.aura-insight button{margin-top:12px}.aura-degraded{color:#9b6724!important}@keyframes aura-spin{to{transform:rotate(360deg)}}html[data-theme=dark] .aura-insight{background:#123039;color:#eef5f7}html[data-theme=dark] .aura-insight.caution{background:#342b17}html[data-theme=dark] .aura-insight.review{background:#3b2020}
@media(max-width:650px){.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.form-grid .check{margin-top:8px}.mail-select{margin-top:13px}.row-star{padding:3px}.mail-open-button{gap:9px}.message-toolbar{gap:3px}.toolbar-action{padding:7px 8px}.bulk-bar{padding:7px}.thread-message{padding-bottom:14px;margin-bottom:16px}}
@media(prefers-color-scheme:dark){html[data-theme=system]{color-scheme:dark;--muted:#9eb0b8;--line:#29404a;background:#0d1b22;color:#eef5f7}html[data-theme=system] body,html[data-theme=system] .reader,html[data-theme=system] .message-list,html[data-theme=system] .topbar,html[data-theme=system] .aura-panel{background:#0d1b22;color:#eef5f7}}

/* Phase 2 visual and accessibility hardening. */
:root{--muted:#566772}.icon,.user-avatar,.reader-back,.row-star,.text-button,.assistant-action,.message-actions .primary,.topbar button,.list-head button{min-width:44px;min-height:44px}.topbar select{min-height:44px;color:#20313b}.tabs button{min-height:44px;font-size:13px}.mail-row{min-width:0}.mail-open-button,.mail-copy,.mail-meta{min-width:0;max-width:100%}#messages{overflow-x:hidden}.mail-meta strong,.mail-copy h3{font-size:14px}.mail-copy p,.sender p,.aura-answer,.assistant-action,.message-body{font-size:13px}.paging,.protection-status,.aura-controls,.text-button{font-size:12px}.empty h2,.reader-empty h2{color:#29414b}.empty p,.reader-empty p{color:#566772}html[data-theme=dark]{--muted:#b4c3c9;--line:#36515c}html[data-theme=dark] .empty h2,html[data-theme=dark] .reader-empty h2{color:#eef5f7}html[data-theme=dark] .empty p,html[data-theme=dark] .reader-empty p{color:#b4c3c9}html[data-theme=dark] .tabs .selected{color:#66dbe5}html[data-theme=dark] .text-button{color:#73dce6}html[data-theme=dark] .topbar select{color:#eef5f7;background:#132832}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.document-summary{color:#5a4f91!important;font-weight:650}.document-preview-text{width:100%;min-height:260px;margin:0;padding:22px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;color:#243641;font:13px/1.7 Inter,"Segoe UI",sans-serif}.preview-stage:has(.document-preview-text){display:block;background:#f5f7f8}html[data-theme=dark] .document-preview-text{background:#132832;color:#eef5f7}
.aura-suggestions{margin:13px 0;padding:12px;border:1px solid #b8dadd;border-radius:8px;background:#fff}.aura-suggestions>strong{display:block;color:#075f6b}.aura-suggestions>small{margin-top:2px}.suggestion-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.suggestion-card>svg{color:var(--teal)}.suggestion-card>div{display:flex;flex-direction:column;min-width:0}.suggestion-card>div strong{overflow-wrap:anywhere}.suggestion-card .suggestion-type{font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:#087181}.suggestion-card button{margin:0;white-space:nowrap;padding:8px 10px;font-size:10px}.reminder-row{align-items:center;min-height:88px}.reminder-row>svg{color:var(--teal)}.reminder-status{display:inline-block;margin-top:6px;font-size:10px;font-weight:650;color:#087181}html[data-theme=dark] .aura-suggestions{background:#132832;border-color:#38515b}@media(max-width:650px){.suggestion-card{grid-template-columns:auto 1fr}.suggestion-card button{grid-column:2;justify-self:start}}
.workspace-calendar-link{margin:12px 14px;align-self:flex-start;text-align:center}

/* Phase 8 reminder synchronization actions */
.reminder-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.reminder-actions .text-button{white-space:nowrap}
@media(max-width:700px){.reminder-actions{grid-column:2;justify-content:flex-start}}

/* Mailbox overview redesign: reserve the canvas for mail and expose AURA on demand. */
html,body{height:100%;overflow:hidden}.shell{grid-template-columns:208px 384px minmax(0,1fr);grid-template-rows:74px minmax(0,1fr);min-height:0;overflow:hidden}.topbar{grid-column:2/4;position:relative;z-index:2;padding:12px 20px;gap:14px}.sidebar{overflow-y:auto;overflow-x:hidden;padding:20px 14px}.sidebar nav button{font-size:14px;padding:11px 10px}.message-list{grid-column:2;grid-row:2;min-width:0;overflow:hidden}.list-head,.tabs{flex-shrink:0}.list-head{padding:18px 18px 10px}.tabs{gap:20px;padding:0 18px}#messages{overflow-x:hidden;overscroll-behavior:contain}.mail-row{min-width:0;padding:17px 12px}.mail-open-button{overflow:hidden}.mail-meta,.mail-copy{min-width:0}.mail-meta time{overflow:hidden;text-overflow:ellipsis}.mail-copy h3{font-size:14px;line-height:1.4}.mail-copy p{font-size:13px}
.reader{grid-column:3;grid-row:2;padding:32px clamp(24px,4vw,56px);overflow:auto;overscroll-behavior:contain;background:#fcfcfa}.reader>h2{max-width:760px;font-size:clamp(24px,2vw,30px);line-height:1.3}.reader .message-toolbar{position:sticky;top:-32px;z-index:3;margin-top:-32px;padding:16px 0 14px;background:#fcfcfa}.reader .thread-message,.reader .message-body{max-width:760px}.message-body{font-size:16px;line-height:1.85}.reader-empty{min-height:100%;height:auto}
.aura-status-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #a8d8d2;border-radius:999px;padding:8px 11px;color:#176559;background:#f2fbf8;font-size:12px;font-weight:700;white-space:nowrap}.aura-status-chip svg{width:16px;height:16px}.aura-status-chip:hover{background:#def3ed}.aura-icon-toggle{display:none}
.aura-panel{position:fixed;inset:0 0 0 auto;z-index:40;width:360px;max-width:100vw;display:flex;transform:translateX(100%);pointer-events:none;transition:transform .2s ease;box-shadow:-18px 0 48px rgba(3,27,48,.16);border-left:1px solid var(--line);padding:22px 20px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:#fdfdfb}.aura-panel.open{display:flex;transform:translateX(0);pointer-events:auto}.aura-panel .mobile-only{display:inline-flex;align-self:flex-end;flex-shrink:0}.aura-brand{margin:0 0 4px}.aura-brand img{width:62px;height:62px}.aura-brand h2{font-size:29px}.aura-notice{padding:15px;font-size:14px}.aura-notice p,.aura-answer{font-size:13px}.assistant-action{padding:13px 12px;font-size:13px}.aura-controls{margin-top:0;font-size:11px}.protection-card p{font-size:12px}.push-enrollment{margin-bottom:4px}
html[data-theme=dark] .reader,html[data-theme=dark] .reader .message-toolbar,html[data-theme=dark] .aura-panel{background:#0d1b22}html[data-theme=dark] .aura-status-chip{background:#123039;border-color:#3c7470;color:#d6f4ea}html[data-theme=dark] .mail-meta strong,html[data-theme=dark] .mail-copy h3,html[data-theme=dark] .reader-empty h2{color:#f0f7f8}html[data-theme=dark] .mail-copy p,html[data-theme=dark] .mail-meta time{color:#b8c8cd}
@media(max-width:1100px){.shell{grid-template-columns:72px 360px minmax(0,1fr)}.sidebar{padding:18px 10px}.brand{justify-content:center;padding:0}.brand span,.identity,.sidebar .primary,.sidebar nav,.workspace-link,.side-aura strong,.side-aura small,.sidebar #logout{display:none}.side-aura img{width:48px;height:48px}.sidebar.open{position:fixed;inset:0 auto 0 0;width:240px;z-index:45;box-shadow:10px 0 40px rgba(0,23,40,.2);padding:22px 17px}.sidebar.open .brand{justify-content:flex-start}.sidebar.open .brand span,.sidebar.open .identity,.sidebar.open nav,.sidebar.open .workspace-link,.sidebar.open #logout{display:block}.sidebar.open .primary{display:flex}.topbar .mobile-only{display:inline-flex}.aura-status-chip span{display:none}.aura-status-chip{padding:9px}.org{display:none}}
@media(max-width:760px){.shell{grid-template-columns:1fr;grid-template-rows:65px minmax(0,1fr)}.topbar{grid-column:1}.message-list{grid-column:1}.reader{grid-column:1;padding:24px 20px}.reader .message-toolbar{top:-24px;margin-top:-24px}.aura-status-chip{display:none}.aura-icon-toggle{display:inline-flex}.aura-panel{top:auto;width:100%;height:min(78dvh,680px);border-left:0;border-top:1px solid var(--line);border-radius:20px 20px 0 0;transform:translateY(105%);padding:18px 18px 26px;box-shadow:0 -16px 48px rgba(3,27,48,.18)}.aura-panel.open{transform:translateY(0)}.aura-panel .mobile-only{align-self:flex-end}.mail-row{padding:18px 14px}}
@media(max-width:760px){.shell,.topbar,.message-list,.reader{width:100%;max-width:100%;min-width:0}.topbar{padding:10px 12px;gap:6px}.topbar form{min-width:0}.topbar select{width:min(34vw,125px);flex:0 1 125px}.reader>*{max-width:100%;min-width:0}.aura-insight,.aura-insight-head,.aura-suggestions,.suggestion-card,.security-details,.message-toolbar,.thread-message{max-width:100%;min-width:0}.aura-insight-head{flex-wrap:wrap}.aura-insight-head span{margin-left:0}.message-toolbar{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}.sender-controls,.feedback-controls,.attachment,.attachment-actions{max-width:100%}.attachment{align-items:flex-start;flex-wrap:wrap}.attachment-actions{margin-left:0;flex-basis:100%;justify-content:flex-start}}
.push-enrollment{display:grid;gap:10px;margin:8px 0;padding:14px;border:1px solid rgba(120,91,190,.2);border-radius:16px;background:linear-gradient(145deg,rgba(111,77,185,.1),rgba(39,166,135,.08))}.push-enrollment strong,.push-enrollment small{display:block}.push-enrollment strong{font-size:13px}.push-enrollment small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.45}.push-enrollment ol{display:grid;gap:6px;margin:0;padding:0;list-style:none}.push-enrollment li{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.push-enrollment li:before{content:'·';display:grid;width:18px;height:18px;place-content:center;border-radius:50%;background:var(--surface);color:var(--muted);font-weight:900}.push-enrollment li[data-state=pass]:before{content:'✓';background:#d8f6e8;color:#14674b}.push-enrollment li[data-state=fail]:before{content:'!';background:#ffe3e6;color:#913c4d}.push-enrollment button{width:100%}.push-enrollment>a{color:var(--accent);font-size:11px;font-weight:750;text-align:center;text-decoration:none}

/* Phase 3 — AURA Command Deck production visual system. */
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#eef2ff;background:#090c12;--navy:#090c12;--teal:#6d5cff;--muted:#8c96ac;--line:#252b3a}
html[data-theme=system],html[data-theme=dark]{color-scheme:dark}
html[data-theme=system] body,html[data-theme=system] .reader,html[data-theme=system] .message-list,html[data-theme=system] .topbar,html[data-theme=system] .aura-panel,html[data-theme=dark] body,html[data-theme=dark] .reader,html[data-theme=dark] .message-list,html[data-theme=dark] .topbar,html[data-theme=dark] .aura-panel{background:#0d1018;color:#eef2ff}
.shell{grid-template-columns:220px 420px minmax(0,1fr);grid-template-rows:72px minmax(0,1fr);background:#0d1018}
.sidebar{background:#080b12;border-right:1px solid #202636;padding:20px 14px;color:#f5f7ff;gap:14px}
.brand{padding:2px 11px;gap:11px}.brand>svg{width:30px;height:30px;color:#6d5cff}.brand strong{font-size:21px;letter-spacing:.2px}.brand small{color:#758099;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.identity{color:#69e4d1;padding-left:11px}.sidebar .primary{background:#6657ff;border-radius:9px;padding:13px 15px;box-shadow:0 10px 24px #6657ff33}.sidebar .primary:hover{background:#786aff}
.sidebar nav button{color:#aeb7ca;border-radius:8px;font-size:13px;padding:11px 12px}.sidebar nav button.active{background:#211b49;color:#fff;border-left:3px solid #7062ff;padding-left:9px}.sidebar nav button:hover{background:#171d2a;color:#fff}.sidebar hr,.workspace-link{border-color:#232a3b}.workspace-link button{color:#bdc6db}.side-aura{border-top:1px solid #232a3b;padding-top:13px}.side-aura img{width:58px;height:58px}.side-aura strong{font-size:12px;color:#d7dcf0}.side-aura small{color:#758099;font-size:10px}.sidebar #logout{color:#73809a}
.topbar{grid-column:2/4;background:#0d1018;border-bottom:1px solid #252b3a;padding:12px 20px;gap:16px}.topbar:before{content:"IETA  Mail";display:inline-block;color:#f6f7ff;font-size:18px;letter-spacing:-.5px;white-space:nowrap}.topbar:after{content:"AURA Command Deck";color:#786cff;font-size:12px;letter-spacing:.02em;white-space:nowrap;order:1}.topbar form{order:2;border:1px solid #2b3346;background:#151a25;border-radius:11px;max-width:none}.topbar input{color:#eef2ff}.topbar input::placeholder{color:#78839a}.topbar select{order:3;background:#151a25;color:#dce3f5;border-color:#2b3346;border-radius:9px}.org{order:4;color:#aab4c9}.aura-status-chip{order:5;background:#111f27;border-color:#2e6b68;color:#6fe1d1}.user-avatar{order:6;background:#6258ee;color:#fff}
.message-list{grid-column:2;background:#10141d;border-right:1px solid #252b3a}.list-head{padding:23px 22px 12px}.list-head h1{font-size:25px;color:#f8f9ff}.list-tools .icon{color:#b6bfd3}.tabs{border-color:#252b3a;gap:25px}.tabs button{color:#8792a8}.tabs .selected{color:#8f82ff;border-color:#7062ff}.brief{background:#161c2a;color:#aeb9d0;border:1px solid #273047;margin:12px;border-radius:10px}.brief svg{color:#72e2d2}#messages{background:#10141d}.mail-row{border-color:#252b3a;min-height:104px;padding:17px 15px}.mail-row:hover{background:#171d2a}.mail-row.selected{background:#201a45;border-left-color:#786cff}.mail-meta strong,.mail-copy h3{color:#e9edfa}.mail-meta time,.mail-copy p{color:#8994aa}.mail-row:nth-child(3n) .avatar,.mail-row:nth-child(3n+1) .avatar,.mail-row .avatar{background:#27314a;color:#cbd4ff}.mail-row.unread .mail-meta strong,.mail-row.unread h3{color:#fff}.priority-pill,.thread-count{background:#27205a;color:#a89cff}.paging{border-color:#252b3a;color:#8490a7}
.reader{grid-column:3;background:#11151e;padding:32px clamp(28px,4vw,58px)}.reader .message-toolbar{background:#11151e;border-color:#293143}.reader h2{color:#f8f9ff;font-size:30px}.sender strong{color:#f4f6ff}.sender p,.sender time{color:#909bb0}.summary{background:#171d28;border-color:#2d384e;color:#c6d0e4;border-radius:11px}.summary small{color:#6fe1d1}.message-body{color:#cdd5e7}.attachment{border-color:#2b3547;background:#151b27;color:#dbe2f2}.message-actions{border-color:#293143}.message-actions .primary{background:#6657ff}.empty{color:#8b96ab}.empty h2{color:#eff2ff}.empty p{color:#8c96ac}.reader-empty svg{color:#6d5cff}
.aura-panel{background:#0d1018;border-color:#2a3244;color:#eef2ff}.protection-status{color:#6fe1d1}.aura-brand h2{color:#fff}.aura-brand p,.aura-notice p,.aura-answer,.protection-card p{color:#909bb0}.aura-notice,.assistant-action,.protection-card,.aura-controls{background:#151b27;border-color:#2b3547;color:#dce3f4}.assistant-action:hover{background:#1d2433;border-color:#6d5cff}.protection-card strong{color:#f1c879}.aura-controls form{border-color:#36445b}.aura-controls input[type=text],#aura-input{color:#eef2ff}.text-button{color:#8d80ff}.toast{background:#151b27;color:#eef2ff;border-color:#38445a;box-shadow:0 15px 50px #0008}.undo-bar{background:#161c2a}
html[data-theme=light] body,html[data-theme=light] .reader,html[data-theme=light] .message-list,html[data-theme=light] .topbar,html[data-theme=light] .aura-panel{background:#fcfcfa;color:#101b29}
html[data-theme=light] .topbar:before{color:#101b29}html[data-theme=light] .topbar form,html[data-theme=light] .topbar select{background:#fff;color:#20313b;border-color:#d5dcdf}html[data-theme=light] .message-list{border-color:#e1e6e8}html[data-theme=light] .reader{background:#fcfcfa}html[data-theme=light] .reader .message-toolbar{background:#fcfcfa;border-color:#e1e6e8}html[data-theme=light] .reader h2,html[data-theme=light] .mail-meta strong,html[data-theme=light] .mail-copy h3{color:#101b29}html[data-theme=light] .mail-row{border-color:#e9ebed}html[data-theme=light] .mail-row:hover{background:#f4f9f9}html[data-theme=light] .mail-row.selected{background:#edf6f6;border-left-color:#00899b}
@media(max-width:1100px){.topbar:after{display:none}.topbar:before{font-size:15px}.shell{grid-template-columns:72px 360px minmax(0,1fr)}}
@media(max-width:760px){.topbar:before{content:"IETA Mail";font-size:14px}.topbar{padding:10px 12px}.message-list{border-right:0}.reader{background:#11151e}.topbar form{flex:1}.topbar select{max-width:112px}.topbar:after{display:none}}
.topbar .aura-status-chip{display:inline-flex}
html[data-theme=system] dialog,html[data-theme=dark] dialog{background:#151b27;color:#eef2ff;border-color:#354158}html[data-theme=system] dialog input,html[data-theme=system] dialog textarea,html[data-theme=system] dialog select,html[data-theme=dark] dialog input,html[data-theme=dark] dialog textarea,html[data-theme=dark] dialog select{background:#0d1018;color:#eef2ff;border-color:#354158}html[data-theme=system] dialog label,html[data-theme=dark] dialog label{color:#9aa6bb}html[data-theme=system] dialog fieldset,html[data-theme=dark] dialog fieldset{border-color:#354158}

/* Command Deck light mode keeps the new hierarchy and violet security language. */
html[data-theme=light]{color-scheme:light;--muted:#667087;--line:#d9deea}
html[data-theme=light] body,html[data-theme=light] .topbar,html[data-theme=light] .message-list,html[data-theme=light] .reader,html[data-theme=light] .aura-panel{background:#f5f6fb;color:#171b28}
html[data-theme=light] .topbar{border-color:#d9deea}html[data-theme=light] .topbar:before{color:#171b28}html[data-theme=light] .topbar:after{color:#6657e8}html[data-theme=light] .topbar form,html[data-theme=light] .topbar select{background:#fff;color:#202536;border-color:#d5dbea}html[data-theme=light] .topbar input{color:#202536}html[data-theme=light] .topbar input::placeholder{color:#7c8699}
html[data-theme=light] .message-list{background:#f8f9fd;border-color:#d9deea}html[data-theme=light] #messages{background:#f8f9fd}html[data-theme=light] .list-head h1{color:#171b28}html[data-theme=light] .tabs{border-color:#d9deea}html[data-theme=light] .tabs button{color:#687187}html[data-theme=light] .tabs .selected{color:#5c4fe1;border-color:#6657e8}html[data-theme=light] .brief{background:#eef0fb;color:#4c5570;border-color:#d9dcef}html[data-theme=light] .mail-row{border-color:#e1e4ee}html[data-theme=light] .mail-row:hover{background:#f0f1f8}html[data-theme=light] .mail-row.selected{background:#e8e5ff;border-left-color:#6657e8}html[data-theme=light] .mail-meta strong,html[data-theme=light] .mail-copy h3,html[data-theme=light] .mail-row.unread .mail-meta strong,html[data-theme=light] .mail-row.unread h3{color:#171b28}html[data-theme=light] .mail-meta time,html[data-theme=light] .mail-copy p{color:#687187}html[data-theme=light] .mail-row .avatar{background:#e2e5f2;color:#38405c}html[data-theme=light] .priority-pill,html[data-theme=light] .thread-count{background:#ddd8ff;color:#4f42c7}
html[data-theme=light] .reader{background:#fff}html[data-theme=light] .reader .message-toolbar{background:#fff;border-color:#d9deea}html[data-theme=light] .reader h2,html[data-theme=light] .sender strong,html[data-theme=light] .empty h2{color:#171b28}html[data-theme=light] .sender p,html[data-theme=light] .sender time,html[data-theme=light] .message-body,html[data-theme=light] .empty p{color:#5e687d}html[data-theme=light] .summary,html[data-theme=light] .attachment{background:#f2f3f9;border-color:#d8deeb;color:#374057}
html[data-theme=light] .aura-panel{background:#f8f9fd;border-color:#d9deea;color:#171b28}html[data-theme=light] .aura-notice,html[data-theme=light] .assistant-action,html[data-theme=light] .protection-card,html[data-theme=light] .aura-controls{background:#fff;border-color:#d9deea;color:#343c52}html[data-theme=light] .aura-brand h2{color:#171b28}
html[data-theme=light] dialog{background:#fff;color:#171b28;border-color:#d9deea}html[data-theme=light] dialog input,html[data-theme=light] dialog textarea,html[data-theme=light] dialog select{background:#f8f9fd;color:#202536;border-color:#d5dbea}html[data-theme=light] dialog label{color:#5e687d}html[data-theme=light] dialog fieldset{border-color:#d9deea}

/* Phase 3.1 — unify AURA risk analysis across System and Dark themes. */
.reader>h2{font-size:clamp(23px,1.75vw,28px);line-height:1.25;margin-bottom:22px}
.reader ::selection{background:rgba(109,92,255,.58);color:#fff}
.aura-insight{border-radius:14px;padding:18px 20px;margin-bottom:24px;box-shadow:0 14px 38px rgba(0,0,0,.14)}
.aura-insight-head{gap:10px}.aura-insight-head strong{font-size:13px}.aura-insight-head span{border:1px solid currentColor;border-radius:999px;padding:4px 7px}
.aura-insight p,.aura-insight li{color:#c8d0e2}.aura-insight ul{display:grid;gap:5px;padding-left:20px}
.security-details{border-color:#333c50}.security-details>strong{color:#e8ecfa}
.auth-results span,.security-metrics span{background:#232b3b;color:#bac4d8;border:1px solid #343e53}
.auth-results .auth-pass{background:#123a35;color:#75e4d1;border-color:#24675e}.auth-results .auth-fail,.auth-results .auth-softfail{background:#452629;color:#ffaaa8;border-color:#7b3c43}
.sender-controls{gap:9px;margin-top:16px}.sender-controls .text-button,.feedback-controls .text-button{min-height:36px;min-width:0;padding:8px 11px;border:1px solid #3a445a;border-radius:8px;background:#191f2c;color:#b5abff}.sender-controls .text-button:hover,.feedback-controls .text-button:hover{background:#242044;border-color:#7062ff;color:#fff}
.feedback-controls{padding:12px;border-radius:10px;background:#141925}.feedback-controls small{flex-basis:100%;color:#8f99ae}
html[data-theme=system] .aura-insight,html[data-theme=dark] .aura-insight{background:#161c28;color:#eef2ff;border-color:#3b465d;border-left-color:#6d5cff}
html[data-theme=system] .aura-insight.caution,html[data-theme=dark] .aura-insight.caution{background:#2b2518;border-color:#65552b;border-left-color:#e2ab4f}
html[data-theme=system] .aura-insight.review,html[data-theme=dark] .aura-insight.review{background:#291b22;border-color:#713b49;border-left-color:#ff6f7d}
html[data-theme=system] .aura-insight small,html[data-theme=dark] .aura-insight small{color:#aeb8cb}
html[data-theme=light] .aura-insight{background:#f7f6ff;color:#25283a;border-color:#d8d3ff;border-left-color:#6657e8;box-shadow:0 14px 34px rgba(47,42,92,.08)}
html[data-theme=light] .aura-insight.caution{background:#fff8e9;border-color:#ead29d;border-left-color:#b67812}html[data-theme=light] .aura-insight.review{background:#fff2f4;border-color:#e9b2ba;border-left-color:#ca4856}
html[data-theme=light] .aura-insight p,html[data-theme=light] .aura-insight li{color:#474f64}html[data-theme=light] .security-details{border-color:#d9deea}html[data-theme=light] .security-details>strong{color:#25283a}html[data-theme=light] .auth-results span,html[data-theme=light] .security-metrics span{background:#edf0f7;color:#4d566d;border-color:#dde2ed}html[data-theme=light] .sender-controls .text-button,html[data-theme=light] .feedback-controls .text-button{background:#fff;color:#5749d8;border-color:#d6dbea}html[data-theme=light] .feedback-controls{background:#f2f3f9}
@media(max-width:760px){.reader>h2{font-size:22px}.aura-insight{padding:16px;margin-bottom:18px}.sender-controls .text-button,.feedback-controls .text-button{flex:1 1 auto;justify-content:center}}

/* Phase 4 — responsive command bar and accessible compact controls. */
.topbar #menu{order:1;flex:0 0 44px;color:#cbd3e5;border:1px solid transparent;border-radius:10px}
.topbar .aura-toggle{order:5;display:none;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #303a50;border-radius:10px;background:#171d2a;color:#72e2d2;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.topbar .aura-toggle svg{width:19px;height:19px}.topbar .aura-toggle:hover{background:#242044;border-color:#7062ff;color:#fff}.topbar #menu:hover{background:#171d2a;border-color:#303a50;color:#fff}
.topbar .aura-toggle:focus-visible,.topbar #menu:focus-visible{outline:3px solid #72e2d2;outline-offset:2px}
html[data-theme=light] .topbar .aura-toggle{background:#f0efff;color:#5749d8;border-color:#d6d2ff}html[data-theme=light] .topbar .aura-toggle:hover{background:#e3dfff;border-color:#6657e8;color:#3327a8}html[data-theme=light] .topbar #menu:hover{background:#eef0f6;border-color:#d9deea;color:#171b28}
@media(max-width:1250px){.topbar .aura-toggle{display:inline-flex}}
@media(max-width:1100px){.topbar{gap:10px}.topbar:before{order:0}.topbar form{order:2}.topbar select{order:3}.topbar .aura-toggle{order:5}.topbar .user-avatar{order:6}}
@media(max-width:760px){.topbar{gap:6px}.topbar #menu,.topbar .aura-toggle{flex-basis:42px;width:42px;height:42px;min-width:42px;min-height:42px}.topbar form{min-width:120px}.topbar select{min-width:0}}
@media(max-width:560px){.topbar:before{display:none}.topbar #menu{order:0}.topbar select{width:100px;max-width:100px}.topbar .aura-toggle{order:5}}

/* Phase 5 — phone reflow and mailbox loading skeletons. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mail-skeletons{display:grid}.mail-skeleton{display:grid;grid-template-columns:18px 42px minmax(0,1fr);align-items:center;gap:12px;min-height:104px;padding:17px 15px;border-bottom:1px solid #252b3a}.skeleton-check,.skeleton-avatar,.skeleton-line{display:block;background:linear-gradient(90deg,#1b2230 20%,#293247 42%,#1b2230 64%);background-size:240% 100%;animation:mail-shimmer 1.35s ease-in-out infinite}.skeleton-check{width:13px;height:13px;border-radius:3px}.skeleton-avatar{width:42px;height:42px;border-radius:50%}.skeleton-copy{display:grid;gap:9px;min-width:0}.skeleton-line{height:10px;border-radius:999px}.skeleton-line.short{width:42%}.skeleton-line.medium{width:72%}.skeleton-line.long{width:94%}@keyframes mail-shimmer{0%{background-position:110% 0}100%{background-position:-110% 0}}
html[data-theme=light] .mail-skeleton{border-color:#e1e4ee}html[data-theme=light] .skeleton-check,html[data-theme=light] .skeleton-avatar,html[data-theme=light] .skeleton-line{background:linear-gradient(90deg,#e7e9f1 20%,#f5f6fa 42%,#e7e9f1 64%);background-size:240% 100%}
@media(max-width:760px){
  .shell{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:112px minmax(0,1fr)!important;width:100%!important;max-width:100%!important}
  .sidebar{display:none!important}
  .topbar{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;grid-template-rows:44px 44px!important;align-content:center;column-gap:7px;row-gap:7px;width:100%!important;max-width:100%!important;padding:8px 12px!important}
  .topbar:before,.topbar:after,.topbar .org,.topbar .user-avatar{display:none!important}
  .topbar #menu{grid-column:1;grid-row:1;order:0!important}
  .topbar form{grid-column:2;grid-row:1;order:0!important;width:100%;min-width:0!important;height:44px}
  .topbar .aura-toggle{grid-column:3;grid-row:1;order:0!important}
  .topbar select{grid-column:1/4;grid-row:2;order:0!important;width:100%!important;max-width:none!important;height:44px;padding:8px 12px!important;font-size:12px!important}
  .message-list,.reader{grid-column:1!important;grid-row:2!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .reader{padding:20px 16px!important}.reader .message-toolbar{top:-20px;margin-top:-20px}
  .mail-skeleton{grid-template-columns:16px 40px minmax(0,1fr);gap:10px;min-height:96px;padding:15px 14px}
}
@media(max-width:420px){.topbar{padding-inline:10px!important}.topbar form .icon{min-width:38px;width:38px}.topbar form>svg{width:18px}.topbar input{font-size:12px}.list-head{padding-inline:16px}.tabs{padding-inline:14px}.brief{margin:10px}.reader>h2{font-size:21px}}

/* Phase 6 — mobile composer, attachment preview and keyboard-safe dialogs. */
#composer .compose-close,#attachment-preview #close-preview,dialog .dialog-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:1px solid #303a50!important;border-radius:10px!important;background:#171d2a!important;color:#cbd4e7!important;box-shadow:none!important}
#composer .compose-close:hover,#attachment-preview #close-preview:hover,dialog .dialog-close:hover{background:#242044!important;border-color:#7062ff!important;color:#fff!important}
#composer .compose-close:focus-visible,#attachment-preview #close-preview:focus-visible,dialog .dialog-close:focus-visible{outline:3px solid #72e2d2!important;outline-offset:2px!important}
html[data-theme=light] #composer .compose-close,html[data-theme=light] #attachment-preview #close-preview,html[data-theme=light] dialog .dialog-close{background:#f0efff!important;color:#5749d8!important;border-color:#d6d2ff!important}html[data-theme=light] #composer .compose-close:hover,html[data-theme=light] #attachment-preview #close-preview:hover,html[data-theme=light] dialog .dialog-close:hover{background:#e3dfff!important;border-color:#6657e8!important;color:#3327a8!important}
html[data-theme=system] #composer .format-toolbar,html[data-theme=dark] #composer .format-toolbar{background:#10242d!important;border-color:#385862!important;color:#dce9ef!important}html[data-theme=system] #composer .format-button,html[data-theme=system] #composer .emoji-picker>summary,html[data-theme=dark] #composer .format-button,html[data-theme=dark] #composer .emoji-picker>summary{color:#aebdca!important}html[data-theme=system] #composer .format-button:hover,html[data-theme=system] #composer .emoji-picker>summary:hover,html[data-theme=dark] #composer .format-button:hover,html[data-theme=dark] #composer .emoji-picker>summary:hover{background:#1b3944!important;color:#72e2d2!important}
#attachment-preview{background:#10151f!important;color:#eef2ff!important;border-color:#343e52!important}#attachment-preview header{position:sticky;top:0;z-index:2;background:#10151f!important}#attachment-preview .preview-stage{border:1px solid #283247;background:#080c12}.preview-reason{color:#aeb8ca}
@media(max-width:650px){
  #composer{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;max-width:none!important;height:var(--mail-vvh,100dvh)!important;max-height:var(--mail-vvh,100dvh)!important;border:0!important;border-radius:0!important;overflow:hidden!important}
  #composer .compose-card{height:100%!important;max-height:none!important;min-height:0!important;overflow:hidden!important}
  #composer .compose-header{flex:0 0 auto;padding:14px 16px 12px!important}#composer .compose-header h2{font-size:21px!important;margin-top:5px!important}
  #composer .compose-fields{flex:0 0 auto;padding-inline:16px!important}
  #composer .message-editor{flex:1 1 auto!important;min-height:110px!important;padding:15px 16px!important;overflow:auto!important;overscroll-behavior:contain}#composer .message-editor textarea{min-height:100%!important;resize:none!important}
  #composer .format-toolbar{flex:0 0 auto;padding:6px 10px!important;overflow-x:auto;scrollbar-width:none}#composer .format-toolbar::-webkit-scrollbar{display:none}
  #composer .compose-tools{flex:0 0 auto;padding:8px 10px!important;overflow:visible}#composer .compose-protection{margin-left:auto}
  #composer .attachment-list{flex:0 0 auto;max-height:74px;overflow:auto}
  #composer .compose-footer{position:relative;flex:0 0 auto;padding:11px 16px 9px!important;border-top:1px solid #263743;box-shadow:0 -10px 25px rgba(0,0,0,.16)}#composer .compose-note{flex:0 0 auto;padding:0 16px max(12px,env(safe-area-inset-bottom))!important}
  #attachment-preview{width:calc(100vw - 20px)!important;max-width:none!important;max-height:calc(var(--mail-vvh,100dvh) - 20px)!important;margin:auto!important;padding:16px!important;border-radius:16px!important;overflow:auto!important}#attachment-preview .preview-stage{min-height:clamp(180px,42dvh,320px);max-height:58dvh}#attachment-preview .preview-stage img{max-height:55dvh}#attachment-preview .document-preview-text{min-height:180px;padding:16px}
}
@media(max-height:560px) and (max-width:650px){#composer .compose-header{padding-block:9px!important}#composer .compose-header small,#composer .compose-kicker,#composer .compose-note{display:none!important}#composer .recipient-line,#composer .subject-line{min-height:47px!important}#composer .message-editor{min-height:72px!important;padding-block:10px!important}#composer .format-toolbar{padding-block:4px!important}#composer .compose-tools{padding-block:5px!important}#composer .compose-footer{padding-block:7px!important}}

/* Phase 6.1 — Command Deck scrollbars replace native Windows chrome. */
:root{--scroll-thumb:#3c455b;--scroll-thumb-hover:#59657e;--scroll-thumb-active:#786cff;--scroll-track:transparent}
html[data-theme=light]{--scroll-thumb:#b8bfd0;--scroll-thumb-hover:#8e98af;--scroll-thumb-active:#6657e8;--scroll-track:transparent}
html[data-theme=system],html[data-theme=dark]{scrollbar-color:var(--scroll-thumb) var(--scroll-track)}
.sidebar,#messages,.reader,.aura-panel,dialog,.preview-stage,.document-preview-text,.bulk-bar,.format-toolbar,.attachment-list{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background-color:var(--scroll-track)}
::-webkit-scrollbar-thumb{min-height:44px;border:2px solid transparent;border-radius:999px;background-color:var(--scroll-thumb);background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background-color:var(--scroll-thumb-hover);background-clip:padding-box}
::-webkit-scrollbar-thumb:active{background-color:var(--scroll-thumb-active);background-clip:padding-box}
::-webkit-scrollbar-button{display:none;width:0;height:0}
::-webkit-scrollbar-corner{background-color:transparent}
.sidebar,#messages,.reader,.aura-panel{overscroll-behavior:contain}
@media(pointer:coarse){::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{border-width:1px}}
.compose-list-context{display:block;margin-top:.3rem;color:var(--accent,#55d8ff);font-size:.78rem;font-weight:600;letter-spacing:.01em}.contact-row .mail-open-button{width:100%;text-align:left}.contact-row .mail-copy p{opacity:.72}.contacts-view{display:grid;gap:14px}.contacts-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.contacts-toolbar input[type=search]{flex:1;min-width:180px}.contacts-toolbar input,.contact-editor input{border:1px solid #bfd4dc;border-radius:7px;padding:10px 12px;background:#fff;color:#152535}.contact-editor{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border:1px solid #c9dfe3;border-radius:9px;background:#f2f8f8}.contact-editor input{flex:1;min-width:150px}.contact-editor .primary{padding:10px 14px}.contacts-list{display:grid;gap:8px}.contact-row{display:flex;align-items:center;gap:10px}.contact-row .mail-open-button{flex:1}.contact-row .text-button{white-space:nowrap}.contact-group{display:block;color:var(--muted);font-size:.76rem;margin-top:3px}
/* Shared directory administration */
.org-contact-admin{margin-top:1.25rem;padding:1rem;border:1px solid var(--line,#294457);border-radius:1rem;background:rgba(10,28,42,.72)}
.org-contact-admin h2{margin:.1rem 0 .8rem;font-size:1rem}.org-contact-admin-list{display:grid;gap:.4rem;margin-top:.8rem}.org-contact-admin-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.65rem .75rem;border:1px solid var(--line,#294457);border-radius:.7rem}.contact-status{color:var(--muted,#9ab4c6);text-transform:capitalize}.org-contact-history{display:grid;gap:.25rem;margin-top:.75rem;color:var(--muted,#9ab4c6);font-size:.85rem}.org-contact-history p{margin:0}.contact-conflict{margin:.8rem 0;padding:.75rem;border:1px solid #e6ad4b;border-radius:.7rem;background:rgba(230,173,75,.1)}
.org-contact-bulk-tools{display:flex;flex-wrap:wrap;gap:.5rem;margin:.7rem 0}.org-contact-bulk-tools select{min-height:2.35rem;border:1px solid var(--line,#294457);border-radius:.55rem;background:var(--surface,#0d2333);color:inherit;padding:.35rem .6rem}
#login.marketing-site[hidden],body[data-auth="yes"] #login{display:none!important}body[data-auth="yes"] #app:not([hidden]){display:grid!important}

/* Mail report repairs: accessible account actions and a readable message column. */
.shell{min-height:0;min-width:0}.sidebar{min-height:0;height:100dvh;overflow:hidden;gap:12px}.sidebar>*{flex-shrink:0}.sidebar nav{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.sidebar .side-aura{display:none}.sidebar #logout{flex:0 0 auto;min-height:38px;display:flex;align-items:center;gap:10px}
.mail-account{position:relative;flex:0 0 auto}.mail-account>summary{cursor:pointer;list-style:none}.mail-account>summary::-webkit-details-marker{display:none}.mail-account-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:50;min-width:210px;padding:14px;background:var(--surface,#fcfcfa);color:inherit;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 36px #0004}.mail-account-panel strong{font-size:12px;color:var(--muted)}.mail-account-panel button{display:flex;gap:10px;align-items:center;width:100%;padding:12px 4px;text-align:left;white-space:nowrap}
.mail-account-panel{background:#fcfcfa;color:#101b29}html[data-theme=dark] .mail-account-panel{background:#132832;color:#eef5f7}@media(prefers-color-scheme:dark){html[data-theme=system] .mail-account-panel{background:#132832;color:#eef5f7}}
.thread-message>.summary>summary{cursor:pointer;display:flex;align-items:center;gap:8px;font-size:12px;min-height:24px}.thread-message>.summary>summary:before{content:'▸'}.thread-message>.summary[open]>summary:before{content:'▾'}
.reader{scroll-padding-top:20px}.reader>h2{font-size:clamp(20px,2vw,26px);line-height:1.35;margin-bottom:18px}.message-toolbar{gap:4px;margin:0 0 22px;padding:8px 0 14px}.toolbar-action{min-height:36px}.thread-message{width:100%;max-width:76ch;margin:0 auto 28px}.sender{margin-bottom:20px}.sender>div{min-width:0}.message-body{font-size:15px;line-height:1.7;white-space:normal;overflow-wrap:anywhere;margin:22px 0}.message-text-block{white-space:pre-wrap}.message-quote{margin:12px 0 12px 4px;padding:8px 0 8px 16px;border-left:3px solid var(--line);color:var(--muted)}.message-quote .message-quote{margin-left:0;padding-left:12px}.summary{margin-bottom:20px;padding:12px 14px;font-size:13px}.aura-insight{margin-bottom:16px;padding:12px 14px}.aura-insight .risk-explanation{font-size:13px}.aura-review-details>summary{cursor:pointer;min-height:30px;line-height:30px;color:inherit}.aura-review-details[open]{margin-top:10px}.model-assessment{padding-top:12px}.aura-review-details .security-details{margin-top:16px}.aura-review-details .sender-controls,.aura-review-details .feedback-controls{flex-wrap:wrap}.aura-insight-head{flex-wrap:wrap}.aura-insight-head span{margin-left:0}.directory-access-note,.attachment-help{font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:860px){.sidebar #logout{display:none}.topbar .mail-account{display:block}.topbar select{min-width:0}.mail-account-panel{position:fixed;top:64px;right:12px}}
@media(max-width:650px){.sidebar.open #logout{display:flex}.sidebar.open{height:100dvh;overflow:hidden}.reader{padding:20px 16px}.message-body{font-size:15px}.message-toolbar{gap:2px}.toolbar-action{font-size:12px;padding:8px}.sender time{margin-left:0}.reader h2{margin-bottom:18px}}
.topbar .mail-account .user-avatar{display:flex!important;align-items:center;justify-content:center}@media(max-width:650px){.topbar{grid-template-columns:42px minmax(0,1fr) 42px 38px!important}.topbar .mail-account{grid-column:4;grid-row:1}.topbar select{grid-column:1/5!important}.topbar .mail-account .user-avatar{width:34px;height:34px}}

/* Report follow-up: inert PDF pages, explicit evidence and message provenance. */
.topbar:after{content:none;display:none}.topbar .aura-status-chip{order:1;flex:0 0 auto;width:auto;min-width:max-content;padding:8px 11px;gap:7px}.topbar .aura-status-chip span{display:inline}@media(min-width:1101px){.topbar .aura-icon-toggle{display:none!important}}@media(max-width:1100px){.topbar .aura-status-chip{display:none!important}.topbar .aura-icon-toggle{display:inline-flex}}
#attachment-preview{width:min(1100px,96vw);max-width:96vw}#attachment-preview>header{gap:12px}#preview-title{overflow-wrap:anywhere}.preview-stage{max-height:65dvh;overflow:auto}#attachment-preview .preview-stage:has(.pdf-controls){display:block;width:100%;background:#080c12}#attachment-preview .pdf-page-scroll{width:100%}#attachment-preview .pdf-page-scroll img{max-height:none!important;max-width:none}#attachment-preview .pdf-controls{background:#131d2a;color:#eef2ff;width:100%}#attachment-preview .pdf-controls button{color:#eef2ff;border-color:#68768c}#attachment-preview .pdf-controls select{background:#172331;color:#eef2ff;border:1px solid #68768c}#attachment-preview .pdf-text-fallback{color:#eef2ff}.pdf-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;position:sticky;top:0;background:var(--surface,#fcfcfa);z-index:1;padding:10px;color:var(--text,#172331)}.pdf-controls select{min-height:38px}.pdf-page-scroll{overflow:auto;max-height:52dvh;background:#e0e4e9;padding:12px;text-align:left}.pdf-page-scroll img{display:block;height:auto;margin:auto;max-width:none;object-fit:contain}.pdf-zoom-fit img{width:100%}.pdf-text-fallback{padding:10px}.pdf-text-fallback summary{cursor:pointer}.pdf-text-fallback pre{white-space:pre-wrap}.aura-plain-summary{display:grid;gap:10px;margin:12px 0}.aura-plain-summary strong{font-size:12px}.aura-plain-summary p{margin:3px 0;font-size:13px}.thread-message-label{font-size:12px;color:var(--muted);margin-bottom:12px}.command-help{font-size:12px;line-height:1.6;color:var(--muted)}#related-messages{width:min(780px,94vw);max-height:90dvh;overflow:auto}#related-messages header,#related-messages footer{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#related-results{display:grid;gap:10px;margin:18px 0}.related-message{display:grid;gap:6px;text-align:left;overflow-wrap:anywhere}#related-status{font-size:12px;flex:1}#related-subject{overflow-wrap:anywhere}html[data-theme=dark] .pdf-controls{background:#132832;color:#eef5f7}@media(prefers-color-scheme:dark){html[data-theme=system] .pdf-controls{background:#132832;color:#eef5f7}}@media(max-width:650px){.pdf-controls{gap:6px}.pdf-controls button{font-size:12px}.pdf-page-scroll{max-height:48dvh}#attachment-preview{padding:12px}}

/* Incomplete AI coverage is a service status, separate from message risk. */
.aura-insight.incomplete{border-color:#77869b!important;background:#edf1f7!important;color:#26364d!important}.aura-insight.incomplete .risk-explanation,.aura-insight.incomplete p{color:#344860!important}.aura-evidence{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;border-left:3px solid #77869b}.aura-evidence strong{display:block;font-size:12px}html[data-theme=dark] .aura-insight.incomplete,html[data-theme=system] .aura-insight.incomplete{background:#192333!important;color:#e4ebf7!important}html[data-theme=dark] .aura-insight.incomplete p,html[data-theme=system] .aura-insight.incomplete p{color:#c8d5e7!important}
