:root{color:#172033;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#eef4fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#145f9b1f,#1fb3a314),#eef4fb}.login-card,.report-form,.report-preview,.history-panel,.analysis-panel,.person-section,.role-subsection,.collaborators-sections{display:grid;gap:12px;margin-top:14px;padding:14px;border:1px solid #d8e6f3;border-radius:12px;background:#fbfdff}.person-section h3,.collaborators-sections>h3{margin:0;color:#0f2744;font-size:1rem}.role-subsection h4{margin:0;color:#2563eb;font-size:.92rem}.collaborator-panel,.table-block,.object-panel{border:1px solid #d6e3f0;background:#ffffffeb;box-shadow:0 18px 50px #162c4a14;border-radius:8px}.login-card{width:min(430px,100%);padding:28px}.brand-row{display:flex;align-items:center;gap:12px}.brand-row strong,.brand-row span{display:block}.brand-row strong{font-size:1rem;letter-spacing:0}.brand-row span{color:#63748a;font-size:.85rem;margin-top:2px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;color:#fff;background:#1267a7;border-radius:8px;font-weight:800}.login-form{display:grid;gap:16px;margin-top:28px}label{display:grid;gap:7px;color:#3c4f65;font-size:.88rem;font-weight:650}input,select,textarea{width:100%;border:1px solid #c8d8e8;background:#fbfdff;color:#172033;border-radius:6px;padding:11px 12px;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}textarea{min-height:160px;resize:vertical;font-family:Cascadia Code,Consolas,monospace;font-size:.86rem}input:focus,select:focus,textarea:focus{border-color:#1267a7;box-shadow:0 0 0 3px #1267a726;background:#fff}input:disabled,select:disabled{color:#8795a7;background:#edf3f8}.primary-button,.download-actions button,.history-item,.icon-button,.tab,.segment{border:1px solid transparent;border-radius:6px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 16px;color:#fff;background:#1267a7;border-color:#1267a7;font-weight:750}.primary-button:hover{background:#0d568d}.wide{width:100%}.form-error,.app-alert{color:#9f3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;padding:10px 12px;margin:0}.app-shell{min-height:100vh;padding:18px;overflow-x:clip}.topbar{position:relative;z-index:20;min-height:66px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 14px}.topbar .brand-row{flex:1 1 180px;min-width:0}.topbar .brand-row>div{min-width:0}.topbar .brand-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;flex:0 1 auto}.user-chip{max-width:min(100%,220px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f5e91;background:#e3f2ff;border:1px solid #c5def5;border-radius:999px;padding:8px 12px;font-size:.86rem;font-weight:700}.icon-button{width:38px;height:38px;display:grid;place-items:center;color:#21415d;background:#fff;border-color:#d6e3f0}.tabs{display:flex;gap:8px;margin-bottom:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:thin}.tabs::-webkit-scrollbar{height:6px}.tabs::-webkit-scrollbar-thumb{background:#c5d8ea;border-radius:999px}.tab{min-height:44px;min-width:max-content;flex:0 0 auto;scroll-snap-align:start;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;color:#496074;background:#fff;border-color:#d6e3f0;font-weight:700;font-size:.82rem;line-height:1.2;text-align:center;white-space:nowrap}.tab.active{color:#fff;background:#1267a7;border-color:#1267a7}.workspace{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}.report-form,.report-preview{padding:18px;min-width:0}.report-form .form-grid,.report-form .ai-panel .form-grid{grid-template-columns:1fr}.report-form .form-grid label:last-child:nth-child(odd){grid-column:auto}.history-menu{position:relative}.history-trigger{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:8px 12px;border-radius:999px;border:1px solid #c5def5;background:#fff;color:#0f5e91;font-weight:700;font-size:.84rem;cursor:pointer}.history-menu.has-reports .history-trigger{background:#e3f2ff;border-color:#8fc3ec}.history-trigger.open .history-chevron{transform:rotate(180deg)}.history-trigger-label{white-space:nowrap}.history-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:min(420px,calc(100vw - 36px));max-height:min(420px,62vh);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d6e3f0;border-radius:12px;box-shadow:0 18px 44px #12365529;z-index:35}.history-dropdown-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #e6eef6;background:#f8fbff}.history-dropdown-header strong{display:block;color:#18324c;font-size:.9rem}.history-dropdown-header span{display:block;margin-top:2px;color:#60758b;font-size:.78rem}.history-empty{margin:0;padding:10px 12px;color:#63748a;font-size:.84rem;background:#f7fbff;border:1px dashed #d8e6f3;border-radius:8px}.report-preview{position:relative;z-index:1;overflow:hidden}.history-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e7f4ff;border:1px solid #b9d8ef;color:#0e5d91;font-size:.72rem;font-weight:800;flex-shrink:0}.history-chevron{flex-shrink:0;color:#60758b;transition:transform .15s ease}.report-form{display:grid;gap:16px}.panel-title{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#18324c}.panel-title>div{flex:1 1 160px;min-width:0}.panel-title.compact{justify-content:space-between}.panel-title.compact h2{flex:1 1 auto;min-width:0}.panel-title h1,.panel-title h2{margin:0;font-size:1.08rem}.panel-title.compact h2{font-size:.98rem}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid label:last-child:nth-child(odd){grid-column:1 / -1}.segmented-field{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:0;margin:0;padding:0}.segmented-field legend{grid-column:1 / -1;margin-bottom:7px;color:#3c4f65;font-size:.88rem;font-weight:650}.segment{min-height:40px;color:#416176;background:#edf5fb;border-color:#d3e3ef;font-weight:700}.segment.active{color:#0e5d91;background:#dff0ff;border-color:#8fc3ec}.metric-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:190px;overflow:auto;padding:4px}.check-row{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 8px;background:#f7fbff;border:1px solid #d8e6f3;border-radius:6px;font-size:.82rem}.check-row input{width:16px;height:16px;padding:0}.ai-panel{display:grid;gap:12px;padding:14px;border:1px solid #cfe1ef;border-radius:8px;background:#f7fbff}.collaborator-panel{display:grid;gap:12px;padding:14px;box-shadow:none}.inline-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.inline-add button{border:1px solid #9cc7e8;border-radius:6px;padding:0 12px;color:#0e5d91;background:#e7f4ff;font-weight:800}.sync-collaborators-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:36px;border:1px solid #bfd4ea;border-radius:6px;padding:8px 12px;color:#1d4f73;background:#f4f9fd;font-weight:700}.sync-collaborators-button:disabled{opacity:.55;cursor:not-allowed}.sync-collaborators-button .spin{animation:spin .9s linear infinite}.collaborator-list{display:grid;gap:7px;max-height:180px;overflow:auto}.collaborator-item{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:8px 10px;border:1px solid #d8e6f3;border-radius:6px;color:#526b82;background:#f4f8fc}.collaborator-item.active{color:#123e60;background:#eef7ff;border-color:#9cc7e8}.collaborator-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collaborator-item strong{color:#0e5d91;font-size:.76rem}.ai-heading{display:flex;align-items:center;gap:9px;color:#18324c}.switch{margin-left:auto;display:inline-flex;align-items:center}.switch input{display:none}.switch span{width:42px;height:24px;display:inline-block;position:relative;border-radius:999px;background:#b9c8d9;transition:background .16s ease}.switch span:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .16s ease}.switch input:checked+span{background:#159a8c}.switch input:checked+span:after{transform:translate(18px)}.preview-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:flex-start}.preview-header>div{flex:1 1 220px;min-width:0}.preview-header h2{margin:4px 0 0;font-size:clamp(1rem,4vw,1.22rem);overflow-wrap:anywhere}.download-actions{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 100%}@media(min-width:640px){.download-actions{flex:0 1 auto;justify-content:flex-end}}.eyebrow{color:#159a8c;font-weight:800;font-size:.8rem;text-transform:uppercase}.download-actions button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 11px;color:#174362;background:#eef7ff;border-color:#c9dfef;font-weight:750;flex:1 1 calc(50% - 4px);justify-content:center}@media(min-width:640px){.download-actions button{flex:0 1 auto}}.download-actions button:disabled{opacity:.55;cursor:not-allowed}.kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.kpi{min-height:88px;display:grid;align-content:center;gap:8px;padding:14px;border:1px solid #d8e6f3;border-left:4px solid #1267a7;border-radius:8px;background:#f7fbff}.kpi span{color:#63748a;font-size:.82rem;font-weight:700;display:inline-flex;align-items:center;gap:4px}.tab-description{margin:4px 0 0;color:#63748a;font-size:.84rem;font-weight:500}.help-tip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:2px;color:#2563eb;cursor:help;vertical-align:middle}.help-tip svg{width:14px;height:14px}.help-tip-popover{position:fixed;z-index:9999;width:max-content;max-width:260px;padding:8px 10px;border-radius:8px;background:#10253a;color:#f8fbff;font-size:.75rem;font-weight:500;line-height:1.4;box-shadow:0 8px 24px #10253a2e;pointer-events:none}.table-block th .help-tip,.object-panel span .help-tip{margin-left:4px}.kpi strong{font-size:1.45rem;color:#10253a}.snapshot-info{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 14px}.snapshot-info span,.snapshot-info strong{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:999px;font-size:.8rem}.snapshot-info span{color:#526b82;background:#f4f8fc;border:1px solid #d8e6f3}.snapshot-info strong{color:#0e5d91;background:#e7f4ff;border:1px solid #b9d8ef}.analysis-panel,.table-block,.object-panel{box-shadow:none;padding:16px;margin-top:14px}.analysis-panel{border-color:#bfe3dd;background:#f3fffd}.analysis-panel.error{border-color:#fed7aa;background:#fff7ed}.analysis-panel pre{white-space:pre-wrap;margin:12px 0 0;color:#23384d;line-height:1.55;font-family:inherit}.analysis-body{margin-top:12px;color:#23384d;line-height:1.6}.analysis-body h3,.analysis-body h4,.analysis-body h5{margin:14px 0 8px;color:#10253a}.analysis-body h3{font-size:1.15rem}.analysis-body h4{font-size:1rem}.analysis-body h5{font-size:.92rem}.analysis-body p{margin:0 0 8px}.analysis-bullet{padding-left:10px;border-left:3px solid #2563eb}.analysis-spacer{height:6px}.ai-list{margin:0 0 10px;padding-left:1.2rem;display:grid;gap:6px}.ai-list li{line-height:1.55}.ai-list-ordered{list-style:decimal}.ai-callout{margin:10px 0 12px;padding:12px 14px;border-left:4px solid #2563eb;border-radius:0 8px 8px 0;background:#f4f8ff}.ai-callout-warn{border-left-color:#ea580c;background:#fff7ed}.ai-callout p{margin:0 0 6px}.ai-callout p:last-child{margin-bottom:0}.ai-code{font-family:IBM Plex Mono,Consolas,monospace;font-size:.82rem;padding:1px 6px;border-radius:4px;background:#e8eef5;color:#0f2740;word-break:break-all}.ai-h4{margin-top:16px;padding-bottom:4px;border-bottom:1px solid #d8e6f3}.ai-h4-alert{color:#9a3412;border-bottom-color:#fdba74}.ai-h6{margin:10px 0 6px;font-size:.88rem;color:#334155}.ai-divider{border:0;border-top:1px dashed #cbd5e1;margin:12px 0}.ai-status-chip,.ai-meta{display:block;margin-top:4px;font-size:.78rem;color:#63748a;font-weight:600}.metric-sections{display:grid;gap:14px}.table-block h3,.object-panel h3{margin:0 0 12px;font-size:1rem}.table-description{margin:0 0 10px;color:#5b6778;font-size:.86rem;line-height:1.45}.metric-legend{margin-top:10px;color:#5b6778;font-size:.82rem}.metric-legend summary{cursor:pointer;font-weight:600;color:#334155}.metric-legend ul{margin:8px 0 0;padding-left:18px}.metric-legend li+li{margin-top:6px}.management-guide{margin-bottom:14px;padding:14px 16px;border:1px solid #dbe5ef;border-radius:12px;background:#f8fbff}.management-guide h3{margin:0 0 10px}.guide-section{margin-top:10px;padding-top:8px;border-top:1px solid #e2ebf4}.guide-section summary{cursor:pointer;font-weight:600;color:#1e293b}.guide-metrics{margin:8px 0 0;padding-left:18px}.guide-metrics li+li{margin-top:8px}.guide-example{margin:4px 0 0;color:#64748b;font-size:.84rem}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:620px}th,td{text-align:left;padding:10px 9px;border-bottom:1px solid #e2ebf4;font-size:.86rem}th{color:#35546c;background:#f1f7fd;font-weight:800}td{color:#283d52}.object-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.object-grid div{min-height:66px;display:grid;align-content:center;gap:5px;padding:11px;border-radius:6px;background:#f7fbff;border:1px solid #d8e6f3}.object-grid span{color:#65788c;font-size:.78rem}.object-grid strong{color:#1a334b}.card-dossier{padding:16px;margin-top:14px;border:1px solid #dbe5ef;border-radius:8px;background:#fff;box-shadow:none}.card-dossier h3{margin:0 0 12px;font-size:1rem}.card-dossier-list{display:grid;gap:8px}.card-detail{border:1px solid #d8e6f3;border-radius:8px;background:#f8fbff;overflow:hidden}.card-detail summary{min-height:48px;display:grid;grid-template-columns:minmax(54px,auto) minmax(180px,1fr) minmax(120px,auto) auto auto;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none}.card-detail summary::-webkit-details-marker{display:none}.card-index{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:28px;padding:4px 8px;border-radius:999px;color:#0e5d91;background:#e7f4ff;border:1px solid #b9d8ef;font-weight:800;font-size:.82rem}.card-title{min-width:0;color:#17334d;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.card-meta{color:#64748b;font-size:.78rem;line-height:1.35;text-align:right}.card-link{width:30px;height:30px;display:inline-grid;place-items:center;border:1px solid #cbdced;border-radius:6px;color:#1d638f;background:#fff}.card-chevron{color:#60758b;transition:transform .15s ease}.card-detail[open] .card-chevron{transform:rotate(180deg)}.card-detail-body{display:grid;gap:12px;padding:0 12px 12px}.card-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.card-facts div{min-height:58px;display:grid;align-content:center;gap:4px;padding:9px;border-radius:6px;background:#fff;border:1px solid #dce8f3}.card-facts span{color:#65788c;font-size:.76rem}.card-facts strong{color:#17334d;font-size:.88rem;overflow-wrap:anywhere}.card-notes{display:grid;gap:8px}.card-notes p,.return-list p{margin:0;color:#334155;line-height:1.45;overflow-wrap:anywhere}.card-notes strong{display:block;margin-bottom:3px;color:#526b82;font-size:.78rem}.mini-table-scroll{overflow-x:auto}.mini-table{min-width:480px;background:#fff}.mini-table th,.mini-table td{padding:8px;font-size:.8rem}.return-list{display:grid;gap:8px}.return-list div{display:grid;gap:4px;padding:10px;border-radius:6px;background:#fffaf2;border:1px solid #f2ddbd}.return-list strong{color:#7c4a03}.return-list span{color:#8a6a3e;font-size:.78rem}.empty-state{min-height:420px;display:grid;place-items:center;align-content:center;gap:12px;color:#63748a}.history-list{display:flex;flex-direction:column;gap:8px;padding:10px;overflow-y:auto}.history-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;padding:12px;text-align:left;background:#f7fbff;border:1px solid #d8e6f3;border-radius:10px;cursor:pointer}.history-item-info{display:grid;gap:6px;min-width:0}.history-item-delete{display:inline-flex;align-items:center;justify-content:center;padding:6px;border:1px solid transparent;border-radius:6px;color:#b23b3b;background:transparent;cursor:pointer;opacity:.65}.history-item-delete:hover{opacity:1;background:#fdeaea;border-color:#f0c2c2}.ghost-btn{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:5px 9px;font-size:.76rem;font-weight:600;border-radius:6px;border:1px solid #d8e6f3;background:#fff;color:#4a6076;cursor:pointer}.ghost-btn.danger{color:#b23b3b;border-color:#f0c2c2}.ghost-btn.danger:hover{background:#fdeaea}.history-item.active{background:#e8f5ff;border-color:#8fc3ec}.history-item strong{color:#1b354c;font-size:.86rem;line-height:1.35}.history-item span{color:#6e8093;font-size:.78rem}.loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;background:#eff6fcbd;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.loading-box{display:inline-flex;align-items:center;gap:12px;padding:16px 18px;color:#123e60;background:#fff;border:1px solid #cfe0ef;border-radius:8px;box-shadow:0 22px 60px #12365524;font-weight:800}.spin{animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:960px){.workspace{grid-template-columns:minmax(300px,380px) minmax(0,1fr)}.tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:visible}.tab{min-width:0;white-space:normal}}@media(min-width:1400px){.workspace{grid-template-columns:minmax(320px,400px) minmax(0,1fr)}}@media(max-width:1399px){.kpi-strip,.object-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.app-shell{padding:12px}.topbar{align-items:flex-start}.form-grid,.kpi-strip,.object-grid,.card-facts{grid-template-columns:1fr}.card-detail summary{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"index title" "meta meta" "link chevron"}.card-index{grid-area:index}.card-title{grid-area:title}.card-meta{grid-area:meta;text-align:left}.card-link{grid-area:link}.card-chevron{grid-area:chevron;justify-self:end}.report-form,.report-preview{padding:14px}}@media(max-width:520px){.app-shell{padding:10px}.topbar-actions{width:100%;justify-content:space-between}.user-chip{max-width:none;flex:1 1 auto}.metric-picker,.segmented-field,.inline-add{grid-template-columns:1fr}.inline-add button{min-height:40px}.ghost-btn{width:100%;margin-left:0;margin-top:6px;justify-content:center}.panel-title.compact{flex-direction:column;align-items:stretch}.history-trigger-label{display:none}.history-dropdown{right:0;left:auto;width:min(420px,calc(100vw - 20px))}.card-detail summary{grid-template-columns:1fr;grid-template-areas:"index" "title" "meta" "link" "chevron"}.card-link,.card-chevron{justify-self:start}.card-facts{grid-template-columns:1fr}.history-item{align-items:flex-start}.history-item-info strong{overflow-wrap:anywhere}th,td{padding:8px 6px;font-size:.8rem}table{min-width:520px}.mini-table{min-width:420px}}@media print{body{background:#fff}.topbar,.tabs,.report-form,.history-menu,.download-actions,.loading-overlay,.app-alert{display:none!important}.app-shell{padding:0}.workspace{display:block}.report-preview{border:0;box-shadow:none;padding:0}.analysis-panel,.table-block,.object-panel,.card-dossier,.kpi{break-inside:avoid;box-shadow:none}table{min-width:0}}
