
:root{font-family:Arial,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#163b34;background:#f4f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,a{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button,.primary{border:0;border-radius:8px;background:#153f35;color:white;padding:12px 18px;cursor:pointer;font-weight:700}button:disabled{opacity:.5;cursor:wait}button:hover,a:hover{filter:brightness(.9)}input{width:100%;padding:15px;border:1px solid #b7c9c0;border-radius:8px;background:white;margin:10px 0 18px;letter-spacing:1px}label{font-weight:700}.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;color:#56766a;margin:0 0 16px}h1{font-size:clamp(28px,3vw,46px);line-height:1.2;letter-spacing:-1.5px;margin:0 0 18px;white-space:pre-line}h2{margin:0 0 12px}.entry{max-width:650px;margin:9vh auto;padding:32px}.description{line-height:1.7;color:#52675c;margin-bottom:34px}.entry form{max-width:460px}.entry form button{width:100%}.handoff{margin-top:35px;padding:22px;background:#e6eee5;border-radius:10px;font-size:14px;line-height:1.6}.mono,.entry-code{font-family:Consolas,monospace;overflow-wrap:anywhere}#notice{font-size:14px;min-height:20px;color:#397059}.error{color:#a63b32!important}.dashboard{max-width:1450px;margin:auto;padding:40px}.dashboard header,.slide header,.workspace header{display:flex;align-items:center;justify-content:space-between;gap:24px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:20px 0}.toolbar a{padding:12px;border:1px solid #97b2a3;border-radius:8px}.danger{background:#8c3e36}.seat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.seat{background:white;border:1px solid #d6dfd4;border-radius:14px;padding:22px 18px;min-height:210px}.seat p{font-size:13px;color:#688070}.needs-help{border:2px solid #d89532;background:#fff8e6}.needs-help strong{color:#9e660f}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.actions a,.actions button{font-size:12px;padding:9px;border-radius:6px;background:#e8f0e6;color:#214936}.footnote{font-size:13px;color:#738477;margin-top:24px}.slide{min-height:100vh;padding:3vh 4vw;display:flex;flex-direction:column}.slide h1{font-size:clamp(26px,3vw,44px);margin-bottom:8px}.slide header p:not(.eyebrow){margin:0;color:#5c7065}.slide .eyebrow{margin-bottom:8px}.qr-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:24px 0;flex:1}.qr-card{background:#fff;border:1px solid #d7e0d4;border-radius:14px;text-align:center;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center}.qr-card h2{font-size:30px;margin:0;font-weight:800;letter-spacing:-1px}.qr-card canvas{width:min(100%,25vh)!important;height:auto!important;image-rendering:pixelated}.entry-code{font-size:clamp(10px,1vw,16px);font-weight:700;margin:4px 0;letter-spacing:.3px}.slide footer{display:flex;justify-content:space-between;gap:20px;font-size:18px}.slide footer strong{overflow-wrap:anywhere}.workspace{height:100dvh;display:flex;flex-direction:column;background:#111a22;color:#e5eee9}.workspace header{padding:18px 24px;background:#f4f5ef;color:#153f35}.workspace h1{font-size:25px;margin:0}.workspace .eyebrow{margin-bottom:6px;font-size:10px}.workspace nav{display:flex;gap:12px;align-items:center}.workspace nav a{font-size:13px;border:1px solid #9ab2a5;border-radius:6px;padding:10px}.workspace nav button{font-size:13px}.connection{padding:6px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #314139}.connection #notice{color:#aacbb8}.connection button{padding:6px 10px;font-size:12px;background:#263f34}#terminal{flex:1;min-height:0;padding:14px 16px 0}.workspace footer{padding:10px 20px;color:#8ba795;font-size:12px}.xterm{height:100%}@media(max-width:1000px){.seat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace header{align-items:flex-start;flex-direction:column;gap:12px}.workspace nav{flex-wrap:wrap}.slide{padding:20px}.qr-grid{gap:8px}.qr-card{padding:8px}.slide footer{font-size:12px}}@media(max-width:600px){.entry{padding:24px;margin:5vh auto}.dashboard{padding:20px}.dashboard header{flex-direction:column;align-items:flex-start}.seat-grid{grid-template-columns:1fr}.qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qr-card canvas{width:100%!important}.entry-code{font-size:12px}.slide footer{flex-direction:column}.workspace nav a,.workspace nav button{font-size:11px;padding:8px}.workspace h1{font-size:21px}}@media print{.screen-only{display:none}.slide{height:100vh}.qr-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Help queue and explicit, temporary terminal control. */
[hidden]{display:none!important}
.help-queue-panel{margin:24px 0 28px;padding:24px;background:#fff;border:1px solid #d6dfd4;border-radius:14px}.help-queue-panel header{display:flex;gap:18px;align-items:center;justify-content:space-between}.help-queue-panel h2{margin:0;font-size:23px}.help-count{display:inline-block;min-width:30px;padding:2px 8px;margin-left:6px;background:#e8f0e6;border-radius:5px;text-align:center;font-size:18px}.help-queue-panel>p{font-size:13px;line-height:1.7;color:#52675c}.help-queue-panel .channel-status{font-size:12px;color:#738477}.help-queue-panel ol{list-style:none;margin:0;padding:0}.help-queue-panel li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;border-top:1px solid #d6dfd4;padding:16px 0}.help-queue-panel li>div{display:grid;gap:5px;min-width:0}.help-queue-panel li span{font-size:13px;color:#688070}.help-queue-panel li a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid #97b2a3;border-radius:6px;font-weight:700}.seat.assisting{border-color:#84a597;background:#edf4ef}.seat.assisting>strong{color:#214936}.dashboard .primary{display:inline-block}.actions a,.actions button{min-height:44px;display:inline-flex;align-items:center}.dashboard header>div{min-width:0}
.control-panel{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 24px;border-bottom:1px solid #bfd0c5;background:#edf4ef;color:#163b34;flex-shrink:0}.control-panel>div{min-width:0}.control-panel strong{display:block;font-size:15px;line-height:1.5}.control-panel p{margin:5px 0 0;max-width:850px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.control-panel[data-mode=requested]{background:#fff8e6;border-color:#d89532}.control-panel[data-mode=assisting]{background:#e1eee6}.control-panel #control-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}.control-panel button{min-height:44px;max-width:100%;font-size:13px;line-height:1.45;white-space:normal}.control-panel .reclaim{background:#163b34;border:2px solid #163b34}.workspace>header,.workspace>.connection,.workspace>footer{flex-shrink:0}.workspace nav{min-width:0}.workspace nav a{min-height:44px;display:inline-flex;align-items:center}.workspace .connection button{min-height:36px}.workspace .connection #notice{min-width:0;overflow-wrap:anywhere}.workspace #terminal{overflow:hidden}button:focus-visible,a:focus-visible{outline:3px solid #d89532;outline-offset:3px}.control-panel button:disabled{cursor:default}
@media(max-width:1000px){.control-panel{align-items:flex-start;flex-direction:column;gap:12px}.control-panel #control-actions{max-width:100%}}
@media(max-width:600px){.help-queue-panel{padding:18px}.help-queue-panel header{align-items:flex-start;flex-direction:column;gap:12px}.help-queue-panel h2{font-size:22px}.help-queue-panel li{gap:12px}.control-panel{padding:12px 18px}.control-panel p{font-size:12px}.control-panel #control-actions{width:100%}.control-panel button{flex:1}.workspace .connection button{min-height:44px;flex-shrink:0}.workspace header{padding:14px 18px}.workspace #terminal{padding-inline:10px}.workspace footer{padding:8px 16px}.seat h2{overflow-wrap:anywhere}}

#save-status{font-size:12px;color:#527367;max-width:210px;line-height:1.5}.workspace nav{flex-wrap:wrap;justify-content:flex-end}
#course-frame{display:block;flex:1;min-width:0;min-height:0;width:100%;border:0;background:#f4f5ef}

.workspace .room-view-nav{gap:4px;flex:0 0 auto;justify-content:flex-start;padding:4px;border:1px solid #b7cbbf;border-radius:9px;background:#e5eee7}
.workspace .room-view-nav button{padding:8px 11px;white-space:nowrap;color:#173f35;background:transparent;min-height:40px}
.workspace .room-view-nav button[aria-pressed=true]{background:#173f35;color:#fff}
.workspace .room-view-nav button:focus-visible,#workspace-files button:focus-visible{outline:2px solid #347c62;outline-offset:2px}
.workspace #tools{min-width:0}
#workspace-files{
 --file-background:#111a22;
 --file-sidebar:#0d151d;
 --file-border:#2b3d4a;
 --file-text:#e5eee9;
 --file-muted:#a3b6bf;
 --file-accent:#a8e8be;
 display:grid;grid-template-columns:clamp(12.5rem,27vw,20rem) minmax(0,1fr);
 flex:1;min-height:0;background:var(--file-background);color:var(--file-text);
 font:14px/1.6 "SFMono-Regular",Consolas,monospace;color-scheme:dark
}
.file-sidebar,.file-document{display:flex;flex-direction:column;min-width:0;min-height:0}
.file-sidebar{border-right:1px solid var(--file-border);background:var(--file-sidebar)}
.file-toolbar,.file-document-name{flex:none;min-height:44px;border-bottom:1px solid var(--file-border)}
.file-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px}
.file-toolbar h2{margin:0;font-size:13px;font-weight:600;line-height:1.4}
.file-refresh{padding:3px 7px;border:1px solid var(--file-border);border-radius:4px;background:transparent;color:var(--file-muted);font-size:12px}
.file-refresh:hover{color:var(--file-text);background:#1b2934}
.file-tree-scroll,.file-document-body{overflow:auto;min-height:0;min-width:0}
.file-tree-scroll{flex:1;padding:6px 8px 12px}
.file-tree{margin:0;padding:0;list-style:none}
.file-tree .file-tree{margin-left:13px;padding-left:4px;border-left:1px solid var(--file-border)}
.file-entry{
 display:flex;align-items:center;gap:8px;width:100%;min-height:30px;padding:3px 7px;
 border:0;border-radius:4px;background:transparent;color:var(--file-text);
 font:inherit;text-align:left;cursor:pointer;list-style:none
}
.file-entry::-webkit-details-marker{display:none}
.file-entry::before{content:'';display:block;width:5px;height:5px;margin-right:3px;flex:none}
.file-entry[data-kind=directory]::before{border-right:1.5px solid var(--file-muted);border-bottom:1.5px solid var(--file-muted);transform:rotate(-45deg)}
details[open] > .file-entry::before{transform:rotate(45deg) translateY(-2px)}
.file-icon{position:relative;width:10px;height:13px;flex:none;border:1px solid currentColor;border-radius:2px;color:#95adba}
.file-entry[data-kind=directory] .file-icon{width:13px;height:9px;color:#d2bd8e}
.file-entry[data-kind=directory] .file-icon::before{content:'';position:absolute;top:-4px;left:0;width:5px;height:3px;border:1px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0}
.file-entry-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-entry:hover{background:#1b2934}
.file-entry[aria-current=true]{background:#213a39;color:var(--file-accent)}
#workspace-files .file-entry:focus-visible,#workspace-files .file-refresh:focus-visible{outline:2px solid var(--file-accent);outline-offset:-2px}
.file-tree-message{padding:4px 7px;color:var(--file-muted);font-size:12px;overflow-wrap:anywhere}
.file-document{background:var(--file-background)}
.file-document-name{display:flex;align-items:center;margin:0;padding:8px clamp(12px,2.2vw,28px);color:var(--file-accent);font-size:13px;font-weight:600;overflow-wrap:anywhere}
.file-document-body,.file-empty{padding:clamp(12px,2.2vw,28px)}
.file-empty{margin:0;color:var(--file-muted);font-size:14px}
.file-image{display:block;max-width:100%;height:auto;margin:0 auto;border-radius:5px;background:#0b141c}
.file-markdown{max-width:880px;line-height:1.72;overflow-wrap:anywhere}
.file-markdown h1,.file-markdown h2,.file-markdown h3{margin:1em 0 .45em;color:#f0f6f1;line-height:1.35}
.file-markdown > :first-child{margin-top:0}
.file-markdown h1{font-size:clamp(20px,2.4vw,30px)}
.file-markdown h2{font-size:20px}
.file-markdown h3{font-size:17px}
.file-markdown a{color:var(--file-accent);text-decoration:underline}
.file-markdown pre,.file-source{overflow:auto;padding:12px;border:1px solid var(--file-border);border-radius:5px;background:#0b141c;color:var(--file-text);font:inherit}
.file-markdown :not(pre) > code{padding:1px 4px;border-radius:3px;background:#243441;color:#cde5d9;font:inherit}
.file-source{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.file-markdown table{max-width:100%;border-collapse:collapse}
.file-markdown th,.file-markdown td{border:1px solid var(--file-border);padding:6px 9px;text-align:left}
@media(max-width:700px){
 .workspace .room-view-nav button{min-height:44px;padding:8px 10px}
 #workspace-files{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,auto) minmax(0,1fr)}
 .file-sidebar{max-height:min(36vh,220px);border-right:0;border-bottom:1px solid var(--file-border)}
 .file-entry{min-height:44px}
}
.history-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(10,20,16,.6)}.history-dialog{display:flex;flex-direction:column;width:min(980px,100%);max-height:100%;height:min(760px,100%);background:#f4f5ef;color:#163b34;border-radius:12px;padding:16px 18px;gap:10px}.history-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.history-dialog h2{margin:0;font-size:20px}.history-actions{display:flex;gap:8px}.history-actions button{min-height:44px;min-width:44px}.history-status{margin:0;font-size:13px;color:#397059;min-height:20px}.history-text{flex:1;min-height:0;margin:0;padding:12px 14px;overflow:auto;background:#111a22;color:#e5eee9;border-radius:8px;font:14px/1.5 "SFMono-Regular",Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.history-text:focus-visible,.history-dialog button:focus-visible{outline:3px solid #d89532;outline-offset:2px}
.history-open{min-height:44px}

.server-panel{margin:18px 0;padding:14px 18px;background:#fff;border:1px solid #d6dfd4;border-radius:12px}.server-panel h2{font-size:16px;margin:0 0 8px}.server-panel ul{display:flex;flex-wrap:wrap;gap:8px 22px;list-style:none;margin:0;padding:0;font-size:14px}.server-down{color:#a63b32}.seat .seat-server{margin:2px 0 0}
