.bw-page{padding:16px 22px 10px;background:#0a0d10;color:#f3efe6;font-size:14px}
.bw-header{max-width:1800px;margin:0 auto 12px;border-bottom:1px solid #303840;padding-bottom:10px}
.bw-brand{font-size:11px;letter-spacing:.16em;color:#c4a46a;display:flex;justify-content:space-between}
.bw-brand span{color:#b8b9b8;letter-spacing:.08em}
.bw-area{font-size:10px;letter-spacing:.18em;color:#c4a46a;margin:10px 0 3px}
.bw-header h1{color:#d7b579;font-size:clamp(20px,2.1vw,36px);letter-spacing:.085em;font-weight:700;line-height:1.12;margin:0 0 6px}
.bw-instructions{font-size:12px;color:#adb6bf;margin:0;line-height:1.4}
.bw-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(325px,28vw,440px);gap:20px;max-width:1800px;margin:auto;align-items:start}
.bw-photo-column{min-width:0}.bw-photo-wrap{width:100%}.bw-page .kpc-ana-stage{height:auto;aspect-ratio:16/9;border-radius:8px;box-shadow:none;background:#171b20;margin:0}
.bw-page .kpc-ana-tag{font-size:clamp(12px,1.3vw,20px)}
.bw-photo-caption{display:flex;justify-content:space-between;gap:8px;font-size:10px;letter-spacing:.08em;color:#c4a46a;padding:10px 0 12px}.bw-photo-caption>span:last-child{color:#aeb7c0;letter-spacing:0}.bw-muted{color:#aeb7c0}
.bw-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bw-card{display:flex;gap:13px;align-items:center;text-align:left;border:1px solid #3b4146;background:#141b21;border-radius:12px;padding:12px;color:#d8bc82;cursor:pointer;min-width:0}.bw-card:hover{border-color:#d8bc82;background:#1b242c}.bw-card>img,.bw-detail-thumb{width:65px;height:78px;object-fit:cover;border-radius:7px;flex-shrink:0}.bw-detail-thumb{position:relative;overflow:hidden}.bw-detail-thumb img{height:110px;max-width:none;position:absolute;left:-46px;top:-12px}.bw-card>span:last-child{display:grid;gap:5px}.bw-card strong{font:700 12px/1.4 'Segoe UI',sans-serif;letter-spacing:.04em}.bw-card span span{font-size:10px;line-height:1.4;color:#c8c9c7}.bw-card em{font-style:normal;font-size:10px;line-height:1.4;color:#c4a46a}
.bw-side{display:flex;flex-direction:column;gap:9px;min-width:0}.bw-remote-wrap{display:flex;justify-content:center;padding:0 0 3px}.bw-page #kpc-ana-remote{max-width:174px;margin:0;padding:7px 10px 10px;border-radius:26px;box-shadow:none}.bw-page .kpc-vti-cap{margin:0 auto 5px;height:3px}.bw-page .kpc-vti-brand{font-size:7px}.bw-page .kpc-vti-name{margin:0 0 5px;font-size:7px}.bw-page .kpc-vti-lcd{min-height:26px;padding:4px 7px;margin-bottom:5px}.bw-page .kpc-vti-lcd-line{font-size:12px}.bw-page .kpc-vti-chs{gap:3px;margin-bottom:5px}.bw-page .kpc-vti-chs button{height:29px;min-height:29px;font-size:12px;padding:0}.bw-page .kpc-vti-pad{gap:4px;margin-bottom:4px}.bw-page .kpc-vti-pad button{height:30px;min-height:30px;font-size:16px;padding:0}.bw-page .kpc-vti-spd{margin:3px 0;font-size:7px;gap:0}.bw-page .kpc-vti-spd input[type=range]{height:12px;margin:0}.bw-page .kpc-vti-batt{height:23px;min-height:23px;margin-top:4px;font-size:9px}.bw-page .kpc-vti small{display:none}
.bw-box{border:1px solid #56644c;background:#e9e9e5;color:#202421;padding:10px 12px;border-radius:5px}.bw-box h2{font-size:15px;line-height:1.2;color:#ac241f;margin:0 0 8px;font-weight:750;letter-spacing:.035em;text-align:center}.bw-specs dl{margin:0;display:grid;gap:4px}.bw-specs .spec-row{font-size:11px;line-height:1.25}.bw-specs dt{display:inline;color:#ac241f;font-weight:750}.bw-specs dt::after{content:': ';}.bw-specs dd{display:inline;margin:0;font-weight:650}.bw-measures{padding-bottom:9px}.measure-row{display:grid;grid-template-columns:27px 1fr auto;gap:5px;font-size:12px;line-height:1.3;padding:4px 0;align-items:center}.measure-row strong{color:#222}.measure-row small{font-size:9px;color:#4c5550}.measure-row b{color:#202421}.bw-notes{background:#f4f3ec;min-height:77px}.bw-notes h2{text-align:left;text-decoration:underline;font-size:14px;margin-bottom:6px}.bw-notes #notes-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5;min-height:22px}.has-notes #notes-title{animation:notes-alert 1.6s ease-in-out infinite}.has-notes{border-color:#c05a24}@keyframes notes-alert{50%{color:#e8871b;opacity:.4}}@media(prefers-reduced-motion:reduce){.has-notes #notes-title{animation:none;color:#ad291e}.has-notes #notes-title::after{content:' · NUEVA NOTA'}}
.bw-footer{display:flex;justify-content:space-between;gap:12px;max-width:1800px;margin:12px auto 0;font-size:10px;color:#85929e;border-top:1px solid #29323a;padding-top:8px}
button:focus-visible,a:focus-visible{outline:2px solid #e4c98a;outline-offset:3px}
dialog{border:1px solid #4b545b;border-radius:12px;background:#192128;color:#f3efe6;padding:0;width:min(1100px,95vw);max-height:94dvh;overflow:hidden}dialog::backdrop{background:#000c}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #44505a}.dialog-head h2{font:700 16px/1.4 Georgia,serif;color:#d7b579;margin:0}.dialog-head>div{display:flex;align-items:center;gap:7px;flex-shrink:0}.dialog-head button{border:1px solid #5c6266;background:#28343f;color:#f0e6cd;border-radius:6px;padding:7px 11px;cursor:pointer}.dialog-head output{font-size:12px;min-width:36px}.detail-scroll{height:min(70dvh,660px);overflow:auto;padding:20px}.detail-canvas{width:100%;aspect-ratio:5/3;position:relative;min-width:660px;background:#242e36;border:1px solid #46505a;border-radius:8px}.detail-window{position:absolute;left:7%;top:3%;width:24%;height:94%;overflow:hidden;border:1px solid #8f969a;border-radius:5px}.detail-window img{height:121%;max-width:none;position:absolute;left:-98%;top:-14%}.detail-swatch{position:absolute;left:64%;top:19%;width:30%;height:auto;border:1px solid #7a838b;border-radius:3px}.detail-arrows{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.detail-label{position:absolute;z-index:2;max-width:31%;font-size:clamp(9px,1vw,13px);line-height:1.4;font-weight:650;background:#10181e;border:1px solid #a99163;color:#f1e6ce;padding:6px 8px;border-radius:4px}.fascia-label{left:35%;top:12%}.rail-label{left:34%;top:65%}.fabric-label{left:64%;top:11%;max-width:32%}.fabric-scroll{max-height:80dvh;overflow:auto;padding:16px;text-align:center}.fabric-scroll img{display:block;max-height:73dvh;max-width:100%;width:auto;margin:auto}.fabric-scroll.is-large img{max-height:none;max-width:none;width:140%;margin:0}
.editor-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#243b32;border:1px solid #607e69;padding:10px 14px;border-radius:6px;margin-bottom:12px;font-size:12px}.editor-bar button,.editor-bar a{background:#eee3c8;border:0;border-radius:5px;padding:8px 12px;color:#222;cursor:pointer}.editor-bar span{color:#d3dfd7}.editor-bar #save-status{flex-basis:100%;font-size:11px;min-height:14px}.bw-page [contenteditable=true]{outline:1px dashed #8e957d;outline-offset:2px;cursor:text;min-width:12px}.bw-page [contenteditable=true]:focus{outline:2px solid #ad7c27;background:#fff3d71a}.bw-page [contenteditable=true]:empty::before{content:attr(data-placeholder);color:#777;font-weight:400}.bw-page [contenteditable=true][data-kind=notes]{min-height:40px}
@media(min-width:1100px) and (max-height:820px){.bw-page{padding-top:10px}.bw-area{margin-top:6px}.bw-layout{gap:16px}.bw-side{gap:6px}.bw-box{padding:8px 10px}.bw-box h2{margin-bottom:5px;font-size:14px}.bw-specs dl{gap:3px}.bw-specs .spec-row{font-size:10.5px}.bw-notes{min-height:66px}.bw-card{padding:10px}.bw-card>img,.bw-detail-thumb{height:62px;width:52px}.bw-photo-caption{padding:8px 0}.bw-footer{margin-top:8px}}
@media(max-width:1000px){.bw-layout{grid-template-columns:minmax(0,1fr) 310px;gap:14px}.bw-page{padding:12px}.bw-cards{grid-template-columns:1fr}.bw-header h1{font-size:23px}.bw-card>img,.bw-detail-thumb{width:45px;height:54px}.bw-card{padding:10px}.bw-photo-caption{flex-direction:column;gap:4px}}
@media(max-width:720px){.bw-page{padding:12px 10px}.bw-layout{display:flex;flex-direction:column;gap:15px}.bw-header h1{font-size:23px;line-height:1.2;letter-spacing:.04em}.bw-brand{font-size:9px;gap:8px}.bw-brand span{font-size:9px}.bw-instructions{font-size:11px}.bw-photo-column,.bw-side{width:100%}.bw-photo-caption{flex-direction:row;font-size:9px}.bw-muted{display:none}.bw-cards{grid-template-columns:1fr 1fr;gap:8px}.bw-card{align-items:flex-start;gap:8px;padding:10px}.bw-card>img,.bw-detail-thumb{width:38px;height:45px}.bw-card strong{font-size:10px}.bw-card span span,.bw-card em{font-size:9px}.bw-side{gap:10px}.bw-page #kpc-ana-remote{max-width:230px;padding:10px 15px}.bw-page .kpc-vti-chs button,.bw-page .kpc-vti-pad button{min-height:44px}.bw-page .kpc-vti-batt{min-height:36px}.bw-page .kpc-vti-spd{font-size:9px}.bw-specs .spec-row{font-size:12px;line-height:1.5}.bw-specs dl{gap:4px}.bw-box{padding:12px 14px}.measure-row{font-size:13px;padding:7px 0}.measure-row small{font-size:10px}.bw-footer{flex-direction:column;gap:4px}.dialog-head{flex-wrap:wrap;padding:10px}.dialog-head h2{font-size:14px}.dialog-head>div{flex-wrap:wrap}.detail-scroll{padding:8px;height:70dvh}.detail-label{font-size:10px}.bw-notes #notes-content{font-size:14px}}
@media print{@page{size:A4 landscape;margin:8mm}.bw-page{background:white;color:black;padding:0}.bw-brand,.bw-area,.bw-instructions,.bw-footer,.editor-bar{display:none!important}.bw-header h1{font-size:20px;color:#806337}.bw-layout{display:grid;grid-template-columns:minmax(0,1fr) 85mm;gap:6mm}.bw-side{gap:2mm}.bw-photo-column{width:auto}.bw-cards{grid-template-columns:1fr 1fr}.bw-card{padding:5px}.bw-card em{display:none}.bw-page #kpc-ana-remote{zoom:.8}.bw-specs .spec-row{font-size:9px}.bw-box{padding:5px}.bw-box h2{font-size:12px;margin-bottom:4px}.measure-row{font-size:10px;padding:2px 0}.bw-notes{min-height:16mm}.has-notes #notes-title{animation:none}dialog{display:none!important}}
@media(min-width:1100px) and (max-height:820px){
 .bw-header{padding-bottom:7px;margin-bottom:8px}.bw-brand{font-size:10px;line-height:12px}.bw-area{margin:3px 0 2px;line-height:11px}.bw-header h1{font-size:25px;line-height:28px;margin-bottom:3px}.bw-instructions{font-size:11px;line-height:15px}
 .bw-page #kpc-ana-remote{zoom:.85}.bw-specs dl{gap:1px}.bw-specs .spec-row{line-height:1.25}.bw-box h2{line-height:16px;margin-top:0;margin-bottom:4px}.bw-box{padding:7px 10px}.measure-row{padding:2px 0}.bw-notes{min-height:55px}.bw-notes #notes-content{min-height:14px}.bw-footer{font-size:9px;padding-top:5px}
}
@media(min-width:1100px) and (max-height:820px){.bw-side{gap:4px}.bw-page{padding-bottom:4px}}
.detail-canvas{margin:auto}.detail-window{width:27%;height:76%}.detail-window img{width:281.2%;height:auto;left:-85.45%;top:-14.96%}.rail-label{top:54%}.fascia-label{top:10%}
html:has(.bw-page){scrollbar-gutter:stable}
@media(min-width:1100px) and (max-height:820px){.bw-footer{margin-top:5px}.bw-page{padding-top:8px}}

/* Funciones originales: mando flotante y rótulos móviles. */
.bw-page #kpc-ana-remote.is-float{zoom:1;max-width:174px}
.bw-page .kpc-ana-tag.is-draggable{touch-action:none;cursor:grab}
.bw-page .kpc-ana-tag.is-dragging{cursor:grabbing}
.bw-page .kpc-remote-grab{margin-bottom:4px;padding:3px;gap:3px}
.bw-page .kpc-remote-grab-btn{min-width:20px;height:18px;padding:0 4px}
@media(min-width:1100px) and (max-height:820px){.bw-page #kpc-ana-remote:not(.is-float){zoom:.78}.bw-photo-caption{font-size:9px}.bw-side{gap:3px}}
@media(max-width:720px){.bw-page .kpc-remote-grab-btn{min-width:32px;height:28px}.bw-page #kpc-ana-remote.is-float{max-width:220px}.bw-photo-caption>span:last-child{max-width:57%;text-align:right}}
body.bw-page.is-cliente-view .kpc-ana-tag.is-draggable{pointer-events:auto!important;cursor:grab!important}

/* Texto de datos uniforme, también durante la edición. */
.bw-page .bw-specs dd,
.bw-page .bw-measures .measure-row,
.bw-page .bw-measures .measure-row *,
.bw-page .bw-notes #notes-content,
.bw-page .bw-notes #notes-content * {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
  font-weight: 650 !important;
  text-shadow: none !important;
}
.bw-page .bw-notes #notes-content {
  caret-color: #000;
}
.bw-page .bw-notes #notes-content:empty::before {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
}

/* Datos continuos dentro de cada ventana; separar solo ventanas distintas. */
.bw-page .bw-measures .measure-row { row-gap:0; padding-top:0; padding-bottom:0; }
.bw-page .bw-measures .measure-row + .measure-row { margin-top:8px; }
.bw-page .bw-measures .measure-details:empty,
.bw-page .bw-measures .measure-description:empty { display:none; }
.bw-page .bw-measures .measure-details:has(> br:only-child):not(:focus),
.bw-page .bw-measures .measure-description:has(> br:only-child):not(:focus) { display:none; }
/* Una pantalla en PC; ventanas de detalle con arrastre y zoom independiente. */
.fit-sheet{display:flow-root;margin:0 auto}
html:has(body.fit-desktop){scrollbar-gutter:auto;overflow:hidden}
body.fit-desktop{overflow:hidden}
body.fit-desktop .fit-sheet{max-width:none}
.detail-scroll,.fabric-scroll{position:relative;height:min(70dvh,660px);max-height:none;padding:0;overflow:hidden;touch-action:none;cursor:grab;overscroll-behavior:contain}
.detail-scroll.is-panning,.fabric-scroll.is-panning{cursor:grabbing;user-select:none}
.detail-scroll .detail-canvas{position:absolute;top:0;left:0;margin:0;min-width:0;max-width:none;transform-origin:0 0}
.fabric-scroll img,.fabric-scroll.is-large img{position:absolute;top:0;left:0;margin:0;max-height:none;max-width:none;object-fit:contain;transform-origin:0 0;user-select:none;-webkit-user-drag:none}
.detail-scroll img{-webkit-user-drag:none;user-select:none}
.detail-scroll [contenteditable]{cursor:text;touch-action:auto}
@media print{html:has(body.fit-desktop),body.fit-desktop{overflow:visible}.fit-sheet{zoom:1!important;width:auto!important}}
/* La publicación permite consulta y simulación, no edición de la composición. */
.bw-page:not([data-private-editor="true"]) .kpc-ana-tag{cursor:default!important}.bw-page:not([data-private-editor="true"]) .kpc-ana-tag:before,.bw-page:not([data-private-editor="true"]) .kpc-ana-tag:after{content:none!important}.bw-page:not([data-private-editor="true"]) .kpc-remote-grab,.bw-page:not([data-private-editor="true"]) .kpc-has-tip:after,.bw-page:not([data-private-editor="true"]) .kpc-vti small{display:none!important}.bw-notes[hidden]{display:none!important}
