/* Herramientas del aula · Portal docente */
.cl246l-workspace {
  --class-line:var(--book-line,#d9e5f7);
  --class-ink:var(--book-ink,#13294f);
  --class-muted:var(--book-muted,#4c6386);
  --class-shadow:var(--book-shadow,0 6px 16px #19478912);
  display:grid;
  gap:12px;
  min-width:0;
  color:var(--class-ink);
}
.cl246l-workspace [hidden] {display:none!important}
.cl246l-card {
  min-width:0;
  padding:clamp(12px,1.5vw,19px);
  border:1px solid var(--class-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--class-shadow);
}
.cl246l-toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  align-items:center;
  padding:8px 12px;
}
.cl246l-workspace .gb-ui-icon {
  display:block;
  flex:none;
  width:20px;
  height:20px;
  object-fit:contain;
}
.cl246l-toolbar [aria-selected="true"] .gb-ui-icon {
  padding:2px;
  border-radius:5px;
  background:#fff;
}
.cl246l-title,.cl246l-panelhead {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
}
.cl246l-title {
  margin:0;
  font-size:clamp(16px,2vw,21px);
  line-height:1.2;
  letter-spacing:-.02em;
}
.cl246l-title .gb-ui-icon {
  width:35px;
  height:35px;
  padding:6px;
  border-radius:10px;
  background:#eaf2ff;
}
.cl246l-panelhead {justify-content:space-between;margin-bottom:12px}
.cl246l-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
}
.cl246l-workspace .btn {
  min-height:36px;
  padding:7px 11px;
  border-radius:9px;
  font-size:12px;
}
.cl246l-workspace .btn:disabled {opacity:.5;cursor:not-allowed}
.cl246l-field {
  display:grid;
  align-content:start;
  min-width:0;
  gap:5px;
  color:var(--class-muted);
  font-size:12px;
  font-weight:750;
}
.cl246l-workspace :is(select,input[type="number"]) {
  min-height:36px;
  min-width:0;
  max-width:100%;
  padding:6px 9px;
  border:1px solid #cdddf4;
  border-radius:9px;
  background:#fff;
  color:var(--class-ink);
  font:inherit;
  font-size:13px;
}
.cl246l-field input[type="number"] {width:78px}
.cl246l-assignment {max-width:min(100%,360px)}
.cl246l-note {margin:0;color:var(--class-muted);font-size:12px;overflow-wrap:anywhere}
.cl246l-note:empty,#cl246l-picked:empty,.cl246l-teamgrid:empty {display:none}

.cl246l-plan {display:flex;flex-direction:column}
.cl246l-planhead {position:relative;z-index:1;justify-content:flex-start;gap:7px 5px}
.cl246l-planhead .cl246l-title {gap:6px;font-size:clamp(16px,1.65vw,20px)}
.cl246l-planhead .cl246l-title .gb-ui-icon {width:29px;height:29px;padding:4px}
.cl246l-planhead > .cl246l-actions {margin-inline-start:auto}
.cl246l-planhead #cl246l-projectplan {padding-inline:6px;font-size:11px}
.cl246l-zoom {
  display:flex;
  gap:3px;
  padding:3px;
  border:1px solid var(--class-line);
  border-radius:10px;
  background:#f1f6ff;
}
.cl246l-zoom .btn {min-width:26px;min-height:28px;padding:4px 5px;border-radius:7px;font-size:11px}
.cl246l-zoom [aria-pressed="true"] {font-weight:850;color:#174f9e}
#cl246l-seatout {
  block-size:clamp(340px,63dvh,780px);
  min-width:0;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid #ceddf3;
  border-radius:12px;
  background-color:#f5f9ff;
  background-image:linear-gradient(#dce8f7 1px,transparent 1px),linear-gradient(90deg,#dce8f7 1px,transparent 1px);
  background-size:26px 26px;
  scrollbar-color:#9ebae6 #edf4ff;
}
.cl246l-board {position:relative;margin-inline:auto}
#cl246l-seatout[data-background="solid"] {background:var(--plan-color,#e6efff)}
#cl246l-seatout[data-background="image"] {background:#edf3fc}
#cl246l-seatout[data-background="image"] > .cl246l-board {
  background:var(--plan-image,none) center/contain no-repeat;
}
.cl246l-seat {
  position:absolute;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:100px;
  height:106px;
  padding:5px;
  border:1px solid #c3d5ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 8px #1947891e;
  color:#163258;
  font-weight:700;
  cursor:default;
}
.cl246l-seat[data-movable="true"] {touch-action:none;cursor:grab}
.cl246l-seat.dragging {z-index:2;cursor:grabbing}
.cl246l-seat[data-state="absent"] {outline:3px solid #dc2626;background:#fee2e2}
.cl246l-seat[data-state="picked"] {outline:3px solid #2563eb;background:#dbeafe}
.cl246l-seat img {
  width:47px;
  height:47px;
  border:2px solid #e3edfc;
  border-radius:50%;
  object-fit:cover;
  pointer-events:none;
}
.cl246l-seat span {
  max-height:3.75em;
  overflow:hidden;
  overflow-wrap:anywhere;
  font-size:12px;
  line-height:1.25;
  pointer-events:none;
}
.cl246l-desk {
  position:absolute;
  inset:auto auto 14px 50%;
  display:flex;
  align-items:center;
  gap:8px;
  transform:translateX(-50%);
  padding:10px 19px;
  border:1px solid #c2d8f8;
  border-radius:12px;
  background:linear-gradient(135deg,#fff,#e1edff);
  color:#214a83;
  font-size:15px;
  font-weight:800;
  white-space:nowrap;
  pointer-events:none;
}
.cl246l-empty {display:grid;place-items:center;height:100%;margin:0;padding:18px;text-align:center;color:var(--class-muted)}
.cl246l-planoptions {
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.cl246l-fold {
  border:1px solid var(--class-line);
  border-radius:9px;
  background:linear-gradient(130deg,#f9fbff,#eef4ff);
}
.cl246l-fold[open] {border-color:#b6cced;background:#eaf2ff}
.cl246l-fold > summary {
  display:flex;
  align-items:center;
  gap:5px;
  padding:7px 5px;
  color:#225184;
  cursor:pointer;
  font-size:11px;
  font-weight:800;
  list-style:none;
}
.cl246l-fold > summary .gb-ui-icon {width:15px;height:15px}
.cl246l-fold > summary::-webkit-details-marker {display:none}
.cl246l-fold > summary span {flex:1}
.cl246l-fold > summary::after {content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.cl246l-fold[open] > summary::after {transform:rotate(225deg)}
.cl246l-foldbody {
  position:absolute;
  inset:calc(100% + 7px) auto auto 0;
  z-index:1;
  display:grid;
  gap:9px;
  width:min(370px,calc(100vw - 42px));
  max-height:min(60dvh,480px);
  overflow:auto;
  padding:11px 12px;
  border:1px solid var(--class-line);
  border-radius:12px;
  background:#fbfdff;
  box-shadow:0 8px 24px #19478929;
}
.cl246l-fold:last-child .cl246l-foldbody {inset-inline: auto 0}
.cl246l-background {
  display:grid;
  gap:8px;
  min-width:0;
  margin:2px 0 0;
  padding:8px 10px;
  border:1px solid var(--class-line);
  border-radius:9px;
  background:#f1f6ff;
}
.cl246l-background legend {padding:0 4px;color:var(--class-ink);font-size:13px;font-weight:800}
.cl246l-background input[type="color"] {width:47px;height:30px;border:1px solid var(--class-line);border-radius:6px;background:#fff;cursor:pointer}
.cl246l-background input[type="file"] {max-width:100%;font:inherit;font-weight:500}
.cl246l-background-image {display:grid;gap:5px}
.cl246l-check {display:flex;align-items:center;gap:8px;font-size:13px}
.cl246l-check input {accent-color:#145acc}
#cl246l-sessionbox {display:grid;justify-items:start;gap:7px}
#cl246l-sessionbox label {width:100%}
#cl246l-picked {
  padding:10px;
  border-radius:10px;
  background:#fff;
  color:#20497f;
  text-align:center;
  font-weight:800;
  overflow-wrap:anywhere;
}
#cl246l-picked p {margin:5px 0 9px;font-size:12px}

.cl246l-tool .cl246l-note {margin-block:7px}
.cl246l-teamcontrols,.cl246l-timercontrols {
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  gap:9px 12px;
}
.cl246l-watch {
  display:grid;
  place-content:center;
  justify-items:center;
  gap:7px;
  min-height:150px;
  margin:12px 0;
  padding:14px;
  border:1px solid #d7e6fb;
  border-radius:14px;
  background:radial-gradient(ellipse at 90% 110%,#d9d5ff,transparent 55%),linear-gradient(135deg,#f3f8ff,#e6eeff);
}
#cl246l-clockstate {
  padding:4px 10px;
  border-radius:999px;
  background:#fff;
  color:#41597c;
  font-size:12px;
  font-weight:800;
}
.cl246l-watch[data-clock-state="running"] #cl246l-clockstate {background:#ddf6ea;color:#116544}
.cl246l-watch[data-clock-state="done"] #cl246l-clockstate {background:#fff1d9;color:#854b0b}
.cl246l-workspace #cl246l-clock {
  color:#183568;
  font-size:clamp(47px,9vw,100px);
  font-weight:850;
  line-height:1;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
}
.cl246l-timeractions {justify-content:center}

.cl246l-fullscreen {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  color:inherit;
  background:#f1f6ff;
}
.cl246l-card:fullscreen,.cl246l-fullscreen > .cl246l-card {
  width:100%;
  height:100%;
  overflow:auto;
  padding:clamp(12px,2vw,24px);
  border:0;
  border-radius:0;
  background:#f1f6ff;
}
.cl246l-plan:fullscreen #cl246l-seatout,.cl246l-fullscreen #cl246l-seatout {
  flex:1;
  min-height:0;
  block-size:auto;
}
#cl246l-timerpanel:fullscreen,.cl246l-fullscreen #cl246l-timerpanel {display:flex;flex-direction:column}
#cl246l-timerpanel:fullscreen .cl246l-watch,.cl246l-fullscreen .cl246l-watch {flex:1}
#cl246l-timerpanel:fullscreen #cl246l-clock,.cl246l-fullscreen #cl246l-clock {font-size:clamp(68px,21vmin,240px)}

@media(max-width:620px) {
  .cl246l-planoptions {flex-basis:100%}
  .cl246l-fold:last-child .cl246l-foldbody {inset-inline:0 auto}
  .cl246l-foldbody {max-width:100%}
  .cl246l-workspace .btn {white-space:normal}
}
