:root{--ink:#1a2940;--muted:#67768b;--subtle:#91a0b0;--navy:#173659;--navy-dark:#102c4e;--blue:#2467c4;--blue-dark:#1854a3;--blue-soft:#e9f2ff;--cyan:#11adc9;--border:#e1e8f0;--bg:#f4f6fa;--panel:#fff;--good:#137b5c;--good-bg:#e5f6ee;--bad:#bc4052;--bad-bg:#fff0f1;--warn:#a77723;--warn-bg:#fff6e4;--shadow:0 16px 50px rgba(21,45,79,.13)}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Aptos,Inter,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue)}:focus-visible{outline:3px solid #60aaff!important;outline-offset:2px}h1,h2,h3,h4,p{margin:0}p{margin:0 0 12px}.hidden{display:none!important}.splash{height:100vh;display:flex;align-items:center;justify-content:center;gap:20px;color:var(--navy);font-size:18px;font-weight:700}.splash-mark{width:55px;height:55px;border-radius:16px;background:var(--navy);color:white;font-size:30px;display:grid;place-items:center}.splash-mark span{color:#59d9e9}
.ico{display:inline-flex;vertical-align:middle;flex-shrink:0;width:18px;height:18px}.ico svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round}.i12{width:12px;height:12px}.i13{width:13px;height:13px}.i14{width:14px;height:14px}.i15{width:15px;height:15px}.i16{width:16px;height:16px}.i17{width:17px;height:17px}.i18{width:18px;height:18px}.i19{width:19px;height:19px}.i20{width:20px;height:20px}.i21{width:21px;height:21px}.i22{width:22px;height:22px}.i23{width:23px;height:23px}.i24{width:24px;height:24px}.i28{width:28px;height:28px}
.btn{border:1px solid var(--border);color:var(--ink);background:#fff;border-radius:9px;min-height:38px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;transition:background .15s,border-color .15s,transform .15s;white-space:nowrap}.btn:hover:not(:disabled){background:#f1f6fc;border-color:#bfd4ed}.btn.primary{background:var(--blue);border-color:var(--blue);color:white}.btn.primary:hover{background:var(--blue-dark)}.btn.dark{background:var(--navy);border-color:var(--navy);color:#fff}.btn.dark:hover{background:#284e79}.btn.danger{color:var(--bad);background:#fff;border-color:#f3bac4}.btn.danger:hover{background:var(--bad-bg)}.btn.ghost{border-color:transparent;background:transparent}.btn.ghost:hover{background:#edf3f9}.btn.tiny{min-height:28px;padding:4px 8px;font-size:12px}.btn.square{width:36px;min-width:36px;padding:0}.btn.full{width:100%}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:10px;font-weight:850;color:#6985a4}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.strong{font-weight:750}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--border);border-radius:999px;padding:3px 9px;font-size:11px;font-weight:700;background:#fff;color:#5a6b81}.chip.blue{background:#eaf2ff;border-color:#d1e2fa;color:#28599d}.chip.green{background:var(--good-bg);border-color:#cbecdf;color:var(--good)}.chip.red{background:var(--bad-bg);border-color:#f6d1d8;color:var(--bad)}.chip.amber{background:var(--warn-bg);border-color:#ffdfaa;color:#936821}.pillcount{display:inline-block;font-size:11px;font-weight:750;background:#e5eaf2;color:#5b7188;border-radius:10px;padding:1px 7px}.upper{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.divider{border:none;border-top:1px solid var(--border);margin:16px 0}
/* Access portal */
.auth-page{min-height:100vh;background:#f0f4f9;display:grid;grid-template-columns:minmax(330px,1.1fr) minmax(350px,.9fr)}.auth-hero{background:linear-gradient(155deg,#173659,#0a1e39 74%);color:#fff;padding:clamp(30px,6vw,90px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;min-height:600px}.auth-hero:after{content:'';position:absolute;width:560px;height:560px;right:-290px;top:20%;border:1px solid rgba(119,209,255,.18);box-shadow:0 0 0 70px rgba(119,209,255,.026),0 0 0 140px rgba(119,209,255,.025),0 0 0 220px rgba(119,209,255,.018);border-radius:50%;pointer-events:none}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:850;letter-spacing:-.04em}.brandmark{display:grid;place-items:center;width:36px;height:36px;background:linear-gradient(140deg,#1bcde1,#4c82f2);border-radius:10px;font-size:22px;color:#fff;font-weight:900;box-shadow:0 6px 18px rgba(3,20,40,.16)}.brand small{display:block;font-size:9px;letter-spacing:.2em;text-transform:uppercase;font-weight:750;color:#89b9d7}.auth-hero h1{max-width:650px;font-size:clamp(40px,4.3vw,70px);font-weight:800;letter-spacing:-.055em;line-height:1.06;margin:16px 0 22px}.auth-hero h1 em{font-style:normal;color:#6adee9}.auth-hero p{max-width:490px;color:#bdd0e4;font-size:16px;line-height:1.7}.auth-visual{max-width:540px;margin-top:40px;transform:rotate(-3deg);background:#f8fbff;color:#16283e;border-radius:12px;box-shadow:0 28px 60px rgba(0,0,0,.3);overflow:hidden}.mini-head{background:#e8edf6;padding:9px 14px;display:flex;align-items:center;gap:6px}.mini-head i{height:7px;width:7px;background:#bbcbda;border-radius:50%}.mini-mail{padding:16px 20px;border-bottom:1px solid #e8edf3;display:flex;align-items:center;gap:13px}.mini-av{height:32px;width:32px;background:#dce8fc;color:#295fa0;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:900}.mini-mail strong{font-size:12px}.mini-mail p{font-size:10px;color:#8492a7;margin:2px 0}.mini-badge{margin-left:auto;background:#f8ecb3;color:#926a15;padding:4px 7px;border-radius:6px;font-size:9px;font-weight:850}.auth-caption{color:#7c9bbb;font-size:11px;letter-spacing:.04em}.auth-side{display:flex;align-items:center;justify-content:center;padding:40px 24px}.auth-card{max-width:420px;width:100%}.auth-card .eyebrow{margin:0 0 10px}.auth-card h2{font-size:32px;letter-spacing:-.04em;margin-bottom:8px}.auth-card>p{color:var(--muted);margin-bottom:25px}.tabs{display:flex;gap:5px;padding:4px;background:#e9eef5;border-radius:11px;margin-bottom:22px}.tab{flex:1;border:none;background:transparent;padding:10px;border-radius:8px;font-weight:750;color:#678}.tab.active{background:white;color:var(--navy);box-shadow:0 1px 5px rgba(30,49,80,.1)}.field{margin:0 0 15px}.field label{display:block;font-size:12px;font-weight:750;margin:0 0 6px;color:#344862}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #cfdbe8;background:#fff;outline:none;padding:12px 13px;border-radius:9px;color:var(--ink)}.field textarea{resize:vertical;min-height:100px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#3a81d1;box-shadow:0 0 0 3px #c8e0fc}.auth-footer{border-top:1px solid var(--border);padding-top:18px;margin-top:26px;display:flex;gap:8px;align-items:flex-start;color:#7d8b9c;font-size:12px}.error-text{background:#fff0f1;border:1px solid #f2c4cb;color:#a33345;border-radius:9px;padding:10px 12px;margin:12px 0;font-size:12px}
/* Shell */
.app-shell{height:100dvh;min-height:650px;display:flex;flex-direction:column;background:#f5f7fa;overflow:hidden}.topbar{height:63px;min-height:63px;display:flex;align-items:center;gap:20px;padding:0 23px;background:linear-gradient(90deg,#173659,#214771);color:#fff;z-index:20}.topbar .brand{width:212px;flex-shrink:0;font-size:16px}.topbar .brand small{color:#9ac0e5}.search-top{position:relative;max-width:470px;flex:1}.search-top input{width:100%;padding:9px 12px 9px 38px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.17);color:#fff;border-radius:8px;outline:none}.search-top input::placeholder{color:#c3d2e4}.search-top input:focus{background:rgba(255,255,255,.22)}.search-top .ico{position:absolute;left:13px;top:11px;color:#b7cbdf}.topbar-spacer{flex:1}.top-icon{height:35px;width:35px;border:0;background:rgba(255,255,255,.07);color:#e4f0ff;border-radius:9px;display:grid;place-items:center}.top-icon:hover{background:rgba(255,255,255,.18)}.top-profile{display:flex;align-items:center;gap:10px;padding-left:6px}.top-profile .person{width:33px;height:33px;border-radius:50%;background:#e2eefb;color:#285183;display:grid;place-items:center;font-weight:900}.top-profile strong{display:block;font-size:12px}.top-profile small{font-size:10px;color:#bdcee1;display:block}.top-logout{border:0;color:#cedff1;background:transparent}.workspace{display:flex;flex:1;min-height:0}.rail{width:66px;flex-shrink:0;background:#102d4e;display:flex;align-items:center;flex-direction:column;gap:14px;padding:20px 9px}.railbtn{border:0;background:transparent;width:44px;height:44px;border-radius:11px;display:grid;place-items:center;color:#aac4e0;position:relative}.railbtn.active{background:#2c5f98;color:#fff}.railbtn:hover{background:#214a7a;color:#fff}.railbtn:after{content:attr(data-tip);position:absolute;display:none;left:50px;top:10px;background:#182b44;color:white;font-size:11px;border-radius:5px;white-space:nowrap;padding:5px 8px;z-index:15}.railbtn:hover:after{display:block}.rail-bottom{margin-top:auto}.folders{width:228px;flex-shrink:0;border-right:1px solid var(--border);background:#f8fafd;display:flex;flex-direction:column;overflow:auto}.folder-top{padding:23px 18px 15px}.folder-top h2{font-size:18px;letter-spacing:-.03em}.folder-top small{color:var(--muted)}.folder-action{margin:0 15px 20px;display:flex;justify-content:center}.folder-group-title{padding:0 22px 12px;font-size:10px;letter-spacing:.11em;color:#90a2b5;font-weight:850;text-transform:uppercase}.folder-item{width:100%;display:flex;align-items:center;gap:11px;border:0;background:transparent;text-align:left;padding:11px 17px;color:#516782;font-weight:650}.folder-item.active{background:#e4effc;color:#1857a0;border-left:3px solid #2b75c7;padding-left:14px}.folder-item:hover{background:#ecf2f9}.folder-item .num{margin-left:auto;font-size:11px;color:#8193a7}.folder-promo{margin:auto 14px 17px;background:#e8f0fb;border:1px solid #d7e7f9;border-radius:12px;padding:14px}.folder-promo strong{font-size:12px}.folder-promo p{font-size:11px;color:#5b718a;margin-top:6px}.folder-promo .progress{margin-top:10px}
.inbox{width:356px;min-width:290px;flex-shrink:0;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.inbox-toolbar{padding:22px 16px 13px;border-bottom:1px solid var(--border)}.inbox-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.inbox-heading h2{font-size:22px;letter-spacing:-.045em}.inbox-heading span{color:var(--muted);font-size:11px}.mobile-search{display:none}.mobile-search .ico{position:absolute;top:11px;left:10px;color:#9db0c6}.mobile-search input{height:38px;width:100%;border:1px solid #d8e4f0;border-radius:8px;background:#fff;padding:8px 12px 8px 35px;outline:none}.filter-row{display:flex;gap:6px;align-items:center}.filter{font-weight:750;font-size:11px;padding:6px 10px;border:none;border-radius:7px;color:#7c8ca2;background:transparent}.filter.active{background:#e8f2ff;color:#1e60aa}.filter:hover{background:#f2f6fa}.message-list{overflow-y:auto;flex:1;overscroll-behavior:contain}.mail-item{border:0;border-bottom:1px solid #edf0f5;padding:16px 15px;width:100%;display:flex;align-items:flex-start;gap:12px;text-align:left;background:white;position:relative;min-height:100px;color:var(--ink)}.mail-item:hover{background:#f7faff}.mail-item.selected{background:#ebf3ff}.mail-item.selected:before{content:'';position:absolute;left:0;top:0;bottom:0;background:#2c72c1;width:3px}.mail-item.unread .mail-name,.mail-item.unread .mail-subject{font-weight:800}.mail-item .mail-avatar{flex-shrink:0;width:37px;height:37px;background:#e3ebf4;color:#355679;border-radius:50%;display:grid;place-items:center;font-weight:850;font-size:12px}.mail-item.selected .mail-avatar{background:#d4e6ff;color:#1c5ca3}.mail-item .mail-main{flex:1;min-width:0}.mail-line{display:flex;gap:5px;align-items:center}.mail-name,.mail-subject,.mail-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-name{font-size:12px;font-weight:700;flex:1}.mail-time{color:#8997a7;font-size:10px;flex-shrink:0}.mail-subject{font-size:12px;color:#354861;margin:4px 0 3px}.mail-preview{font-size:11px;color:#90a0b2}.mail-flags{display:flex;gap:6px;color:#95a6bb;margin-top:6px;font-size:10px;align-items:center}.mail-flags .resolved{color:var(--good);font-weight:800}.mail-flags .risk{color:var(--bad);font-weight:800}.newdot{width:6px;height:6px;background:#2c79d6;border-radius:50%;flex-shrink:0;margin:6px 0 0 -3px}.empty-list{padding:50px 25px;text-align:center;color:#8c9bad}.empty-list .ico{margin-bottom:8px}
.reader{flex:1;min-width:290px;background:#fff;display:flex;flex-direction:column;min-height:0}.reader-top{height:64px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;padding:0 23px;flex-shrink:0}.reader-top .context{margin-right:auto;font-size:11px;color:var(--muted);font-weight:750}.reader-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:27px clamp(22px,3vw,47px) 60px}.reading-subject{font-size:clamp(22px,1.75vw,29px);font-weight:750;letter-spacing:-.043em;line-height:1.24;max-width:850px;margin:0 0 24px}.sender-card{display:flex;align-items:flex-start;gap:13px;max-width:870px;border-bottom:1px solid var(--border);padding-bottom:24px}.sender-avatar{height:44px;width:44px;border-radius:50%;display:grid;place-items:center;color:#305582;background:#e4ecf6;font-weight:850;font-size:16px;flex-shrink:0}.sender-details{flex:1;min-width:0}.sender-details strong{font-size:13px}.sender-details .sendaddr{font-size:12px;color:#8795a5;word-break:break-word}.sender-details .subrow{font-size:11px;color:#9da9b7;margin-top:4px}.sender-time{font-size:10px;color:#8b9aab;white-space:nowrap}.sender-expand{margin-top:10px;padding:10px 12px;background:#f5f8fc;border:1px solid #e5edf6;border-radius:8px;display:grid;gap:6px;font-size:11px}.sender-expand div{display:flex;gap:6px;flex-wrap:wrap}.sender-expand b{min-width:76px;color:#687b91}.sender-expand span{overflow-wrap:anywhere}.reader-content{padding:27px 0 20px;max-width:755px;color:#314157;font-size:14px;line-height:1.85}.reader-content p{white-space:pre-wrap;margin-bottom:17px}.message-attachments{margin:10px 0 25px;max-width:750px}.attachments-title{font-weight:800;font-size:12px;margin-bottom:10px;display:flex;gap:8px;align-items:center}.attachment-cards{display:flex;flex-wrap:wrap;gap:9px}.attachment{display:flex;align-items:center;gap:11px;border:1px solid #dce6f1;border-radius:9px;padding:11px 12px;background:#fff;text-align:left;min-width:230px;max-width:310px}.attachment:hover:not(:disabled){background:#f6f9fe;border-color:#a8c8ed}.attachment .file-ico{width:36px;height:40px;background:#eaf3ff;border-radius:6px;color:#2065b1;display:grid;place-items:center}.attachment strong{display:block;font-size:11px;overflow-wrap:anywhere}.attachment small{color:#8290a2;font-size:10px}.attachment .arr{color:#8eaccc;margin-left:auto}.email-link{margin:5px 0 18px;display:block;background:#2467c4;color:#fff;border:1px solid #2467c4;border-radius:6px;padding:11px 17px;font-weight:750;max-width:390px;text-align:center;overflow-wrap:anywhere}.email-link:hover:not(:disabled){background:#1b529f}.link-check{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#2c64a2;border:0;background:#eef5fd;padding:6px 9px;border-radius:6px;margin:2px 0 12px}.link-check:hover{background:#deebfc}.url-preview{background:#f0f5fb;border:1px solid #dfeaf7;border-radius:8px;padding:12px 14px;margin:8px 0 13px;font-size:12px;max-width:650px;word-break:break-word}.url-preview label{display:block;text-transform:uppercase;letter-spacing:.06em;color:#8497ac;font-size:9px;font-weight:900;margin-bottom:5px}.url-preview code{font-family:ui-monospace,Consolas,monospace;color:#385b82;font-size:12px}.end-of-mail{color:#94a4b3;font-size:11px;padding-top:20px;border-top:1px dashed #e3eaf1;max-width:755px}.reader-action-footer{border-top:1px solid var(--border);padding:18px 26px 18px;background:#fdfefe;flex-shrink:0}.action-label{font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:850;color:#7b8fa6;margin-bottom:10px}.action-buttons{display:flex;gap:8px;flex-wrap:wrap}.action-footnote{margin-top:11px;font-size:10px;color:#9cabb9}.reader-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#8091a5;text-align:center;padding:30px}.reader-empty .mail-illustration{width:120px;height:90px;background:#e5eef9;border-radius:16px;display:grid;place-items:center;color:#6491bb}.reader-empty h3{color:#243950;font-size:20px}
.coach{width:265px;flex-shrink:0;border-left:1px solid var(--border);background:#fbfcff;padding:25px 18px;overflow-y:auto}.coach .eyebrow{margin-bottom:12px}.coach h3{font-size:16px;letter-spacing:-.03em;margin-bottom:5px}.coach .progress{margin:16px 0 8px}.progress{height:7px;border-radius:10px;background:#dce7f3;overflow:hidden}.progress-inner{background:linear-gradient(90deg,#2c75d1,#20b5cc);height:100%;border-radius:10px;transition:width .35s}.stat-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.stat-tile{background:#fff;border:1px solid #e2eaf4;border-radius:9px;padding:12px}.stat-tile strong{display:block;font-size:23px;letter-spacing:-.05em}.stat-tile span{display:block;color:#8294a7;font-size:10px;font-weight:750}.tip-card{background:linear-gradient(150deg,#edf6ff,#f5fbff);border:1px solid #d7eafb;padding:14px;border-radius:11px;margin-top:22px}.tip-card h4{font-size:12px;display:flex;align-items:center;gap:7px;margin-bottom:8px;color:#24548d}.tip-card p{font-size:11px;color:#617993;line-height:1.8;margin:0}.coach-shortcuts{border-top:1px solid var(--border);padding-top:20px;margin-top:22px}.coach-shortcuts h4{color:#7d90a3;font-size:10px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:12px}.shortcut{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#71839a;margin:9px 0}.kbd{border:1px solid #d7e0ea;border-bottom:2px solid #cedae8;background:white;border-radius:5px;padding:1px 6px;color:#425e7d;font-family:ui-monospace,Consolas,monospace;font-size:10px}
/* Empty/dashboard/results */
.center-stage{flex:1;overflow-y:auto;min-width:0;background:#f7f9fc;padding:clamp(20px,3vw,42px)}.wide{max-width:1240px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}.page-head h1{font-size:31px;letter-spacing:-.05em;margin:5px 0}.page-head p{color:var(--muted);font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.metric{background:white;border:1px solid var(--border);border-radius:12px;padding:20px;position:relative;overflow:hidden}.metric small{font-weight:800;color:#8799ab;font-size:11px}.metric strong{display:block;font-size:32px;letter-spacing:-.05em;margin-top:5px}.metric .badge-icon{float:right;color:#97aec7}.metric em{font-style:normal;font-size:11px;color:#8d9caf}.two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:17px}.panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px;box-shadow:0 2px 5px rgba(28,50,82,.02);margin-bottom:17px}.panel h3{font-size:17px;letter-spacing:-.03em;margin-bottom:15px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:14px}.panel-head h3{margin:0}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;color:#8392a3;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;border-bottom:1px solid var(--border);padding:10px}.data-table td{padding:12px 10px;border-bottom:1px solid #eef1f6;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.table-wrap{overflow-x:auto}.big-empty{text-align:center;padding:45px 20px;color:#8fa0b0}.big-empty h3{color:#273b55;margin:12px 0 6px}.result-hero{max-width:890px;margin:0 auto 22px;background:linear-gradient(130deg,#193b60,#0d294b);border-radius:17px;color:white;display:grid;grid-template-columns:1fr auto;align-items:center;padding:35px 40px;gap:40px;box-shadow:var(--shadow)}.result-hero h1{font-size:36px;letter-spacing:-.045em;margin:8px 0}.result-hero p{color:#bcd3ea;max-width:470px}.result-hero .ringscore{width:130px;height:130px;border-radius:50%;border:9px solid #34adc7;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 9px rgba(255,255,255,.1)}.ringscore strong{font-size:36px}.ringscore span{font-size:10px;letter-spacing:.08em;color:#c5d7eb;text-transform:uppercase}.result-content{max-width:890px;margin:auto}.result-row{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid #edf1f6}.result-row:last-child{border:none}.result-round{height:36px;width:36px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.result-round.good{background:#e1f4ed;color:#127d60}.result-round.bad{background:#fff0f0;color:#b44858}.result-row .text{flex:1;min-width:0}.result-row .text strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-row .text small{color:#8c9dae}.result-row .pts{font-weight:850;white-space:nowrap}.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
/* Modals */
.overlay{position:fixed;inset:0;background:rgba(12,28,47,.58);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:22px;z-index:50;overflow:auto}.modal{background:white;border:1px solid #dce7f1;border-radius:18px;max-width:620px;width:100%;max-height:calc(100dvh - 40px);overflow-y:auto;box-shadow:0 28px 90px rgba(5,24,48,.35);position:relative}.modal.large{max-width:760px}.modal-pad{padding:32px 35px 34px}.modal-header-icon{width:55px;height:55px;background:#e9f3ff;color:#2868b0;border-radius:15px;display:grid;place-items:center;margin-bottom:18px}.modal h2{font-size:26px;letter-spacing:-.045em;line-height:1.2;margin:4px 0 10px}.modal p{color:#647891;font-size:13px}.modal-close{position:absolute;top:17px;right:18px;background:#f2f6fa;border:none;border-radius:8px;height:30px;width:30px;display:grid;place-items:center;color:#718599}.modal .choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:20px 0}.choice{border:1px solid #dce5ef;background:#fff;border-radius:12px;text-align:left;padding:15px;display:flex;flex-direction:column;gap:3px}.choice.selected{background:#e9f3ff;border-color:#397cc9;box-shadow:0 0 0 2px #bcd8f7}.choice:hover{border-color:#83b3e5}.choice strong{font-size:13px}.choice small{color:#8597a8;font-size:11px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--border)}.setting-row strong{font-size:12px}.setting-row small{display:block;font-size:11px;color:#8a9bad}.setting-row select{border:1px solid #d4e2ef;border-radius:7px;padding:8px 9px;background:#fff;font-size:12px}.feedback-head{padding:28px 34px 24px;color:white}.feedback-head.good{background:linear-gradient(135deg,#126f60,#0e594c)}.feedback-head.bad{background:linear-gradient(135deg,#a83b4f,#7a2e43)}.feedback-head.partial{background:linear-gradient(135deg,#a27328,#785c24)}.feedback-head .score{background:rgba(255,255,255,.16);padding:5px 11px;border-radius:18px;font-size:12px;font-weight:900;float:right}.feedback-head h2{font-size:25px;letter-spacing:-.04em;margin:14px 0 8px}.feedback-head p{color:#e7f3f7}.feedback-body{padding:26px 34px 31px}.feedback-body h3{font-size:12px;text-transform:uppercase;letter-spacing:.11em;color:#7a8ea3;margin:17px 0 11px}.clue{display:flex;align-items:flex-start;gap:11px;background:#f6f9fd;border:1px solid #e6edf6;border-radius:9px;padding:11px 13px;margin-bottom:8px;font-size:12px;line-height:1.7;color:#34475e}.clue .ico{color:#397db9;margin-top:2px}.lesson{border-left:3px solid #3e85c7;padding:9px 12px;background:#f3f8fe;color:#45617e;font-size:12px;line-height:1.7;margin-top:15px}.feedback-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--border);padding-top:19px;margin-top:20px}.feedback-footer p{margin:0;font-size:11px}.feedback-footer .btn{min-width:170px}
/* Scenario admin */
.library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.scenario-card{border:1px solid #e0e8f0;border-radius:10px;padding:13px 14px;display:flex;align-items:center;gap:12px}.scenario-card.inactive{opacity:.52}.scenario-card .scinfo{flex:1;min-width:0}.scenario-card strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scenario-card small{font-size:10px;color:#8b9bad}.switch{min-width:45px;height:26px;border-radius:18px;padding:3px;border:0;background:#c4ced9;display:flex;align-items:center;transition:background .2s}.switch.on{background:#2470bc;justify-content:flex-end}.switch .knob{height:20px;width:20px;background:white;border-radius:50%;box-shadow:0 1px 2px #1233}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid .span2{grid-column:1/-1}.section-caption{font-size:12px;color:var(--muted);margin-bottom:14px}
#toastRegion{position:fixed;right:24px;bottom:20px;z-index:100;display:flex;flex-direction:column;gap:8px}.toast{background:#192f4a;color:white;box-shadow:0 15px 32px rgba(5,21,40,.24);border-radius:9px;padding:12px 16px;max-width:420px;font-size:12px;animation:pop .2s ease}.toast.error{background:#933c4a}@keyframes pop{from{transform:translateY(10px);opacity:.2}to{transform:translateY(0);opacity:1}}
.mobile-back{display:none}.screenreader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1480px){.coach{display:none}.inbox{width:350px}.folders{width:205px}.topbar .brand{width:185px}}
@media(max-width:1100px){.folders{display:none}.topbar .brand{width:190px}.inbox{width:335px}.reader-body{padding:23px}.reader-top{padding:0 16px}.reader-action-footer{padding:16px}}
@media(max-width:780px){.auth-page{grid-template-columns:1fr}.auth-hero{min-height:280px;padding:29px}.auth-hero h1{font-size:37px}.auth-hero p{font-size:13px}.auth-visual,.auth-caption{display:none}.auth-side{padding:35px 22px 55px}.app-shell{min-height:0}.topbar{height:57px;min-height:57px;padding:0 12px;gap:8px}.topbar .brand{width:auto;font-size:14px}.topbar .brand small,.top-profile small,.top-profile strong{display:none}.top-profile{padding:0}.search-top{max-width:none}.search-top input{font-size:12px}.rail{width:53px;padding:15px 5px}.railbtn{width:40px;height:43px}.inbox{width:calc(100% - 53px);min-width:0}.reader{display:none}.app-shell.mobile-reading .inbox{display:none}.app-shell.mobile-reading .reader{display:flex;min-width:0;width:calc(100% - 53px)}.mobile-back{display:inline-flex}.reader-top .context{display:none}.reader-top{height:55px;padding:0 9px}.reader-body{padding:20px}.sender-card{flex-wrap:wrap}.sender-time{margin-left:auto}.reading-subject{font-size:23px}.center-stage{padding:22px 14px}.stats-grid{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.page-head{align-items:flex-start}.modal-pad{padding:27px 21px}.feedback-body{padding:24px}.feedback-head{padding:25px}.result-hero{padding:26px 22px;grid-template-columns:1fr;gap:22px}.result-hero .ringscore{width:96px;height:96px;border-width:7px;grid-row:1}.library-list{grid-template-columns:1fr}}
@media(max-width:470px){.top-icon.help{display:none}.top-profile .person{width:30px;height:30px}.search-top{display:none}.mobile-search{display:block;position:relative;margin-top:13px}.topbar .brand{gap:6px}.topbar .brandmark{width:30px;height:30px;font-size:18px}.top-logout{display:none}.rail{width:48px}.inbox{width:calc(100% - 48px)}.app-shell.mobile-reading .reader{width:calc(100% - 48px)}.reader-action-footer{padding:11px}.action-buttons{gap:6px}.btn{font-size:12px;padding:8px 10px}.btn.tiny{font-size:11px}.modal .choices,.form-grid{grid-template-columns:1fr}.form-grid .span2{grid-column:auto}.feedback-footer{flex-wrap:wrap}.feedback-footer .btn{width:100%}.reader-body{padding:16px}.topbar{gap:6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Optional guest label, not a sign-in control. */
.profile-action{border:0;background:transparent;color:#fff;text-align:left;border-radius:9px;padding:4px 7px;cursor:pointer}
.profile-action:hover,.profile-action:focus-visible{background:rgba(255,255,255,.12)}
