:root{--ink:#18243a;--muted:#748196;--brand:#176b68;--brand2:#0e4745;--bg:#f5f7f9;--line:#e2e7ed;--white:#fff;--soft:#eaf4f2;--warn:#ae6914;--danger:#b43948;--shadow:0 6px 26px #203a530b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}h1,h2,h3,h4,p{margin-top:0}h1{font-size:28px}h2{font-size:25px;margin:5px 0 7px}h3{font-size:19px}h4{font-size:15px;margin-bottom:12px}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{color:#7c98a0;font-size:10px;letter-spacing:1.3px;font-weight:800;direction:ltr;text-align:right}.line-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.app{display:grid;grid-template-columns:304px minmax(0,1fr);min-height:100vh;direction:rtl}.sidebar{background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;max-height:100vh;position:sticky;top:0}.brand{display:flex;align-items:center;gap:12px;padding:23px 22px 15px}.brand strong{font-size:17px}.brand small{display:block;color:var(--muted);margin-top:3px}.logo{width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,#268b83,#114b49);color:#fff;display:grid;place-items:center;font-size:26px;box-shadow:0 8px 20px #176b6833;flex-shrink:0}.logo.large{width:65px;height:65px;border-radius:19px;margin:0 auto 21px;font-size:40px}.nav{padding:8px 14px 15px;border-bottom:1px solid var(--line)}.navlink{display:flex;gap:13px;align-items:center;width:100%;text-align:right;padding:11px 15px;margin:3px 0;background:transparent;border:0;border-radius:12px;color:#536176;font-weight:650}.navlink:hover,.navlink.active{background:var(--soft);color:var(--brand2)}.navlink:first-letter{font-size:19px}.company-head{padding:20px 18px 11px}.company-head strong{font-size:14px}.company-head input{width:100%;margin:15px 0 11px;border:1px solid var(--line);padding:11px 12px;border-radius:10px;outline-color:var(--brand);background:#fafbfc}.filter-row,.tabs{display:flex;gap:7px}.chip{border:1px solid var(--line);background:#fff;padding:6px 13px;border-radius:20px;color:var(--muted)}.chip.active{background:#e9f5f2;border-color:#bbdcd4;color:var(--brand);font-weight:700}#companyCount{display:block;margin-top:10px;color:var(--muted)}.companies{overflow:auto;flex:1;padding:0 10px 12px}.company-item{border:0;background:transparent;width:100%;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:12px 11px;border-radius:10px;text-align:right;margin:2px 0}.company-item:hover,.company-item.active{background:#eff6f5}.company-item.active{border-right:3px solid #208478}.company-item b{display:block;font-size:12px;line-height:1.5;color:#26344a;font-weight:600}.company-item small{font-size:10px;color:var(--muted);direction:ltr}.count{font-size:11px;background:#e6eaf0;padding:3px 7px;border-radius:11px;color:#526079}.sidebar-foot{border-top:1px solid var(--line);font-size:10px;color:#8995a6;padding:13px 20px}.dot{display:inline-block;width:7px;height:7px;background:#28a482;border-radius:50%;margin-inline:4px}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{background:#fff;box-shadow:0 1px 0 var(--line);padding:24px 30px;display:flex;gap:20px;align-items:center;justify-content:space-between}.toolbar{display:flex;align-items:center;gap:15px}.offline{font-size:12px;color:#5b796e;white-space:nowrap}.btn{border-radius:10px;padding:10px 15px;border:1px solid var(--line);background:white;color:#334458;font-weight:700;white-space:nowrap}.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.btn.primary:hover{background:var(--brand2)}.btn.danger{color:var(--danger);border-color:#f3cbd0}.btn.ghost{background:transparent;border-color:transparent}.btn.wide{width:100%}.icon-btn{border:0;background:transparent;border-radius:8px;width:29px;height:29px;font-size:22px;color:var(--brand);cursor:pointer}.icon-btn:hover{background:var(--soft)}main{padding:29px 30px;max-width:1600px;width:100%;margin:0 auto;flex:1}.footer{font-size:11px;color:#97a0ac;padding:20px 30px;text-align:center}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:21px}.stat,.panel,.info-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.stat{padding:20px}.stat .stat-icon{width:37px;height:37px;background:var(--soft);display:grid;place-items:center;border-radius:10px;color:var(--brand);font-size:19px;margin-bottom:13px}.stat .value{font-size:29px;font-weight:850;letter-spacing:-.3px;margin-bottom:4px}.stat .label{color:var(--muted);font-size:12px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:25px 0 14px}.section-title h3{margin:0}.two-col{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.panel{padding:21px}.panel h3{margin-bottom:18px}.progress{background:#ebeff1;height:9px;border-radius:10px;overflow:hidden}.progress>i{display:block;height:100%;background:linear-gradient(90deg,#25a391,#166965);border-radius:10px}.metric-line{display:flex;justify-content:space-between;margin:15px 0 8px;font-size:13px}.activity{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf0f3;gap:10px}.activity:last-child{border:0}.activity .small{margin-top:5px}.tag{display:inline-block;padding:4px 9px;font-size:11px;border-radius:16px;background:#edf1f5;color:#596879;white-space:nowrap}.tag.financial{background:#eaf4f2;color:#176e66}.tag.esg{background:#f4eefa;color:#73549b}.tag.unknown{background:#fff2df;color:#a16a21}.empty{text-align:center;padding:48px 20px;color:#82909e}.empty-icon{font-size:42px;margin-bottom:15px}.empty strong{color:var(--ink);display:block;font-size:17px;margin-bottom:7px}.notice{background:#f3f8f8;border:1px solid #dae9e6;color:#4c696b;border-radius:11px;padding:13px 16px;line-height:1.9;margin-bottom:18px;font-size:12px}.notice.warn{background:#fff9ed;border-color:#f4e2b7;color:#85601f}.docs-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.docs-header input{max-width:320px;flex:1}.search,input,select,textarea{border:1px solid #dbe1e7;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink);min-width:0;outline-color:#4a9992}.docs-board{display:grid;grid-template-columns:300px minmax(0,1fr);gap:15px;align-items:start}.doc-list{padding:0;overflow:hidden;max-height:calc(100vh - 265px);overflow-y:auto}.doc-row{width:100%;border:0;border-bottom:1px solid var(--line);padding:15px;background:#fff;text-align:right;cursor:pointer}.doc-row.active{background:#eaf4f2;border-right:3px solid var(--brand)}.doc-row strong{display:block;font-weight:650;font-size:12px;word-break:break-word;line-height:1.7}.doc-row small{display:block;color:var(--muted);margin-top:8px}.doc-tools{margin-top:7px;display:flex;gap:6px;align-items:center}.viewer-pane{padding:0;overflow:hidden;min-height:calc(100vh - 270px)}.viewer-head{padding:16px 17px;border-bottom:1px solid var(--line);display:flex;gap:12px;justify-content:space-between;align-items:center}.viewer-head h3{font-size:15px;max-width:480px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:710px;direction:rtl}.pdf-side{border-left:1px solid var(--line);background:#f0f3f6;min-width:0;display:flex;flex-direction:column}.pdf-side .pdf-label{display:flex;justify-content:space-between;padding:10px 14px;background:#f6f7f9;font-size:11px;color:#677687}.pdf-side iframe{width:100%;flex:1;min-height:650px;border:0}.edit-side{max-height:calc(100vh - 245px);overflow:auto;padding:18px;min-width:0}.edit-side h4{margin:19px 0 12px}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}.field label{font-size:11px;color:#647184;font-weight:700}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%}.field textarea{min-height:68px;resize:vertical}.metric-table{width:100%;border-collapse:collapse;font-size:12px}.metric-table th{background:#f4f7f9;color:#64748b;text-align:right;font-size:10px}.metric-table th,.metric-table td{border-bottom:1px solid var(--line);padding:7px 4px}.metric-table input{width:100%;padding:7px;border-radius:6px;font-size:11px}.metric-table .checked{text-align:center}.metric-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--brand)}.metric-table .m-name{min-width:105px}.table-wrap{overflow-x:auto}.metric-table{min-width:560px}.table-note{margin-top:8px;color:#9e7747;font-size:11px}.doc-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}.sticky-save{position:sticky;bottom:-18px;padding:13px 0;background:linear-gradient(transparent,#fff 15%);z-index:1}.modal-wrap{position:fixed;inset:0;background:#142a3b8a;z-index:60;display:grid;place-items:center;padding:20px}.modal{width:min(600px,96vw);background:white;border-radius:19px;padding:26px;max-height:92vh;overflow:auto;box-shadow:0 30px 70px #0a1a2b33}.modal h3{margin:0 0 18px}.modal .line-between{margin-bottom:16px}.drop{border:2px dashed #bdd5d4;background:#f6fbfa;padding:30px 20px;border-radius:13px;text-align:center;margin-bottom:14px;cursor:pointer}.drop.drag{background:#d7f4ef;border-color:var(--brand)}.drop strong{display:block;font-size:17px;margin-bottom:8px}.queue{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:9px;margin:12px 0}.queue-line{display:flex;gap:10px;padding:10px;border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;font-size:12px}.queue-line b{font-weight:600;max-width:300px;overflow:hidden;text-overflow:ellipsis}.error{color:var(--danger);font-size:12px;margin:12px 0}.success{color:var(--brand);font-size:12px}.toast{position:fixed;bottom:25px;left:24px;z-index:100;background:#1f3741;color:white;padding:15px 20px;border-radius:10px;box-shadow:0 8px 35px #0c1e3150;max-width:430px}.login-screen{min-height:100vh;background:radial-gradient(circle at 70% 15%,#e1f1ec,#f4f7fa 50%);display:grid;place-items:center;padding:20px}.login-card{width:min(425px,100%);background:#fff;padding:42px;border:1px solid var(--line);border-radius:24px;text-align:center;box-shadow:0 24px 65px #123f4915}.login-card p{color:var(--muted);line-height:1.9}.login-card form{text-align:right;margin-top:28px}.login-card form label{display:block;margin-bottom:9px;color:#526172;font-size:12px;font-weight:750}.login-card form input{width:100%;margin-bottom:13px;font-size:18px;letter-spacing:2px}.login-card .muted.small{margin-top:20px}.setting-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.setting-columns .panel{min-width:0}.setting-columns .panel .btn{margin:5px 0}.pill{display:inline-flex;align-items:center;gap:7px;color:#607387;font-size:12px}.small-link{border:0;background:none;color:var(--brand);text-decoration:underline;padding:4px;font-weight:700}.kpi-row{display:flex;gap:10px;flex-wrap:wrap}.kpi-row span{padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px;color:#536274}.code{direction:ltr;unicode-bidi:isolate;font-family:Consolas,monospace}.chipbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.note-danger{color:#a65054;font-size:11px}.doc-sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap}@media(max-width:1300px){.app{grid-template-columns:265px minmax(0,1fr)}.docs-board{grid-template-columns:255px minmax(0,1fr)}.stats{grid-template-columns:repeat(2,1fr)}main{padding:24px 19px}.topbar{padding:19px}.split{grid-template-columns:1fr}.pdf-side{min-height:530px;border-left:0;border-bottom:1px solid var(--line)}.pdf-side iframe{min-height:480px}.edit-side{max-height:none}}@media(max-width:780px){.app{display:block}.sidebar{position:relative;max-height:360px}.brand{padding:12px 15px}.nav{display:flex;overflow:auto;padding:5px 8px}.navlink{width:auto;white-space:nowrap;padding:8px 11px}.company-head{padding:8px 12px}.companies{max-height:110px}.sidebar-foot{display:none}.topbar{display:block}.toolbar{margin-top:16px}.two-col,.docs-board,.setting-columns{grid-template-columns:1fr}.doc-list{max-height:250px}.stats{grid-template-columns:repeat(2,1fr)}}
/* v2: company-first research workspace, legible side-by-side source and entry */
.app{grid-template-columns:262px minmax(0,1fr)}
main{max-width:none;padding:19px 22px 35px}
.sidebar .brand{padding:17px 16px 12px}
.company-head{padding:13px 12px 8px}
.company-item{padding:10px 9px}
.company-item b{font-size:12.5px}
.topbar{padding:16px 22px}
.topbar h2{font-size:23px}
.company-profile{padding:22px 25px;margin:0 0 16px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(240px,1fr) auto;column-gap:20px;row-gap:16px}
.profile-leading{display:flex;align-items:center;gap:15px;min-width:0}
.profile-leading h2{font-size:23px;margin:5px 0 10px;line-height:1.5}
.profile-icon{background:var(--soft);color:var(--brand);border-radius:16px;width:56px;height:56px;display:grid;place-items:center;font-size:31px;flex-shrink:0}
.profile-meta{display:flex;gap:10px;flex-wrap:wrap;color:#667386;font-size:13px}
.profile-meta span{border:1px solid #e1ebed;background:#f8fafb;border-radius:9px;padding:7px 11px}
.profile-meta b{color:#243f4b}
.profile-summary{display:flex;gap:8px;align-items:center}
.profile-summary>div{min-width:86px;padding:10px 12px;background:#f4faf8;border-radius:12px;text-align:center}
.profile-summary b{display:block;font-size:23px;color:var(--brand)}
.profile-summary small{display:block;color:#64767b;font-size:11px;margin-top:2px}
.profile-actions{display:flex;justify-content:flex-end;gap:9px;align-items:center;grid-column:1/-1;border-top:1px solid #edf1f3;padding-top:14px}
.company-latest{background:#fff;border:1px solid var(--line);padding:18px 22px;border-radius:13px;margin-top:15px}
.company-latest h4{margin-bottom:12px}
.quick-doc{border:1px solid #e6eeee;background:#fbfdfd;border-radius:9px;padding:11px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;text-align:right;margin-bottom:7px}
.quick-doc strong{flex:1}
.quick-doc span{color:var(--muted);font-size:12px}
.all-docs-heading{padding:6px 0 16px}
.all-docs-heading h3{margin-bottom:5px}
.report-workspace{min-width:0}
.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fff;padding:13px 17px;border:1px solid var(--line);border-radius:13px 13px 0 0}
.report-toolbar .chipbar{display:flex;gap:8px;flex-wrap:wrap}
.report-toolbar .chip{padding:10px 14px;font-size:13px}
.report-search{display:flex;gap:8px;align-items:center}
.report-search input{width:220px;max-width:100%}
.report-strip{display:flex;direction:rtl;gap:10px;align-items:stretch;overflow-x:auto;max-width:100%;padding:13px 14px;background:#f8fafc;border:1px solid var(--line);border-top:0;scrollbar-width:thin}
.report-tab{display:flex;flex-direction:column;gap:8px;flex:0 0 210px;min-width:0;padding:12px 14px;border:1px solid #e0e8e9;border-radius:11px;text-align:right;background:#fff;color:var(--ink)}
.report-tab:hover{border-color:#66aaa1}
.report-tab.active{background:#e8f5f1;border-color:#83bdb2;box-shadow:inset 0 0 0 1px #87bdb3}
.report-tab-top{display:flex;justify-content:space-between;gap:8px;align-items:center;min-width:0}
.report-tab-top strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.report-tab-top span{border-radius:7px;background:#eef0f3;font-size:12px;padding:3px 6px;direction:ltr}
.report-tab small{color:#617387;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.empty-reports{padding:12px 8px;color:#607083}
.layout-toolbar{background:#fff;border:1px solid var(--line);border-top:0;border-bottom:0;display:flex;justify-content:flex-start;gap:13px;align-items:center;flex-wrap:wrap;padding:11px 15px}
.layout-toolbar>strong{font-size:15px}
.layout-buttons{display:flex;gap:0;border:1px solid #dce7e7;overflow:hidden;border-radius:9px;margin-inline-start:auto}
.layout-btn{padding:9px 13px;background:#fff;border:0;border-left:1px solid #dde6e6;color:#527173;font-size:12px;white-space:nowrap}
.layout-btn:last-child{border:0}
.layout-btn.active{background:var(--brand);color:#fff}
.viewer-pane{border-radius:0 0 13px 13px;min-height:620px}
.viewer-head{padding:12px 18px}
.viewer-head h3{font-size:16px;max-width:700px}
.viewer-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.viewer-head-actions .btn{font-size:12px;padding:9px 11px;text-decoration:none}
.doc-name-bar{min-width:0}
.split{direction:ltr;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:830px}
.split-pdf{grid-template-columns:minmax(0,1.6fr) minmax(330px,1fr)}
.split-entry{grid-template-columns:minmax(330px,1fr) minmax(0,1.6fr)}
.pdf-side,.edit-side{direction:rtl}
.pdf-side{border-left:0;border-right:1px solid var(--line)}
.pdf-side .pdf-label{font-size:13px;gap:10px;align-items:center;color:#435869}
.pdf-side iframe{min-height:770px;height:calc(100vh - 245px)}
.edit-side{padding:21px 22px;max-height:none;height:calc(100vh - 245px);min-height:770px;overflow-y:auto;scrollbar-width:thin}
.edit-side h4{font-size:16px;color:#253c44}
.entry-intro{background:#f2f8f8;padding:15px 17px;border:1px solid #d7e7e6;border-radius:12px;margin-bottom:17px}
.entry-intro h3{font-size:19px;margin:0 0 6px}
.entry-intro p{font-size:13px;line-height:1.8;margin:0;color:#60737a}
.document-metadata{background:#fff;border:1px solid #e0e6e9;border-radius:12px;margin-bottom:18px}
.document-metadata summary{cursor:pointer;font-weight:700;padding:14px 16px;color:#2b5a5c;font-size:14px}
.document-metadata[open] summary{border-bottom:1px solid #e7ecf0}
.metadata-content{padding:17px}
.edit-side .field label{font-size:13px}
.edit-side .field input,.edit-side .field select,.edit-side textarea{font-size:15px;min-height:43px}
.metric-title-row{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:16px 0 13px}
.metric-title-row h4{margin:0}
.metric-search{min-width:150px;width:190px;max-width:100%;font-size:14px;padding:9px 12px}
.metric-list{display:flex;flex-direction:column;gap:10px}
.metric-card{padding:16px;border:1px solid #e0e7eb;border-radius:12px;background:#fff;box-shadow:0 1px 4px #162d4206}
.metric-card:focus-within{border-color:#6bada4;box-shadow:0 0 0 2px #e0f3ee}
.metric-top{display:flex;align-items:flex-start;justify-content:space-between;gap:11px;margin-bottom:12px}
.metric-top strong{font-size:15px;line-height:1.55;color:#1d343e}
.verify-control{display:flex;align-items:center;gap:6px;font-size:12px;color:#61747a;white-space:nowrap}
.verify-control input{accent-color:var(--brand);width:17px;height:17px}
.metric-fields{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.85fr) minmax(0,.72fr);gap:9px}
.metric-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.metric-field span{color:#70808e;font-size:12px;font-weight:650}
.metric-field input{width:100%;padding:11px;border:1px solid #d6e0e7;border-radius:8px;font-size:15px;min-height:43px}
.metric-field.value-field input{font-weight:650;color:#174f51}
.metric-card .note-field{margin-top:10px}
.metric-card .note-field input{font-size:13px;min-height:39px}
.sticky-save{bottom:-21px;margin-top:11px;padding:15px 2px 8px;background:linear-gradient(transparent,#fff 12%,#fff 100%)}
.sticky-save .btn{font-size:15px;padding:13px}
.big-empty{min-height:450px;display:flex;flex-direction:column;justify-content:center;align-items:center}
@media(max-width:1450px){.app{grid-template-columns:240px minmax(0,1fr)}main{padding:16px 16px 28px}.profile-summary>div{min-width:71px}.layout-toolbar .muted{display:none}.split{grid-template-columns:1fr 1fr}.metric-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.page-field{grid-column:1/-1}}
@media(max-width:1100px){.split,.split-pdf,.split-entry{grid-template-columns:minmax(0,1fr)}.pdf-side{border-bottom:1px solid var(--line);border-right:0}.pdf-side iframe{height:720px;min-height:720px}.edit-side{height:auto;min-height:550px;max-height:none}.company-profile{grid-template-columns:1fr}.profile-summary{justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:780px){.app{display:block}main{padding:12px}.company-profile{padding:15px}.profile-leading h2{font-size:19px}.profile-summary>div{min-width:65px}.viewer-head{flex-wrap:wrap}.report-toolbar{padding:11px}.report-toolbar .chip{padding:8px}.report-search{width:100%}.report-search input{flex:1}.layout-toolbar{align-items:start}.layout-buttons{width:100%;margin:0}.layout-btn{flex:1;padding:8px 6px}.metric-fields{grid-template-columns:1fr 1fr}.page-field{grid-column:1/-1}.split .pdf-side iframe{min-height:520px;height:520px}.edit-side{padding:14px}.metric-top{flex-wrap:wrap}}
/* Optional distraction-free workspace */
.focus-toggle{font-size:12px;padding:8px 12px;border-color:#b7d8d5;color:#176b68}
.app.focus-mode{display:block}
.app.focus-mode .sidebar,.app.focus-mode .topbar,.app.focus-mode .company-profile,.app.focus-mode .company-latest,.app.focus-mode .all-docs-heading,.app.focus-mode .report-toolbar,.app.focus-mode .report-strip,.app.focus-mode .footer{display:none}
.app.focus-mode main{max-width:none;margin:0;padding:0}
.app.focus-mode .layout-toolbar{position:sticky;top:0;z-index:10;box-shadow:0 3px 16px #1b394011;padding:12px 20px}
.app.focus-mode .viewer-pane{border-radius:0}
.app.focus-mode .split{min-height:calc(100vh - 150px)}
.app.focus-mode .pdf-side iframe{height:calc(100vh - 150px);min-height:calc(100vh - 150px)}
.app.focus-mode .edit-side{height:calc(100vh - 150px);min-height:calc(100vh - 150px)}
@media(max-width:1100px){.app.focus-mode .pdf-side iframe{height:660px;min-height:660px}.app.focus-mode .edit-side{height:auto;max-height:none;min-height:540px}}

/* In-company XLSX import */
.excel-btn{background:#eef7e9;color:#21643b;border-color:#c5e6cc}
.excel-btn:hover{background:#e0f2db}
.excel-template-btn{background:#fff;border:1px solid #b8d7c7;color:#176b68;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.excel-company-tip{border:1px solid #cee5d5;background:#f4fbf6;color:#385b49;border-radius:12px;padding:13px 18px;margin:0 0 14px;line-height:1.9;font-size:13px}
.excel-modal-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 22px}.excel-drop{border:2px dashed #9bbfb1;border-radius:14px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:32px 16px;cursor:pointer;background:#f8fcfa}.excel-drop:hover,.excel-drop.drag{border-color:#176b68;background:#edfaf2}
.excel-results{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0}.excel-results>div{background:#eaf5f1;border:1px solid #c6e2d8;border-radius:10px;padding:17px 12px;text-align:center}.excel-results b{font-size:29px;display:block;color:#176b68}.excel-results span{font-size:12px;color:#597069}.excel-warnings{max-height:270px;overflow:auto;padding:15px;background:#fff8ef;border:1px solid #ecd9b6;border-radius:12px;margin:12px 0}.excel-warnings li{margin:8px 0;line-height:1.6}.notice.caution{background:#fff9ed;border-color:#f0dcac;color:#685226}.excel-source{display:inline-block;font-size:10px;color:#366e55;font-weight:500}.pdf-missing{min-height:540px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:40px 28px;gap:11px;background:#f6faf8;color:#264d49}.pdf-missing h3{margin:4px}.pdf-missing p{max-width:450px;line-height:1.9}.profile-actions{flex-wrap:wrap}

/* SPSS research export */
.export-heading{padding:4px 4px 18px}.export-heading h2{font-size:23px;color:#234b50;margin:0 0 7px}.export-heading p{color:#5e7382;font-size:14px;line-height:1.9}.export-stats{margin-bottom:18px}.export-columns{align-items:start;margin-bottom:18px}.export-selected{margin:16px 0;padding:12px;border:1px solid #cbdcda;border-radius:12px}.export-selected input{margin:10px 0}.export-entities{max-height:260px;overflow:auto;border:1px solid #edf1f3;border-radius:9px;background:#fff}.export-entity{display:flex;align-items:center;gap:9px;border-bottom:1px solid #f1f3f5;padding:7px 10px;font-size:13px;cursor:pointer}.export-entity span{flex:1}.export-entity small{color:#8394a3;direction:ltr}.export-entity input{width:auto;max-width:18px;margin:0}.export-check{display:flex;gap:9px;align-items:center;font-size:14px;margin:14px 0;color:#314e58}.export-check input{width:18px;flex-shrink:0}.bank-directory{max-height:405px;overflow:auto}.bank-directory>div{display:flex;justify-content:space-between;gap:12px;padding:11px 4px;border-bottom:1px solid #edf0f1;font-size:13px}.bank-directory span{color:#36716d;font-weight:600}.export-columns .panel{min-width:0}

/* Cloud multi-user chat and admin management */
.team-intro{margin-bottom:17px}.team-intro h3{font-size:21px;margin:0 0 7px}
.team-chat{display:grid;grid-template-columns:270px minmax(0,1fr);gap:15px;min-height:580px;height:min(74vh,820px)}
.team-contacts,.team-conversation{border:1px solid #dae7e5;border-radius:15px;background:#fff;overflow:hidden}
.team-contacts{padding:16px;overflow-y:auto}.team-contacts h4{margin:0 0 13px}
.team-contact{border:1px solid transparent;background:transparent;text-align:right;display:flex;flex-direction:column;width:100%;padding:12px 13px;margin-bottom:7px;border-radius:9px;cursor:pointer;gap:3px;font-family:inherit;color:#263747}
.team-contact:hover{background:#f0f8f6}.team-contact.on{background:#e5f2ef;color:#0d6058;border-color:#b6d7d0}.team-contact small{color:#7a8e99}
.team-conversation{display:flex;flex-direction:column;min-width:0}.team-chat-heading{padding:15px 20px;border-bottom:1px solid #dae7e5;font-weight:750}
.team-messages{flex:1;overflow-y:auto;min-height:300px;padding:22px;display:flex;flex-direction:column;gap:12px;background:#f6faf9}
.team-message{max-width:82%;padding:12px 16px;border:1px solid #e0e9e8;background:#fff;border-radius:15px 15px 4px 15px;align-self:flex-start;overflow-wrap:anywhere}
.team-message.mine{background:#e0efeb;border-color:#b9dcd3;align-self:flex-end;border-radius:15px 15px 15px 4px}
.team-message p{white-space:pre-wrap;line-height:1.7;margin:7px 0 0}
.chat-meta{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:12px}.chat-meta span{color:#6d818d}
.team-compose{border-top:1px solid #d7e5e2;padding:14px;display:flex;align-items:center;gap:12px}.team-compose textarea{flex:1;resize:none;min-width:0;padding:11px;border:1px solid #bdd2ce;border-radius:9px;font:inherit}.team-compose .btn{white-space:nowrap}
.chat-empty{margin:auto;color:#81949a}.researcher-row{display:flex;align-items:center;justify-content:space-between;gap:13px;border-bottom:1px solid #e7efed;padding:16px 0;flex-wrap:wrap}.researcher-row small{display:inline-block;color:#74868f}
.user-buttons{display:flex;gap:7px;flex-wrap:wrap}.activity-entries{max-height:310px;overflow:auto}.activity-row{border-bottom:1px solid #eef3f2;padding:10px 0;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:900px){.team-chat{grid-template-columns:1fr;height:auto}.team-contacts{max-height:200px}.team-messages{height:420px;flex:auto}.team-conversation{min-height:530px}}

/* EGX Pro: polished bilingual SaaS interface, no CDN or remote fonts */
:root{--ink:#202942;--muted:#71809b;--brand:#4f46e5;--brand2:#3730a3;--bg:#f5f7fc;--line:#e5e9f2;--soft:#eef0ff;--warn:#9d6c28;--shadow:0 5px 22px rgba(32,41,66,.045)}
body{background:var(--bg);font-family:"Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:.005em}
.app{grid-template-columns:284px minmax(0,1fr)}
.sidebar{background:#111b35;color:#e6e9f4;border-left:0;box-shadow:-4px 0 20px #0f1b300c;scrollbar-color:#3e4c68 #17223b}
.brand{padding:26px 18px 22px;border-bottom:1px solid #ffffff1a}.brand strong{font-size:18px;color:#fff}.brand small{color:#b6bfd2}.brand .logo{background:linear-gradient(140deg,#7c73ff,#5042de);box-shadow:0 8px 28px #5544f35c}
.nav{padding:15px 13px;border-color:#ffffff1c}.navlink{color:#b3bdd4;font-size:13px;font-weight:650;margin:4px 0;padding:12px 13px;transition:background .18s,color .18s;line-height:1.45}.navlink:hover{background:#283452;color:#fff}.navlink.active{background:#5147da;color:#fff;box-shadow:0 4px 14px #080d253b}.company-head{padding:19px 16px 10px}.company-head strong{color:#f1f4ff}.company-head input{border:1px solid #485371;background:#202c47;color:#fff}.company-head input::placeholder{color:#aab5d0}.filter-row .chip{background:#1c2945;color:#c7cee0;border:1px solid #435170;padding:7px 12px}.filter-row .chip.active{background:#4e46d9;color:#fff;border-color:#6b62f5}.sidebar #companyCount{color:#abb6ce}.company-item{color:#e1e6f3}.company-item b{color:#e1e8f7;font-size:12px}.company-item small{color:#aab7cc}.company-item:hover{background:#273653}.company-item.active{background:#3b396f;border-color:#aba4ff}.sidebar .count{background:#35425f;color:#dce1f0}.sidebar-foot{border-color:#fff2;color:#aeb8cf}.sidebar .icon-btn{color:#c8c3ff}
.topbar{padding:25px 32px;background:rgba(255,255,255,.95);box-shadow:0 1px 0 #e8eaf1}.topbar h2{font-weight:800;letter-spacing:-.3px;color:#202a48}.eyebrow{color:#8d97ad}.toolbar .offline{color:#487e68}.btn{border-color:#dde3f0;color:#35425f;font-weight:700;transition:transform .15s,background .15s,box-shadow .15s}.btn:hover{background:#f3f5fd}.btn.primary{background:linear-gradient(120deg,#5549ed,#493dd0);border-color:#5044e4;color:#fff;box-shadow:0 4px 12px #5549ed29}.btn.primary:hover{background:#3d32c7;box-shadow:0 6px 18px #5549ed3c}.btn:active{transform:translateY(1px)}.panel,.stat,.info-card{border:1px solid #e6eaf4;border-radius:17px;box-shadow:var(--shadow)}.stat{padding:23px}.stat .stat-icon{background:#edeaff;color:#5346df}.stat .value{color:#273257}.notice{background:#f5f5ff;border-color:#e4e5fc;color:#515975}.notice.caution{background:#fff8ed}.chip.active{background:#eae9ff;border-color:#c3bfff;color:#5147dc}.tag.financial{background:#e8edff;color:#3e54ad}.tag.esg{background:#eee8fc;color:#7252a9}.company-profile{border-color:#e7e9f4}.metric-card:focus-within{border-color:#887ff3;box-shadow:0 0 0 2px #eeeafd}.metric-field.value-field input{color:#3931aa}.focus-toggle{color:#574be0;border-color:#c7c4f6}
/* Login designed as a complete portal, without image downloads */
.login-screen{position:fixed;inset:0;background:radial-gradient(circle at 20% 20%,#7970e477 0,transparent 33%),linear-gradient(135deg,#111b38 0%,#192b50 48%,#4c43b5 100%);display:flex;align-items:center;justify-content:center;overflow:auto;padding:40px 18px}
.login-screen::before{content:"EGX  •  RESEARCH";position:absolute;bottom:4%;left:5%;color:#ffffff20;letter-spacing:8px;font-size:clamp(24px,5vw,100px);font-weight:900;pointer-events:none}
.login-card{position:relative;max-width:490px;width:100%;background:#fff;border-radius:26px;padding:36px 43px 40px;box-shadow:0 28px 70px #0a11255b;text-align:right}
.login-card .logo.large{background:linear-gradient(130deg,#5c54ed,#3833b0);margin:3px 0 24px 0;width:62px;height:62px;border-radius:20px}.login-card h1{font-size:28px;color:#242f50;margin:9px 0 11px}.login-card p{font-size:13px;line-height:2;color:#748099;margin-bottom:23px}.login-card .eyebrow{font-size:10px;text-align:right}.login-card label{font-size:13px;color:#3d4868;font-weight:750}.login-card input{min-height:47px;margin:8px 0 17px;border-radius:10px;background:#fbfcff;border:1px solid #dde3f0;width:100%}.login-card .btn.primary{min-height:49px;margin:6px 0 14px}.login-card .small{font-size:11px;line-height:1.9}.login-badge{display:inline-block;border:1px solid #dad9ff;color:#5147db;background:#f3f2ff;padding:8px 13px;font-size:11px;font-weight:750;border-radius:20px;margin-bottom:22px}
.invite-panel{background:linear-gradient(120deg,#fcfcff 30%,#efedff);border-color:#e1dcff;margin:20px 0}.invite-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.invite-heading h3{font-size:21px;margin:9px 0 9px}.invite-heading p{color:#64718d;font-size:13px;line-height:1.9;margin:0 0 15px}.invite-icon{background:#5147db;color:#fff;font-size:28px;display:grid;place-items:center;width:58px;height:58px;border-radius:19px}.link-strip{display:flex;gap:11px}.link-strip input{direction:ltr;text-align:left;flex:1;min-width:0;font-size:15px;padding:12px;background:#fff;color:#343b63}.team-manage{margin-top:18px}.activity-filter-panel{margin-bottom:18px}.activity-filter-row{display:flex;gap:15px;align-items:flex-end;flex-wrap:wrap}.activity-filter-row .field{flex:1;min-width:190px;margin-bottom:0}.activity-filter-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.activity-block{margin-bottom:18px}.activity-table{border-collapse:collapse;width:100%;font-size:12px;min-width:720px}.activity-table th,.activity-table td{padding:13px 10px;border-bottom:1px solid #edf0f6;text-align:right;vertical-align:top}.activity-table th{background:#f5f6fe;color:#6c7393;font-size:11px;font-weight:750}.activity-table td{color:#424d67}.activity-table tr:hover td{background:#fafbff}.activity-table td:first-child{white-space:nowrap}.action-tag{display:inline-block;border-radius:8px;background:#ededff;color:#5146d9;padding:5px 8px;font-weight:650}.activity-table .detail-cell{min-width:150px;max-width:380px;overflow-wrap:anywhere}.empty-row{text-align:center!important;color:#8c97a9!important;padding:26px!important}
@media(max-width:1350px){.app{grid-template-columns:244px minmax(0,1fr)}.topbar{flex-wrap:wrap}.toolbar{flex-wrap:wrap}}
@media(max-width:780px){.app{display:block}.sidebar{position:static;max-height:none;padding-bottom:12px}.companies{max-height:220px}.topbar{padding:20px 16px}.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.login-card{padding:26px}.link-strip{flex-direction:column}.activity-filter-row{display:block}.activity-filter-row .field{margin-bottom:12px}.activity-filter-actions{margin-top:12px}.workspace main{padding:15px}}

.login-card input:focus,.login-card input:focus-visible{outline:2px solid #8e87f9;outline-offset:1px;border-color:#8e87f9}

/* Full directory and sidebar usability: EGX 2026-10-11 update */
.sidebar{height:100dvh;max-height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sidebar .brand{padding:14px 16px 12px;flex-shrink:0}
.sidebar .nav{padding:7px 10px 8px;flex-shrink:0}
.sidebar .navlink{padding:7px 11px;margin:2px 0;min-height:33px;font-size:12px}
.sidebar .company-head{padding:12px 14px 9px;flex-shrink:0}
.sidebar .company-head input{margin:10px 0 7px}
.sidebar .companies{flex:1 0 175px;min-height:175px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sidebar .company-item{align-items:flex-start;min-height:54px;padding:9px 8px}
.sidebar .company-item>span:first-child{min-width:0;flex:1}
.sidebar .company-item b{white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.sidebar .sidebar-foot{position:sticky;bottom:0;background:#111b35;flex-shrink:0;padding:8px 14px}
.directory-open{display:block;width:100%;text-align:center;border:1px solid #756ef8;color:#fff;background:#5147dc;border-radius:10px;margin-top:10px;padding:10px 6px;font-size:12px;font-weight:750;cursor:pointer;box-shadow:0 4px 15px #090e2c40}
.directory-open:hover,.directory-open:focus-visible{background:#6b61ee;outline-offset:2px}
.directory-page{max-width:1400px;margin-inline:auto}
.directory-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:10px 0 15px}
.directory-hero h3{font-size:23px;color:#1f2b4f;margin:9px 0}
.directory-hero p{color:#687790;line-height:1.8;margin:0}
.directory-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:10px 0 16px}
.dir-stat{background:white;padding:20px;border:1px solid #e3e8f5;border-radius:15px;display:flex;flex-direction:column;gap:6px}
.dir-stat b{color:#4f46d6;font-size:29px;font-variant-numeric:tabular-nums}
.dir-stat span{color:#65728e;font-size:12px}
.directory-filter-panel{padding:18px 20px;margin-bottom:15px}
.directory-filters{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(130px,.7fr) minmax(150px,1fr);gap:13px}
.directory-filters .field{margin:0}
.directory-filters label{font-size:12px}
.directory-filters input,.directory-filters select{height:44px;min-width:0;width:100%}
.directory-count-line{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;margin-top:13px;color:#66748d}
.directory-count-line strong{color:#3f37b9;font-size:13px}
.directory-table-wrap{padding:0;overflow:hidden}
.directory-table-scroller{width:100%;overflow-x:auto}
.directory-table{width:100%;border-collapse:collapse;font-size:13px;min-width:660px}
.directory-table thead{background:#f3f4fc}
.directory-table th{text-align:right;padding:16px;color:#626d89;font-size:12px;font-weight:750;white-space:nowrap}
.directory-table td{border-top:1px solid #eef0f6;padding:11px 16px;vertical-align:middle}
.directory-table tbody tr:hover{background:#f7f8ff}
.directory-name{border:0;background:none;font-weight:700;color:#243050;text-align:right;padding:6px 0;white-space:normal;line-height:1.6}
.directory-name:hover{color:#5147dc;text-decoration:underline}
.directory-view{border:1px solid #dcdcf4;color:#5147d9;background:#f7f6ff;padding:8px 12px;border-radius:8px;white-space:nowrap}
.directory-view:hover{background:#e8e6ff}
.directory-sector{display:inline-block;background:#eef1f7;color:#53617b;padding:6px 10px;border-radius:9px;max-width:280px}
.directory-sector.bank{background:#e9e7ff;color:#5042c8}
.directory-table .ticker{direction:ltr;text-align:right;white-space:nowrap;font-weight:700;font-family:Consolas,monospace;color:#57618a}
.directory-table .row-number{color:#77849a;font-variant-numeric:tabular-nums}
.directory-no-results{text-align:center!important;padding:36px!important;color:#748199}
@media(max-width:1050px){.directory-filters{grid-template-columns:1fr 1fr}.directory-filters .field:first-child{grid-column:1/-1}}
@media(max-width:780px){.sidebar{height:auto;max-height:initial;overflow:visible}.sidebar .companies{min-height:130px;max-height:230px;flex:0 0 auto}.sidebar .sidebar-foot{position:static}.directory-stats{grid-template-columns:1fr 1fr}.directory-filters{grid-template-columns:1fr}.directory-filters .field:first-child{grid-column:auto}.directory-hero h3{font-size:20px}}
@media(max-width:440px){.directory-stats{grid-template-columns:1fr}}

.directory-temporary{display:inline-block;margin-inline-start:8px;padding:3px 7px;border-radius:8px;color:#99662a;background:#fff3d9;border:1px solid #f4e1be;font-size:10px;font-weight:700;white-space:nowrap}
