
#masterContent .master-hero{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#masterContent .gg-master-photo{width:112px;height:82px;object-fit:cover;border-radius:12px;border:1px solid #d7dee9;flex:none}
#notesGrid .gg-postit{background:var(--gg-note-color,#fff3b0)!important;border:1px solid rgba(25,35,55,.12);border-radius:12px;box-shadow:0 3px 10px rgba(25,35,55,.08);cursor:grab;min-width:0}
#notesGrid .gg-postit:active{cursor:grabbing}
#notesGrid .gg-postit.gg-dragging{opacity:.45}
#notesGrid .gg-postit-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
#notesGrid .gg-postit-handle{font-size:11px;font-weight:700;color:#475569}
#notesGrid .gg-postit-palette{display:flex;gap:5px}
#notesGrid .gg-postit-swatch{width:19px;height:19px;border-radius:50%;border:1px solid #94a3b8;cursor:pointer;padding:0}
@media(max-width:700px){#masterContent .gg-master-photo{width:88px;height:68px}#notesGrid .gg-postit{touch-action:auto}}

/* Cabecera de ficha maestra: foto a toda la altura de la franja azul e información a su lado. */
#masterContent .master-hero{display:block!important;padding:0!important;overflow:hidden;border-radius:14px}
#masterContent .master-photo-hero{display:flex!important;align-items:stretch!important;gap:0!important;width:100%!important;min-height:220px}
#masterContent .master-photo-hero .master-main-photo{display:block;width:clamp(200px,28%,340px)!important;min-width:200px;max-width:340px;height:auto!important;min-height:220px!important;max-height:none!important;object-fit:cover!important;object-position:center;border:0!important;border-radius:0!important;align-self:stretch!important;flex:none}
#masterContent .master-photo-hero .master-hero-info{flex:1;min-width:0;padding:18px 20px;display:flex;flex-direction:column;justify-content:center}
#masterContent .master-photo-hero.gg-no-master-photo .master-hero-info{padding:18px 20px}
#masterContent .master-photo-hero .master-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media(max-width:700px){
 #masterContent .master-photo-hero{flex-direction:row!important;min-height:190px}
 #masterContent .master-photo-hero .master-main-photo{width:35%!important;min-width:105px!important;max-width:160px!important;min-height:190px!important;max-height:none!important}
 #masterContent .master-photo-hero .master-hero-info{padding:12px 10px}
 #masterContent .master-photo-hero .master-hero-plate{font-size:clamp(20px,5vw,32px)}
 #masterContent .master-photo-hero .master-hero-sub{font-size:12px}
 #masterContent .master-photo-hero .master-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 #masterContent .master-photo-hero .master-kpi{padding:5px;min-width:0}
 #masterContent .master-photo-hero .master-kpi b{font-size:12px}
 #masterContent .master-photo-hero .master-kpi span{font-size:8px}
}

