/* Hoja 2: compact account copy, larger community showcase. */
#hoja2-panel .hoja2-inner{
  grid-template-rows:auto auto auto minmax(0,1fr) !important;
  gap:6px !important;
}
#hoja2-panel .timer-banner-top{
  min-height:32px !important;
  padding:6px 14px !important;
  border-width:2px !important;
  box-shadow:3px 3px 0 #14051f !important;
  font-size:11px !important;
}
#hoja2-panel #info-plan-status-card{
  width:100% !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  font-size:12px !important;
  line-height:1.3 !important;
}
#hoja2-panel .compact-plan-details{
  border:1px solid rgba(184,76,255,.65);
  background:#29113f;
  color:#f7eaff;
  box-shadow:3px 3px 0 #14051f;
}
#hoja2-panel .compact-plan-details summary{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr) max-content;
  align-items:center;
  gap:12px;
  min-height:36px;
  padding:6px 12px;
  color:#f7eaff;
  cursor:pointer;
  list-style:none;
}
#hoja2-panel .compact-plan-details summary::-webkit-details-marker{display:none;}
#hoja2-panel .compact-plan-details summary strong{color:#ff9bd5;font-size:11px;white-space:nowrap;}
#hoja2-panel .compact-plan-details summary span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#hoja2-panel .compact-plan-details .plan-details-hint{color:#d7b1ef;font-size:10px;white-space:nowrap;}
#hoja2-panel .compact-plan-details[open] summary{border-bottom:1px solid rgba(255,255,255,.12);}
#hoja2-panel .compact-plan-details ul{display:grid;gap:4px;margin:0;padding:8px 14px 9px 30px;color:#eadff6;font-size:11px;line-height:1.35;}

#hoja2-panel .hoja2-top{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  align-items:stretch !important;
  gap:10px !important;
  width:min(100%,1180px) !important;
  margin:0 auto !important;
  padding:8px !important;
  border:2px solid #b84cff !important;
  background:#1b1030 !important;
  box-shadow:5px 5px 0 #14051f !important;
}
#hoja2-panel .hoja2-top > #btn-acceso-contador,
#hoja2-panel .hoja2-top > #crearModeloBtn,
#hoja2-panel .hoja2-top > #btn-crear-patron{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:50px !important;
  margin:0 !important;
  padding:9px 12px !important;
  border:2px solid #16051f !important;
  border-radius:0 !important;
  background:linear-gradient(135deg,#a855f7,#ec4899) !important;
  box-shadow:3px 3px 0 #14051f !important;
  color:#fff !important;
  font-family:"Atkinson Hyperlegible",sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  letter-spacing:.025em !important;
  line-height:1.2 !important;
  text-align:center !important;
}
#hoja2-panel .hoja2-top > #btn-acceso-contador:hover,
#hoja2-panel .hoja2-top > #crearModeloBtn:hover,
#hoja2-panel .hoja2-top > #btn-crear-patron:hover{filter:brightness(1.1);transform:translateY(-1px);}
#hoja2-panel .hoja2-guide{display:contents !important;}

#hoja2-panel .hoja2-lower{
  grid-template-columns:minmax(190px,.72fr) 260px minmax(0,1.6fr) !important;
  gap:16px !important;
}
#hoja2-panel .hoja2-lower > .hoja2-history,
#hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-featured,
#hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-community{
  padding:8px !important;
}
#hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-community .community-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)) !important;
  grid-auto-rows:150px !important;
  align-content:start !important;
  gap:12px !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
}
#hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-community .community-grid .pattern-card{
  flex:initial !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:150px !important;
  min-height:0 !important;
  max-height:none !important;
}

