/* Ventanas del libro de calificaciones */
.gb-window {
  --gb-dialog-ink:#132852;
  --gb-dialog-muted:#4c6184;
  --gb-dialog-line:#d7e3f8;
  position:fixed;
  inset:0;
  width:min(1120px,calc(100vw - 56px));
  max-width:none;
  max-height:calc(100dvh - 28px);
  margin:auto;
  padding:0;
  border:1px solid #e0e9fc;
  border-radius:19px;
  overflow:hidden;
  background:#f6f8ff;
  color:var(--gb-dialog-ink);
  box-shadow:0 22px 64px #10255058,0 4px 14px #173b7427;
}
.gb-window[open],.gb-window-form {display:flex;flex-direction:column;min-height:0}
.gb-window-activity {width:min(700px,calc(100vw - 28px))}
.gb-window::backdrop,.gb-window-layer::backdrop {background:#1a31546a;backdrop-filter:blur(2px)}
.gb-window [hidden] {display:none!important}
.gb-window .gb-window-header {
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  justify-content:initial;
  gap:12px;
  flex:none;
  min-height:75px;
  margin:0;
  padding:12px 16px;
  border:0;
  border-bottom:1px solid #d4e1fb;
  background:
    radial-gradient(ellipse 47% 170% at 100% 145%,#7254f2bf 49%,transparent 50%),
    radial-gradient(ellipse 53% 165% at 99% 136%,#4195fc8c 53%,transparent 54%),
    radial-gradient(ellipse 65% 150% at 102% 120%,#79c6ff98 51%,transparent 52%),
    linear-gradient(105deg,#f3f7ff 13%,#e1ebff 62%,#c4adff);
}
.gb-window-header h2 {margin:0;font-size:clamp(18px,3vw,24px);line-height:1.1;letter-spacing:-.035em}
.gb-window-header p {margin:4px 0 0;color:#244372;font-size:12px;font-weight:650;overflow-wrap:anywhere}
.gb-window-emblem {
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  border:1px solid #ffffff93;
  border-radius:12px;
  background:linear-gradient(145deg,#84baff,#3974ec 62%,#7759f2);
  box-shadow:0 3px 8px #315baf40;
}
.gb-window .gb-ui-icon {flex:none;width:18px;height:18px;object-fit:contain}
.gb-window-emblem .gb-ui-icon {width:29px;height:29px;filter:drop-shadow(0 1px 2px #12346172)}
.gb-window-close {
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  align-self:start;
  border:1px solid #fff;
  border-radius:50%;
  background:#fffffff2;
  color:#1c3666;
  box-shadow:0 2px 7px #25458528;
  font-size:23px;
  line-height:1;
}
.gb-window-close:hover {background:#e9f0ff}
.gb-window-body {display:grid;gap:10px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 15px}
.gb-window-card,.gb-window-disclosure {
  min-width:0;
  border:1px solid var(--gb-dialog-line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 5px #14448112;
}
.gb-window-card > h3 {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:8px 11px;
  border-radius:11px 11px 0 0;
  background:linear-gradient(105deg,#f3f7ff,#e9effd);
  font-size:15px;
  letter-spacing:-.02em;
}
.gb-window-card.gb-activity-details > h3 {background:linear-gradient(105deg,#eaf3ff,#dcdbfa)}
.gb-window-fields {display:grid;gap:9px 12px;padding:10px 11px}
.gb-config-fields {grid-template-columns:repeat(auto-fit,minmax(min(100%,133px),1fr))}
.gb-activity-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
.gb-field-wide {grid-column:1/-1}
.gb-window label {display:grid;align-content:start;gap:4px;min-width:0;font-size:12px;font-weight:750}
.gb-window label:has(> input[type="checkbox"]) {display:flex;align-items:center;gap:7px}
.gb-window :is(input:not([type="checkbox"]):not([type="color"]),select,textarea) {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:32px;
  padding:5px 8px;
  border:1px solid #c6d7f5;
  border-radius:8px;
  background:#fbfdff;
  color:var(--gb-dialog-ink);
  font:inherit;
  font-size:13px;
}
.gb-window textarea {min-height:51px;resize:vertical}
.gb-window ::placeholder {color:#5b7193;opacity:1}
.gb-window input:disabled {color:#536b8c;background:#eef2fa}
.gb-window :is(input,select,textarea):focus-visible {outline:2px solid #3b79ed;outline-offset:1px}
.gb-window input[type="checkbox"] {flex:none;margin:0;accent-color:#195de7}
.gb-config-fields label > span {display:flex;align-items:center;gap:6px;color:var(--gb-dialog-muted);font-size:11px}
.gb-window-actions {display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.gb-window .btn {min-height:34px;padding:7px 11px;border-radius:10px;font-size:12px;white-space:normal}
#app .gb-window .btn-soft {border:1px solid #c6d8fc;background:linear-gradient(#fff,#eef3ff);color:#1d4a99}
#app .gb-window .btn-primary {background:linear-gradient(115deg,#067bd8,#1b4cda);color:#fff}
#app .shell .page .gb-window .gb-window-accent {background:linear-gradient(115deg,#087bda,#2849e5 55%,#7629e8)}
#app .gb-window :is(.btn-soft,.btn-primary):hover {filter:brightness(.96)}
.gb-window .btn img {width:17px;height:17px}
.gb-config-toggles {gap:12px;padding:0 11px 10px}
.gb-config-order {padding:9px 11px;border-top:1px solid #e5edfc;background:#f7f9ff;border-radius:0 0 11px 11px}
.gb-window-card[data-gb-typography] {padding:10px 11px}
.gb-window summary {cursor:pointer;font-size:13px;font-weight:800}
.gb-type-editor {display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,32%);align-items:center;gap:12px;margin:9px 0}
.gb-type-fields {display:grid;gap:7px;min-width:0}
.gb-type-fields fieldset {min-width:0;margin:0;padding:6px 8px 8px;border:1px solid var(--gb-dialog-line);border-radius:9px}
.gb-type-fields legend {padding:0 4px;font-size:13px;font-weight:800}
.gb-type-options,.gb-type-checks {display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
.gb-type-options label {display:flex;gap:5px;align-items:center;font-size:11px}
.gb-type-options select {width:auto;max-width:95px}
.gb-type-options input[data-size] {width:55px}
.gb-type-options input[type="color"] {width:34px;height:25px;padding:2px;border:1px solid #c7d7f2;border-radius:7px;background:#fff}
.gb-type-checks {margin-top:6px}
.gb-type-checks label {font-size:11px}
.gb-type-checks .btn {min-height:27px;padding:4px 7px;font-size:11px}
.gb-type-preview {overflow:hidden;border:1px solid #c7d5fb;border-radius:10px;background:#e9eeff;text-align:center}
.gb-type-example-tag {padding:6px 8px;background:linear-gradient(110deg,#079be9,#244dee,#8e49ec);color:#fff;font-size:13px;font-weight:850}
.gb-type-example-text {display:grid;gap:4px;padding:10px;color:#1d3865}
.gb-config-type-actions small {color:#146952;font-size:11px}

.gb-activity-kind {
  display:flex;
  align-items:end;
  flex-wrap:wrap;
  gap:8px 11px;
  padding:9px 11px;
  font-size:13px;
}
.gb-activity-kind label {flex:1 1 185px}
.gb-activity-rubrics {flex:0 1 auto}
#app .shell .page .gb-window .gb-activity-rubrics {border-color:#d0bdf9;background:linear-gradient(#fff,#f1eaff);color:#5333a8}
.gb-activity-publication {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:6px 10px;
  padding:8px 11px;
  border-top:1px solid #e2ebfa;
  border-radius:0 0 11px 11px;
  background:#f6f9ff;
}
.gb-activity-publication small {color:var(--gb-dialog-muted);font-size:11px}
.gb-window input[role="switch"] {
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  display:block;
  width:33px;
  height:19px;
  padding:0;
  border:1px solid #b4c5df;
  border-radius:20px;
  background:#ccdaee;
  cursor:pointer;
}
.gb-window input[role="switch"]::before {
  content:"";
  display:block;
  width:13px;
  height:13px;
  margin:2px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px #10255045;
}
.gb-window input[role="switch"]:checked {border-color:#1c52dd;background:#1c52dd}
.gb-window input[role="switch"]:checked::before {transform:translateX(14px)}
.gb-activity-number {display:flex;align-items:center;gap:7px}
.gb-activity-number input {flex:1}
.gb-activity-number small {padding:5px 7px;border-radius:999px;background:#e3f6ee;color:#146744;font-size:10px;line-height:1.2}
.gb-window-disclosure {padding:8px 11px}
.gb-window-disclosure[open] > summary {margin-bottom:8px}
.gb-window-disclosure small {color:var(--gb-dialog-muted)}
.gb-activity-files > div {display:flex;align-items:center;justify-content:space-between;gap:7px;padding-top:6px;overflow-wrap:anywhere}
.gb-window-footer {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  flex:none;
  padding:10px 15px;
  border-top:1px solid #dde7fa;
  background:#f7faff;
}
.gb-window-footer small {margin-right:auto;color:var(--gb-dialog-muted);font-size:11px}
.gb-window-delete {margin-right:auto}
.gb-window-error {margin:0;padding:3px 15px 8px;color:#9c2929;font-size:12px}
.gb-window-error:empty {display:none}
.gb-window-layer {
  width:min(660px,calc(100vw - 24px));
  max-width:none;
  max-height:calc(100dvh - 24px);
  padding:0;
  border:1px solid #d7e3f8;
  border-radius:16px;
  background:#fff;
  color:#132852;
  overflow:auto;
  box-shadow:0 16px 55px #1b326b5e;
}
.gb-window-layer > .modal {width:100%;max-height:none;box-shadow:none}
@media(max-width:560px) {
  .gb-window {width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:13px}
  .gb-window .gb-window-header {gap:8px;min-height:61px;padding:9px}
  .gb-window-emblem {width:35px;height:35px}
  .gb-window-emblem .gb-ui-icon {width:22px;height:22px}
  .gb-window-body,.gb-window-footer {padding:8px}
  .gb-type-editor,.gb-activity-fields {grid-template-columns:minmax(0,1fr)}
  .gb-window .btn {padding:6px 8px}
}
