/* Module 1 lesson widgets (prefix m1-) */
.m1-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.m1-cnt { font-size: .75rem; color: var(--dim); margin-left: 4px; }
.m1-svgbox { background: radial-gradient(ellipse at center, #1a2440, #0a0f1d); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.m1-sec { margin-bottom: 18px; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); transition: opacity .3s; }
.m1-sec.locked { opacity: .25; pointer-events: none; filter: grayscale(.6); }
.m1-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }

/* safety bench */
.m1-bench { display: grid; grid-template-columns: 1fr 260px; gap: 18px; }
.m1-lapwrap { position: relative; padding-right: 120px; }
.m1-lap { position: relative; border-radius: 18px; min-height: 340px; }
.m1-lap.cover { background: linear-gradient(160deg, #2a3042, #1b1f2a); border: 4px solid #3a4256; }
.m1-lap.open { background: radial-gradient(ellipse at center, #1a2440, #0a0f1d); padding: 8px; }
.m1-cover-label { position: absolute; inset: 0; display: grid; place-items: center; font: 900 1.4rem var(--display); color: #3a4256; letter-spacing: .3em; pointer-events: none; }
.m1-screw { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #8b93a3; background: radial-gradient(circle at 35% 35%, #d7dce6, #8b93a3); color: #333; font-weight: 900; cursor: pointer; }
.m1-screw.long { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,61,.35); }
.m1-screw:hover { transform: translate(-50%, -50%) rotate(90deg) scale(1.1); transition: transform .2s; }
.m1-lift { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.m1-cable { position: absolute; right: 0; top: 40%; flex-direction: column; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.4); border: 1px dashed var(--line); transition: transform .4s, opacity .4s; }
.m1-cable .m1-plug { font-size: 28px; }
.m1-cable .m1-wire { width: 40px; height: 6px; background: #222; border-radius: 3px; }
.m1-cable.out { transform: translateX(60px); opacity: .35; }
.m1-benchside { display: flex; flex-direction: column; gap: 8px; }
.m1-pwr { font: 700 1rem var(--body); color: var(--text); background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.m1-pwr span { flex: 1; text-align: left; }
.m1-led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #333; }
.m1-led.on { background: #ffb02e; box-shadow: 0 0 10px #ffb02e; }
.m1-pwrmenu { display: flex; gap: 6px; }
.m1-wrist { min-height: 70px; display: grid; place-items: center; font-size: 34px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; }
.m1-wrist small { display: block; font-size: .75rem; color: var(--dim); }
.m1-wrist.on { border-color: var(--ok); background: rgba(47,227,154,.08); }
.m1-strap { padding: 10px; border-radius: 10px; background: rgba(255,210,61,.12); border: 2px solid var(--yellow); text-align: center; font-weight: 700; cursor: grab; }
.m1-mat { position: relative; height: 120px; border-radius: 10px; background: repeating-linear-gradient(45deg, #232838 0 10px, #1d2230 10px 20px); border: 1px solid var(--line); }
.m1-slot { position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; border: 2px dashed #5f6c8c; }
.m1-slot.long { border-color: var(--orange); }
.m1-slot.full { background: radial-gradient(circle at 35% 35%, #d7dce6, #8b93a3); border-style: solid; animation: pop .3s; }

/* battery */
.m1-age { display: flex; gap: 20px; align-items: center; }
.m1-bat { position: relative; width: 150px; height: 74px; border: 5px solid #e9eefb; border-radius: 12px; padding: 5px; flex: none; }
.m1-bat::after { content: ""; position: absolute; right: -14px; top: 22px; width: 8px; height: 22px; background: #e9eefb; border-radius: 0 4px 4px 0; }
.m1-bat-fill { height: 100%; width: 100%; background: var(--green); border-radius: 5px; transition: width .2s, background .3s; }
.m1-bat span { position: absolute; inset: 0; display: grid; place-items: center; font: 900 1.2rem var(--display); color: #061021; mix-blend-mode: normal; text-shadow: 0 0 4px #fff; }
.m1-range { width: 100%; accent-color: var(--yellow); margin: 8px 0; }
.m1-report { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-family: ui-monospace, Consolas, monospace; }
.m1-report div { background: #0a0f1d; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.m1-report span { display: block; font-size: .65rem; color: var(--dim); letter-spacing: .08em; }
.m1-report b { font-size: .95rem; color: var(--cyan); }
.m1-term { background: #05070c; border: 1px solid #2b3550; border-radius: 10px; padding: 12px; font-family: ui-monospace, Consolas, monospace; }
.m1-term.small { font-size: .85rem; }
.m1-term .ok { color: var(--ok); margin-top: 6px; }
.m1-prompt { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #e9eefb; }
.m1-prompt input { background: transparent; border: 0; border-bottom: 1px solid #3a4256; border-radius: 0; padding: 4px; font: inherit; color: #3dffb0; }
.m1-reps { display: grid; gap: 12px; }
.m1-rep { padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); }
.m1-rep.ok { border-color: var(--ok); }
.m1-rep .sim-row { margin-top: 8px; }
.m1-note { margin-top: 8px; color: var(--yellow); }
.m1-why { margin-top: 8px; color: #cff8e6; }
.m1-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* keyboard */
.m1-case { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; font-size: 1.1rem; }
.m1-who { font: 900 1.1rem var(--display); }
.m1-kb { background: #12151d; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: center; position: relative; }
.m1-kb.spill::after { content: ""; position: absolute; left: 14%; top: 4%; width: 38%; height: 62%; background: radial-gradient(ellipse, rgba(140,80,30,.55), transparent 70%); pointer-events: none; }
.m1-kbrow { display: flex; gap: 6px; }
.m1-key { width: 46px; height: 44px; border-radius: 7px; background: #262b38; border: 1px solid #353c4f; border-bottom-width: 4px; color: #cfd6e6; font: 700 1rem var(--body); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.m1-key.wide { width: 90px; font-size: .8rem; } .m1-key.space { width: 260px; }
.m1-key.test { box-shadow: 0 0 0 2px var(--yellow); }
.m1-key.hit { background: var(--ok); color: #061021; }
.m1-key.deadp { background: #4a1626; border-color: var(--bad); color: var(--bad); }
.m1-key.nocap { background: #0a0c10; border: 2px dashed #555; }
.m1-out { margin: 12px 0 6px; font-size: 1.1rem; }
.m1-out b { font-family: ui-monospace, Consolas, monospace; color: var(--cyan); letter-spacing: .1em; }
.m1-prog { color: var(--dim); margin-bottom: 10px; }

/* ram */
.m1-tm { background: #0a0f1d; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.m1-tm.small { font-size: .85rem; width: 100%; }
.m1-tm-h { margin-bottom: 8px; } .m1-tm-h b { color: var(--cyan); }
.m1-tm-graph { height: 80px; border: 1px solid #2b3550; border-radius: 6px; display: flex; align-items: flex-end; background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(61,200,255,.06) 20px 21px); }
.m1-tm-graph i { width: 100%; background: linear-gradient(180deg, rgba(168,107,255,.7), rgba(168,107,255,.2)); border-top: 2px solid var(--purple); transition: height 1s; }
.m1-tm-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 8px; }
.m1-tm-grid span { color: var(--dim); }
.m1-sticker { margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(255,210,61,.08); border: 1px dashed var(--yellow); }
.m1-q { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.m1-q div { display: flex; gap: 6px; }
.m1-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.m1-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.m1-stick { width: 100%; max-width: 220px; height: auto; }
.m1-slots { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.m1-ramslot { height: 64px; border-radius: 8px; border: 2px dashed #5f6c8c; display: flex; align-items: center; justify-content: center; color: var(--dim); background: #0f3b2a; transition: transform .3s; }
.m1-ramslot.full { border-style: solid; border-color: var(--ok); }
.m1-ramslot.angled svg { transform: rotate(-18deg) translateY(-6px); }
.m1-sold { display: grid; gap: 10px; }
.m1-board { padding: 16px; border-radius: 10px; background: #0f3b2a; display: flex; gap: 14px; align-items: center; font-weight: 700; flex-wrap: wrap; }
.m1-chips { letter-spacing: 2px; color: #111; background: #1f8a52; padding: 2px 8px; border-radius: 4px; }

/* storage */
.m1-drive { width: 120px; height: auto; }
.m1-smartcard { font: inherit; color: var(--text); text-align: left; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; flex: 1; min-width: 240px; }
.m1-smartcard:hover:not(:disabled) { border-color: var(--cyan); }
.m1-smartcard.sel { border-color: var(--bad); }
.m1-smart { display: grid; gap: 4px; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.m1-smart div { display: flex; justify-content: space-between; } .m1-smart span { color: var(--dim); }
.m1-smart.small { width: 100%; max-width: 280px; background: #0a0f1d; padding: 12px; border-radius: 10px; }
#smartQ { margin-top: 10px; }
.m1-drives { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.m1-dr { padding: 6px; border-radius: 10px; border: 1px dashed var(--line); background: var(--panel); text-align: center; }
.m1-dr small { display: block; color: var(--dim); }
.m1-baylist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m1-bay { min-height: 110px; border: 2px dashed #5f6c8c; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.m1-bay small { color: var(--dim); }
.m1-bay.ok { border-style: solid; border-color: var(--ok); background: rgba(47,227,154,.07); }
.m1-bay.big { min-width: 240px; min-height: 140px; }
.m1-in svg { width: 110px; }
.m1-clone { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-weight: 700; }
.m1-bios { margin-top: 12px; background: #001a66; border: 3px double #9fb3ff; padding: 12px; font-family: ui-monospace, Consolas, monospace; color: #dfe6ff; border-radius: 4px; max-width: 520px; }
.m1-bios-h { color: #ffd23d; margin-bottom: 8px; }
.m1-bios-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.m1-bios .chip-btn { padding: 4px 8px; font-size: .8rem; }
.m1-bios .btn { margin-top: 10px; }

/* wifi card */
.m1-wsvg { width: 100%; height: auto; border-radius: 10px; }
.m1-wsvg .m1-conn, .m1-wsvg .m1-lead, .m1-wsvg .m1-wscrew { cursor: pointer; }
.m1-wsvg .m1-conn:hover, .m1-wsvg .m1-lead:hover, .m1-wsvg .m1-wscrew:hover { filter: brightness(1.5) drop-shadow(0 0 6px #ffd23d); }
.m1-sig { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.m1-sig i { width: 22px; border-radius: 4px; background: #2b3550; transition: background .3s; }
.m1-sig i.on { background: linear-gradient(180deg, var(--green), var(--cyan)); }
.m1-lsvg { width: 100%; max-width: 340px; }
.m1-acable { fill: none; stroke: #ffd23d; stroke-width: 7; stroke-dasharray: 6 4; cursor: pointer; opacity: .75; }
.m1-acable:hover { opacity: 1; stroke-width: 9; }
.m1-acable.bad { stroke: var(--bad); stroke-dasharray: none; opacity: 1; animation: blink .4s infinite alternate; }
.m1-acable.okseg { stroke: var(--ok); opacity: 1; }

/* camera / mic */
.m1-call { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.m1-meet { background: #0a0f1d; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.m1-meet-h { font-weight: 700; margin-bottom: 8px; }
.m1-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m1-tile { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #2a4a7a, #1a2a4a); display: grid; place-items: center; }
.m1-face { font-size: 64px; animation: bob 2s ease-in-out infinite; }
.m1-black { position: absolute; inset: 0; background: #000; display: grid; place-items: center; color: #777; font-size: .85rem; text-align: center; padding: 6px; }
.m1-nm { position: absolute; left: 6px; bottom: 6px; font-size: .72rem; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; }
.m1-micm { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin: 10px 0; font-size: .85rem; }
.m1-talk { animation: talk .5s infinite alternate; }
@keyframes talk { from { width: 20% !important; } to { width: 80%; } }
.m1-dev { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .85rem; }
.m1-dev select { margin-top: 4px; padding: 6px; }
.m1-order { margin-top: 10px; width: 100%; border-color: var(--orange); }
.m1-ctrl { display: flex; flex-direction: column; gap: 6px; }
.m1-bezel { display: flex; align-items: center; gap: 12px; background: #0b0d12; border-radius: 10px; padding: 10px; }
.m1-lens { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #7fe3ff, #0e1118 60%); border: 2px solid #3dc8ff; position: relative; }
.m1-lens.covered::after { content: ""; position: absolute; inset: -4px; border-radius: 6px; background: #3d4456; }
.m1-frow { display: flex; align-items: center; gap: 10px; }
.m1-fkey { font: 700 .9rem var(--body); color: var(--text); background: #262b38; border: 1px solid #353c4f; border-bottom-width: 4px; border-radius: 8px; padding: 8px 12px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.m1-set { background: #1c1f26; border-radius: 12px; padding: 8px 12px; }
.m1-set > b { display: block; margin-top: 6px; color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* biometrics */
.m1-hello { background: #1c1f26; border-radius: 12px; padding: 8px 12px; }
.m1-hrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); gap: 10px; }
#helloPane { margin-top: 10px; }
.m1-palm { position: relative; height: 170px; border-radius: 16px; background: linear-gradient(160deg, #2b3247, #20263a); border: 2px solid #3a4256; }
.m1-nfczone { position: absolute; left: 22px; top: 40px; width: 120px; height: 90px; border-radius: 12px; border: 2px dashed var(--green); color: var(--green); display: grid; place-items: center; font: 900 1.1rem var(--display); transition: background .2s, box-shadow .2s; }
.m1-nfczone.hot { background: rgba(61,255,176,.18); box-shadow: 0 0 24px rgba(61,255,176,.6); }
.m1-fpsensor { position: absolute; right: 30px; top: 50px; width: 70px; height: 70px; border-radius: 16px; background: #0d0f14; border: 2px solid var(--cyan); display: grid; place-items: center; cursor: pointer; font-size: 28px; }
.m1-fpsensor:active { transform: scale(.94); }
.m1-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); }
.m1-ring circle { fill: none; stroke: var(--green); stroke-width: 3; transition: stroke-dasharray .3s; }
.m1-badge { margin-top: 12px; display: inline-block; padding: 14px 18px; border-radius: 10px; background: var(--yellow); color: #061021; font-weight: 900; }
.m1-lock { margin-top: 16px; padding: 22px; border-radius: 16px; text-align: center; background: linear-gradient(160deg, #1c3b8a, #5a1f8a); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.m1-clock { font: 900 3rem var(--display); }
.m1-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.m1-chip { padding: 8px 12px; border-radius: 999px; background: var(--panel2); border: 2px solid var(--purple); font-weight: 700; }
.m1-chip.locked { border-color: var(--ok); cursor: default; }
.m1-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m1-bin { min-height: 120px; border: 2px dashed var(--line); border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.m1-bin > b { width: 100%; font-size: .85rem; color: var(--dim); }

@media (max-width: 900px) {
  .m1-two, .m1-bench, .m1-call, .m1-baylist, .m1-bins { grid-template-columns: 1fr; }
  .m1-key { width: 30px; height: 36px; font-size: .8rem; }
  .m1-key.space { width: 160px; }
}