@media(max-width:760px){
  #hoja2-panel .hoja2{padding:10px 12px !important;overflow-y:auto !important;}
  #hoja2-panel .hoja2-inner{
    height:auto !important;
    min-height:100% !important;
    grid-template-rows:auto auto auto auto !important;
    overflow:visible !important;
  }
  #hoja2-panel .compact-plan-details summary{grid-template-columns:minmax(0,1fr) max-content;gap:3px 8px;}
  #hoja2-panel .compact-plan-details summary strong{grid-column:1;}
  #hoja2-panel .compact-plan-details summary span:nth-child(2){grid-column:1;white-space:normal;}
  #hoja2-panel .compact-plan-details .plan-details-hint{grid-column:2;grid-row:1 / span 2;}
  #hoja2-panel .hoja2-top{width:100% !important;gap:6px !important;padding:6px !important;}
  #hoja2-panel .hoja2-top > #btn-acceso-contador,
  #hoja2-panel .hoja2-top > #crearModeloBtn,
  #hoja2-panel .hoja2-top > #btn-crear-patron{min-height:58px !important;padding:6px 3px !important;font-size:10px !important;line-height:1.1 !important;letter-spacing:0 !important;}
  #hoja2-panel .hoja2-lower{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto !important;
    height:auto !important;
    overflow:visible !important;
  }
  #hoja2-panel .hoja2-lower > .hoja2-history,
  #hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-featured,
  #hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-community{
    grid-column:1 !important;
    grid-row:auto !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }
  #hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-community{order:-2 !important;}
  #hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-community .community-grid{
    grid-template-columns:1fr !important;
    grid-auto-rows:150px !important;
    max-height:54vh !important;
  }
  #hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-featured{order:-1 !important;width:100% !important;max-width:none !important;}
  #hoja2-panel .hoja2-lower > .hoja2-right-column > .hoja2-featured > #featured-grid{width:100% !important;}
  #hoja2-panel .hoja2-lower > .hoja2-history{order:0 !important;}
  #hoja2-panel .hoja2-lower > .hoja2-history .history-box{max-height:35vh !important;}
}

/* Hoja 2 gallery: let each pattern preview be large enough to judge at a glance. */
#hoja2-panel .hoja2-community #community-models-grid{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr))!important;
  grid-auto-rows:auto!important;
}
#hoja2-panel .hoja2-community #community-models-grid .pattern-card{
  height:220px!important;min-height:220px!important;max-height:220px!important;
  gap:4px!important;padding:7px!important;
}
#hoja2-panel .hoja2-community #community-models-grid .pattern-card-media{
  flex:0 0 116px!important;width:116px!important;height:116px!important;min-width:116px!important;min-height:116px!important;
}
#hoja2-panel .hoja2-community #community-models-grid .mini-preview-canvas{
  flex:0 0 112px!important;width:112px!important;height:112px!important;min-width:112px!important;min-height:112px!important;max-width:112px!important;max-height:112px!important;
}
#hoja2-panel .hoja2-community #community-models-grid .pattern-meta{max-height:48px!important;gap:2px!important}
#hoja2-panel .hoja2-community #community-models-grid .pattern-meta strong{font-size:12px!important}
#hoja2-panel .hoja2-community #community-models-grid .pattern-size,
#hoja2-panel .hoja2-community #community-models-grid .pattern-labor,
#hoja2-panel .hoja2-community #community-models-grid .pattern-author{font-size:10px!important}
#hoja2-panel #featured-grid{height:132px!important;min-height:132px!important;max-height:132px!important;flex-basis:132px!important}
#hoja2-panel #featured-grid .pattern-card{height:130px!important;min-height:130px!important;max-height:130px!important}
#hoja2-panel #featured-grid .pattern-card-media{flex:0 0 88px!important;width:88px!important;height:88px!important;min-width:88px!important;min-height:88px!important}
#hoja2-panel #featured-grid .mini-preview-canvas{flex:0 0 84px!important;width:84px!important;height:84px!important;min-width:84px!important;min-height:84px!important;max-width:84px!important;max-height:84px!important}
@media(max-width:760px){
  #hoja2-panel .hoja2-community #community-models-grid{grid-auto-rows:auto!important;max-height:60vh!important}
  #hoja2-panel .hoja2-community #community-models-grid .pattern-card{height:220px!important;min-height:220px!important;max-height:220px!important}
}

#hoja2-panel .hoja2-community #community-models-grid .community-gallery-group-heading{
  display:flex!important;grid-column:1/-1!important;align-items:center!important;
  width:100%!important;height:30px!important;min-height:30px!important;max-height:30px!important;
  margin:4px 0 0!important;padding:0 5px!important;box-sizing:border-box!important;
  border-bottom:1px solid rgba(174,205,152,.42)!important;background:transparent!important;
  color:#d9eabf!important;font:800 12px/1.2 'Atkinson Hyperlegible',sans-serif!important;
  letter-spacing:.04em!important;text-transform:uppercase!important;
}
