:root{--navy:#1d3347;--navy2:#27465f;--teal:#127c75;--teal2:#0f6b65;--bg:#f4f7fa;--surface:#fff;--ink:#172b3a;--muted:#647786;--line:#dce5eb;--soft:#eaf2f5;--danger:#ac3939;--success:#17754f;--shadow:0 8px 30px rgba(20,49,70,.07);--radius:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #74b8cf;outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}.topbar{height:76px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(14px,3vw,34px);position:sticky;top:0;z-index:10;box-shadow:0 3px 14px #112a3c26}.brand{display:flex;align-items:center;gap:12px}.brand img{border-radius:10px}.brand strong{display:block;font-size:15px;letter-spacing:.01em;line-height:1.15}.brand-copy{min-width:0}.brand-monogram{display:inline-block;margin-left:5px;padding:3px 6px;border:1px solid #7d9bac;border-radius:5px;color:#fff;font-size:10px;vertical-align:2px;letter-spacing:.08em}.brand small{display:block;margin-top:3px;color:#c4d4de;font-size:12px}.brand .brand-credit{font-size:10px;color:#93d4cd;letter-spacing:.03em}.sidebar-credit{display:flex;align-items:center;gap:9px;padding:12px 13px;margin-top:12px;border:1px solid #dbe8eb;border-radius:12px;background:#f8fbfc}.sidebar-credit b{font-size:13px;letter-spacing:.12em;color:#127c75}.sidebar-credit span{font-size:10px;line-height:1.35;color:#647786}.brand small{display:block;margin-top:3px;color:#c4d4de;font-size:12px}.app-shell{min-height:calc(100vh - 76px);display:grid;grid-template-columns:226px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:22px 13px;display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:11px;background:transparent;color:#40586a;font-size:14px;text-align:left;font-weight:600}.nav-item span{width:23px;text-align:center;font-size:19px}.nav-item:hover{background:#f1f6f8}.nav-item.active{background:#e6f4f2;color:var(--teal2)}.sidebar-note{margin-top:auto;background:#f2f6f8;border:1px solid #e2ebef;padding:13px;border-radius:12px;font-size:12px;color:var(--muted);line-height:1.5}.sidebar-note strong{color:var(--ink)}.sidebar-note p{margin:5px 0 0}.main-content{padding:30px clamp(15px,3vw,38px) 78px;max-width:1550px;width:100%;margin:0 auto;min-width:0}.view{display:none}.view.active{display:block}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-heading h1{font-size:clamp(25px,3vw,33px);letter-spacing:-.03em;margin:4px 0 8px;line-height:1.15}.page-heading p{margin:0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:var(--teal);margin:0 0 4px}.muted{color:var(--muted)}.small{font-size:12px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:18px;box-shadow:var(--shadow)}.card h2{margin:0 0 15px;font-size:19px}.card h3{margin:0 0 8px;font-size:16px}.card p{line-height:1.55}.primary,.secondary,.danger-outline,.text-button{padding:10px 15px;border-radius:10px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,transform .15s}.primary{background:var(--teal);color:white}.primary:hover{background:var(--teal2)}.secondary{background:#edf3f6;color:#25465b;border:1px solid #d5e1e8}.secondary:hover{background:#e1edf2}.danger-outline{background:#fff5f5;color:var(--danger);border:1px solid #edcaca}.text-button{background:transparent;color:var(--teal2);text-decoration:underline;padding:9px}.top-action{background:#1e9c8e;color:#fff}.top-action span{font-size:19px;line-height:1}.big-button{min-height:64px;font-size:15px;flex:1}.capture-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 17px}.mode-option{display:flex;align-items:center;gap:13px;position:relative;border:1px solid var(--line);border-radius:14px;background:white;padding:15px;cursor:pointer}.mode-option:has(input:checked){border:2px solid var(--teal);background:#f0faf8;padding:14px}.mode-option input{accent-color:var(--teal);width:17px;height:17px}.mode-icon{font-size:24px}.mode-option b,.mode-option small{display:block}.mode-option b{font-size:14px}.mode-option small{font-size:12px;color:var(--muted);margin-top:4px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#375062;min-width:0}.field input,.field select,.field textarea{width:100%;border:1px solid #cedbe3;background:#fff;border-radius:9px;color:var(--ink);padding:11px 12px;font-weight:400;font-size:14px;min-width:0}.field textarea{resize:vertical}.field input::placeholder,.field textarea::placeholder{color:#98a8b3}.span-2{grid-column:span 2}.required{color:#c04c43}.form-card{padding:24px}.capture-actions{display:flex;gap:12px;margin-top:21px}.hint{font-size:12px;line-height:1.5;color:var(--muted);margin:13px 0 0}.toolbar,.section-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.toolbar{margin-top:17px}.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.small-button{padding:8px 11px;font-size:12px}.hidden{display:none!important}.plan-capture-box{border-top:1px solid var(--line);margin-top:22px;padding-top:19px}.plan-capture-box h3{margin:0 0 4px}.plan-stage{position:relative;border:1px dashed #c2d2dc;border-radius:13px;background:#f7fafb;overflow:hidden;margin-top:12px;min-height:95px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}.plan-stage img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}.plan-stage.can-mark{cursor:crosshair}.plan-stage .pin{position:absolute;width:19px;height:19px;border-radius:50%;transform:translate(-50%,-50%);background:#c33c3c;border:1.5px solid white;color:white;font-size:8px;line-height:1;font-weight:800;box-shadow:0 1px 4px #0003;display:flex;align-items:center;justify-content:center}.plan-stage .pin span{transform:none}.plan-stage .pin.selected{background:#0f8a7b;outline:3px solid #0f8a7b44}.plan-stage .pin.current-pin{z-index:3;pointer-events:none;font-size:9px;border-radius:50%;transform:translate(-50%,-50%);background:#147cdb;width:20px;height:20px}.empty-state{padding:24px;text-align:center}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px}.photo-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:var(--shadow);min-width:0}.photo-image-wrap{position:relative;background:#e6edf1;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden}.photo-image-wrap img{width:100%;height:100%;object-fit:cover}.photo-select{position:absolute;top:9px;left:9px;width:21px;height:21px;accent-color:var(--teal);z-index:2}.sync-pill{position:absolute;right:8px;top:8px;border-radius:99px;padding:4px 7px;background:#fff;color:#81521a;font-size:10px;font-weight:800;box-shadow:0 1px 5px #0002}.sync-pill.ok{color:#156d4f}.photo-card-body{padding:13px}.photo-card h3{margin:0 0 8px;font-size:14px;line-height:1.35}.photo-card-meta{font-size:11px;line-height:1.55;color:var(--muted);min-height:34px}.photo-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.photo-card-actions button{font-size:11px;padding:7px 9px}.empty-panel{border:1px dashed #cbd9e1;background:#fff;border-radius:15px;text-align:center;padding:44px 20px;color:var(--muted)}.empty-panel span{font-size:30px}.empty-panel h3{color:var(--ink);margin:12px 0 6px}.empty-panel p{font-size:13px;line-height:1.5;max-width:490px;margin:0 auto 17px}.filters-card{padding:18px}.plan-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:16px}.plan-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.plan-card img{width:100%;max-height:300px;object-fit:contain;background:#f3f6f8;display:block}.plan-card-body{padding:13px}.plan-card-body h3{margin:0 0 5px;font-size:15px}.plan-card-body p{margin:4px 0;font-size:12px;color:var(--muted)}.notice{border:1px solid #d4e5e9;background:#eef7f7;border-radius:12px;padding:15px 17px;font-size:13px;line-height:1.55;margin-bottom:17px;color:#375666}.notice b{color:var(--navy)}.role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.role-card{background:white;border:1px solid var(--line);padding:16px;border-radius:13px}.role-card b{font-size:13px}.role-card p{font-size:12px;color:var(--muted);line-height:1.5;margin:8px 0 0}.members-list{display:flex;flex-direction:column;gap:8px}.member-row,.project-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:10px;padding:12px}.member-row b,.project-row b{font-size:13px}.member-row small,.project-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.pill{padding:4px 8px;background:#e9f3f5;color:#315669;border-radius:99px;font-size:10px;font-weight:800;white-space:nowrap}.subcard{padding:16px;background:#f1f8f7;border:1px solid #cfe6df;border-radius:13px;margin-bottom:17px}.subcard p{font-size:13px}.status-dot{width:11px;height:11px;border-radius:50%;background:#c2cbd1;display:inline-block}.status-dot.ok{background:#19a36f;box-shadow:0 0 0 4px #19a36f1e}.status-dot.pending{background:#d89b34}.connection-detail{background:#f6f9fa;border-radius:10px;padding:12px;font-size:12px;line-height:1.7;word-break:break-word}.report-plan-selector{border:1px solid #cfe3e4;background:#f7fbfb;border-radius:12px;padding:15px;margin:15px 0}.report-plan-selector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:11px}.report-plan-selector-head h3{margin:0 0 4px;font-size:15px}.report-plan-selector-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.report-plan-selector-actions{display:flex;gap:6px;flex-wrap:wrap}.report-plan-level-field{display:block;max-width:360px;margin:0 0 12px}.report-plan-level-field select{margin-top:5px}.report-plan-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:8px}.report-plan-choice{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 11px;color:var(--ink);font-size:13px;font-weight:600;line-height:1.35;min-width:0}.report-plan-choice input{accent-color:var(--teal);margin-top:2px;flex:0 0 auto}.report-plan-choice-copy{min-width:0;overflow-wrap:anywhere}.report-plan-choice small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px}.report-plan-selector-hint{display:block;color:var(--muted);font-size:11px;margin:9px 0 0;line-height:1.4}.report-options{display:grid;gap:10px;margin:19px 0;padding:15px;background:#f5f8fa;border-radius:10px}.report-options label{display:flex;gap:9px;align-items:flex-start;font-size:13px}.report-options input{accent-color:var(--teal);margin-top:3px}.report-preview{background:#fff;border:1px solid var(--line);border-radius:12px;padding:clamp(18px,4vw,40px);box-shadow:var(--shadow);margin-top:18px}.report-preview h1{font-size:24px;margin:0 0 10px}.report-preview .preview-plan{max-width:100%;display:block;margin:15px auto;width:100%;border:1px solid var(--line)}.preview-photo{border-top:1px solid var(--line);padding:18px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:18px;align-items:start}.preview-photo img{width:100%;max-height:360px;object-fit:contain;background:#f4f6f7}.preview-photo h3{margin:0 0 7px;font-size:16px}.preview-photo p{font-size:13px;line-height:1.5;white-space:pre-wrap}.voice-input{display:flex;align-items:stretch;gap:7px}.voice-input input,.voice-input textarea{flex:1;min-width:0}.mic-button{width:45px;flex:0 0 45px;border-radius:9px;background:#eaf4f4;color:#0c7770;border:1px solid #cde4e2;font-size:19px}.mic-button.recording{background:#ffe8e8;color:#b32121;border-color:#e8adad;animation:pulse 1s infinite}@keyframes pulse{50%{box-shadow:0 0 0 5px #d947471b}}.dialog{border:0;padding:0;border-radius:16px;width:min(940px,calc(100% - 24px));max-width:940px;max-height:92vh;overflow:auto;box-shadow:0 20px 70px #142c3b4f}.dialog::backdrop{background:#0d2434a3;backdrop-filter:blur(2px)}.dialog-head{position:sticky;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:19px 22px;background:white;border-bottom:1px solid var(--line);z-index:2}.dialog-head h2{margin:2px 0 0;font-size:20px}.icon-button{width:36px;height:36px;border-radius:9px;background:#eff4f6;color:#354f60;font-size:18px}.dialog form{padding:20px 22px}.photo-edit-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px}.photo-edit-image{background:#edf1f4;border-radius:12px;overflow:hidden;display:flex;align-items:flex-start;justify-content:center;max-height:510px}.photo-edit-image img{width:100%;height:100%;max-height:510px;object-fit:contain}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.photo-fields{align-content:start}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,25px);opacity:0;pointer-events:none;z-index:99;background:#173348;color:#fff;box-shadow:0 8px 25px #0a1d2b3c;padding:12px 17px;border-radius:11px;font-size:13px;max-width:min(550px,calc(100vw - 28px));transition:all .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.bad{background:#8e302b}.mobile-nav{display:none}code{background:#edf2f5;padding:2px 4px;border-radius:4px;font-size:12px}.photo-detail-meta{font-size:13px;line-height:1.8}.detail-hero{width:100%;max-height:60vh;object-fit:contain;background:#eef2f4}.auth-actions{margin-top:15px}.no-break{white-space:nowrap}
@media(max-width:950px){.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{grid-template-columns:190px minmax(0,1fr)}.main-content{padding:25px 18px 90px}.toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%}}
@media(max-width:690px){.topbar{height:70px;padding:0 10px;gap:8px}.brand{gap:8px;min-width:0;flex:1}.brand img{width:31px;height:31px}.brand strong{font-size:11px;letter-spacing:0}.brand-monogram{font-size:8px;padding:2px 4px;margin-left:2px}.brand small{font-size:9px}.brand .brand-credit{font-size:8px}.top-action{padding:8px 10px;white-space:nowrap;font-size:11px}.app-shell{display:block;min-height:calc(100vh - 70px)}.sidebar{display:none}.main-content{padding:21px 13px 97px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:17px}.page-heading h1{font-size:27px}.page-heading .primary{width:100%}.card{padding:16px;border-radius:13px}.capture-mode{gap:8px}.mode-option{padding:11px 8px;gap:7px}.mode-option:has(input:checked){padding:10px 7px}.mode-option b{font-size:12px}.mode-option small{font-size:11px}.mode-icon{font-size:19px}.form-grid{gap:12px}.field input,.field select,.field textarea{font-size:16px;padding:10px}.capture-actions{flex-direction:column}.big-button{width:100%;min-height:55px}.plan-capture-box .section-row{align-items:flex-start;flex-direction:column}.plan-capture-box .section-row .small-button{width:100%}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo-card{border-radius:11px}.photo-image-wrap{aspect-ratio:1/1}.photo-card-body{padding:10px}.photo-card h3{font-size:12px}.photo-card-meta{font-size:10px}.photo-card-actions{gap:5px}.photo-card-actions button{flex:1;padding:7px 5px;font-size:10px}.sync-pill{font-size:9px}.toolbar-actions button{flex:1}.toolbar-actions .text-button{flex:1}.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-photo{grid-template-columns:1fr}.dialog{width:calc(100% - 14px);max-height:96vh;border-radius:13px}.dialog-head{padding:15px}.dialog form{padding:15px}.photo-edit-layout{grid-template-columns:1fr}.photo-edit-image{max-height:260px}.photo-edit-image img{max-height:260px}.dialog-actions{position:sticky;bottom:0;background:white}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:grid;grid-template-columns:repeat(7,minmax(56px,1fr));overflow-x:auto;padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 18px #1f425710}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#70818d;background:transparent;padding:5px 1px;border-radius:9px}.mobile-nav button span{font-size:19px;line-height:1}.mobile-nav button small{font-size:10px;font-weight:700}.mobile-nav button.active{color:var(--teal2);background:#e9f5f3}.member-row,.project-row{align-items:flex-start}.filters-card .toolbar-actions{flex-wrap:wrap}.filters-card .toolbar-actions button{flex:1 1 auto}.plan-list{grid-template-columns:1fr}.section-row{align-items:flex-start}.report-preview{padding:16px}.report-preview h1{font-size:20px}}
@media print{.topbar,.sidebar,.mobile-nav,.page-heading,.filters-card,.toolbar,.report-options,.app-shell>.sidebar,.toast{display:none!important}.app-shell{display:block}.main-content{padding:0;max-width:none}.view{display:none!important}#view-reports{display:block!important}#view-reports>.card{display:none}.report-preview{display:block!important;box-shadow:none;border:0;padding:0;margin:0}.preview-photo{break-inside:avoid}.report-preview img{max-width:100%;break-inside:avoid}body{background:white}}

/* Reporte compacto: metadatos compartidos una sola vez. */
.report-common{padding:8px 10px;background:#eef6f5;border-left:3px solid #127c75;font-size:.92em;margin:.6rem 0 1rem}
.photo-meta-compact{font-size:.88em;color:#536475;line-height:1.4;margin:.35rem 0}
.photo-note{font-size:.92em;margin:.25rem 0}

/* Visor de croquis: PDF/imágenes ampliables y con marcas precisas desde el celular. */
.plan-stage{display:block;overflow:visible;min-height:0;padding:0;border-style:solid;background:#f7fafb;color:var(--ink)}
.plan-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding:8px;background:#f0f5f7;border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.plan-tools button{min-width:34px;min-height:32px;padding:6px 10px}
.plan-zoom-readout,.plan-page-readout{font-size:11px;font-weight:800;color:#425c6d;min-width:48px;text-align:center}
.plan-viewport{position:relative;display:block;width:100%;max-height:65vh;min-height:190px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#e6edf1;border-radius:0 0 12px 12px;touch-action:pan-x pan-y}
.plan-image-wrap{position:relative;display:block;line-height:0;min-width:1px;min-height:180px;background:#f7fafb}
.plan-image-wrap>img,.plan-image-wrap>canvas{display:block;max-width:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
.plan-placeholder{min-height:180px;width:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;box-sizing:border-box;white-space:normal;line-height:1.45;color:var(--muted);font-size:13px;background:#f7fafb}
.plan-error{color:#9a352f;background:#fff2f1}
.plan-stage .pin{z-index:3;touch-action:manipulation}
@media(max-width:700px){.plan-tools{justify-content:center}.plan-viewport{max-height:62vh}.plan-stage .pin{width:20px;height:20px;font-size:8px}}

/* Marca Recorrido de Supervisión MCJ */

/* Lista de reportes guardados y gestión de informes MCJ. */
.saved-reports-panel{margin-bottom:20px}
.saved-report-list{display:grid;gap:11px;margin-top:14px}
.saved-report-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:13px;padding:13px;background:#fff}
.saved-report-summary{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.saved-report-icon{flex:0 0 45px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eaf2fb;color:#2264a6;font-size:12px;font-weight:900;letter-spacing:.04em;border:1px solid #d4e2f2}
.saved-report-text{min-width:0}
.saved-report-text h3{font-size:14px;margin:0 0 4px;overflow-wrap:anywhere}
.saved-report-text p{font-size:12px;color:var(--muted);margin:0 0 4px;line-height:1.45}
.saved-report-text small{font-size:11px;color:var(--muted)}
.saved-report-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.saved-report-actions button{font-size:11px;padding:7px 9px}
.empty-inline{display:flex;flex-direction:column;gap:5px;margin-top:14px;border:1px dashed var(--line);background:#f8fafb;border-radius:11px;padding:16px;color:var(--muted);font-size:13px}
.empty-inline b{color:var(--ink)}
.spelling-actions{margin-top:4px}
.spelling-actions .small-button{padding:4px 2px;min-height:auto}
.report-builder-card{scroll-margin-top:14px}
.report-photo-sheet{display:flex;flex-direction:column;gap:12px;margin:18px 0 28px;align-items:stretch}.report-photo-grid{display:grid;gap:12px;align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr))}
.report-photo-sheet[data-per-page="2"] .report-photo-grid{grid-template-columns:1fr}
.report-photo-sheet[data-per-page="3"] .report-photo-grid,.report-photo-sheet[data-per-page="4"] .report-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-photo-sheet .preview-photo{min-width:0;display:grid;grid-template-columns:1fr;gap:7px;border:1px solid var(--line);border-radius:10px;padding:10px;align-content:start;break-inside:avoid;page-break-inside:avoid}
.report-photo-sheet[data-per-page="2"] .preview-photo{grid-template-columns:minmax(0,42%) minmax(0,1fr);align-items:center;padding:12px}
.report-photo-sheet .preview-photo img{max-height:260px;min-width:0;width:100%;object-fit:contain;background:#f4f6f7}
.report-photo-sheet[data-per-page="4"] .preview-photo img{max-height:235px}
.report-photo-sheet[data-per-page="3"] .preview-photo img{max-height:175px}
.report-photo-sheet[data-photo-count="3"] .preview-photo:last-child{grid-column:1/-1;width:calc(50% - 6px);justify-self:center;grid-template-columns:1fr;align-items:start;gap:7px;padding:10px}
.report-photo-sheet[data-per-page="3"][data-photo-count="3"] .preview-photo:last-child img{max-height:175px}
.report-photo-sheet[data-per-page="4"][data-photo-count="3"] .preview-photo:last-child img{max-height:180px}
.report-photo-sheet .preview-photo h3{font-size:13px;line-height:1.35}
.report-photo-sheet .preview-photo p{font-size:11px;line-height:1.4;margin:.25rem 0}
.report-plan-sheet{break-inside:avoid;page-break-inside:avoid}
.report-plan-subtitle{font-size:11px;font-weight:700;color:#526575;margin:-4px 0 8px;line-height:1.35}
@media print{.report-plan-subtitle{font-size:9pt;color:#526575}}
@media(max-width:690px){.saved-report-card{align-items:stretch;flex-direction:column;gap:11px}.saved-report-actions{justify-content:flex-start}.saved-report-actions button{flex:1 1 auto}.report-photo-sheet[data-per-page="2"] .preview-photo{grid-template-columns:1fr}.report-photo-sheet[data-photo-count="3"] .preview-photo:last-child{width:100%;grid-column:1/-1;grid-template-columns:1fr}.report-photo-sheet .preview-photo img{max-height:220px}}
@media print{
  #view-reports>.saved-reports-panel,#view-reports>.report-builder-card,#view-reports>.page-heading{display:none!important}
  #view-reports{display:block!important}
  #view-reports>.report-preview{display:block!important;box-shadow:none;border:0;padding:0;margin:0}
  #reportPreview.hidden{display:block!important}
  .report-plan-sheet{display:flex;flex-direction:column;min-height:205mm;page-break-after:always;break-after:page}
  .report-photo-sheet{display:flex;flex-direction:column;min-height:238mm;margin:0;gap:0;page-break-after:always;break-after:page}.report-photo-grid{display:grid;gap:8px;align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-photo-sheet.report-final-page{page-break-after:auto;break-after:auto}
  .report-photo-sheet[data-per-page="2"] .report-photo-grid{grid-template-columns:1fr}
  .report-photo-sheet[data-per-page="3"] .report-photo-grid,.report-photo-sheet[data-per-page="4"] .report-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-photo-sheet .preview-photo{padding:5px;gap:5px;border-color:#d8e0e5;break-inside:avoid;page-break-inside:avoid}
  .report-photo-sheet[data-per-page="2"] .preview-photo{grid-template-columns:38% 1fr}
  .report-photo-sheet[data-per-page="2"] .preview-photo img{max-height:3.0in}
  .report-photo-sheet[data-per-page="3"] .preview-photo img{max-height:1.55in}
  .report-photo-sheet[data-per-page="4"] .preview-photo img{max-height:1.35in}
  .report-photo-sheet[data-photo-count="3"] .preview-photo:last-child{grid-column:1/-1;width:calc(50% - 4px);justify-self:center;grid-template-columns:1fr;align-items:start;gap:5px;padding:5px}
  .report-photo-sheet[data-per-page="3"][data-photo-count="3"] .preview-photo:last-child img{max-height:1.55in}
  .report-photo-sheet[data-per-page="4"][data-photo-count="3"] .preview-photo:last-child img{max-height:1.35in}
  .report-photo-sheet .preview-photo h3{font-size:10pt;margin:0 0 3px}
  .report-photo-sheet .preview-photo p{font-size:8pt;line-height:1.25;margin:2px 0}
  .report-preview h1{font-size:20pt}
  #reportPreview .report-plan-sheet img.preview-plan{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:8.3in!important;object-fit:contain!important;visibility:visible!important;opacity:1!important}
}


/* Estructura jerárquica MCJ: proyecto > fase > torre > nivel > área. */
.project-create-card{display:grid;gap:12px}
.project-create-card .toolbar{align-items:center;gap:12px;flex-wrap:wrap}
.project-list{display:grid;gap:10px;margin-top:12px}
.hierarchy-project-row{align-items:flex-start;background:#fff;gap:14px;flex-wrap:wrap}
.project-row-info{min-width:180px;flex:1}
.project-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.hierarchy-panel{scroll-margin-top:20px}
.hierarchy-main-head{align-items:flex-start}
.hierarchy-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px 0 16px}
.breadcrumb-button{background:#edf5f6;color:#145e66;border:1px solid #d0e4e4;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:750}
.breadcrumb-separator{color:#7f929f;font-weight:800}
.hierarchy-create-actions{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0 16px}
/* Tarjetas de niveles: ancho mínimo real, nombre en la primera fila y acciones abajo. */
.hierarchy-node-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;align-items:stretch}
.hierarchy-node-card{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-items:start;column-gap:11px;row-gap:12px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px;min-width:0;width:100%}
.hierarchy-node-icon{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;background:#eaf5f4;color:#0f7a74;border-radius:10px;font-size:20px;font-weight:800}
.hierarchy-node-info{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:5px;min-width:0;width:100%;padding-top:2px}
.hierarchy-node-info b{font-size:14px;line-height:1.35;white-space:normal;word-break:normal;overflow-wrap:break-word}
.hierarchy-node-info small,.hierarchy-plan-row small{font-size:11px;line-height:1.45;color:var(--muted)}
.hierarchy-node-actions{grid-column:1 / -1;grid-row:2;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-start;align-items:center;max-width:100%;min-width:0;width:100%}
.hierarchy-node-actions .small-button{padding:7px 9px;font-size:11px;white-space:nowrap;flex:0 1 auto}
.hierarchy-plans-section{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.hierarchy-plan-list{display:grid;gap:8px}
.hierarchy-plan-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);background:#f9fbfc;border-radius:10px;padding:12px}
.hierarchy-plan-row>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.hierarchy-plan-row b{font-size:13px;overflow-wrap:anywhere}
.hierarchy-project-row .danger-outline,.hierarchy-node-actions .danger-outline{color:#a32e2e;border-color:#e5c4c4;background:#fffafa}
@media(max-width:690px){
 .project-create-card .toolbar{align-items:stretch;flex-direction:column}
 .project-create-card .toolbar .primary{width:100%}
 .hierarchy-project-row{flex-direction:column;align-items:stretch}
 .project-actions{justify-content:flex-start;width:100%}
 .project-actions button{flex:1 1 auto}
 .hierarchy-main-head{flex-direction:column}
 .hierarchy-main-head #closeHierarchy{width:100%}
 .hierarchy-node-list{grid-template-columns:1fr}
 .hierarchy-node-card{grid-template-columns:38px minmax(0,1fr)}
 .hierarchy-node-info{min-width:0}
 .hierarchy-node-actions{justify-content:flex-start;width:100%}
 .hierarchy-node-actions .small-button{flex:0 1 auto}
 .hierarchy-plan-row{align-items:flex-start;flex-direction:column}
 .hierarchy-plan-row button{width:100%}
 .mobile-nav{grid-template-columns:repeat(7,minmax(56px,1fr));overflow-x:auto;justify-content:start}
 .mobile-nav button small{font-size:9px}
}

/* Galería de gran volumen: filtros jerárquicos y páginas de resultados. */
.gallery-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.gallery-filter-grid .span-2{grid-column:span 2}
.gallery-selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:17px;padding-top:14px;border-top:1px solid var(--line)}
.gallery-selection-toolbar>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:170px}
.gallery-selected-count{font-size:11px;font-weight:800;color:var(--teal2)}
.gallery-selection-toolbar .toolbar-actions{gap:7px;flex-wrap:wrap}
.gallery-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 14px;margin:14px 0}
.gallery-pagination label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:700}
.gallery-pagination select{border:1px solid var(--line);border-radius:8px;padding:7px;background:#fff;color:var(--ink);font:inherit}
.gallery-pagination .toolbar-actions{display:flex;gap:7px}
.gallery-pagination-bottom{margin-top:16px}
@media(max-width:1050px){.gallery-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:690px){.gallery-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-filter-grid .span-2{grid-column:span 2}.gallery-selection-toolbar{align-items:stretch;flex-direction:column}.gallery-selection-toolbar .toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-selection-toolbar .toolbar-actions button{width:100%;min-width:0}.gallery-pagination{align-items:stretch;gap:10px}.gallery-pagination>.muted{line-height:1.5}.gallery-pagination label{justify-content:space-between}.gallery-pagination .toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-pagination .toolbar-actions button{width:100%}}


/* Leyenda de semáforo impresa y visible bajo cada croquis del reporte. */
.report-issue-line{font-size:12px;color:#526575;margin:0 0 12px}
.report-status-legend{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin:5px 0 4px;padding:8px 10px;border:1px solid #dce5eb;border-radius:8px;background:#f8fafb;font-size:11px;line-height:1.25;break-inside:avoid;page-break-inside:avoid}
.report-status-key{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.report-status-dot{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid #ffffff;box-shadow:0 0 0 1px #00000018;flex:0 0 11px}
.report-point-labels{margin:4px 0 10px;line-height:1.4}
@media print{.report-status-legend{border:1px solid #bfcbd2;background:#fff!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-status-dot{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Enlaces de invitación compartidos */
#inviteLinkUrl{font-size:12px;word-break:break-all;background:#fbfdfd;color:#29495a}
#inviteLinkBox .toolbar-actions{margin-top:12px}

/* Marca configurable por proyecto: el logotipo sustituye cualquier marca genérica en los informes. */
.project-branding-panel{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:20px;align-items:center;padding:16px;margin:8px 0 18px;border:1px solid var(--line);border-radius:13px;background:#f8fbfc}
.project-logo-preview{min-height:118px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #c6d5de;border-radius:10px;background:#fff;overflow:hidden}
.project-logo-preview img{display:block;max-width:100%;max-height:110px;width:auto;height:auto;object-fit:contain}
.project-logo-preview span{font-size:12px;color:var(--muted);text-align:center}
.project-branding-content h3{margin:0 0 4px;font-size:15px}
.project-branding-content p{margin:4px 0 10px}
.project-branding-content .hint{margin:8px 0 0}
@media(max-width:690px){.project-branding-panel{grid-template-columns:1fr}.project-logo-preview{min-height:100px}.project-logo-preview img{max-height:90px}}

/* Encabezado del informe: solo usa el logotipo específico del proyecto, sin marca MCJ ni lemas genéricos. */
.report-document-header{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);align-items:center;gap:18px;margin:0 0 10px;padding:0 0 12px;border-bottom:2px solid var(--teal);break-inside:avoid;page-break-inside:avoid}
.report-document-header:not(.has-project-logo){grid-template-columns:minmax(0,1fr)}
.report-document-header .report-project-logo{display:block;max-width:145px;max-height:72px;width:auto;height:auto;object-fit:contain;object-position:left center}
.report-document-header h1{font-size:clamp(22px,2.8vw,30px);line-height:1.2;margin:0;color:var(--navy);letter-spacing:-.02em}
.report-custom-footer{display:flex;align-items:center;justify-content:center;text-align:center;min-height:24px;margin-top:24px;padding:8px 0 0;border-top:1px solid var(--line);font-size:10px;font-weight:700;letter-spacing:.035em;color:#526575;line-height:1.3}
@media(max-width:600px){.report-document-header{grid-template-columns:minmax(0,100px) minmax(0,1fr);gap:10px}.report-document-header .report-project-logo{max-width:95px;max-height:58px}.report-document-header h1{font-size:20px}}
@media print{
  @page{size:letter;margin:12mm 12mm 22mm 12mm}
  .report-document-header{grid-template-columns:minmax(0,1.4in) minmax(0,1fr);gap:12pt;margin-bottom:8pt;padding-bottom:8pt;border-bottom:1.5pt solid #127c75}
  .report-document-header:not(.has-project-logo){grid-template-columns:1fr}
  .report-document-header .report-project-logo{max-width:1.35in;max-height:.65in;object-fit:contain}
  .report-document-header h1{font-size:20pt;line-height:1.15}
  .report-issue-line{margin-bottom:10pt;font-size:9pt}
  .report-custom-footer{position:static;left:auto;right:auto;bottom:auto;display:flex;align-items:center;justify-content:center;min-height:7mm;width:100%;flex:0 0 auto;margin-top:auto;margin-bottom:0;padding:2mm 0 0;border-top:.5pt solid #cbd7de;background:#fff;color:#526575;font-size:8pt;letter-spacing:.035em;line-height:1.25;break-inside:avoid;page-break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}


/* Pie de página único para impresión: evita que el pie del croquis salte sobre las fotografías. */
.report-print-footer{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;margin:18px 0 0;padding:8px 0 0;border-top:1px solid var(--line);font-size:10px;font-weight:700;letter-spacing:.035em;color:#526575;line-height:1.3}
@media print{
  @page{size:letter;margin:12mm 12mm 18mm 12mm}
  .report-plan-sheet{display:flex;flex-direction:column;min-height:200mm;padding-bottom:10mm;page-break-after:always;break-after:page;box-sizing:border-box}
  .report-photo-sheet{display:flex;flex-direction:column;min-height:225mm;padding-bottom:10mm;margin:0;gap:0;page-break-after:always;break-after:page;box-sizing:border-box}
  .report-photo-sheet.report-final-page{page-break-after:auto;break-after:auto}
  .report-custom-footer.report-print-footer{display:flex!important;position:fixed!important;left:0;right:0;bottom:0;width:100%;min-height:7mm;margin:0!important;padding:2mm 0 0!important;border-top:.5pt solid #cbd7de;background:#fff;color:#526575;font-size:8pt;letter-spacing:.035em;line-height:1.25;z-index:999;break-inside:avoid;page-break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* Correccion de paginacion del informe: mantener encabezado, croquis y leyenda juntos; evitar hoja final vacia. */
@media print {
  @page { size: letter; margin: 10mm 12mm 16mm 12mm; }

  #reportPreview {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #reportPreview > .report-document-header {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    margin-bottom: 5pt !important;
  }
  #reportPreview > .report-issue-line {
    margin: 0 0 5pt !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  #reportPreview .report-plan-sheet {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 2mm !important;
    box-sizing: border-box !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
  }
  #reportPreview .report-plan-sheet h2 {
    font-size: 15pt !important;
    line-height: 1.15 !important;
    margin: 0 0 3pt !important;
  }
  #reportPreview .report-plan-sheet .report-plan-subtitle {
    font-size: 8.5pt !important;
    margin: 0 0 3pt !important;
  }
  #reportPreview .report-plan-sheet img.preview-plan {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 5.65in !important;
    margin: 3pt auto 4pt !important;
    object-fit: contain !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #reportPreview .report-plan-sheet .report-status-legend {
    margin: 2pt 0 2pt !important;
    padding: 4pt 7pt !important;
    font-size: 8pt !important;
    line-height: 1.15 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  #reportPreview .report-plan-sheet .report-point-labels {
    margin: 0 0 2pt !important;
    font-size: 7.5pt !important;
    line-height: 1.2 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  #reportPreview .report-photo-sheet {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
  }
  /* El footer es un nodo posterior a las hojas de fotos; por eso last-child no detectaba la última hoja. */
  #reportPreview .report-photo-sheet.report-final-page {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  #reportPreview .report-photo-sheet .report-photo-grid {
    gap: 6pt !important;
    align-items: start !important;
  }
  #reportPreview .report-photo-sheet .preview-photo {
    min-width: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  #reportPreview .report-photo-sheet .preview-photo img {
    max-width: 100% !important;
    object-fit: contain !important;
  }

  #reportPreview > .report-custom-footer.report-print-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 6mm !important;
    margin: 0 !important;
    padding: 2mm 0 0 !important;
    border-top: .5pt solid #cbd7de !important;
    background: #fff !important;
    z-index: 999 !important;
  }
}


/* Reportes agrupados: cada croquis va seguido solo por sus propias fotografías. */
.report-plan-report-group{display:block;min-width:0;margin:0 0 22px}
.report-linked-photos-title{font-size:17px;line-height:1.25;color:var(--navy);margin:14px 0 8px;break-after:avoid-page;page-break-after:avoid}
.report-plan-report-group .report-photo-sheet{margin-top:0}
@media print{
  #reportPreview .report-plan-report-group{display:block!important;min-width:0!important;margin:0!important;padding:0!important;break-inside:auto!important;page-break-inside:auto!important}
  #reportPreview .report-linked-photos-title{font-size:12pt!important;line-height:1.15!important;margin:0 0 5pt!important;padding:0!important;break-after:avoid-page!important;page-break-after:avoid!important;break-inside:avoid!important;page-break-inside:avoid!important}
  #reportPreview .report-photo-sheet.report-final-page{page-break-after:auto!important;break-after:auto!important}
  #reportPreview .report-plan-sheet{break-inside:avoid!important;page-break-inside:avoid!important}
}


.report-plan-report-group .report-photo-sheet[data-photo-count="1"] .preview-photo{grid-column:1/-1;width:calc(50% - 6px);justify-self:center}
.report-plan-report-group .report-photo-sheet[data-photo-count="1"] .preview-photo img,
.report-plan-report-group .report-photo-sheet[data-photo-count="2"] .preview-photo img{max-height:230px}
@media print{
  #reportPreview .report-plan-report-group .report-photo-sheet[data-photo-count="1"] .preview-photo{grid-column:1/-1;width:calc(50% - 4px);justify-self:center}
  #reportPreview .report-plan-report-group .report-photo-sheet[data-photo-count="1"] .preview-photo img,
  #reportPreview .report-plan-report-group .report-photo-sheet[data-photo-count="2"] .preview-photo img{max-height:2.1in!important}
}


/* Ajustes integrados MCJ: marcadores visualmente pequeños pero fáciles de tocar. */
.plan-stage .pin{
  width:22px!important;height:22px!important;min-width:22px;min-height:22px;padding:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;
  color:#fff;font-size:7px!important;line-height:1;overflow:visible;isolation:isolate;
}
.plan-stage .pin::before{
  content:"";position:absolute;inset:4px;border-radius:50%;
  background:var(--pin-color,#c33c3c);border:1px solid #fff;
  box-shadow:0 1px 4px #0004;z-index:0;pointer-events:none;
}
.plan-stage .pin span{position:relative;z-index:1;display:block;font-size:7px;line-height:1;text-shadow:0 1px 1px #0004}
.plan-stage .pin.selected::before{background:#0f8a7b;outline:2px solid #0f8a7b44}
.plan-stage .pin.current-pin{pointer-events:none!important}
.plan-stage .pin.current-pin::before{background:#147cdb}
@media(max-width:700px){.plan-stage .pin{width:24px!important;height:24px!important;font-size:7px!important}.plan-stage .pin::before{inset:4px}.plan-stage .pin span{font-size:7px}}

/* Las leyendas de muchos puntos se distribuyen en columnas para que no generen una página casi vacía. */
.report-point-labels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 8px;margin:4px 0 8px;font-size:9px;line-height:1.2;overflow-wrap:anywhere}
.report-point-labels span{display:block;min-width:0}

/* Aprovechamiento de hoja en los reportes, sin estirar ni deformar fotografías o croquis. */
.report-photo-sheet[data-per-page="1"] .report-photo-grid{grid-template-columns:1fr}
.report-photo-sheet[data-per-page="1"] .preview-photo{grid-template-columns:1fr;align-items:start;width:100%;padding:12px}
.report-photo-sheet[data-per-page="1"] .preview-photo img{max-height:620px;width:100%;object-fit:contain}
.report-photo-sheet[data-per-page="4"] .preview-photo img{max-height:275px}
.report-photo-sheet[data-per-page="3"] .preview-photo img{max-height:215px}
.report-photo-sheet[data-per-page="4"][data-photo-count="3"] .preview-photo:last-child img{max-height:215px}
@media print{
  #reportPreview .report-plan-sheet img.preview-plan{max-height:6.0in!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:2pt auto 3pt!important}
  #reportPreview .report-plan-sheet .report-point-labels{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1pt 5pt!important;font-size:7.2pt!important;line-height:1.1!important;margin:1pt 0 2pt!important;break-inside:avoid!important;page-break-inside:avoid!important}
  #reportPreview .report-plan-sheet .report-point-labels span{overflow-wrap:anywhere}
  #reportPreview .report-photo-sheet[data-per-page="1"] .report-photo-grid{grid-template-columns:1fr!important}
  #reportPreview .report-photo-sheet[data-per-page="1"] .preview-photo{display:grid!important;grid-template-columns:1fr!important;width:100%!important;padding:5pt!important}
  #reportPreview .report-photo-sheet[data-per-page="1"] .preview-photo img{max-height:5.25in!important;width:auto!important;max-width:100%!important;justify-self:center!important;object-fit:contain!important}
  #reportPreview .report-photo-sheet[data-per-page="3"] .preview-photo img{max-height:1.75in!important}
  #reportPreview .report-photo-sheet[data-per-page="4"] .preview-photo img{max-height:1.8in!important}
  #reportPreview .report-photo-sheet[data-per-page="3"][data-photo-count="3"] .preview-photo:last-child img,
  #reportPreview .report-photo-sheet[data-per-page="4"][data-photo-count="3"] .preview-photo:last-child img{max-height:1.75in!important}
}


/* Recorte opcional del croquis limitado al documento del reporte; nunca modifica el original. */
.report-crop-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;margin:12px 0 18px;border:1px solid #cfe1e5;border-radius:12px;background:#f7fbfc}
.report-crop-tools>div{min-width:0}.report-crop-tools b{font-size:13px}.report-crop-tools p{margin:4px 0 0;line-height:1.4}.report-crop-tools button{flex:0 0 auto}
.report-crop-dialog{width:min(980px,calc(100% - 20px));max-width:980px}
.report-crop-body{padding:18px 22px 22px}
.report-crop-preview-host{display:flex;align-items:center;justify-content:center;min-height:160px;max-height:54vh;overflow:auto;padding:10px;background:#eef3f6;border:1px solid var(--line);border-radius:10px}
.report-crop-stage{position:relative;flex:0 0 auto;line-height:0;max-width:100%;max-height:52vh;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none;box-shadow:0 2px 8px #1d33471a}
.report-crop-stage img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:fill;pointer-events:none;user-select:none;-webkit-user-drag:none}
.report-crop-selection{display:none;position:absolute;border:2px dashed #087f77;background:#127c7530;box-shadow:0 0 0 9999px #102a3c36;pointer-events:none;z-index:2}
.report-crop-status{font-size:12px;line-height:1.45;color:#40586a;margin:10px 0 0}
@media(max-width:690px){.report-crop-tools{align-items:stretch;flex-direction:column;gap:10px}.report-crop-tools button{width:100%}.report-crop-body{padding:14px}.report-crop-preview-host{padding:5px}.report-crop-dialog .dialog-actions button{flex:1}}

/* Indicador de preparación del reporte: informa del trabajo previo a vista previa, Word y PDF. */
.report-preparation-status{margin:8px 0;padding:9px 12px;border:1px solid #c6e3df;border-radius:8px;background:#f0faf8;color:#245b57;font-size:13px;line-height:1.4}
@media print{.report-preparation-status{display:none!important}}


/* Mejoras móviles: visor táctil del croquis y captura contextual en el punto seleccionado. */
.plan-capture-heading{align-items:center}
.plan-capture-heading-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.plan-capture-box .plan-viewport{height:min(64vh,720px);max-height:64vh;min-height:280px;touch-action:none;overscroll-behavior:contain;cursor:grab}
.plan-capture-box .plan-viewport:active{cursor:grabbing}
.plan-capture-box .plan-image-wrap{transform-origin:top left;will-change:transform}
.capture-point-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:12px;border:1px solid #b8ddd7;border-radius:12px;background:#f0faf8}
.capture-point-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.capture-point-copy b{font-size:13px;color:#155b56}
.capture-point-copy span{font-size:11px;line-height:1.35;color:#526b76}
.capture-point-buttons{display:flex;gap:7px;flex-wrap:wrap}
.capture-point-buttons button{white-space:nowrap}
.plan-capture-box.capture-focus-mode{position:fixed;inset:0;z-index:120;background:#fff;display:flex;flex-direction:column;gap:0;margin:0;padding:12px 12px calc(10px + env(safe-area-inset-bottom));border:0;border-radius:0;overflow:hidden;box-shadow:0 0 0 100vmax #0b1e2cbb}
.plan-capture-box.capture-focus-mode .plan-capture-heading{flex:0 0 auto;padding:2px 0 10px}
.plan-capture-box.capture-focus-mode .plan-capture-heading h3{font-size:17px;margin:0 0 3px}
.plan-capture-box.capture-focus-mode .plan-capture-heading p{margin:0;font-size:11px}
.plan-capture-box.capture-focus-mode> .field{flex:0 0 auto;margin-bottom:8px}
.plan-capture-box.capture-focus-mode #capturePlanStage{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;border-radius:12px}
.plan-capture-box.capture-focus-mode #capturePlanStage .plan-tools{flex:0 0 auto;border-radius:10px 10px 0 0}
.plan-capture-box.capture-focus-mode #capturePlanStage .plan-viewport{height:auto;max-height:none;min-height:0;flex:1 1 auto;width:100%;border-radius:0 0 10px 10px}
.plan-capture-box.capture-focus-mode #markerHint{flex:0 0 auto;margin:6px 0 0;font-size:11px}
.plan-capture-box.capture-focus-mode .capture-point-actions{flex:0 0 auto;margin-top:6px;padding:9px}
.plan-capture-box.capture-focus-mode .capture-point-copy{display:none}
.plan-capture-box.capture-focus-mode .capture-point-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr}
.plan-capture-box.capture-focus-mode .capture-point-buttons button{min-height:44px}
.photo-edit-image-column{min-width:0;display:flex;flex-direction:column;gap:9px}
.photo-mark-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.photo-mark-actions small{font-size:11px;line-height:1.45;color:var(--muted)}
.photo-markup-dialog{width:min(1000px,calc(100% - 20px));max-width:1000px}
.photo-markup-body{padding:14px 18px 18px}
.photo-markup-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.photo-markup-tools button{min-height:38px}
.photo-markup-tools button.active{background:#dff5f0;border-color:#69b9ad;color:#075c55}
.photo-markup-tool-spacer{flex:1 1 auto}
.photo-markup-canvas-wrap{display:flex;align-items:center;justify-content:center;min-height:120px;max-height:67vh;overflow:auto;padding:8px;background:#eaf0f3;border:1px solid var(--line);border-radius:10px;touch-action:none}
#photoMarkupCanvas{display:block;max-width:100%;max-height:65vh;width:auto;height:auto;background:white;touch-action:none;cursor:crosshair}
.photo-markup-dialog .dialog-actions{margin-top:10px;padding-top:10px}
@media(max-width:690px){
 .plan-capture-heading{align-items:flex-start}
 .plan-capture-heading-actions{width:100%;justify-content:flex-start}
 .plan-capture-heading-actions button{flex:1 1 auto}
 .plan-capture-box .plan-viewport{height:58vh;max-height:58vh;min-height:240px}
 .capture-point-actions{flex-direction:column;align-items:stretch}
 .capture-point-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .capture-point-buttons button{padding:10px 8px;font-size:12px}
 .plan-capture-box.capture-focus-mode{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
 .plan-capture-box.capture-focus-mode .plan-capture-heading-actions{width:auto}
 .plan-capture-box.capture-focus-mode .plan-capture-heading-actions #goUploadPlan{display:none}
 .plan-capture-box.capture-focus-mode .plan-capture-heading-actions #togglePlanFocus{font-size:11px;padding:8px 9px}
 .photo-markup-body{padding:10px}
 .photo-markup-tools{gap:5px}
 .photo-markup-tools button{font-size:11px;padding:8px 9px;flex:0 0 auto}
 .photo-markup-tool-spacer{display:none}
 .photo-markup-canvas-wrap{max-height:59vh;padding:3px}
 #photoMarkupCanvas{max-height:57vh}
}


/* Módulo Video Fase 1: estilos aislados, sin modificar los componentes existentes. */
.video-notice{border-color:#c9dfe8;background:#eef7fb}
.video-card h2{margin-bottom:8px}
.video-form-grid{margin-top:15px}
.video-form-grid textarea,.video-mark-form textarea{width:100%;border:1px solid #cedbe3;background:#fff;border-radius:9px;color:var(--ink);padding:11px 12px;font-weight:400;font-size:14px;resize:vertical}
.video-metadata-actions{margin-top:13px;justify-content:flex-end}
.video-capture-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.video-capture-actions button{min-height:43px}
.video-recording-badge{display:inline-flex;align-items:center;border-radius:99px;background:#edf3f6;color:#435b6b;padding:7px 10px;font-size:11px;font-weight:800;white-space:nowrap}
.video-live-preview-frame{position:relative;margin:13px 0 15px;min-height:180px;border-radius:13px;overflow:hidden;background:#142633;color:#fff}
.video-live-preview-frame[hidden]{display:none!important}
.video-live-preview-frame video{display:block;width:100%;min-height:180px;max-height:42vh;object-fit:cover;background:#142633}
.video-live-indicator{position:absolute;top:10px;left:10px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:99px;background:rgba(10,25,35,.82);color:#fff;font-size:12px;font-weight:800}
.video-live-indicator i{display:block;width:8px;height:8px;border-radius:50%;background:#ff4657;box-shadow:0 0 0 4px rgba(255,70,87,.18);animation:video-pulse 1.2s infinite}
.video-recording-badge.is-recording{background:#fff0f0;color:#b21e2b;animation:video-pulse 1.2s infinite}
@keyframes video-pulse{50%{box-shadow:0 0 0 4px #d947471c}}
.video-preview-frame{position:relative;display:flex;align-items:center;justify-content:center;min-height:150px;margin:13px 0 17px;border-radius:13px;overflow:hidden;background:#142633;color:#fff}
.video-preview-frame video{display:block;width:100%;max-height:65vh;min-height:150px;object-fit:contain;background:#142633;position:relative;z-index:1}
.video-preview-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:18px;color:#d3e0e7;font-size:13px;z-index:0}
.video-preview-placeholder span{font-size:34px}.video-preview-placeholder.video-placeholder-hidden{display:none}
.video-mark-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.video-tool-actions{margin-top:14px}
.video-subsection{border-top:1px solid var(--line);padding-top:17px;margin-top:20px}
.video-subsection h3{margin:0 0 12px}
.video-list{display:grid;gap:8px}
.video-empty-small{border:1px dashed #d4e0e6;border-radius:10px;color:var(--muted);font-size:12px;line-height:1.5;margin:0;padding:15px;text-align:center}
.video-mark-row{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid var(--line);border-radius:11px;min-width:0}
.video-mark-time{flex:0 0 auto;min-width:66px;font-size:12px;font-weight:800;color:var(--teal2);font-variant-numeric:tabular-nums}
.video-mark-copy{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.video-mark-copy b{font-size:13px}
.video-mark-copy small{font-size:11px;color:var(--muted);line-height:1.45;white-space:pre-wrap}
.video-remove-mark,.video-remove-clip{flex:0 0 auto;padding:7px 9px;font-size:11px}
.video-clip-boundaries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.video-clip-boundaries>div{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fbfcfd}
.video-clip-boundaries small{font-size:11px;color:var(--muted)}
.video-clip-boundaries b{font-variant-numeric:tabular-nums;font-size:13px}
.video-clip-boundaries button{grid-column:1/-1;width:100%}
.video-library-list{display:grid;gap:9px}
.video-library-item{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;min-width:0}
.video-library-icon{height:42px;width:42px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#e6f4f2;color:var(--teal2);font-size:18px;flex:0 0 42px}
.video-library-copy{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.video-library-copy b{font-size:13px}
.video-library-copy small{font-size:11px;color:var(--muted);line-height:1.4}
.video-library-empty{display:flex;flex-direction:column;align-items:center;gap:7px;padding:28px 15px;text-align:center;border:1px dashed #d4e0e6;border-radius:12px;color:var(--muted)}
.video-library-empty span{font-size:30px}
.video-library-empty b{font-size:13px;color:var(--ink)}
.video-library-empty small{font-size:11px}
.video-status{position:sticky;bottom:78px;z-index:5;background:#edf7f5;color:#20574f;border:1px solid #cae5df;border-radius:11px;padding:11px 14px;font-size:12px;line-height:1.45;margin:12px 0 0}
.video-status.video-status-error{background:#fff0ef;border-color:#f2cdca;color:#9d2e29}
@media(max-width:690px){
 .video-mark-form{grid-template-columns:1fr}
 .video-capture-actions{display:grid;grid-template-columns:1fr 1fr}
 .video-capture-actions button{width:100%;font-size:12px;padding:10px 8px}
 .video-clip-boundaries{gap:8px}
 .video-clip-boundaries>div{padding:10px;gap:7px}
 .video-library-item{align-items:flex-start;flex-wrap:wrap}
 .video-library-copy{min-width:calc(100% - 58px)}
 .video-library-item>button{margin-left:54px;flex:1}
 .video-mark-row{align-items:flex-start;gap:8px}
 .video-mark-time{min-width:53px;font-size:11px}
 .video-remove-mark,.video-remove-clip{padding:6px;font-size:10px}
 .video-status{bottom:77px}
 .mobile-nav{grid-template-columns:repeat(8,minmax(56px,1fr))}
}

/* Selector y puntos del croquis para Video Fase 1 */
.video-plan-import-row{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin:10px 0 4px}
.video-plan-import-row .hint{flex:1 1 260px;margin:4px 0}
.video-plan-import-row button{flex:0 0 auto}
@media(max-width:600px){.video-plan-import-row{display:block}.video-plan-import-row button{width:100%;margin-bottom:8px}}
.video-plan-viewer{position:relative;display:flex;align-items:center;justify-content:center;min-height:180px;max-height:60vh;overflow:auto;background:var(--surface-2,#f3f5f7);border:1px solid var(--border,#d9dee5);border-radius:12px;margin:12px 0;cursor:crosshair}
.video-plan-image{display:block;max-width:100%;max-height:58vh;object-fit:contain}
.video-plan-dot{position:absolute;z-index:2;transform:translate(-50%,-50%);width:28px;height:28px;border:2px solid white;border-radius:50%;background:#b42318;color:white;font-weight:700;box-shadow:0 1px 6px #0005;cursor:pointer;padding:0}
.video-list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border,#d9dee5)}
.video-list-row>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.video-list-row small{color:var(--muted,#667085);overflow-wrap:anywhere}
.video-status.bad{color:#b42318}


/* Video Fase 1: panel de trabajo simultáneo video + croquis. */
.video-plan-handoff-hint{margin:14px 0 2px;padding:12px;border-radius:10px;background:#f3f8fa;border:1px solid var(--line);line-height:1.5}
.video-work-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:15px 0 4px;align-items:stretch}
.video-work-pane{min-width:0;border:1px solid var(--line);border-radius:13px;background:#fbfcfd;padding:10px;overflow:hidden}
.video-work-pane h3{margin:0 0 10px;font-size:14px;line-height:1.35}
.video-work-pane .video-live-preview-frame{margin:0;min-height:145px}
.video-work-pane .video-live-preview-frame video{width:100%;height:auto;aspect-ratio:4/3;min-height:145px;max-height:38vh;object-fit:cover}
.video-work-pane .video-preview-frame{margin:0;min-height:145px;aspect-ratio:4/3}
.video-work-pane .video-preview-frame video{width:100%;height:100%;min-height:145px;max-height:38vh;object-fit:contain}
.video-work-pane .video-preview-placeholder{font-size:11px;padding:8px}
.video-work-pane .video-preview-placeholder span{font-size:25px}
.video-work-pane .video-plan-viewer{margin:0;min-height:145px;max-height:38vh;overflow:auto}
.video-work-pane .video-plan-image{max-width:100%;max-height:36vh;object-fit:contain}
.video-plan-live-actions{display:grid;grid-template-columns:1fr;gap:6px;margin-top:8px}
.video-plan-live-actions button{width:100%;font-size:11px;padding:8px 7px;white-space:normal}
.video-plan-points-subsection{margin-top:14px}
@media(max-width:600px){
 .video-work-area{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .video-work-pane{padding:7px;border-radius:10px}
 .video-work-pane h3{font-size:12px;min-height:32px;margin-bottom:7px}
 .video-work-pane .video-live-preview-frame,.video-work-pane .video-preview-frame,.video-work-pane .video-plan-viewer{min-height:130px;max-height:31vh}
 .video-work-pane .video-live-preview-frame video,.video-work-pane .video-preview-frame video{min-height:130px;max-height:31vh}
 .video-work-pane .video-plan-image{max-height:29vh}
 .video-plan-live-actions button{font-size:10px;padding:7px 5px}
 .video-plan-points-subsection .video-list-row{align-items:flex-start;gap:6px;flex-wrap:wrap}
}

.video-work-area .video-preview-frame[hidden]{display:none!important}


/* Fase 1 — exportación visual del video con el croquis superpuesto. */
.video-compose-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:14px;padding:14px;border:1px solid var(--line,#d9dee5);border-radius:14px;background:var(--surface,#fff)}
.video-compose-copy{min-width:0}
.video-compose-copy h3{margin:0 0 6px;font-size:16px}
.video-compose-copy p{margin:5px 0;line-height:1.45}
.video-compose-card>button{min-height:44px;max-width:245px;white-space:normal}
.video-compose-status{grid-column:1/-1;margin:0;color:var(--muted,#617180);font-size:13px;line-height:1.4}
.video-compose-status.bad{color:#a52828}
.video-compose-result{grid-column:1/-1;padding-top:4px}
.video-compose-result a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;background:#e1f4ee;color:#096653;border:1px solid #abd9cb;border-radius:9px;font-weight:700;text-decoration:none}
@media(max-width:600px){.video-compose-card{grid-template-columns:1fr}.video-compose-card>button{width:100%;max-width:none}.video-compose-copy h3{font-size:15px}}


/* Video Fase 1 — flujo simplificado y revisión antes de descargar. */
.video-flow-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.video-flow-step{display:flex;align-items:center;gap:9px;min-width:0;padding:10px 11px;border:1px solid var(--line,#d9dee5);border-radius:12px;background:#fff}
.video-flow-step>span{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#e4f4f0;color:#087a68;font-size:13px;font-weight:800}
.video-flow-step>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.video-flow-step b{font-size:12px;line-height:1.25;color:var(--ink,#213547)}
.video-flow-step small{font-size:10px;line-height:1.3;color:var(--muted,#667085)}
.video-action-hint{margin:10px 0;padding:10px 12px;border-radius:10px;background:#f0f7f5;border:1px solid #d6e9e4;color:#365e56;font-size:12px;line-height:1.45}
.video-optional-details>summary,.video-advanced-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:3px 0}
.video-optional-details>summary::-webkit-details-marker,.video-advanced-details>summary::-webkit-details-marker{display:none}
.video-optional-details>summary::after,.video-advanced-details>summary::after{content:'＋';color:var(--teal2,#087a68);font-size:20px;font-weight:700;margin-left:2px}
.video-optional-details[open]>summary::after,.video-advanced-details[open]>summary::after{content:'−'}
.video-optional-details>summary>span:first-child,.video-advanced-details>summary>span:first-child{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.video-optional-details summary b,.video-advanced-details summary b{font-size:15px;color:var(--ink,#213547)}
.video-optional-details summary small,.video-advanced-details summary small{font-size:12px;line-height:1.4;color:var(--muted,#667085)}
.video-optional-body,.video-advanced-body{padding-top:12px}
.video-metadata-card{padding:15px 18px}
.video-advanced-card{padding:15px 18px}
.video-library-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:0 0 auto}
.video-library-actions button{min-height:36px}
.video-library-item.is-selected{border-color:#8fcfc1;background:#f5fbf9}
.video-selected-tag{display:inline-block;margin-left:6px;padding:3px 7px;border-radius:20px;background:#dff4ed;color:#087a68;font-size:10px;vertical-align:middle}
.video-output-preview-label{font-weight:800;color:var(--ink,#213547);font-size:13px;margin:4px 0 10px}
.video-output-preview{display:block;width:100%;max-height:65vh;min-height:180px;object-fit:contain;background:#101923;border-radius:12px;border:1px solid var(--line,#d9dee5)}
.video-output-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.video-output-download{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border-radius:9px;background:var(--teal2,#087a68);color:white!important;text-decoration:none;font-weight:800}
.video-final-checklist{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 13px}
.video-final-checklist span{background:#f1f7f5;color:#38665b;border:1px solid #d9ebe5;border-radius:20px;padding:6px 9px;font-size:11px;font-weight:700}
.video-final-review-card{scroll-margin-top:16px}
.video-capture-actions{margin:14px 0 8px}
.video-work-area{scroll-margin-top:16px}
@media(max-width:760px){
 .video-flow-guide{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .video-flow-step{padding:9px 8px;gap:7px}
 .video-flow-step b{font-size:11px}
 .video-flow-step small{font-size:10px}
 .video-library-item{align-items:center;flex-wrap:wrap}
 .video-library-copy{min-width:calc(100% - 60px);flex:1}
 .video-library-actions{width:100%;margin-left:52px;justify-content:flex-start}
 .video-library-actions button{flex:1}
 .video-output-actions{display:grid;grid-template-columns:1fr}
 .video-output-actions>*{width:100%;text-align:center;justify-content:center}
 .video-final-review-card .section-row{align-items:flex-start;flex-direction:column}
 .video-final-review-card .section-row>.pill{white-space:normal}
 .video-optional-details>summary,.video-advanced-details>summary{gap:8px}
}
@media(max-width:600px){
 .video-work-area{grid-template-columns:minmax(0,1fr);gap:10px}
 .video-work-pane{padding:10px}
 .video-work-pane h3{font-size:14px;min-height:0}
 .video-work-pane .video-live-preview-frame,.video-work-pane .video-preview-frame,.video-work-pane .video-plan-viewer{min-height:210px;max-height:none}
 .video-work-pane .video-live-preview-frame video,.video-work-pane .video-preview-frame video{min-height:210px;max-height:42vh;aspect-ratio:4/3}
 .video-work-pane .video-plan-viewer{max-height:48vh;overflow:auto}
 .video-work-pane .video-plan-image{max-height:45vh}
 .video-plan-live-actions{grid-template-columns:1fr 1fr}
 .video-plan-live-actions button:first-child{grid-column:1/-1}
 .video-plan-live-actions button{font-size:12px;padding:9px 7px}
 .video-capture-actions{grid-template-columns:1fr 1fr}
 .video-capture-actions button{font-size:13px}
 .video-output-preview{min-height:160px}
 .video-library-actions{margin-left:0}
}

.video-preview-frame video[hidden]{display:none!important}

.video-final-checklist span.is-complete{background:#e2f5ee;color:#087a68;border-color:#bde4d7}
.video-final-checklist span:not(.is-complete){background:#f5f7f9;color:#5c6d79;border-color:#dce4e9}
