:root{--bg: #0d1117;--fg: #c9d1d9;--accent: #58a6ff;--error: #f85149;--panel: #161b22;--border: #30363d}*{box-sizing:border-box}html,body,#app{height:100%;margin:0;background:var(--bg);color:var(--fg);font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}#app{display:flex;flex-direction:column}#topbar{display:flex;align-items:center;gap:16px;padding:8px 16px;background:var(--panel);border-bottom:1px solid var(--border);font-size:13px}.brand{font-weight:700;color:var(--accent)}#statusline{color:#8b949e}#timer{margin-left:auto;color:#8b949e}#timer.low{color:var(--error);font-weight:700}#terminal-wrap{flex:1;padding:12px;min-height:0}#terminal{height:100%}#final-submission{padding:14px 16px 18px;background:var(--panel);border-top:1px solid var(--border);font-size:13px}#final-submission h2{margin:0 0 4px;font-size:13px;letter-spacing:.06em;color:var(--accent)}.submission-hint{margin:0 0 10px;color:#8b949e;font-size:12px}.submission-fields{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:10px}.submission-fields label{display:flex;flex-direction:column;gap:4px;color:#8b949e;font-size:11px;flex:1 1 160px}.submission-fields input{background:#0d1117;border:1px solid var(--border);color:var(--fg);border-radius:4px;padding:6px 8px;font-family:inherit;font-size:13px}.submission-fields input:focus{outline:none;border-color:var(--accent)}.report-box{border:1px solid var(--border);border-radius:6px;background:var(--panel);margin-bottom:12px;overflow:hidden}.report-header{display:flex;justify-content:space-between;align-items:center;padding:6px 8px 0;background:#0d1117;border-bottom:1px solid var(--border)}.report-tabs{display:flex;gap:4px}.report-tab{background:transparent;border:1px solid transparent;border-bottom:none;border-radius:6px 6px 0 0;padding:6px 12px;color:#8b949e;font-family:inherit;font-size:12px;cursor:pointer;position:relative;top:1px}.report-tab:hover{color:var(--fg)}.report-tab.active{color:var(--fg);background:var(--panel);border-color:var(--border);border-bottom-color:var(--panel);font-weight:600}.report-toolbar{display:flex;gap:2px;align-items:center;padding-bottom:6px}.toolbar-btn{background:transparent;border:1px solid transparent;border-radius:4px;color:#8b949e;padding:3px 6px;font-size:11px;font-family:inherit;cursor:pointer;line-height:1}.toolbar-btn:hover{background:#21262d;color:var(--fg)}.report-body{position:relative}#field-report{width:100%;background:var(--panel);border:none;color:var(--fg);font-family:inherit;font-size:13px;line-height:1.5;padding:10px 12px;resize:vertical;min-height:110px;box-sizing:border-box}#field-report:focus{outline:none}.markdown-preview{padding:12px;min-height:110px;max-height:260px;overflow-y:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:13px;line-height:1.6;color:var(--fg);background:var(--panel)}.markdown-preview.empty{color:#8b949e;font-style:italic}.markdown-preview h1,.markdown-preview h2,.markdown-preview h3,.markdown-preview h4{margin-top:0;margin-bottom:8px;color:var(--fg);font-weight:600;line-height:1.25}.markdown-preview h1{font-size:1.3em;border-bottom:1px solid var(--border);padding-bottom:4px}.markdown-preview h2{font-size:1.15em;border-bottom:1px solid var(--border);padding-bottom:3px}.markdown-preview h3{font-size:1.05em}.markdown-preview p{margin:0 0 8px}.markdown-preview code{background:#0d1117;border:1px solid var(--border);padding:2px 5px;border-radius:4px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:12px}.markdown-preview pre{background:#0d1117;border:1px solid var(--border);padding:8px 10px;border-radius:6px;overflow-x:auto;margin:0 0 8px}.markdown-preview pre code{background:transparent;border:none;padding:0}.markdown-preview blockquote{border-left:3px solid var(--accent);margin:0 0 8px;padding-left:10px;color:#8b949e}.markdown-preview ul,.markdown-preview ol{margin:0 0 8px;padding-left:20px}.markdown-preview li{margin-bottom:2px}.report-footer{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;border-top:1px solid var(--border);font-size:11px;color:#8b949e;background:#0d1117}#submit-btn{background:var(--accent);color:#0d1117;border:none;border-radius:4px;padding:8px 16px;font-weight:700;letter-spacing:.04em;cursor:pointer}#submit-btn:disabled{opacity:.4;cursor:not-allowed}#submission-result{margin-top:10px;font-size:12px;min-height:1.2em}#submission-result.accepted{color:#3fb950;font-weight:700}#submission-result.rejected{color:var(--error);font-weight:700}#submission-result.error{color:#d29922}#submission-result.pending{color:#8b949e}#signin-overlay{position:fixed;inset:0;background:#0d1117f5;display:flex;align-items:center;justify-content:center;z-index:50}.signin-card{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:32px;max-width:440px;text-align:center}.signin-card h1{font-size:18px;margin-top:0}.signin-card p{font-size:13px;color:#8b949e;line-height:1.5}#google-signin-button{display:flex;justify-content:center;margin:16px 0}.error{color:var(--error)}.hidden{display:none!important}.topbar-btn{display:inline-flex;align-items:center;gap:6px;background:#21262d;border:1px solid var(--border);color:var(--fg);border-radius:6px;padding:4px 10px;font-family:inherit;font-size:12px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.topbar-btn:hover{background:#30363d;border-color:var(--accent);color:#fff}.signin-man-link{background:none;border:none;padding:0;font-family:inherit;font-size:inherit;color:var(--accent);text-decoration:underline;cursor:pointer}.signin-man-link:hover{color:#79c0ff}.man-modal-overlay{position:fixed;inset:0;background:#010409d1;backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}.man-window{display:flex;flex-direction:column;width:100%;max-width:900px;height:85vh;max-height:820px;background:#090d13;border:1px solid #30363d;border-radius:8px;box-shadow:0 24px 60px #000000d9,0 0 0 1px #ffffff0d;overflow:hidden}.man-window-titlebar{display:flex;align-items:center;justify-content:space-between;background:#161b22;padding:8px 14px;border-bottom:1px solid #30363d;user-select:none}.man-window-controls{display:flex;gap:7px;align-items:center}.man-dot{width:11px;height:11px;border-radius:50%;display:inline-block}.dot-red{background:#ff5f56;cursor:pointer}.dot-red:hover{opacity:.8}.dot-yellow{background:#ffbd2e}.dot-green{background:#27c93f}.man-window-title{font-size:12px;font-weight:600;color:#8b949e;letter-spacing:.05em;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}.man-window-actions{display:flex;align-items:center;gap:6px}.man-action-btn{background:#21262d;border:1px solid #30363d;border-radius:4px;color:#c9d1d9;font-family:inherit;font-size:11px;padding:3px 8px;cursor:pointer;transition:all .15s}.man-action-btn:hover{background:#30363d;color:#fff;border-color:#8b949e}.man-action-btn.close-btn:hover{background:#da3633;border-color:#f85149;color:#fff}.man-search-bar{display:flex;align-items:center;gap:8px;background:#0d1117;border-bottom:1px solid #30363d;padding:6px 14px;font-size:13px}.search-prompt{color:#58a6ff;font-weight:700;font-size:14px}#man-search-input{flex:1;background:transparent;border:none;color:#fff;font-family:inherit;font-size:13px;outline:none}.search-count{color:#8b949e;font-size:11px;white-space:nowrap}.search-nav-btn{background:#21262d;border:1px solid #30363d;color:#c9d1d9;border-radius:3px;padding:2px 7px;font-size:10px;cursor:pointer;font-family:inherit}.search-nav-btn:hover{background:#30363d;color:#fff}.man-viewport{flex:1;overflow-y:auto;overflow-x:auto;background:#090d13;padding:20px 28px;outline:none;scroll-behavior:smooth}.man-content{font-family:ui-monospace,SF Mono,DejaVu Sans Mono,Menlo,Consolas,monospace;font-size:13.5px;line-height:1.5;color:#c9d1d9;white-space:pre-wrap;word-break:break-word;tab-size:4}.man-line{min-height:1.5em}.man-line-header{display:flex;justify-content:space-between;color:#8b949e;font-weight:600;margin-bottom:16px;border-bottom:1px solid #21262d;padding-bottom:6px}.man-hdr-left,.man-hdr-right{font-weight:700;color:#f0f6fc}.man-hdr-center{color:#8b949e}.man-line-section{margin-top:20px;margin-bottom:6px}.man-section-heading{font-weight:700;color:#fff;letter-spacing:.05em;text-shadow:0 0 2px rgba(255,255,255,.3)}.man-line-command{margin-top:10px}.man-cmd-name{font-weight:700;color:#58a6ff}.man-token-arg{color:#e3b341;font-style:italic}.man-token-flag{color:#7ee787;font-weight:600}.man-token-field{color:#bc8cff;font-weight:600}.man-bullet{color:#58a6ff;margin-right:4px}mark.man-search-hit{background:#bb8009;color:#fff;border-radius:2px;padding:0 2px}mark.man-search-hit.active-hit{background:#f0883e;color:#000;font-weight:700;outline:1px solid #ffffff}.man-pager-footer{display:flex;justify-content:space-between;align-items:center;background:#161b22;border-top:1px solid #30363d;padding:6px 14px;font-size:11.5px;color:#8b949e;user-select:none}.pager-status{display:flex;align-items:center;gap:6px;font-weight:600;color:#c9d1d9}.pager-prompt{color:#58a6ff;font-weight:700}.pager-shortcuts{display:flex;gap:12px;color:#8b949e}.pager-shortcuts kbd{background:#21262d;border:1px solid #30363d;border-radius:3px;padding:1px 5px;font-size:10px;color:#c9d1d9;font-family:inherit}/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
