/* LEADER Intelligence — protected app shell inspired by LongevIA's current production design tokens */
[hidden]{display:none!important}
body:not(.is-authenticated) .app-shell{display:none!important}
body.is-authenticated .auth-gate{display:none!important}
.auth-gate{min-height:100vh;display:grid;grid-template-columns:minmax(400px,53%) minmax(340px,47%);background:white}
.auth-panel{width:min(570px,calc(100% - 80px));margin:auto;padding:58px 0}
.auth-signature{display:flex;align-items:center;gap:13px;color:#18365d;margin-bottom:66px}
.auth-symbol{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#2d68af,#8abaf1);color:#fff;font-size:29px;box-shadow:0 8px 24px #3b70b744}
.auth-signature strong{display:block;font-size:17px;letter-spacing:-.6px}.auth-signature small{font-size:10px;color:#91a2b7;letter-spacing:2.4px;text-transform:uppercase;font-weight:800}
.auth-sup{font-size:10px;font-weight:800;letter-spacing:1.9px;color:#517fb6;margin-bottom:19px}
.auth-panel h1{font-size:clamp(38px,3.8vw,60px);line-height:1.12}
.auth-intro{color:#788aa3;font-size:14px;max-width:430px;line-height:1.7;margin:18px 0 36px}
.auth-form{max-width:450px;display:grid;gap:16px}
.auth-tabs{display:flex;gap:30px;margin-bottom:8px;border-bottom:1px solid #e7ebf3}
.auth-tab{background:none;border:0;border-bottom:2px solid transparent;color:#91a0b5;padding:0 0 12px;font-size:13px;font-weight:700}
.auth-tab.selected{color:#2462aa;border-color:#3473c5}
.auth-field{display:grid;gap:7px}.auth-field label,.field-label,.report-panel>label{color:#4b617c;font-size:12px;font-weight:750;display:grid;gap:9px}
.auth-field input,.field-label input,.field-label select,.report-panel input,.report-panel select{width:100%;background:#fff;border:1px solid #dae4f0;border-radius:10px;color:#273d59;padding:14px 15px;outline:0;font-size:13px}
.auth-field input:focus,.field-label input:focus,.report-panel input:focus,.report-panel select:focus{border-color:#649ad6;box-shadow:0 0 0 3px #eaf3ff}
.auth-field input::placeholder{color:#a8b5c6}
.auth-submit{justify-content:space-between;margin-top:8px;padding:15px 19px}
.auth-error{font-size:12px;color:#ad4646;margin:0;border-left:3px solid #b84747;padding:9px;background:#fff5f5;border-radius:5px}
.auth-footnote{max-width:450px;font-size:11px;color:#96a4b6;line-height:1.7;margin-top:20px}
.auth-side{position:relative;overflow:hidden;background:radial-gradient(circle at 60% 33%,#2b63aa 0%,#163b70 42%,#0f274e 100%);color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:75px clamp(36px,6vw,100px)}
.auth-side:before,.auth-side:after{content:'';border:1px solid #ffffff19;position:absolute;border-radius:50%;width:800px;height:800px;top:-320px;right:-160px}.auth-side:after{width:620px;height:620px;top:-230px;right:-60px}
.auth-orbit{width:390px;height:390px;position:absolute;top:18%;left:50%;transform:translateX(-50%);border:1px solid #9cc7ef50;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 45px #ffffff04,0 0 0 100px #ffffff04}
.auth-orbit:before,.auth-orbit:after{content:'';position:absolute;width:260px;height:260px;border:1px solid #a3c8ea5d;border-radius:50%}.auth-orbit:after{width:125px;height:125px;background:#ffffff0c;box-shadow:0 0 80px #a9caff53}
.auth-orbit-center{z-index:1;font-size:72px;color:#d9efff}
.auth-side-copy{position:relative;z-index:2;max-width:450px}.auth-side-copy>span{color:#a6caed;letter-spacing:2.4px;font-size:10px;font-weight:800}
.auth-side-copy h2{color:#fff;font-size:clamp(32px,3vw,46px);line-height:1.2;letter-spacing:-2px;margin:18px 0}
.auth-side-copy p{color:#b8d0e6;max-width:390px;line-height:1.7;font-size:13px}
.header-logout{border:1px solid #dde5ee;background:#fff;border-radius:9px;padding:9px 12px;color:#587195;font-weight:750;font-size:11px}
.header-logout:hover{background:#f0f6ff}
.overview-hero{min-height:310px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;background:linear-gradient(105deg,#f0f6ff,#eaf3fd);border:1px solid #e3ebf5;border-radius:19px;padding:43px 55px}
.overview-copy{z-index:2;max-width:600px}.overview-copy h1{font-size:clamp(32px,3.8vw,55px);margin:20px 0 16px;letter-spacing:-2.6px}.overview-copy p{color:#67809e;line-height:1.8;max-width:490px}
.overview-copy .button-primary{margin-top:26px;display:inline-flex;gap:22px}
.overview-art{position:absolute;right:7%;font-size:210px;color:#b0d2f4;opacity:.65;font-weight:200;transform:rotate(12deg);text-shadow:0 0 65px #86b5ed7a}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:24px}
.dashboard-stat{padding:24px 24px 21px;min-height:149px;border:1px solid #e6ebf3;border-radius:13px;background:#fff}
.dashboard-stat>span{font-size:9px;letter-spacing:1.2px;color:#8595ab;font-weight:850}
.dashboard-stat strong{display:block;font-weight:670;font-size:39px;letter-spacing:-1px;color:#245b9f;margin:16px 0 6px}
.dashboard-stat small{font-size:10px;color:#9cabbb}
.module-heading{margin:49px 0 20px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.module-tile{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:255px;border:1px solid #e4ebf4;background:#fff;border-radius:16px;padding:25px;transition:transform .2s,border-color .2s,box-shadow .2s}
.module-tile:hover{transform:translateY(-3px);border-color:#a7c7ed;box-shadow:0 14px 29px #294e8911}
.module-glyph{font-size:24px;background:#eef5ff;color:#3975b9;border-radius:12px;width:46px;height:46px;display:grid;place-items:center;margin-bottom:5px}
.module-tile small{color:#8aadd9;letter-spacing:1.3px;font-size:9px;font-weight:800}
.module-tile strong{font-size:17px;color:#233d5c;letter-spacing:-.4px}.module-tile>span:not(.module-glyph){font-size:12px;color:#8c9aaa;line-height:1.6}
.module-tile i{font-style:normal;font-weight:800;color:#3979bb;font-size:11px;margin-top:auto}
.security-banner{display:flex;gap:20px;align-items:center;background:#f4f8fc;border:1px solid #e1eaf5;padding:20px 25px;border-radius:13px;margin-top:30px}
.security-banner>span{font-size:28px;color:#5e8fc8}.security-banner strong{font-size:13px}.security-banner p{font-size:11px;margin:5px 0 0;color:#8698ae;line-height:1.6}
.gemini-opt{display:flex;align-items:center;gap:6px;color:#527298;font-size:10px;font-weight:700;white-space:nowrap}
.gemini-opt input{accent-color:#2d67b4;cursor:pointer}
.upload-panel{border:1px solid #e0e8f1;border-radius:16px;background:#fff;padding:28px;display:grid;gap:18px;box-shadow:var(--shadow)}
.upload-panel>div:first-child h2{margin:10px 0 4px}.upload-panel>div:first-child p{font-size:12px;color:#8c9aad;margin:0}
.upload-drop{padding:27px 18px;border:1px dashed #8dafd9;border-radius:13px;background:#f7faff;display:flex;align-items:center;gap:15px;cursor:pointer}
.upload-drop span{color:#5c8fc5;font-size:24px}.upload-drop strong{color:#5b7698;font-size:12px}
.upload-drop input{font-size:11px;max-width:240px;color:#7085a1;cursor:pointer}
.upload-panel .button-primary{justify-content:center}.form-feedback{color:#6284a8;font-size:11px;min-height:17px}
.document-list,.history-list{display:grid;gap:10px}
.list-entry{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #e5eaf2;border-radius:11px;background:#fff;padding:21px 22px}
.list-entry-body{min-width:0;flex:1}.entry-meta{color:#779ac1;font-weight:750;font-size:9px;letter-spacing:1px}
.list-entry-body h3{margin:8px 0;color:#2c4563;font-size:13px;font-weight:750;line-height:1.5}
.list-entry-body p{margin:0;color:#92a2b6;font-size:11px;line-height:1.5}
.entry-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button-secondary{border:1px solid #cbdced;color:#3974b8;background:#fff;border-radius:9px;padding:10px 14px;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}
.button-secondary:hover{background:#eff6ff}.mini-danger{border:1px solid #efdddd;background:white;color:#b77b75;border-radius:8px;padding:10px 12px;font-size:11px;cursor:pointer}
.report-panel{max-width:730px;background:#fff;border:1px solid #e2eaf3;border-radius:15px;padding:27px;display:grid;gap:14px}
.report-panel>label{font-size:12px;font-weight:700}.report-buttons{display:flex;gap:10px;flex-wrap:wrap}
.report-panel .button-primary{justify-content:center}
.profile-panel{max-width:730px;background:#f1f6fd;border:1px solid #e1eaf6;padding:30px;border-radius:14px;margin-bottom:20px}.profile-panel h2{margin:9px 0}.profile-panel p{color:#6f849e}.profile-panel .status-pill{display:inline-block;margin-top:10px}
.invite-result{border:1px solid #cadfe9;background:#f0f8ff;padding:18px;border-radius:10px;font-size:11px;overflow-wrap:anywhere}.invite-code{display:block;font-size:11px;margin:16px 0;background:#fff;border:1px solid #dce8f1;border-radius:7px;padding:12px;user-select:all}
@media(max-width:1220px){.auth-gate{grid-template-columns:57% 43%}.auth-side{padding:50px}.auth-orbit{left:60%;width:300px;height:300px}.auth-orbit:before{width:200px;height:200px}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:870px){.auth-gate{grid-template-columns:1fr}.auth-panel{width:min(470px,calc(100% - 36px));padding:35px 0 65px}.auth-signature{margin-bottom:38px}.auth-side{display:none}.sidebar{height:100vh}.module-grid{grid-template-columns:1fr}}
@media(max-width:620px){.sidebar{height:65px;padding:0 14px}.side-nav{overflow-x:auto;max-width:calc(100vw - 180px)}.nav-link{flex:0 0 36px}.nav-link.active{border-color:#cadef4}.header-actions{gap:7px}.header-logout{padding:8px}.overview-hero{padding:28px;min-height:300px}.overview-copy h1{font-size:34px}.overview-art{right:-30px;opacity:.18}.stats-grid{grid-template-columns:repeat(2,1fr);gap:10px}.dashboard-stat{padding:16px;min-height:125px}.dashboard-stat strong{font-size:29px}.module-grid{grid-template-columns:1fr}.module-tile{min-height:215px}.prompt-footer{flex-direction:column;align-items:stretch}.list-entry{align-items:flex-start;flex-direction:column}.entry-actions{width:100%}.upload-panel{padding:18px}.upload-drop{flex-wrap:wrap}.report-panel{padding:18px}.auth-panel h1{font-size:36px}.auth-signature{margin-bottom:33px}}
@media print{.sidebar,.topbar,.footer,.hero,.query-section,.explore-section,.data-strip,.header-actions,.nav-link,.overview-hero,.answer-reason{display:none!important}.app-shell{display:block}.main-shell{display:block}.view{display:none!important}#view-assistant{display:block!important}.answer-panel{box-shadow:none;border:0;margin:0;padding:5px}.answer-body{font-size:13px}.source-card{break-inside:avoid}}
