/* LectureRoom help guide: floating Help button, chat panel, start-here card and coach bubbles */
.lrg-fab, .lrg-panel, .lrg-coach, .lrg-hint, .lrg-start { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; box-sizing: border-box; }
.lrg-fab *, .lrg-panel *, .lrg-coach *, .lrg-hint *, .lrg-start * { box-sizing: border-box; }

.lrg-fab { position: fixed; right: 14px; bottom: 14px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; background: #f2b544; color: #1b1405; font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.lrg-fab:hover { filter: brightness(1.05); }
.lrg-fab:focus-visible, .lrg-panel button:focus-visible, .lrg-panel input:focus-visible, .lrg-coach button:focus-visible, .lrg-start button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lrg-fab .q { width: 24px; height: 24px; border-radius: 50%; background: #1b1405; color: #f2b544; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
body.lrg-inroom .lrg-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.lrg-fab.pulse { animation: lrgPulse 1.6s ease-out 3; }
@keyframes lrgPulse { 0% { box-shadow: 0 0 0 0 rgba(242,181,68,.8), 0 4px 16px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 18px rgba(242,181,68,0), 0 4px 16px rgba(0,0,0,.35); } }
@media (prefers-reduced-motion: reduce) { .lrg-fab.pulse { animation: none; } }

.lrg-hint { position: fixed; right: 14px; bottom: 68px; z-index: 60; max-width: min(300px, calc(100vw - 28px)); padding: 10px 34px 10px 14px; border-radius: 14px; background: #10241d; color: #eef5f1;
  font-size: 14px; line-height: 1.4; box-shadow: 0 6px 22px rgba(0,0,0,.4); border: 1px solid #2a4a3d; cursor: pointer; }
body.lrg-inroom .lrg-hint { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
.lrg-hint button { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: #9fb8ad; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }
.lrg-hint[hidden], .lrg-panel[hidden], .lrg-coach[hidden], .lrg-start[hidden] { display: none; }

.lrg-panel { position: fixed; right: 14px; bottom: 14px; z-index: 65; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 28px)); display: flex; flex-direction: column;
  background: #10241d; color: #eef5f1; border: 1px solid #2a4a3d; border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.5); overflow: hidden; }
.lrg-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17332a; border-bottom: 1px solid #2a4a3d; }
.lrg-head b { font-size: 16px; flex: 1; }
.lrg-head small { color: #9fb8ad; font-size: 12px; font-weight: 400; display: block; margin-top: 2px; }
.lrg-x { border: 0; background: none; color: #eef5f1; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.lrg-x:hover { background: rgba(255,255,255,.1); }
.lrg-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.lrg-msg { max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.lrg-msg.a { background: #1c3a30; align-self: flex-start; border-bottom-left-radius: 4px; }
.lrg-msg.u { background: #f2b544; color: #1b1405; align-self: flex-end; border-bottom-right-radius: 4px; }
.lrg-msg.n { background: none; color: #9fb8ad; font-size: 13px; align-self: center; text-align: center; }
.lrg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.lrg-chips button { border: 1px solid #3a6050; background: transparent; color: #eef5f1; border-radius: 999px; padding: 8px 12px; font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; text-align: left; }
.lrg-chips button:hover { background: #1c3a30; }
.lrg-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #2a4a3d; background: #0d1f18; }
.lrg-form input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid #3a6050; background: #10241d; color: #eef5f1; padding: 0 12px; font: 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.lrg-form input::placeholder { color: #7f9a8f; }
.lrg-form button { height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: #f2b544; color: #1b1405; font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.lrg-form button:disabled { opacity: .5; cursor: default; }
.lrg-foot { font-size: 11.5px; color: #7f9a8f; padding: 0 14px 8px; background: #0d1f18; }
.lrg-dots span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #9fb8ad; animation: lrgDot 1s infinite ease-in-out; }
.lrg-dots span:nth-child(2) { animation-delay: .15s; } .lrg-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes lrgDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (max-width: 520px) {
  .lrg-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(78vh, 600px); border-radius: 18px 18px 0 0; }
}

/* the "start here" card on the home page */
.lrg-start { margin: 0 0 18px; padding: 16px; border-radius: 16px; background: #10241d; color: #eef5f1; border: 1px solid #2a4a3d; position: relative; }
.lrg-start h2 { margin: 0 0 4px; font-size: 19px; color: #fff; }
.lrg-start p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: #cfe0d8; }
.lrg-start .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .lrg-start .two { grid-template-columns: 1fr; } }
.lrg-start .pick { border: 2px solid #3a6050; background: #17332a; color: #fff; border-radius: 14px; padding: 14px 12px; font: 600 16px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; text-align: left; }
.lrg-start .pick:hover { border-color: #f2b544; }
.lrg-start .pick small { display: block; font-weight: 400; font-size: 13px; color: #b6cdc3; margin-top: 4px; }
.lrg-start ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lrg-start li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.lrg-start li i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #5b8472; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: #cfe0d8; }
.lrg-start li.done i { background: #6fcf97; border-color: #6fcf97; color: #0b2018; }
.lrg-start li.now i { border-color: #f2b544; color: #f2b544; }
.lrg-start li.done span { opacity: .65; }
.lrg-start .row { display: flex; gap: 12px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.lrg-start .link { border: 0; background: none; color: #f2b544; font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.lrg-start .close { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: #9fb8ad; font-size: 24px; cursor: pointer; padding: 4px 8px; }
.lrg-glow { outline: 3px solid #f2b544 !important; outline-offset: 3px; border-radius: 10px; transition: outline-color .3s; }

/* coach bubbles inside the class */
.lrg-coach-dim { position: fixed; inset: 0; z-index: 68; background: rgba(0,0,0,.35); }
.lrg-coach { position: fixed; z-index: 70; width: min(310px, calc(100vw - 24px)); padding: 14px; border-radius: 14px; background: #fffdf5; color: #1b1405; box-shadow: 0 10px 34px rgba(0,0,0,.5); font-size: 15px; line-height: 1.45; }
.lrg-coach b { display: block; font-size: 16px; margin-bottom: 4px; }
.lrg-coach .acts { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.lrg-coach .acts .cnt { color: #6b5d38; font-size: 13px; flex: 1; }
.lrg-coach .next { border: 0; background: #1b1405; color: #fff; border-radius: 10px; padding: 9px 16px; font: 700 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.lrg-coach .skip { border: 0; background: none; color: #6b5d38; font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; text-decoration: underline; padding: 6px; }
.lrg-coach::after { content: ""; position: absolute; width: 14px; height: 14px; background: #fffdf5; transform: rotate(45deg); left: var(--ax, 50%); margin-left: -7px; }
.lrg-coach.above::after { bottom: -7px; }
.lrg-coach.below::after { top: -7px; }
.lrg-ring { position: fixed; z-index: 69; border: 3px solid #f2b544; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,.0); }

/* "Ask me" box on the home page and the buttons that point at the right place */
.lrg-ask { padding: 18px; border-radius: 18px; background: #10241d; border: 1px dashed #3a6050; color: #eef5f1; }
.lrg-ask label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.lrg-ask form { display: flex; gap: 8px; }
.lrg-ask input { flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 2px solid #3a6050; background: #0d1f18; color: #eef5f1; padding: 0 12px; font: 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.lrg-ask input:focus { outline: 3px solid #f2b544; outline-offset: 2px; }
.lrg-ask form button { height: 50px; padding: 0 20px; border: 0; border-radius: 12px; background: #f2b544; color: #1b1405; font: 700 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.lrg-ask form button:disabled { opacity: .5; }
.lrg-ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lrg-ask-chips button { border: 1px solid #3a6050; background: transparent; color: #eef5f1; border-radius: 999px; padding: 8px 14px; font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.lrg-ask-chips button:hover { background: #1c3a30; }
.lrg-ask-out { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #1c3a30; font-size: 16px; line-height: 1.5; white-space: pre-wrap; }
.lrg-ask-out[hidden] { display: none; }
.lrg-act { display: inline-block; margin-top: 10px; border: 0; border-radius: 10px; padding: 10px 16px; background: #f2b544; color: #1b1405; font: 700 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.lrg-act:hover { filter: brightness(1.06); }
