/* G383 · the app shell's own screens (sign-in, no access) — mockup "G383 App Shell" v7, OK'd by Garrett 12-04.
   The room is the Labs home's (source-css/331-labs-room.css: wall, grain, brush, leaf shadow; 08-labs-slate.css: the steel
   card), plus a gold lamp pool behind the leaves, the Fretboard-orange wood shelf, a dark floor with gold rising from the
   bottom. Nothing here moves (architecture rule 43). The page itself (Student Home…) brings its own styles. */
html, body.go-app { margin: 0; min-height: 100%; background: #08090b; }
.go-app-mount[hidden], .gsi[hidden] { display: none !important; }
.go-hosted-wait { min-height: 100vh; margin: 0; display: grid; place-items: center; text-align: center;
  font: 600 15px/1.5 Manrope, system-ui, sans-serif; color: rgba(255,255,255,.5); }
html.go-hosted-failed .go-hosted-wait::after { content: " \2014  couldn\2019t load, please reload the page"; }

.gsi{--room:radial-gradient(55% 60% at -6% 58%, rgba(255, 224, 182, 0.17), rgba(255, 224, 182, 0.06) 45%, rgba(255, 224, 182, 0) 75%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 38%, rgba(255, 240, 215, 0.04) 50%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(60% 30% at 78% 8%, rgba(255, 220, 170, 0.064), rgba(255, 220, 170, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='g' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.2 0 0 0 -0.6'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E") 0 0 / 240px 240px repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='a' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.04' numOctaves='4' seed='6'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.44 0 0 0 0 0.75 1.6 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23a)' opacity='.28'/%3E%3C/svg%3E") 50% 50% / cover no-repeat,
    linear-gradient(160deg, #111a3e 0%, #070a1c 100%);--leaf:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='540' viewBox='0 0 640 540'%3E%3Cdefs%3E%3Cfilter id='s' x='-20%' y='-20%' width='140%' height='140%'%3E%3CfeGaussianBlur stdDeviation='3.2'/%3E%3C/filter%3E%3Cfilter id='p' x='-20%' y='-20%' width='140%' height='140%'%3E%3CfeGaussianBlur stdDeviation='14'/%3E%3C/filter%3E%3Cg id='b'%3E%3Cpath d='M30 530 C 160 420, 300 250, 610 40' stroke-width='5' fill='none'/%3E%3Cpath d='M250 345 C 330 330, 430 350, 560 420' stroke-width='5' fill='none'/%3E%3Cpath d='M150 445 C 150 380, 170 300, 215 215' stroke-width='5' fill='none'/%3E%3Cpath transform='translate(61.5 502.5) rotate(10)' d='M0 0C23.6 -28.3 66.1 -25.5 94.4 0C66.1 25.5 23.6 28.3 0 0Z'/%3E%3Cpath transform='translate(108.4 459) rotate(-95.5)' d='M0 0C29.4 -35.3 82.5 -31.8 117.8 0C82.5 31.8 29.4 35.3 0 0Z'/%3E%3Cpath transform='translate(158.5 411) rotate(8.2)' d='M0 0C22.1 -26.5 61.9 -23.9 88.4 0C61.9 23.9 22.1 26.5 0 0Z'/%3E%3Cpath transform='translate(213.5 358.8) rotate(-95.2)' d='M0 0C18.1 -21.8 50.8 -19.6 72.6 0C50.8 19.6 18.1 21.8 0 0Z'/%3E%3Cpath transform='translate(274.5 302.5) rotate(10)' d='M0 0C26.5 -31.8 74.3 -28.6 106.1 0C74.3 28.6 26.5 31.8 0 0Z'/%3E%3Cpath transform='translate(343.3 242.2) rotate(-92.4)' d='M0 0C28.3 -34 79.2 -30.6 113.2 0C79.2 30.6 28.3 34 0 0Z'/%3E%3Cpath transform='translate(421.1 178.3) rotate(13.6)' d='M0 0C19.5 -23.4 54.5 -21 77.9 0C54.5 21 19.5 23.4 0 0Z'/%3E%3Cpath transform='translate(509.6 110.8) rotate(-88.3)' d='M0 0C19.9 -23.9 55.9 -21.5 79.8 0C55.9 21.5 19.9 23.9 0 0Z'/%3E%3Cpath transform='translate(610 40) rotate(-34.1)' d='M0 0C23.6 -28.3 66.1 -25.5 94.4 0C66.1 25.5 23.6 28.3 0 0Z'/%3E%3Cpath transform='translate(287.4 340.7) rotate(-54.8)' d='M0 0C18.4 -22.1 51.5 -19.9 73.6 0C51.5 19.9 18.4 22.1 0 0Z'/%3E%3Cpath transform='translate(333.3 341.8) rotate(57.4)' d='M0 0C22.9 -27.5 64.3 -24.8 91.8 0C64.3 24.8 22.9 27.5 0 0Z'/%3E%3Cpath transform='translate(383.2 349.9) rotate(-39.3)' d='M0 0C17.2 -20.7 48.2 -18.6 68.9 0C48.2 18.6 17.2 20.7 0 0Z'/%3E%3Cpath transform='translate(437.4 365.4) rotate(70.8)' d='M0 0C14.2 -17 39.6 -15.3 56.6 0C39.6 15.3 14.2 17 0 0Z'/%3E%3Cpath transform='translate(496.3 388.6) rotate(-28)' d='M0 0C20.7 -24.8 57.9 -22.3 82.7 0C57.9 22.3 20.7 24.8 0 0Z'/%3E%3Cpath transform='translate(560 420) rotate(28.3)' d='M0 0C18.4 -22.1 51.5 -19.9 73.6 0C51.5 19.9 18.4 22.1 0 0Z'/%3E%3Cpath transform='translate(152.4 404.3) rotate(-31.4)' d='M0 0C15.6 -18.7 43.7 -16.8 62.4 0C43.7 16.8 15.6 18.7 0 0Z'/%3E%3Cpath transform='translate(159.9 360.4) rotate(-129.4)' d='M0 0C19.5 -23.4 54.5 -21 77.9 0C54.5 21 19.5 23.4 0 0Z'/%3E%3Cpath transform='translate(172.7 314) rotate(-20)' d='M0 0C14.6 -17.5 40.9 -15.8 58.4 0C40.9 15.8 14.6 17.5 0 0Z'/%3E%3Cpath transform='translate(191 265.3) rotate(-118.9)' d='M0 0C12 -14.4 33.6 -13 48 0C33.6 13 12 14.4 0 0Z'/%3E%3Cpath transform='translate(215 215) rotate(-62.1)' d='M0 0C15.6 -18.7 43.7 -16.8 62.4 0C43.7 16.8 15.6 18.7 0 0Z'/%3E%3C/g%3E%3C/defs%3E%3Cg transform='translate(640 0) scale(-1 1)' fill='%23050507' stroke='%23050507'%3E%3Cuse href='%23b' filter='url(%23p)' opacity='.18' transform='translate(14 10)'/%3E%3Cuse href='%23b' filter='url(%23s)' opacity='.52'/%3E%3C/g%3E%3C/svg%3E") right -30px top -70px / 100% 100% no-repeat;--grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='g' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.2 0 0 0 -0.6'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E") 0 0 / 240px 240px repeat;--brush:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='a' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.04' numOctaves='4' seed='6'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.44 0 0 0 0 0.75 1.6 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23a)' opacity='.28'/%3E%3C/svg%3E") 50% 50% / cover no-repeat;--steel:linear-gradient(160deg, #111a3e 0%, #070a1c 100%);--edge:inset 0 1px 0 rgba(255, 236, 200, 0.10), inset 0 0 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.95)}
.gsi { position: fixed; inset: 0; z-index: 10; overflow: hidden auto; isolation: isolate; box-sizing: border-box;
  display: grid; grid-template-rows: minmax(24px, 1fr) auto max(90px, 24%); justify-items: center;
  padding: 0 20px env(safe-area-inset-bottom); background: var(--room);
  color: #f4f2ec; font: 15px/1.5 "Manrope", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.gsi *, .gsi *::before, .gsi *::after { box-sizing: border-box; }
.gsi::before { content: ""; position: absolute; z-index: 0; top: -8%; right: -6%; width: min(980px, 78%); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,214,140,.46), rgba(242,170,74,.20) 38%, rgba(226,150,60,.07) 62%, rgba(242,170,74,0) 80%); }
.gsi::after { content: ""; position: absolute; z-index: 0; top: 0; right: 0; width: min(860px, 72%); aspect-ratio: 640 / 540; pointer-events: none; background: var(--leaf); opacity: .95; }
.gsi-floor { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: max(90px, 24%); pointer-events: none;
  background: radial-gradient(70% 90% at 50% 100%, rgba(242,170,74,.20), rgba(226,150,60,.07) 50%, rgba(242,170,74,0) 80%),
              linear-gradient(180deg, #05060c 0%, #07080f 30%, #0d0f1a 60%, #1a1510 88%, #24190d 100%); }
.gsi-floor::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 18px;
  background: repeating-linear-gradient(92deg, rgba(107,63,14,0) 0 34px, rgba(107,63,14,.35) 34px 36px, rgba(107,63,14,0) 36px 90px, rgba(255,220,150,.12) 90px 92px),
              linear-gradient(180deg, #ffc56a 0%, #f2a33a 18%, #d9852a 60%, #9c5a18 100%);
  box-shadow: 0 -1px 0 rgba(255,236,190,.65), 0 8px 0 -2px #3e2408, 0 18px 34px rgba(0,0,0,.55), 0 -24px 60px -20px rgba(251,176,59,.28); }
.gsi-floor::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(1100px, 100%); height: 70%; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, rgba(255,196,110,.18), rgba(242,170,74,.06) 50%, rgba(242,170,74,0) 80%); }

.gsi-card { grid-row: 2; position: relative; z-index: 1; width: min(440px, 100%); margin-bottom: 12px; padding: 34px 32px 28px; border-radius: 28px;
  background: radial-gradient(70% 50% at 100% 0%, rgba(255,214,150,.10), rgba(255,214,150,0) 70%), var(--grain), var(--brush), var(--steel);
  box-shadow: var(--edge), 0 30px 50px -10px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.06); }
.gsi-card::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -20px; height: 16px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.gsi-mark { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  color: #15120a; font-weight: 800; letter-spacing: .02em;
  background: radial-gradient(circle at 32% 28%, #fff3cf 0%, #f0cf86 28%, #c9a24d 62%, #8e6a22 100%);
  box-shadow: 0 0 0 1px rgba(255,236,190,.5), 0 0 18px rgba(255,255,255,.14), inset 0 2px 3px rgba(255,255,255,.55), inset 0 -3px 5px rgba(0,0,0,.28); }
.gsi h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.1; font-weight: 800; color: #f4f2ec; }
.gsi p { margin: 0 0 22px; color: #c9ccd8; }
.gsi p b { color: #f4f2ec; overflow-wrap: anywhere; }
.gsi a { color: #e2b65c; }
.gsi-fld, .gsi-code input { display: block; width: 100%; border: 1px solid rgba(255,255,255,.14); background: rgba(4,6,12,.55); color: #f4f2ec; outline: none; font: inherit; }
.gsi-fld { height: 52px; border-radius: 16px; padding: 0 16px; font-size: 16px; }
.gsi-fld:focus, .gsi-code input:focus { border-color: rgba(226,182,92,.7); box-shadow: 0 0 0 3px rgba(226,182,92,.18); }
.gsi-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gsi-code input { height: 58px; padding: 0; text-align: center; font-size: 24px; font-weight: 700; border-radius: 14px; }
.gsi-msg { min-height: 20px; margin-top: 8px; font-size: 13px; color: #a3a6b3; }
.gsi-msg.is-err { color: #e07a7a; }
.gsi-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 12px; border: 0; border-radius: 16px;
  background: #d9b45e; color: #15120a; font: 800 16px/1 "Manrope", system-ui, sans-serif; cursor: pointer; }
.gsi-btn:hover { background: #ebcb80; }
.gsi-btn:disabled { opacity: .7; cursor: default; }
.gsi-btn--quiet { background: rgba(255,255,255,.06); color: #f4f2ec; border: 1px solid rgba(255,255,255,.12); }
.gsi-btn--quiet:hover { background: rgba(255,255,255,.10); }
.gsi-btn:focus-visible, .gsi a:focus-visible { outline: 2px solid #e2b65c; outline-offset: 2px; }
.gsi-sub { margin-top: 16px; font-size: 13px; color: #a3a6b3; text-align: center; }
.gsi-sub a { color: #c9ccd8; text-decoration: underline; text-underline-offset: 3px; }

/* iPad and phone (v7): the card a little higher off the wood, a lighter shadow */
@media (max-width: 1300px) {
  .gsi-card { margin-bottom: 30px; box-shadow: var(--edge), 0 18px 30px -14px rgba(0,0,0,.45); }
  .gsi-card::after { bottom: -36px; left: 18%; right: 18%; height: 12px; background: radial-gradient(closest-side, rgba(0,0,0,.28), rgba(0,0,0,0)); }
}
@media (max-width: 480px) { .gsi-card { padding: 28px 22px 24px; } .gsi-code { gap: 6px; } .gsi-code input { height: 52px; } }
/* 32-inch (v4): a size up, floating above the shelf, only when the window is tall enough to stay clear of the top */
@media (min-width: 2200px) and (min-height: 1000px) {
  .gsi-card { zoom: 1.2; margin-bottom: calc(clamp(40px, 7vh, 110px) / 1.2); }
  .gsi-card::after { bottom: calc(-1 * clamp(40px, 7vh, 110px) / 1.2 - 6px); left: 8%; right: 8%; height: 22px; background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(40,20,0,0)); }
}
