/* Student accounts (components/students.py, components/seats.py, st_student.js): st- */

/* the header line: where everybody else has the assistant's box */
#main_view.mv-student .as-bar { display: none; }
.st-strip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 10px; font-size: .78rem;
    color: #cfefff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.st-chip i { color: #4be9fa; font-size: .8rem; }
.st-chip.go { cursor: pointer; color: #ffe2b0; border-color: rgba(240,160,48,.4); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-chip.go i { color: #f0a030; }
.st-chip.go:hover { background: rgba(240,160,48,.14); }
#mb_root .st-strip { flex-wrap: wrap; margin: 0 0 12px; }
#mb_root .st-chip.go { display: none; }           /* the Spherography is on the desktop app */

/* running is locked: the Run buttons of the Develop page wear a padlock (the click still answers why) */
body.st-norun #node-compute::before, body.st-norun #algo-compute-all::before, body.st-norun #algo-compute-changed::before {
    content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; color: #f0a030; }

/* locked cards */
.mk-card.locked .mk-img { filter: grayscale(.75) brightness(.6); }
.mk-card.locked .mk-title, .mk-card.locked .mk-text { opacity: .72; }
.mk-img { position: relative; }
.mk-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #ffe2b0;
    background: rgba(0,0,0,.72); border: 1px solid rgba(240,160,48,.55); }
.st-locked, .sg-btn.st-locked { color: #ffe2b0 !important; background: rgba(240,160,48,.1) !important;
    border: 1px solid rgba(240,160,48,.4) !important; }
.st-locked i { color: #f0a030; margin-right: 3px; }
#mb_root .mb-card.mb-locked .mb-cimg { filter: grayscale(.75) brightness(.6); }
#mb_root .mb-card.mb-locked .mb-cgo { color: #ffe2b0; }

/* the spotlight on the Learn icon */
.st-spot { position: fixed; inset: 0; z-index: 3000; }
.st-spot.flat { background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.st-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(0,0,0,.72), 0 0 0 2px #f0a030, 0 0 22px 6px rgba(240,160,48,.7);
    cursor: pointer; animation: st-pulse 1.8s ease-in-out infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 200vmax rgba(0,0,0,.72), 0 0 0 3px #ffd08a, 0 0 34px 12px rgba(240,160,48,.85); } }
.st-bubble { position: fixed; width: min(380px, calc(100vw - 24px)); padding: 16px 18px; border-radius: 12px; color: #e8e8e8;
    background: rgb(17,24,32); border: 1px solid rgba(240,160,48,.55); box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.st-spot.flat .st-bubble { position: static; }
.st-bubble::before { content: ''; position: absolute; top: -7px; left: var(--arrow, 40px); width: 12px; height: 12px; margin-left: -6px;
    transform: rotate(45deg); background: rgb(17,24,32); border-left: 1px solid rgba(240,160,48,.55); border-top: 1px solid rgba(240,160,48,.55); }
.st-spot.flat .st-bubble::before { display: none; }
.st-b-t { font-weight: 600; color: #ffe2b0; margin-bottom: 6px; }
.st-b-t i { color: #f0a030; margin-right: 4px; }
.st-b-m { font-size: .88rem; line-height: 1.45; color: #d6e2ec; }
.st-b-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.st-b-go, .st-b-later { border: 0; border-radius: 8px; padding: 7px 13px; font-size: .84rem; cursor: pointer; }
.st-b-go { background: #f0a030; color: #1b1205; font-weight: 600; }
.st-b-go:hover { background: #ffb95a; }
.st-b-later { background: rgba(255,255,255,.08); color: #d6e2ec; }
.st-b-later:hover { background: rgba(255,255,255,.14); }

/* the seat went */
.st-lost { position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(0,0,0,.82); }
.st-lost-c { width: min(420px, 100%); padding: 24px; border-radius: 14px; text-align: center; color: #e8e8e8;
    background: rgb(17,24,32); border: 1px solid rgba(255,255,255,.12); }
.st-lost-ic { font-size: 2rem; color: #f0a030; margin-bottom: 8px; }
.st-lost-t { font-size: 1.1rem; font-weight: 600; color: #cfefff; margin-bottom: 8px; }
.st-lost-m { font-size: .9rem; line-height: 1.5; color: #d6e2ec; margin-bottom: 16px; }
.st-warn { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3050; max-width: calc(100vw - 24px); padding: 10px 16px;
    border-radius: 10px; font-size: .88rem; color: #1b1205; background: #f0a030; box-shadow: 0 8px 26px rgba(0,0,0,.5); }

/* the waiting room, in the login panel and in the Profile's preview */
.st-wait { color: #e8e8e8; text-align: center; padding: 6px 2px; }
.st-wait-ic { font-size: 1.9rem; color: #f0a030; margin-bottom: 10px; }
.st-wts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.st-wt { padding: 10px 6px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.st-wn { font-size: 1.25rem; font-weight: 600; color: #cfefff; }
.st-wl { font-size: .74rem; color: #9fb3c8; }
.st-wait-p { font-size: .88rem; line-height: 1.5; color: #d6e2ec; margin-bottom: 12px; }
.st-wait-keep { font-size: .88rem; line-height: 1.5; padding: 10px 12px; border-radius: 10px; color: #ffe2b0;
    background: rgba(240,160,48,.1); border: 1px solid rgba(240,160,48,.4); }
.st-wait-keep i { color: #f0a030; }
.st-modal { background: rgb(17,24,32); color: #e8e8e8; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.st-modal .modal-header { border-bottom: 1px solid rgba(255,255,255,.1); }
.st-modal .modal-title { color: #cfefff; font-size: 1.05rem; }
.st-modal .btn-close { filter: invert(1); }

/* the master console, tab Students */
.ms-st-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin-bottom: 12px; }
.ms-st-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .78rem; color: #9fb3c8; }
.ms-st-form input { width: 120px; }
.ms-st-act { display: flex; align-items: center; gap: 6px; }
.ms-st-own { width: 72px; }

/* the Profile page */
.st-bar { height: 9px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); margin: 6px 0 4px; }
.st-bar i { display: block; height: 100%; background: #4be9fa; }
.st-bar.full i { background: #e66767; }
.st-psec { margin-top: 14px; }
.st-pl { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: .86rem; color: #d6e2ec; }
.st-pl i { width: 16px; color: #9fb3c8; }
.st-pl.on i { color: #5fbf6a; }
.st-pl.off i { color: #f0a030; }
.st-switch label { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #e8e8e8; cursor: pointer; margin: 2px 0 8px; }
.st-switch input { margin: 0; }

@media (max-width: 1100px) { .st-chip.go span { display: none; } }