/* Tablón libre de notas adhesivas: posiciones independientes, drag táctil y ratón */
#notesGrid.gg-free-board{position:relative!important;display:block!important;width:100%;min-height:350px;overflow:visible;padding:0!important;background:radial-gradient(circle at 1px 1px,rgba(148,163,184,.3) 1px,transparent 0) 0 0/18px 18px,#f8fafc;border:1px solid #dbe2ec;border-radius:16px}
#notesGrid .gg-free-note{position:absolute!important;width:230px!important;max-width:calc(100% - 12px)!important;min-height:195px;margin:0!important;transform:rotate(var(--gg-rotation,0deg));transition:box-shadow .15s;box-shadow:4px 7px 12px rgba(30,41,59,.18)!important;z-index:1}
#notesGrid .gg-free-note::before{content:'';position:absolute;top:-7px;left:45%;width:28px;height:13px;background:rgba(255,255,255,.55);transform:rotate(-7deg);pointer-events:none}
#notesGrid .gg-free-note.gg-dragging{opacity:.94!important;transform:rotate(0deg) scale(1.025);box-shadow:7px 12px 20px rgba(30,41,59,.25)!important}
#notesGrid .gg-postit-handle{border:0;background:transparent;color:#475569;font-weight:750;font-size:12px;cursor:grab;touch-action:none;padding:5px 7px;border-radius:6px}
#notesGrid .gg-postit-handle:active{cursor:grabbing;background:#ffffff66}
#notesGrid .gg-postit-bar{align-items:center}
@media(max-width:700px){#notesGrid .gg-free-note{width:min(230px,calc(100% - 12px))!important}}

/* Sujeciones variadas: cinta adhesiva, chinchetas y clips. Solo decoración. */
#notesGrid .gg-free-note::before,#notesGrid .gg-free-note::after{pointer-events:none;box-sizing:border-box}
/* Cinta translúcida, ligeramente inclinada */
#notesGrid .gg-free-note:nth-child(3n+1)::before{content:"";position:absolute;z-index:5;top:-10px;left:calc(50% - 27px);width:54px;height:20px;border:0;border-radius:1px;background:repeating-linear-gradient(95deg,rgba(255,255,255,.65) 0 7px,rgba(237,231,210,.72) 8px 14px);box-shadow:0 1px 3px #33415530;transform:rotate(-9deg)}
#notesGrid .gg-free-note:nth-child(3n+1)::after{content:none}
/* Chincheta roja con brillo y sombra */
#notesGrid .gg-free-note:nth-child(3n+2)::before{content:"";position:absolute;z-index:5;top:-12px;left:calc(50% - 9px);width:18px;height:18px;border:1px solid #9f1239;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff9 0 9%,#fb7185 17%,#e11d48 56%,#881337 100%);box-shadow:2px 4px 4px #0f172a55;transform:none}
#notesGrid .gg-free-note:nth-child(3n+2)::after{content:"";position:absolute;z-index:4;top:1px;left:calc(50% + 1px);width:2px;height:13px;background:linear-gradient(#9ca3af,#475569);transform:rotate(16deg)}
/* Clip metálico doble contorno */
#notesGrid .gg-free-note:nth-child(3n)::before{content:"";position:absolute;z-index:5;top:-16px;left:calc(50% - 9px);width:18px;height:39px;border:3px solid #64748b;border-radius:12px 12px 9px 9px;background:transparent;box-shadow:1px 1px 2px #33415555;transform:rotate(12deg)}
#notesGrid .gg-free-note:nth-child(3n)::after{content:"";position:absolute;z-index:6;top:-9px;left:calc(50% - 3px);width:8px;height:27px;border:2px solid #94a3b8;border-radius:7px;background:transparent;transform:rotate(12deg)}
/* Un poco de variedad natural en las inclinaciones, sin cambiar las posiciones */
#notesGrid .gg-free-note:nth-child(5n+2){--gg-rotation:1.7deg!important}
#notesGrid .gg-free-note:nth-child(5n+4){--gg-rotation:-1.8deg!important}

/* Post-its casi cuadrados, con contenido contenido dentro de cada nota */
#notesGrid .gg-free-note{width:250px!important;height:250px!important;min-height:250px!important;max-height:250px!important;box-sizing:border-box!important;overflow:visible!important;display:flex!important;flex-direction:column!important;padding:16px 14px 13px!important;overflow-wrap:anywhere;word-break:normal}
#notesGrid .gg-free-note .gg-postit-bar{flex:0 0 auto;margin-bottom:8px;gap:5px}
#notesGrid .gg-free-note .gg-postit-palette{gap:3px;flex-wrap:nowrap}
#notesGrid .gg-free-note .gg-postit-swatch{width:16px;height:16px;flex:none}
#notesGrid .gg-free-note > :not(.gg-postit-bar){max-width:100%;min-width:0;overflow-wrap:anywhere}
#notesGrid .gg-free-note > :last-child{min-height:0}
@media(max-width:700px){#notesGrid .gg-free-note{width:min(250px,calc(100% - 14px))!important}}

/* Altura adaptable al contenido: conservar proporción sin recortar texto. */
#notesGrid .gg-free-note{
 width:310px!important;max-width:calc(100% - 16px)!important;
 height:auto!important;min-height:310px!important;max-height:none!important;
 overflow:visible!important;padding:22px 20px 20px!important;
}
#notesGrid .gg-free-note > *{flex-shrink:0}
#notesGrid .gg-free-note .note-body,
#notesGrid .gg-free-note .note-text,
#notesGrid .gg-free-note p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){#notesGrid .gg-free-note{width:min(310px,calc(100% - 16px))!important}}
