/* FOURMI THINK — Aluno: horário da aula numa grade escolar (duração primeiro, depois o horário). Petróleo e dourado do perfil Aluno. */
.class-grid-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin:0 0 10px;padding:0 14px;border:0;border-radius:14px;background:linear-gradient(160deg,#0b3036,#134a50);color:#fff;font:inherit;font-size:.86rem;font-weight:800;cursor:pointer;box-shadow:0 6px 14px rgba(11,48,54,.18)}
.class-grid-button svg{width:18px;height:18px;flex:none;fill:none;stroke:#efd38f;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sgd-dialog{--d-deep:#0b3036;--d-teal:#134a50;--d-ink:#10292c;--d-gold:#d8b15e;--d-gold2:#efd38f;--d-cream:#f7f5ef;--d-muted:#5d6f6c;--d-line:#e2e7e4;
  width:min(100%,560px);max-width:100%;height:100dvh;max-height:100dvh;margin:0 auto;padding:0;border:0;background:var(--d-cream);color:var(--d-ink);display:none;flex-direction:column;overflow:hidden}
.sgd-dialog[open]{display:flex}
.sgd-dialog::backdrop{background:rgba(6,24,27,.55)}
.sgd-dialog button,.sgd-dialog select{margin:0;font-family:inherit;box-sizing:border-box}
.sgd-dialog svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:600px){.sgd-dialog{height:calc(100dvh - 32px);max-height:900px;margin:16px auto;border-radius:26px;box-shadow:0 30px 70px rgba(6,24,27,.4)}}
.sgd-head{flex:none;display:grid;justify-items:start;gap:4px;padding:max(14px,env(safe-area-inset-top,0px)) 16px 14px;background:linear-gradient(160deg,var(--d-deep),var(--d-teal));color:#fff;text-align:left}
.sgd-back{display:flex;align-items:center;gap:4px;min-height:38px;padding:0 12px 0 6px;border:0;border-radius:12px;background:#ffffff14;color:#fff;font-weight:700;cursor:pointer}
.sgd-head h2{margin:4px 0 0;font-size:1.2rem;line-height:1.25}
.sgd-head p{margin:0;color:var(--d-gold2);font-size:.84rem;font-weight:700}
.sgd-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 14px 18px}
.sgd-step h3{display:flex;align-items:center;gap:8px;margin:14px 0 10px;font-size:.74rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--d-muted)}
.sgd-step h3 b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--d-deep);color:var(--d-gold2);font-size:.72rem;letter-spacing:0}
.sgd-durs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.sgd-dur{display:grid;justify-items:center;gap:1px;min-height:52px;padding:6px 0;border:1.5px solid var(--d-line);border-radius:13px;background:#fff;color:var(--d-ink);line-height:1.05;cursor:pointer}
.sgd-dur b{font-size:1.08rem;font-variant-numeric:tabular-nums}
.sgd-dur small{font-size:.66rem;font-weight:700;color:var(--d-muted)}
.sgd-dur[aria-pressed="true"]{background:var(--d-deep);border-color:var(--d-deep);color:#fff}
.sgd-dur[aria-pressed="true"] small{color:var(--d-gold2)}
.sgd-custom,.sgd-start{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:6px 6px 6px 12px;border:1px solid var(--d-line);border-radius:13px;background:#fff;font-size:.84rem;font-weight:700}
.sgd-start{margin:0 0 10px}
.sgd-start select{flex:none;width:auto;min-height:36px;padding:0 10px;border:1px solid var(--d-line);border-radius:10px;background:var(--d-cream);color:var(--d-ink);font-weight:800;font-variant-numeric:tabular-nums}
.sgd-stepper{display:flex;align-items:center;gap:6px}
.sgd-stepper button{width:36px;height:36px;border:1px solid var(--d-line);border-radius:10px;background:var(--d-cream);color:var(--d-ink);font-size:1.1rem;font-weight:800;cursor:pointer}
.sgd-stepper output{min-width:62px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}
.sgd-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0 0 10px}
.sgd-days button{min-width:0;min-height:36px;padding:0 2px;border:1px solid var(--d-line);border-radius:999px;background:#fff;color:var(--d-ink);font-size:.78rem;font-weight:800;cursor:pointer}
.sgd-days button[aria-pressed="true"]{background:var(--d-deep);border-color:var(--d-deep);color:#fff}
.sgd-table{display:grid;grid-template-columns:46px repeat(var(--n),minmax(0,1fr));gap:4px;padding:8px;border:1px solid var(--d-line);border-bottom:0;border-radius:16px 16px 0 0;background:#fff}
.sgd-dh{display:grid;justify-items:center;font-size:.64rem;font-weight:800;color:var(--d-muted);text-transform:uppercase;letter-spacing:.04em}
.sgd-dh b{font-size:.92rem;color:var(--d-teal);letter-spacing:0}
.sgd-tm{display:grid;align-content:center;justify-items:end;padding-right:2px;font-size:.68rem;line-height:1.15;font-variant-numeric:tabular-nums}
.sgd-tm small{color:var(--d-muted);font-size:.6rem}
.sgd-cell{display:grid;place-items:center;min-width:0;height:42px;padding:0;border:1.5px dashed #cfdad6;border-radius:10px;background:transparent;color:#9fb2ac;font-size:.62rem;font-weight:800;cursor:pointer;overflow:hidden}
.sgd-cell svg{width:16px;height:16px}
.sgd-cell:hover{border-color:var(--d-gold);color:var(--d-gold)}
.sgd-cell.is-busy{border:0;background:color-mix(in srgb,var(--c) 17%,#fff);color:color-mix(in srgb,var(--c) 78%,#0b1b1d);cursor:not-allowed}
.sgd-cell.is-mine{border:0;background:linear-gradient(160deg,var(--d-gold2),var(--d-gold));color:#1d1606;box-shadow:0 3px 8px #d8b15e66}
.sgd-legend{display:flex;flex-wrap:wrap;gap:12px;padding:8px 12px;border:1px solid var(--d-line);border-top:1px solid var(--d-line);border-radius:0 0 16px 16px;background:#fff;font-size:.7rem;font-weight:700;color:var(--d-muted)}
.sgd-legend i{display:inline-block;width:11px;height:11px;margin-right:5px;border-radius:3px;vertical-align:-1px}
.sgd-legend .is-free{border:1.5px dashed #c3d0cb}
.sgd-legend .is-busy{background:#dfe8f5}
.sgd-legend .is-mine{background:var(--d-gold)}
.sgd-extra{margin-top:12px}
.sgd-extra p{margin:0 0 6px;font-size:.76rem;font-weight:800;color:var(--d-muted)}
.sgd-extra div{display:flex;flex-wrap:wrap;gap:6px}
.sgd-extra button{display:flex;align-items:center;gap:4px;min-height:32px;padding:0 6px 0 11px;border:0;border-radius:999px;background:#f6e8c4;color:#4a3a10;font-size:.76rem;font-weight:800;cursor:pointer}
.sgd-extra svg{width:15px;height:15px}
.sgd-empty{margin:16px 0;color:var(--d-muted);text-align:center}
.sgd-warn{flex:none;display:flex;gap:8px;align-items:flex-start;margin:0 12px 8px;padding:10px 12px;border:1px solid #f1c3b8;border-radius:14px;background:#fff4f1;color:#7d2b1c;font-size:.8rem;font-weight:700}
.sgd-foot{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 16px max(12px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--d-line);background:#fff}
.sgd-foot p{display:grid;min-width:0;margin:0;font-size:.88rem}
.sgd-foot small{overflow:hidden;color:var(--d-muted);font-size:.74rem;white-space:nowrap;text-overflow:ellipsis}
.sgd-use{min-height:48px;padding:0 16px;border:0;border-radius:13px;background:var(--d-deep);color:#fff;font-weight:800;cursor:pointer}
.sgd-use:disabled{opacity:.45;cursor:default}
@media(max-width:359px){.sgd-body{padding-inline:10px}.sgd-durs{gap:5px}.sgd-table{grid-template-columns:38px repeat(var(--n),minmax(0,1fr));gap:3px;padding:6px}.sgd-cell{height:38px;font-size:.56rem}.sgd-head,.sgd-foot{padding-inline:12px}}
