:root{--bg:#f4f5f2;--paper:#fff;--ink:#202c29;--muted:#6a756e;--line:#dce2db;--green:#20674e;--lime:#d6eea7;--orange:#b6522e}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 "Malgun Gothic","Apple SD Gothic Neo",sans-serif}button,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:9px 14px;font-weight:700;min-height:42px}button:hover:not(:disabled){filter:brightness(.96);border-color:#9bab9c}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #80ac74;outline-offset:3px}header{height:78px;border-bottom:1px solid var(--line);padding:0 max(24px,calc((100% - 1280px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff}.brand{font-weight:800;font-size:21px;display:flex;align-items:center;gap:12px}.mark{background:var(--ink);color:var(--lime);border-radius:7px;font:700 20px monospace;padding:6px 8px}.tag{font:600 10px monospace;letter-spacing:1.5px;color:var(--muted);display:block;margin-top:-4px}.header-note{font-size:13px;color:var(--muted)}main{max-width:1280px;margin:auto;padding:30px 24px 20px}.intro{margin-bottom:28px}.eyebrow{font-size:12px;font-weight:800;color:var(--green);margin:0 0 9px}h1{font-size:32px;line-height:1.4;letter-spacing:-1.1px;margin:0 0 9px}.intro>p:last-child{color:var(--muted);margin:0}.layout{display:grid;grid-template-columns:318px minmax(0,1fr);gap:22px;align-items:start}aside{display:grid;gap:18px}.card{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:23px}.section-heading{display:flex;gap:10px;align-items:center}.number{font:700 12px monospace;color:var(--green);background:#eef5e8;width:29px;height:29px;display:grid;place-items:center;border-radius:50%}h2{font-size:16px;margin:0;font-weight:800}label{display:block;font-size:12px;font-weight:700;margin:23px 0 7px}select{width:100%;border:1px solid #b9c6ba;border-radius:7px;padding:11px 9px;background:#fff;color:var(--ink)}.spec{font-size:12px;color:var(--muted);margin:10px 0}.mini-display{width:164px;height:102px;margin:22px auto 25px;background:#202e2b;border:9px solid #33433d;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 5px 0 #e6eadf;color:var(--lime)}.mini-display span{font:600 20px monospace}.mini-display small{font:10px monospace;color:#c0cdbf;margin-top:8px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.full{width:100%}.hint{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0 0}.text-button{font-size:12px;background:transparent;border:0;padding:7px 0;min-height:32px;color:var(--green);text-align:left;margin-right:12px}.small-status{font-size:12px;color:var(--green)}summary{cursor:pointer;font-size:13px;font-weight:750;line-height:1.6}details.card summary{margin:0}ul.libraries{list-style:none;padding:0;margin:15px 0 0;font-size:12px}.libraries li{padding:4px 0}.libraries li::before{content:"✓";color:var(--green);margin-right:8px}.libraries span{background:#eef5e8;padding:2px 5px;color:var(--green);border-radius:3px;font-size:10px}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:16px}th,td{padding:6px 0;border-top:1px solid #edf0eb;text-align:left}th{font-weight:500;color:var(--muted)}td{text-align:right;font-family:monospace}.workspace{padding:0;overflow:hidden}.editor-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px 0;gap:12px}.editor-tools{display:flex;gap:7px}.editor-tools button{font-size:12px;min-height:32px;padding:5px 10px}.editor-note{font-size:12px;margin:12px 22px 17px;color:var(--muted)}#source{display:block;width:100%;height:414px;resize:vertical;padding:22px;border:0;outline-offset:-4px;background:#202a28;color:#e5eee0;font:13px/1.7 Consolas,"Cascadia Code",monospace;tab-size:2;white-space:pre;overflow:auto}#source::placeholder{color:#91a297}.editor-foot{display:flex;justify-content:space-between;padding:8px 22px;background:#26332f;color:#b1c3b4;font-size:10px}.run-area{padding:20px 22px}.flow{display:flex;gap:12px;align-items:center;color:#a8b6aa;font-size:12px}.flow-step{color:var(--muted);font-weight:700}.flow-step.active{color:var(--green)}.flow-step.done{color:var(--green)}.flow-step.done::before{content:"✓ "}.actions{display:flex;gap:10px;margin:15px 0}.actions button{flex:1;min-height:46px;font-size:14px}.upload{background:var(--lime);border-color:#c2d99a}.actions .upload:disabled{background:#eaf0e3}#status{font-size:13px;font-weight:600;min-height:24px}#status.error{color:#ac3d2c}#progress{display:block;width:100%;height:7px;margin:12px 0 3px;accent-color:var(--green)}#logs{border-top:1px solid var(--line);padding:14px 22px}#logBadge{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf2eb;border-radius:5px;padding:14px;max-height:300px;overflow:auto;font:12px/1.7 Consolas,monospace;color:#344437}.help{margin-top:20px;padding:17px 22px}.help p{font-size:13px;color:var(--muted)}footer{display:flex;justify-content:space-between;font:11px monospace;color:var(--muted);padding:20px 0}footer span{font-family:"Malgun Gothic",sans-serif}dialog{border:1px solid var(--line);border-radius:12px;max-width:560px;padding:24px;width:calc(100% - 40px)}dialog::backdrop{background:#182a2480}dialog p{font-size:13px;color:var(--muted)}dialog form{display:flex;justify-content:flex-end;gap:8px}#copyFallback{width:100%;height:260px;font:12px monospace}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:960px){.layout{grid-template-columns:278px minmax(0,1fr)}.card{padding:18px}.editor-head{align-items:flex-start;flex-direction:column}.editor-head .section-heading{margin-bottom:0}h1{font-size:28px}}@media(max-width:740px){header{padding:0 18px;height:66px}.header-note{display:none}main{padding:23px 16px}.layout{grid-template-columns:1fr}aside{grid-template-columns:1fr}.mini-display{display:none}.intro h1{font-size:25px}.intro p{font-size:13px}#source{height:350px}.editor-head{flex-direction:row;flex-wrap:wrap}.actions{flex-direction:column}footer{gap:10px;flex-wrap:wrap}.spec{margin-bottom:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.intro>p{max-width:1000px;line-height:1.9}.intro .support-note{font-size:12px;margin-top:10px;color:var(--muted)}
.sample-info{margin:12px 0;padding:14px;background:#f2f5ee;border-radius:10px;border:1px solid var(--line)}.sample-info p{font-size:13px;line-height:1.6;margin:8px 0}.sample-info small{display:block;color:var(--muted);font-size:11px;line-height:1.6}#loadHardware{margin-bottom:16px}
[hidden]{display:none!important}.console-nav{display:flex;gap:24px;align-items:center;margin-left:auto;margin-right:26px;height:100%}.console-nav a{font-size:13px;font-weight:700;color:var(--muted);text-decoration:none;display:flex;align-items:center;height:100%;border-bottom:3px solid transparent;padding-top:3px}.console-nav a[aria-current]{color:var(--green);border-color:var(--green)}#shareProject{font-size:12px;padding:8px 14px;background:#edf5e5;border-color:#d4e0c8;color:var(--green)}@media(max-width:650px){header{height:auto;min-height:74px;flex-wrap:wrap;gap:10px;padding-top:13px;padding-bottom:10px}.console-nav{order:3;width:100%;margin:0;justify-content:center;gap:38px}.console-nav a{font-size:12px;padding:7px 0}.brand{font-size:18px}#shareProject{margin-left:auto;font-size:11px}}
.editor-tools{flex-wrap:wrap;justify-content:flex-end}#pasteCode{color:var(--green);border-color:#bdd4bc;background:#f0f6eb}
.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.actions button{min-width:0;line-height:1.5;word-break:keep-all}.share-action{background:#edf5e5;border-color:#d4e0c8;color:var(--green)}.twin-actions{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;flex-shrink:0}.twin-actions button{white-space:nowrap;font-size:13px}.hardware-reference{margin-top:24px}.reference-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;margin-top:22px}.reference-grid>section{min-width:0}.reference-grid h3{font-size:14px;margin:0 0 12px;color:var(--ink)}.reference-grid .libraries{margin:0}.reference-grid .libraries li{padding:11px 0;border-bottom:1px solid #edf0eb}.wiring-table{margin:0;table-layout:fixed}.wiring-table th,.wiring-table td{padding:10px 12px;text-align:left;vertical-align:middle;line-height:1.6;overflow-wrap:anywhere}.wiring-table th{width:64%}.wiring-table thead th{background:#f2f5ee;color:var(--muted);font-size:11px;font-weight:700;border-top:0}.wiring-table tbody th{font-weight:500}.wiring-table td{color:var(--ink)}.twin-embedded .hardware-reference{display:none}@media(min-width:1180px){.actions{grid-template-columns:repeat(4,minmax(0,1fr))}.actions button{font-size:13px;padding:10px 8px}}@media(max-width:740px){.actions button{font-size:12px;padding:10px 8px;min-height:46px}.reference-grid{grid-template-columns:1fr;gap:26px}.hardware-reference{padding:20px}.twin-actions button{font-size:12px}.editor-foot{gap:10px;flex-wrap:wrap}}@media(max-width:540px){.twin-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.twin-actions button{white-space:normal;padding:9px 7px}}
.compile-queue{margin:16px 0;padding:16px;border:1px solid #d7e2d1;border-radius:10px;background:#f6f9f2}.queue-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.queue-heading h3{font-size:13px;margin:0}.queue-heading>span{font-size:10px;color:var(--muted);text-align:right}.queue-counts{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.queue-counts>span{background:white;border:1px solid #e0e7db;border-radius:6px;padding:6px 9px;font-size:11px;color:var(--muted)}.queue-counts strong{margin-left:6px;color:var(--green);font-variant-numeric:tabular-nums}#queueTicket{font-size:13px;font-weight:700;margin:8px 0;color:var(--green)}#queueEstimate{font-size:12px;margin:6px 0;line-height:1.8}.queue-notice{font-size:10px;color:var(--muted);line-height:1.8;margin:10px 0 0;border-top:1px solid #e0e7db;padding-top:9px}@media(max-width:540px){.compile-queue{padding:13px}.queue-heading{align-items:flex-start}.queue-counts{gap:6px}.queue-counts>span{font-size:10px;padding:5px 7px}}

/* MODAM classroom workspace */
input{font:inherit}input:focus-visible,a:focus-visible{outline:3px solid #80ac74;outline-offset:3px}.modam-brand{gap:10px;white-space:nowrap}.modam-brand img{display:block;width:72px;height:40px;object-fit:contain}.modam-brand .tag{font-size:9px;letter-spacing:1.1px;margin-top:-1px}.modam-intro{margin-bottom:21px}.intro-badges{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:13px}.intro-badges>span{font-size:11px;line-height:1.5;font-weight:700;border-radius:5px;padding:4px 9px}.board-badge{color:#fff;background:#244839}.installation-badge{color:#526944;background:#e8f0df;border:1px solid #d9e5cb}.modam-intro h1{font-size:33px;margin-bottom:9px}.modam-intro>p{font-size:14px;color:var(--muted);margin:0}.modam-intro .support-note{font-size:12px;margin-top:7px}.modam-start{padding:23px 25px;margin-bottom:21px}.start-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.start-heading h2{font-size:17px}.start-heading>span{font-size:11px;color:var(--muted)}.device-chooser{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:20px}.chooser-label strong{font-size:13px;display:block}.chooser-label small{display:block;color:var(--green);font-size:10px;margin-top:3px}.device-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.device-option{display:flex;align-items:center;gap:12px;text-align:left;background:#fafbf8;border-color:#d9e0d5;padding:12px 15px;min-height:65px;font-weight:400}.device-option strong{font-size:15px;display:block}.device-option small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:2px}.device-tick{width:25px;height:25px;flex:none;border:1px solid #d2dcd0;border-radius:50%;color:transparent;display:grid;place-items:center;background:white;font-weight:800}.device-option[aria-pressed=true]{background:#eff6e6;border:2px solid var(--green);padding:11px 14px;box-shadow:0 0 0 2px #e2edda}.device-option[aria-pressed=true] .device-tick{background:var(--green);color:white;border-color:var(--green)}.device-option[aria-pressed=true] strong{color:var(--green)}.selected-device-spec{margin:8px 0 0 145px;font-size:10px}.start-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;gap:0;padding:0;margin:22px 0 0;border-top:1px solid var(--line)}.start-steps>li{min-width:0;padding:20px 18px 0;display:flex;gap:10px;border-right:1px solid #edf0e8;margin-top:17px}.start-steps>li:first-child{padding-left:0}.start-steps>li:last-child{border-right:0;padding-right:0}.step-icon{color:var(--green);display:grid;place-items:center;background:#edf4e8;border:1px solid #dce8d3;width:37px;height:37px;flex:none;border-radius:9px}.step-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.step-copy{min-width:0}.step-kicker{font:700 9px/1.3 Consolas,monospace;letter-spacing:1px;color:#7a8a6d}.step-copy h3{font-size:12px;font-weight:800;line-height:1.6;margin:4px 0 6px;word-break:keep-all}.step-copy>p{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 10px;word-break:keep-all}.step-copy #copyPrompt{font-size:11px;min-height:35px;padding:7px 10px;width:100%;word-break:keep-all}.prompt-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:3px}.prompt-tools .text-button{font-size:10px;margin:0;min-height:25px;padding:3px 0}.prompt-tools .small-status{font-size:10px;line-height:1.5}.step-example{display:block;color:#53684b;font-size:10px;line-height:1.8;border-left:2px solid #d4e3c3;padding-left:8px}.step-anchor{font-size:10px;color:var(--green);font-weight:700;text-decoration:none}.practice-tools .number{font-size:9px}.practice-tools .section-heading h2{font-size:14px}.practice-tools .sample-info{margin-top:18px}.practice-tools .sample-info p{font-size:12px}.practice-tools .mini-display{margin-bottom:19px}.modam-queue{padding:21px 24px;margin:0 0 23px;background:#f6f9f2;border-color:#ceddc6}.queue-heading>div{min-width:0}.queue-eyebrow{font-size:10px;color:#809370;margin:0 0 2px;letter-spacing:.04em}.modam-queue .queue-heading h3{font-size:16px}.queue-scene{display:grid;grid-template-columns:175px 1px minmax(0,1fr);gap:25px;align-items:center;margin:16px 0 12px;min-height:120px}.compile-station{position:relative;text-align:center;min-height:103px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.queue-console{width:144px;height:59px;overflow:visible}.queue-console>rect:first-child{fill:#29352f;stroke:#405147;stroke-width:2}.queue-console>circle:first-of-type{fill:#17201d;stroke:#58695c;stroke-width:2}.queue-console .console-lcd{fill:#16291c;stroke:#8d9f78;stroke-width:2}.queue-console .console-green{fill:#3be058;stroke:#138536;stroke-width:2}.queue-console .console-blue{fill:#159ee0;stroke:#0e6696;stroke-width:2}.queue-console .console-screen-line{fill:none;stroke:#cee7a3;stroke-width:1.5;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:0}.compile-station>strong{font-size:10px;line-height:1.5;color:var(--green);font-weight:700;margin-top:7px}.queue-divider{height:90px;background:#dce5d5}.queue-compilers{height:42px;position:absolute;bottom:57px;left:10px;right:10px;display:flex;justify-content:center;gap:2px;pointer-events:none}.queue-compilers .queue-person{width:28px;flex-basis:28px}.queue-compilers .queue-avatar{width:25px;height:39px}.queue-compilers .person-caption{display:none}.queue-line-region{min-width:0}.queue-people{display:flex;align-items:flex-end;gap:10px;min-height:78px;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:5px 0 3px;scrollbar-width:thin}.queue-person{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:0 0 37px;width:37px;color:#7b8d75;min-height:70px}.queue-person:nth-of-type(3n+2){color:#6c8c8c}.queue-person:nth-of-type(3n){color:#9a9673}.queue-avatar{width:28px;height:46px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}.person-caption{display:block;width:57px;font-size:9px;color:#89967e;text-align:center;line-height:1.3;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.queue-person.is-me{color:var(--green)}.queue-person.is-me .queue-avatar{stroke-width:2.8}.queue-person.is-me .person-caption{font-size:9px;color:var(--green);font-weight:800;border:1px solid #bad3a3;background:#e4f0d4;border-radius:8px;padding:1px 4px}.queue-more{font-size:10px;color:#718166;font-weight:700;line-height:1.6;white-space:nowrap;align-self:center;padding:0 3px}.queue-empty-hint{font-size:11px;color:#7b8b70;margin:5px 0}.queue-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:11px;color:var(--muted)}.queue-identity .my-name-label{font-size:10px;flex:none}.my-name-label strong{display:inline-block;margin-left:4px;color:var(--green);padding:2px 7px;border:1px solid #cfe0bf;border-radius:20px;background:#ecf5e2;font-size:10px}.queue-identity>strong{font-size:10px;color:#728564;margin-left:auto}.queue-identity #queueOwnPosition{font-size:11px;color:var(--green);font-weight:700}.modam-queue .queue-counts{margin-top:15px}.modam-queue .queue-notice{font-size:10px}.modam-queue[data-has-jobs=true] .console-screen-line{animation:modam-screen-pulse 2s ease-in-out infinite}.queue-person.is-walking .queue-avatar{animation:modam-waiting-sway 2.4s ease-in-out infinite}.queue-person.is-walking:nth-child(2n) .queue-avatar{animation-delay:-1.1s}.queue-person.is-working .queue-avatar{animation:modam-working 1.6s ease-in-out infinite}.queue-person.queue-arrived{animation:modam-queue-enter .5s ease-out both}.share-preferences{padding:18px 22px 16px;background:#fbfcf9;border-top:1px solid #dfe7d9;border-bottom:1px solid #e6ebdf}.share-review-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.share-review-heading h3{font-size:13px;margin:0}.optional-tag{font-size:9px;color:#6b7d5d;border:1px solid #dce6d3;border-radius:5px;padding:2px 6px;white-space:nowrap}.alias-field{display:grid;grid-template-columns:143px minmax(0,1fr);align-items:center;gap:12px;margin:12px 0 14px}.alias-field label{margin:0;font-size:11px;color:var(--muted)}.alias-field input,.metadata-fields input,.metadata-fields select,.metadata-fields textarea{display:block;width:100%;border:1px solid #d2ddc9;border-radius:6px;background:white;color:var(--ink);padding:9px 10px;font:12px/1.6 "Malgun Gothic","Apple SD Gothic Neo",sans-serif;min-width:0}.alias-field input::placeholder,.metadata-fields input::placeholder,.metadata-fields textarea::placeholder{color:#9aa58f;font-size:10px}.auto-share-consent{display:flex;align-items:flex-start;gap:9px;margin:0;cursor:pointer;border:1px solid #d9e3d0;border-radius:8px;padding:12px 13px;background:#f1f6e9}.auto-share-consent>input{accent-color:var(--green);width:17px;height:17px;flex:none;margin:2px 0 0}.auto-share-consent strong{display:block;font-size:11px;line-height:1.7;font-weight:750;word-break:keep-all}.auto-share-consent small{display:block;font-size:10px;font-weight:400;line-height:1.7;margin-top:4px;color:var(--muted)}.metadata-review{margin-top:13px}.metadata-review>summary{font-size:11px;color:var(--green)}.metadata-review>summary>span{font-size:10px;font-weight:400;color:var(--muted);margin-left:6px}.metadata-status{font-size:10px;color:var(--muted);line-height:1.7;margin:10px 0 12px}.metadata-status.error,.auto-share-status.error{color:#a33f2b}.metadata-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metadata-fields>div{min-width:0}.metadata-fields label{font-size:10px;color:var(--muted);margin:0 0 5px}.metadata-wide{grid-column:1/-1}.metadata-fields textarea{resize:vertical;min-height:68px}.metadata-fields #shareProjectId,.metadata-fields #shareVersion{font-family:Consolas,monospace}.auto-share-status{font-size:11px;color:var(--green);margin:10px 0 0;line-height:1.7}.auto-share-status:empty{display:none}.twin-embedded .modam-start{display:none}.twin-embedded .modam-queue{margin-top:12px}.twin-embedded .modam-queue .queue-scene{grid-template-columns:140px 1px minmax(0,1fr);gap:15px}.twin-embedded .queue-identity{font-size:10px}@keyframes modam-waiting-sway{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-2px) rotate(2deg)}}@keyframes modam-working{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes modam-queue-enter{from{opacity:.4;transform:translateX(9px)}to{opacity:1;transform:translateX(0)}}@keyframes modam-screen-pulse{0%,100%{opacity:.5}50%{opacity:1}}
@media(max-width:1150px){.start-steps>li{padding-left:12px;padding-right:12px;gap:8px}.step-icon{width:30px;height:30px}.step-icon svg{width:21px;height:21px}.step-copy h3{font-size:11px}.queue-scene{grid-template-columns:150px 1px minmax(0,1fr);gap:17px}.queue-people{gap:7px}.queue-person{flex-basis:32px;width:32px}.alias-field{grid-template-columns:1fr;gap:6px}}
@media(max-width:900px){.start-steps{grid-template-columns:1fr 1fr;gap:18px 0}.start-steps>li{padding:0 18px;margin-top:0}.start-steps>li:first-child{padding-left:0}.start-steps>li:nth-child(2){border-right:0;padding-right:0}.start-steps>li:nth-child(3){padding-left:0}.start-steps{padding-top:18px}.step-icon{width:35px;height:35px}.step-copy h3{font-size:12px}.step-copy>p{font-size:11px}.device-chooser{grid-template-columns:100px minmax(0,1fr);gap:15px}.selected-device-spec{margin-left:115px}.device-option{padding:11px 12px}.device-option[aria-pressed=true]{padding:10px 11px}.device-option strong{font-size:14px}}
@media(max-width:650px){.modam-brand img{width:66px;height:31px}.modam-brand .tag{font-size:8px}.modam-intro h1{font-size:27px}.modam-intro>p{font-size:13px}.modam-start{padding:17px}.start-heading{display:block;margin-bottom:14px}.start-heading>span{display:block;margin-top:4px;font-size:10px}.device-chooser{display:block}.chooser-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.chooser-label small{margin:0}.device-options{gap:9px}.device-option{gap:9px;min-height:62px;padding:11px 10px}.device-option[aria-pressed=true]{padding:10px 9px}.device-tick{width:21px;height:21px;font-size:12px}.device-option small{font-size:9px}.selected-device-spec{margin:8px 0 0;font-size:9px}.start-steps>li{gap:9px;padding:0 12px}.step-icon{width:28px;height:28px;border-radius:7px}.step-icon svg{width:19px;height:19px}.step-kicker{font-size:8px}.step-copy h3{font-size:11px;line-height:1.8}.step-copy>p{font-size:10px}.step-example{font-size:9px}.step-copy #copyPrompt{font-size:10px;padding:7px 8px}.prompt-tools .text-button{font-size:9px}.modam-queue{padding:16px}.modam-queue .queue-heading h3{font-size:14px}.queue-eyebrow{font-size:9px}.queue-scene,.twin-embedded .modam-queue .queue-scene{grid-template-columns:1fr;gap:9px;min-height:0;margin-top:12px}.queue-divider{display:none}.compile-station{display:grid;grid-template-columns:105px minmax(80px,1fr) auto;gap:8px;align-items:end;min-height:0;text-align:left}.queue-console{width:105px;height:43px;grid-column:1;grid-row:1}.queue-compilers{position:static;height:40px;grid-column:2;grid-row:1;justify-content:flex-start}.compile-station>strong{grid-column:3;grid-row:1;align-self:center;font-size:10px;margin:0}.queue-line-region{border-top:1px solid #dfe7d8;padding-top:6px}.queue-people{min-height:69px;gap:7px}.queue-identity{gap:7px;margin-top:5px}.queue-identity #queueOwnPosition{font-size:10px}.queue-identity>strong{font-size:9px}.my-name-label strong{font-size:9px}.queue-empty-hint{font-size:10px}.modam-queue .queue-notice{font-size:9px}.share-preferences{padding:17px 18px}.alias-field input{font-size:11px}.share-review-heading h3{font-size:12px}.optional-tag{font-size:8px}.auto-share-consent{padding:10px}.auto-share-consent strong{font-size:10px}.auto-share-consent small{font-size:9px}.metadata-review>summary>span{display:block;margin:3px 0 0 13px}.metadata-fields{gap:10px}}
@media(prefers-reduced-motion:reduce){.queue-person,.queue-avatar,.console-screen-line{animation:none!important;transition:none!important}}
.my-name-label strong{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
@media(max-width:380px){.compile-station{grid-template-columns:90px minmax(45px,1fr) minmax(0,70px);gap:5px}.queue-console{width:90px;height:37px}.queue-compilers{min-width:0;overflow:hidden}.compile-station>strong{font-size:9px;word-break:keep-all}.modam-queue{padding:13px}.queue-identity .my-name-label{max-width:100%}.my-name-label strong{max-width:165px}}

/* Focused coding workspace: help is an optional inline panel. */
header{height:68px}.console-nav{margin-right:0}.console-nav button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;display:flex;align-items:center;height:100%;min-height:0;padding:3px 0 0;font-size:13px;font-weight:700;color:var(--muted)}.console-nav button[aria-expanded=true]{border-bottom-color:var(--green);color:var(--green)}.console-nav button:hover:not(:disabled){background:transparent;border-left:0;border-right:0;border-top:0}main{padding-top:20px}.modam-workbar{padding:17px 21px 12px;margin-bottom:17px}.compact-intro{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:13px}.compact-intro h1{font-size:18px;letter-spacing:-.5px;margin:0;line-height:1.5}.compact-intro p{font-size:11px;color:var(--muted);margin:0;line-height:1.8}.workbar-controls{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:23px;align-items:center}.workbar-controls .device-chooser{grid-template-columns:103px minmax(0,1fr);gap:13px}.workbar-controls .device-options{max-width:530px;gap:11px}.workbar-controls .device-option{min-height:54px;padding:9px 12px;gap:10px}.workbar-controls .device-option[aria-pressed=true]{padding:8px 11px}.workbar-controls .device-option strong{font-size:13px}.workbar-controls .device-option small{font-size:10px}.workbar-controls .device-tick{width:21px;height:21px;font-size:12px}.workbar-prompt #copyPrompt{width:100%;font-size:12px;min-height:40px;padding:8px 12px}.workbar-prompt .prompt-tools{margin-top:3px;min-height:22px}.workbar-prompt .prompt-tools .text-button{font-size:10px;min-height:22px}.modam-workbar .selected-device-spec{margin:7px 0 0 116px;font-size:9px}.help-panel{margin-bottom:18px;padding:20px 22px}.help-intro{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 14px}.help-panel .start-heading{margin-bottom:10px}.help-panel .start-steps{margin-top:14px}.help-panel .start-steps>li{margin-top:0;padding-top:16px}.llm-links{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0}.llm-links a{font-size:10px;line-height:1.6;color:var(--green);background:#f2f6ec;border:1px solid #d8e2cf;border-radius:4px;padding:3px 6px;text-decoration:none}.llm-links a:hover{background:#e6f0d9}.step-copy>p.llm-note{font-size:9px;margin:7px 0 9px;color:#8b957f}.share-compact{padding:11px 22px 13px;margin:0;border-top:0;background:#fbfcf9}.share-compact .auto-share-consent{padding:9px 11px;border-radius:6px;gap:8px}.share-compact .auto-share-consent strong{font-size:11px}.share-compact .auto-share-consent small{font-size:10px;margin-top:2px}.share-compact .metadata-review{margin-top:9px}.share-compact .metadata-review>summary{font-size:11px}.share-compact .metadata-review>summary>span{font-size:9px}.share-compact .metadata-fields{margin-top:11px}.share-compact .metadata-status{font-size:10px}.share-compact .metadata-fields input:disabled,.share-compact .metadata-fields select:disabled,.share-compact .metadata-fields textarea:disabled{color:#87917f;background:#f3f5ee;border-color:#e0e5d8;cursor:not-allowed;opacity:.8}.share-compact .auto-share-status{font-size:10px;margin-top:7px}#codingPanel{scroll-margin-top:16px}#codingPanel .editor-head .section-heading h2{font-size:16px}#codingPanel .actions{grid-template-columns:repeat(3,minmax(0,1fr))}#codingPanel .actions button{font-size:13px;min-height:45px}#pasteCode{white-space:nowrap}.draft-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}#restoreDraft{padding:3px 7px;min-height:23px;font-size:10px;font-weight:600;background:#34483d;border-color:#6f8f72;color:#deead6;border-radius:4px}.build-error{margin:16px 0 0;background:#fff5f2;border:1px solid #dcaaa0;border-left:4px solid #c8503b;border-radius:8px;padding:14px 15px;color:#7b392f}.build-error-head{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:start;gap:10px}.build-error-mark{width:25px;height:25px;display:grid;place-items:center;background:#c34a37;border-radius:50%;font-size:16px;line-height:1;color:white;font-weight:800}.build-error h3{font-size:14px;line-height:1.7;margin:0;color:#a63f2f}.build-error #errorSummary{font-size:12px;font-weight:500;line-height:1.8;margin:4px 0 0;color:#895044}.build-error #copyError{background:white;border-color:#d49d91;color:#a83f2b;padding:7px 10px;min-height:35px;font-size:11px;white-space:nowrap;margin:0}.error-suggestions{font-size:11px;line-height:1.8;margin:10px 0 11px 36px;padding-left:15px;color:#905447}.error-suggestions:empty{display:none}.build-error>details{margin:10px 0 0 36px}.build-error summary{font-size:11px;font-weight:650;color:#a45142}.build-error #errorDetails{background:#ffebe5;border:1px solid #ebc8be;color:#8b463b;max-height:195px;font:11px/1.7 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}.build-error-tip{font-size:10px;line-height:1.8;margin:10px 0 0 36px;color:#a46959}.layout+.modam-queue{margin-top:20px}.twin-embedded .modam-workbar,.twin-embedded #helpPanel{display:none}.twin-actions #twinRun{min-width:175px}
@media(max-width:1000px){.workbar-controls{grid-template-columns:minmax(0,1fr) 205px;gap:16px}.workbar-controls .device-chooser{grid-template-columns:90px minmax(0,1fr);gap:10px}.workbar-controls .device-option{gap:7px;padding:8px 9px}.workbar-controls .device-option[aria-pressed=true]{padding:7px 8px}.workbar-controls .device-option small{font-size:9px}.modam-workbar .selected-device-spec{margin-left:100px}}
@media(max-width:740px){.modam-workbar{padding:16px}.compact-intro{display:block;margin-bottom:12px}.compact-intro h1{font-size:17px}.compact-intro p{font-size:10px;margin-top:4px}.workbar-controls{grid-template-columns:1fr;gap:11px}.workbar-controls .device-chooser{grid-template-columns:95px minmax(0,1fr)}.workbar-controls .device-options{max-width:none}.workbar-prompt{display:flex;align-items:center;gap:12px}.workbar-prompt #copyPrompt{flex:1;max-width:230px;min-height:37px;font-size:11px}.workbar-prompt .prompt-tools{flex:1;display:block;margin:0}.workbar-prompt .prompt-tools .small-status{display:block}.modam-workbar .selected-device-spec{margin:8px 0 0;font-size:9px}.share-compact{padding:10px 18px 12px}.share-compact .auto-share-consent strong{font-size:10px}.share-compact .auto-share-consent small{font-size:9px}.build-error{padding:12px}.build-error-head{grid-template-columns:22px minmax(0,1fr);gap:8px}.build-error-mark{width:22px;height:22px;font-size:14px}.build-error h3{font-size:13px}.build-error #copyError{grid-column:2;justify-self:start;margin-top:3px}.build-error #errorSummary{font-size:11px}.error-suggestions{margin-left:29px;font-size:10px}.build-error>details,.build-error-tip{margin-left:29px}.build-error-tip{font-size:9px}#codingPanel .actions{grid-template-columns:1fr 1fr}#codingPanel .actions #compile{grid-column:1/-1}#codingPanel .actions button{font-size:12px}.help-panel{padding:17px}.help-panel .start-heading>span{font-size:10px}.draft-tools{gap:6px}}
@media(max-width:650px){header{height:auto;min-height:68px;gap:7px;padding-top:10px;padding-bottom:8px}.console-nav{margin:0;gap:23px;justify-content:flex-start;flex-wrap:wrap}.console-nav a,.console-nav button{font-size:11px;min-height:33px;padding:6px 0}.workbar-controls .device-chooser{display:block}.workbar-controls .chooser-label{margin-bottom:8px}.workbar-controls .device-option{min-height:52px}.workbar-controls .device-option strong{font-size:12px}.workbar-prompt{gap:10px}.share-compact .metadata-review>summary>span{display:none}.help-panel .start-steps{gap:16px 0}.help-panel .start-steps>li{padding-top:0}.help-intro{font-size:11px}.llm-links{gap:4px}.llm-links a{font-size:9px;padding:3px 5px}.twin-actions #twinRun{min-width:0;grid-column:1/-1}}
.layout>.modam-queue{grid-column:1/-1;min-width:0;margin:0}.layout>.workspace{min-width:0}
@media(max-width:740px){.layout>.workspace{grid-row:1}.layout>.modam-queue{grid-row:2}.layout>aside{grid-row:3}}
/* Keep the primary action within reach and make error recovery easy to spot. */
#codingPanel #source{height:clamp(240px,32vh,360px);min-height:240px;resize:vertical}
.build-error #copyError.error-copy{background:#b83f2d;border-color:#a73728;color:#fff;font-weight:800;box-shadow:0 2px 0 #92382933}
.build-error #copyError.error-copy:hover:not(:disabled){background:#a93627;border-color:#942c20}
.build-error #copyError.error-copy:focus-visible{outline-color:#df9e91}
.help-panel:not([hidden]){animation:modam-help-unfold .16s ease-out both;transform-origin:top}
@keyframes modam-help-unfold{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.help-panel{animation:none!important}}

/* Prepare, optionally preview, then upload: one action per vertical stage. */
.stage-heading{display:flex;align-items:center;gap:11px;min-width:0}.stage-number{display:grid;place-items:center;flex:none;width:27px;height:27px;border:1px solid #d6e1ce;border-radius:50%;background:#edf4e5;color:#3d704c;font:800 12px/1 Consolas,monospace}.stage-heading h2,.stage-heading h3{font-size:15px;line-height:1.5;margin:0}.stage-heading p{font-size:10px;line-height:1.7;color:var(--muted);margin:3px 0 0}.stage-heading .flow-step{font-size:14px;color:var(--ink)}.stage-heading .flow-step.active,.stage-heading .flow-step.done{color:var(--green)}#codingPanel .build-stage{padding:18px 22px}#codingPanel .build-actions{display:flex;grid-template-columns:none;margin:12px 0 0;gap:0}#codingPanel .build-actions #compile{width:100%;grid-column:auto;min-height:42px;padding:9px 14px;font-size:13px}#codingPanel .build-stage>#status{margin-top:12px;font-size:12px;min-height:20px}.build-stage .build-error{margin-top:12px}.build-stage .queue-compact{align-self:stretch}.layout>.workspace{grid-row:auto}#twinPanel{margin-top:22px}#twinPanel .stage-heading h2{font-size:18px}#twinPanel .stage-heading .eyebrow{font-size:9px;margin:0 0 3px;color:#829277}#twinPanel .twin-actions{display:flex;gap:0;align-items:center}#twinPanel #preview{font-size:13px;min-height:40px;padding:9px 15px;white-space:nowrap}.upload-panel{margin-top:22px;padding:21px 23px}.upload-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.upload-panel #upload{min-width:210px;min-height:44px;padding:10px 17px;font-size:13px}.upload-panel #uploadTitle{font-size:17px}.upload-panel #uploadStep{font-size:17px}.upload-panel #progress{margin:15px 0 0;height:8px}.upload-panel #browserHelp{font-size:11px;line-height:1.8;margin:10px 0 0}.twin-embedded #uploadPanel{display:none}.twin-embedded #twinPanel .stage-number{display:none}
@media(max-width:740px){#codingPanel .build-stage{padding:16px 18px}.stage-heading{gap:9px}.stage-heading h3,.stage-heading .flow-step{font-size:13px}.stage-heading p{font-size:9px}.stage-number{width:25px;height:25px;font-size:11px}.layout>.workspace{grid-row:1}.layout>aside{grid-row:2}.upload-panel{padding:18px}.upload-heading{align-items:flex-start;gap:14px}.upload-panel #upload{min-width:180px;font-size:12px}.upload-panel #uploadStep{font-size:15px}#twinPanel .stage-heading h2{font-size:16px}}
@media(max-width:540px){.upload-heading{flex-direction:column;align-items:stretch;gap:15px}.upload-panel #upload{width:100%;min-width:0}.upload-panel #browserHelp{font-size:10px}#twinPanel .twin-actions{width:100%}#twinPanel #preview{width:100%;font-size:12px}#codingPanel .build-actions #compile{font-size:12px}}
.layout{grid-template-columns:minmax(0,1fr)}.layout>.workspace{grid-column:1/-1}.console-nav{align-items:center;gap:8px}.console-nav a,.console-nav button{height:auto;min-height:38px;border:1px solid #cbdcc7;border-radius:7px;background:#edf5e7;color:#365c3d;padding:8px 13px;font-size:13px;line-height:1.4;text-decoration:none;white-space:nowrap}.console-nav a[aria-current=page],.console-nav button[aria-expanded=true]{background:#20674e;border-color:#20674e;color:white;box-shadow:0 2px 0 #163f30}.console-nav a:hover,.console-nav button:hover:not(:disabled){background:#dcecd3;border:1px solid #9db68f;color:#244830}.console-nav a[aria-current=page]:hover,.console-nav button[aria-expanded=true]:hover{background:#18543f;color:white}.auto-share-notice{display:flex;gap:10px;padding:12px 14px;background:#edf5e6;border:1px solid #ccdfc0;border-radius:8px;color:#335e40}.notice-icon{flex:none;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#20674e;color:white;font-weight:800}.auto-share-notice strong{display:block;font-size:12px;line-height:1.7}.auto-share-notice small{display:block;font-size:11px;line-height:1.8;color:#64735d;margin-top:3px}#sourceLimitInfo{font-size:10px;white-space:nowrap;color:#d6e7c9}.editor-foot{gap:12px;flex-wrap:wrap}@media(max-width:740px){.console-nav{gap:5px}.console-nav a,.console-nav button{font-size:11px;padding:7px 9px;min-height:34px}.auto-share-notice{padding:10px;gap:8px}.auto-share-notice strong{font-size:11px}.auto-share-notice small{font-size:10px}}
/* Bright paper, sky blue and mint keep the coding surface light. */
:root{--bg:#f5fbff;--paper:#fff;--ink:#163449;--muted:#597287;--line:#d8e8f1;--green:#087f8c;--lime:#d9f7ad;--orange:#d47728}
body{background:linear-gradient(180deg,#eef9ff 0,#f8fcff 340px,#f6fcf9 100%)}
header{border-bottom-color:#d8eaf3;box-shadow:0 2px 16px #285c8107}
.card{border-color:#d9e8f2;box-shadow:0 5px 20px #24658a05}
.modam-workbar{background:linear-gradient(110deg,#fff 62%,#effcf7)}
.console-nav a,.console-nav button{border-color:#cbe3f0;background:#eff8ff;color:#32647f}
.console-nav a[aria-current=page],.console-nav button[aria-expanded=true]{background:#087f8c;border-color:#087f8c;color:#fff;box-shadow:0 2px 0 #06636e}
.console-nav a:hover,.console-nav button:hover:not(:disabled){background:#def3fc;border-color:#99cddd;color:#18546f}
.console-nav a[aria-current=page]:hover,.console-nav button[aria-expanded=true]:hover{background:#066e7b;color:white}
.workbar-controls .device-option{background:#f8fcff;border-color:#d3e5ef}
.workbar-controls .device-option[aria-pressed=true]{background:#e6faf3;border-color:#16a58f;box-shadow:0 0 0 1px #16a58f}
.device-option[aria-pressed=true] .device-tick{background:#11978b;color:white;border-color:#11978b}
.share-compact{background:#fff}.auto-share-notice{background:#ecfcf5;border-color:#bde9d7;color:#246657}.notice-icon{background:#0c9c88}.auto-share-notice small{color:#537c73}
#source{background:#f5faff;color:#203d58;caret-color:#087f8c;border-top:1px solid #dcecf6;border-bottom:1px solid #dcecf6}
#source::placeholder{color:#7892aa}#source:focus-visible{outline-color:#65becb}
.editor-foot{background:#eaf4fc;color:#58758d}#sourceLimitInfo{color:#386d8a}
#restoreDraft{background:#fff;border-color:#b8d4e5;color:#246485}
.stage-number,.number{background:#e5f8f6;border-color:#bee8e1;color:#087f8c}
.build-stage{background:linear-gradient(180deg,#fff,#f8fdff)}
#codingPanel .build-actions #compile{background:#087f8c;border-color:#087f8c;box-shadow:0 3px 0 #056474}
#codingPanel .build-actions #compile:disabled{box-shadow:none;background:#92cbd0;border-color:#92cbd0;color:#fff;opacity:.8}
.upload{background:#ddf8b7;border-color:#b8df86;color:#365829}
pre{background:#f0f7fd;color:#36556d}.build-error #errorDetails{background:#ffebe5;color:#8b463b}
.llm-links a{background:#f0f9ff;border-color:#cfe5f2;color:#216681}
.libraries li::before{color:#0a9a89}.hardware-reference thead th{background:#f0f8fd}
.twin-embedded{background:#f5fbff}
.device-code-notice{margin:0 22px 15px;padding:11px 13px;border:1px solid #b9dfe9;border-left:4px solid #1495a5;border-radius:7px;background:#eefaff;color:#28677d;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.device-code-notice.error{background:#fff7e8;border-color:#edcd88;border-left-color:#db9b2a;color:#825a21}#sourceDeviceInfo{font-size:10px;font-weight:800;color:#24717f;white-space:nowrap}@media(max-width:740px){.device-code-notice{margin:0 18px 13px;padding:10px;font-size:11px}}
#sourceDeviceInfo.error{color:#9a6322}
