.prof-report-launch{margin-top:6px;position:relative;}
.prof-report-launch .prof-report-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8;display:inline-block;box-shadow:0 0 0 4px rgba(148,163,184,.12);}
.prof-report-launch.is-ready .prof-report-dot{background:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12);}

.prof-report-dialog{width:min(1120px,calc(100vw - 28px));max-height:min(900px,calc(100vh - 28px));border:0;border-radius:18px;padding:0;background:#f4f6fa;color:#202632;box-shadow:0 24px 70px rgba(24,34,79,.28);overflow:hidden;}
.prof-report-dialog::backdrop{background:rgba(20,27,54,.55);backdrop-filter:blur(2px);}
.prof-report-shell{display:flex;flex-direction:column;max-height:min(900px,calc(100vh - 28px));}
.prof-report-head{display:flex;align-items:center;gap:12px;padding:15px 17px;background:#fff;border-bottom:1px solid #e4e8f0;}
.prof-report-head-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#1e2a78;font-size:1.05rem;flex:0 0 auto;}
.prof-report-head-copy{min-width:0;flex:1;}
.prof-report-title{font-weight:800;color:#17225e;font-size:1rem;}
.prof-report-subtitle{font-size:.78rem;color:#687386;margin-top:1px;}
.prof-report-close{width:36px;height:36px;border:1px solid #e1e5ee;border-radius:10px;background:#fff;color:#596273;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.prof-report-close:hover{background:#f7f8fb;color:#1e2a78;}
.prof-report-body{padding:14px;overflow:auto;}
.prof-report-config{background:#fff;border:1px solid #e1e6ef;border-radius:14px;padding:13px;margin-bottom:12px;}
.prof-report-config-title{font-size:.82rem;font-weight:800;color:#1e2a78;margin-bottom:9px;display:flex;align-items:center;gap:7px;}
.prof-report-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px;}
.prof-report-field{display:flex;flex-direction:column;gap:4px;min-width:0;}
.prof-report-field.wide{grid-column:1/-1;}
.prof-report-field span{font-size:.71rem;font-weight:700;color:#5e687a;}
.prof-report-field input,.prof-report-field textarea{width:100%;border:1px solid #dfe4ed;border-radius:9px;background:#fff;padding:8px 9px;color:#202632;font-size:.82rem;outline:none;}
.prof-report-field textarea{min-height:62px;resize:vertical;}
.prof-report-field input:focus,.prof-report-field textarea:focus{border-color:#78a8ff;box-shadow:0 0 0 3px rgba(66,133,244,.10);}
.prof-report-config-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;}
.prof-report-primary,.prof-report-secondary{border:0;border-radius:10px;padding:9px 13px;font-weight:700;font-size:.8rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.prof-report-primary{background:#1e2a78;color:#fff;}
.prof-report-primary:hover{background:#17215e;}
.prof-report-primary:disabled{opacity:.55;cursor:not-allowed;}
.prof-report-secondary{background:#eef2f7;color:#34405a;border:1px solid #dde3ec;}
.prof-report-secondary:hover{background:#e7ecf3;}
.prof-report-output{min-height:180px;}
.prof-report-empty,.prof-report-loading,.prof-report-error{background:#fff;border:1px solid #e1e6ef;border-radius:14px;padding:24px;text-align:center;color:#697386;font-size:.83rem;}
.prof-report-loading i{font-size:1.25rem;color:#1e2a78;margin-bottom:8px;}
.prof-report-error{border-color:#f2c6cc;background:#fff8f8;color:#9f2736;}
.prof-report-toolbar{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px;position:sticky;top:-14px;z-index:4;background:#f4f6fa;padding:10px 0 7px;}
.prof-report-toolbar button{border:1px solid #dce2eb;background:#fff;color:#253253;border-radius:9px;padding:8px 10px;font-size:.76rem;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:6px;}
.prof-report-toolbar button:hover{border-color:#9fb1dc;background:#f8faff;}
.prof-report-preview{background:#fff;border:1px solid #dde3ec;border-radius:14px;overflow:hidden;box-shadow:0 6px 20px rgba(30,42,120,.06);}
.prof-report-preview .rpt-page{padding:24px;}
.prof-report-preview .rpt-cover{background:linear-gradient(135deg,#17225e,#263996);color:#fff;padding:28px;border-radius:0;}
.prof-report-preview .rpt-cover h1{font-size:1.65rem;line-height:1.15;margin:0 0 8px;}
.prof-report-preview .rpt-cover p{margin:0;color:#dce5ff;font-size:.86rem;}
.rpt-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:18px;}
.rpt-meta-card{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:9px;}
.rpt-meta-card span{display:block;font-size:.66rem;color:#cdd8ff;text-transform:uppercase;letter-spacing:.04em;}
.rpt-meta-card strong{display:block;font-size:.82rem;margin-top:2px;word-break:break-word;}
.rpt-section{padding:20px 24px;border-top:1px solid #e7eaf0;}
.rpt-section h2{font-size:1rem;color:#18245f;margin:0 0 10px;display:flex;align-items:center;gap:7px;}
.rpt-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.rpt-kpi{border:1px solid #e2e6ed;border-radius:10px;padding:10px;background:#fafbfe;}
.rpt-kpi span{font-size:.67rem;color:#6e7787;display:block;}
.rpt-kpi strong{font-size:1rem;color:#1e2a78;display:block;margin-top:2px;}
.rpt-floor{border:1px solid #e1e6ef;border-radius:12px;overflow:hidden;margin-top:12px;break-inside:avoid;}
.rpt-floor-head{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:#f6f8fc;border-bottom:1px solid #e4e8ef;}
.rpt-floor-head strong{color:#1d286b;}
.rpt-floor-head span{font-size:.72rem;color:#667085;text-align:right;}
.rpt-floor-body{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(280px,1fr);gap:12px;padding:12px;}
.rpt-floor-visuals{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:8px;align-items:start;}
.rpt-floor-map,.rpt-floor-3d{background:#eef1f5;border:1px solid #e0e4eb;border-radius:9px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.rpt-floor-map{min-height:210px;}
.rpt-floor-3d{min-height:105px;align-self:start;}
.rpt-floor-map img,.rpt-floor-3d img{display:block;max-width:100%;height:auto;}
.rpt-floor-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-content:start;}
.rpt-stat{padding:8px;border:1px solid #e6e9ef;border-radius:8px;}
.rpt-stat span{display:block;color:#6b7280;font-size:.66rem;}
.rpt-stat strong{display:block;color:#2a3350;font-size:.83rem;margin-top:2px;}
.rpt-table-wrap{overflow:auto;border:1px solid #e1e6ed;border-radius:10px;}
.rpt-table{width:100%;border-collapse:collapse;font-size:.72rem;}
.rpt-table th{background:#f4f6fa;color:#4c5871;text-align:left;padding:8px;border-bottom:1px solid #dfe4ec;white-space:nowrap;}
.rpt-table td{padding:8px;border-bottom:1px solid #edf0f4;vertical-align:top;}
.rpt-table tr:last-child td{border-bottom:0;}
.rpt-badge{display:inline-block;border-radius:999px;padding:3px 7px;font-size:.64rem;font-weight:800;background:#eef2ff;color:#33479d;}
.rpt-badge.high,.rpt-badge.critical{background:#ffe9ec;color:#a6293c;}
.rpt-badge.medium{background:#fff4d8;color:#8a6300;}
.rpt-badge.low{background:#edf7f0;color:#267044;}
.rpt-issue{border:1px solid #e5e8ee;border-radius:9px;padding:9px;margin-bottom:7px;break-inside:avoid;}
.rpt-issue-top{display:flex;gap:7px;align-items:center;margin-bottom:4px;}
.rpt-issue strong{font-size:.78rem;color:#2b3348;}
.rpt-issue p{font-size:.71rem;color:#606a7a;margin:3px 0;}
.rpt-issue .action{color:#1e2a78;}
.rpt-note{font-size:.7rem;color:#667085;background:#f7f8fb;border-radius:8px;padding:9px;margin-top:10px;}
.rpt-opt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.rpt-opt-card{border:1px solid #e1e5ec;border-radius:10px;padding:10px;}
.rpt-opt-card h3{font-size:.79rem;color:#1e2a78;margin:0 0 5px;}
.rpt-opt-card p{font-size:.7rem;color:#626d7e;margin:2px 0;}
.rpt-footer{padding:13px 24px;background:#f6f7fa;color:#737c8c;font-size:.66rem;border-top:1px solid #e2e6ed;}

@media (max-width:760px){
  .prof-report-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px);border-radius:13px;}
  .prof-report-shell{max-height:calc(100vh - 12px);}
  .prof-report-body{padding:9px;}
  .prof-report-form-grid{grid-template-columns:1fr;}
  .prof-report-field.wide{grid-column:auto;}
  .rpt-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rpt-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rpt-floor-body{grid-template-columns:1fr;}
  .rpt-floor-visuals{grid-template-columns:1fr;}
  .rpt-floor-3d{max-width:240px;}
  .rpt-opt-grid{grid-template-columns:1fr;}
  .prof-report-preview .rpt-page,.rpt-section{padding-left:13px;padding-right:13px;}
}
.prof-report-toolbar button:disabled{opacity:.45;cursor:not-allowed;background:#f4f5f7;}

 
.prof-report-head{cursor:move;touch-action:none;user-select:none;}
.prof-report-head button,.prof-report-head input,.prof-report-head a{user-select:auto;}
.prof-report-dialog.is-user-positioned{position:fixed;margin:0;right:auto;bottom:auto;}
.prof-report-dialog.is-dragging{user-select:none;box-shadow:0 30px 80px rgba(24,34,79,.36);}
@media(max-width:760px){.prof-report-head{cursor:default;}.prof-report-dialog.is-user-positioned{position:relative;margin:auto;left:auto!important;top:auto!important;}}

 
.prof-report-dialog:not(.is-user-positioned){position:fixed;inset:0;margin:auto;}

 
.prof-report-footer{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 14px;background:#fff;border-top:1px solid #e4e8f0;flex:0 0 auto;
}
.prof-report-footer-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;}
.prof-report-footer button{white-space:nowrap;}
.prof-report-footer button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.15);}
.prof-report-done{margin-left:auto;}
.prof-report-pdf-busy i{animation:profPdfSpin 1s linear infinite;}
@keyframes profPdfSpin{to{transform:rotate(360deg)}}
@media(max-width:760px){
  .prof-report-footer{align-items:stretch;flex-direction:column;gap:8px;padding:9px;}
  .prof-report-footer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .prof-report-footer-actions button,.prof-report-done{width:100%;min-height:40px;}
  .prof-report-done{margin-left:0;}
}
