:root{--accent:#087e79;--a2:#2563eb;--ink:#14283e;--panel:#fff;--shadow:0 12px 34px #142c4510}body{background:radial-gradient(ellipse at top right,#e6f3ff 0,transparent 38%),#f3f6fa;color:var(--ink)}header{position:sticky;top:0;z-index:20;box-shadow:0 3px 18px #112c4512;backdrop-filter:blur(16px)}main{max-width:1320px}.hero{background:radial-gradient(ellipse at 90% 5%,#1f759a 0,transparent 65%),linear-gradient(135deg,#132a44,#103e55 65%,#147e80);border-radius:24px;padding:clamp(24px,5vw,48px);position:relative;overflow:hidden;box-shadow:0 18px 45px #1a3e5720}.hero:after{content:'';position:absolute;right:-45px;bottom:-95px;width:280px;height:280px;border:1px solid #ffffff25;border-radius:50%;box-shadow:0 0 0 24px #ffffff09,0 0 0 52px #ffffff08;pointer-events:none}.hero>*{position:relative;z-index:1}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.hero-actions .secondary{background:#ffffff16;color:white;border-color:#ffffff55}.panel,.labcard,.metrics>div{border-radius:18px;box-shadow:var(--shadow);border:1px solid #dce6ee}.labcard{position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s;border-top:3px solid #148e88}.labcard[data-group="Python & IoT"]{border-top-color:#4176ce}.labcard[data-group="Pi practical"]{border-top-color:#d7863a}.labcard:hover{transform:translateY(-4px);box-shadow:0 15px 32px #142c4520}.labcard .cardfoot{margin-top:auto}.labcard[hidden],[hidden]{display:none!important}.featuretiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.featuretiles.two{grid-template-columns:repeat(2,minmax(0,1fr))}.featuretiles>a,.featuretiles>div{display:block;color:inherit;text-decoration:none;background:linear-gradient(155deg,#fff,#f5fafc);padding:22px;border:1px solid #dbe5ed;border-radius:18px;box-shadow:var(--shadow)}.featuretiles>a:hover{border-color:#087e79}.featuretiles small{color:#537186;font-weight:750;letter-spacing:.08em}.tile-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#e1f4f3;color:#087e79;font-size:24px;margin-bottom:16px}.featuretiles h3{margin:6px 0}.filters{padding:13px;border:1px solid #dbe5ed;background:white;border-radius:15px;box-shadow:var(--shadow)}.filters input{font-size:16px;border:0;background:#f4f7fa;border-radius:11px;padding:15px}.filters select{border-radius:10px}.broker-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.broker-toggle{background:#eef3f8;color:#28465e;border:1px solid #d3e1ea}.broker-toggle.active{background:#087e79;color:white;border-color:#087e79}.broker-choice .command{margin-top:8px}.sim{background:linear-gradient(150deg,#edf7fa,#f8fafc);border:1px solid #d4e5eb;border-radius:18px;padding:18px}.simhead{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.stage{background:linear-gradient(135deg,#112c45,#19415c);border-radius:16px;padding:20px;color:#edf8ff;min-height:150px}.stage .device{background:#ffffff0e;border:1px solid #ffffff25;border-radius:14px;color:#eaf6ff;min-width:0}.stage .device small{color:#c2dce9}.stage .device strong{overflow-wrap:anywhere}.stage .symbol{font-size:36px;color:#8ce5d3}.stage .wire{background:#ffffff35}.stage .packet{box-shadow:0 0 16px #6cf9d3;background:#74f1c9}.simcontrols{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.simcontrols label{background:#fff;border:1px solid #d6e4ec;border-radius:10px;padding:8px 10px}.simcontrols input[type=range]{accent-color:#087e79}.simcontrols button{border-radius:10px}.simlog{border-radius:12px;max-height:190px}.sim-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.sim-metric{background:#fff;border:1px solid #dce8ee;padding:12px;border-radius:12px}.sim-metric small{display:block;color:#52697c}.sim-metric strong{font-size:clamp(16px,3vw,25px);display:block;font-variant-numeric:tabular-nums}.sim-meter{background:#e3edf2;border-radius:12px;height:6px;overflow:hidden;margin-top:8px}.sim-meter i{display:block;height:100%;transition:width .25s;border-radius:12px}.simchart{background:#fff;border-radius:12px;border:1px solid #dce8ee;padding:8px;margin:10px 0;width:100%}.model-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:#52697c}.visual-board{display:block;width:120px;max-width:100%;height:88px;margin:auto}.visual-board .signal{opacity:.35}.visual-board.is-active .signal{opacity:1;filter:drop-shadow(0 0 5px #6cf9d3)}.visual-board .rotor{transform-origin:60px 42px}.visual-board.is-active .rotor{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tutor-launch{position:fixed;bottom:22px;right:22px;z-index:40;border:0;border-radius:30px;padding:14px 20px;box-shadow:0 10px 25px #102e4960;background:#10384f;color:white;display:flex;align-items:center;gap:10px}.tutor-launch span{background:#56d6c3;color:#11364e;width:27px;height:27px;display:grid;place-items:center;border-radius:50%}.tutor-drawer{position:fixed;bottom:86px;right:22px;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 104px);z-index:50;background:white;border:1px solid #cddde6;border-radius:20px;box-shadow:0 20px 60px #18334b40;overflow:auto}.tutor-top{background:linear-gradient(135deg,#132e47,#087e79);color:white;padding:18px;display:flex;gap:10px;align-items:center;border-radius:18px 18px 0 0}.tutor-top .avatar,.bubble-avatar{background:#def5ef;color:#087e79;flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:12px;font-weight:bold}.tutor-top b,.tutor-top small{display:block}.tutor-top small{opacity:.8}.tutor-top button{margin-left:auto;background:#ffffff20;color:white;border:1px solid #ffffff50}.tutor-body{padding:15px}.tutor-select{display:flex;gap:8px;align-items:center}.tutor-select select{min-width:0;flex:1;padding:10px;border:1px solid #d4e1e9;border-radius:10px;background:#f7fafc;color:inherit}.tutor-suggestions{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.tutor-suggestions button{background:#edf5f8;color:#244359;border:1px solid #d6e5ed;font-size:12px;padding:6px 9px;border-radius:18px}.chat-history{height:min(44vh,400px);overflow:auto;background:#f1f6f9;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:12px}.chatline{display:flex;align-items:flex-start;gap:8px}.chatline.user{justify-content:flex-end}.chatbubble{max-width:94%;min-width:0;background:#fff;padding:11px 13px;border-radius:0 13px 13px 13px;box-shadow:0 2px 7px #142c4510;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.chatline.user .chatbubble{background:#d9f3ee;border-radius:13px 0 13px 13px}.chatbubble pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:8px 0;background:#112c45;color:#e1f4ff;padding:10px;border-radius:8px;max-height:300px;overflow:auto}.chatbubble a{display:block;margin-top:8px;font-size:12px}.chatbubble button{font-size:11px;padding:5px 8px;margin:4px 0}.chat-entry{display:flex;gap:8px;margin-top:12px}.chat-entry textarea{flex:1;min-width:0;min-height:50px;resize:vertical;padding:10px;border:1px solid #cbdbe5;border-radius:10px;color:inherit;background:#fff}.chat-note{font-size:11px;color:#5e7487;margin:8px 0 0}.tutor-actions{display:flex;justify-content:space-between;gap:8px;margin-top:8px}.tutor-actions button{font-size:12px;background:#edf5f8;color:#244359;border-color:#d6e5ed}.labcard .lab-icon{font-size:26px;background:#edf4f7;color:#1f6688;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;margin-bottom:7px}.labcard .lab-done{font-size:11px;color:#087e79;font-weight:700}.tutor-full .chat-history{height:460px}.tutor-full .tutor-body{padding:22px}.tutor-full .chatbubble{max-width:90%}@media(max-width:760px){.featuretiles,.featuretiles.two{grid-template-columns:1fr}.sim-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stage{padding:10px}.tutor-launch{bottom:12px;right:12px}.tutor-drawer{bottom:70px;right:12px}.tutor-full .chat-history{height:380px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.route-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #dce8ee;padding:12px;border-radius:12px;margin:12px 0}.route-strip>div{flex:1;min-width:0;padding:10px;background:#f0f6fa;border-radius:9px}.route-strip span{font-size:10px;font-weight:bold;color:#087e79}.route-strip b,.route-strip small{display:block;overflow-wrap:anywhere}.route-strip small{font-size:11px;color:#60788a}.route-strip i{color:#087e79;font-style:normal}.route-strip.pulse>div{animation:routeflash .45s ease both}.route-strip.pulse>div:nth-of-type(2){animation-delay:.25s}.route-strip.pulse>div:nth-of-type(3){animation-delay:.5s}@keyframes routeflash{50%{background:#c4f4e7;box-shadow:0 0 0 2px #1cb99b}}@media(max-width:550px){.route-strip{flex-direction:column;align-items:stretch}.route-strip i{text-align:center;transform:rotate(90deg)}}
