/* 도구 화면: 아두이노 웹 에디터 배치(머리줄 - 왼쪽 세로 메뉴·펼침 판 - 도구 줄·파일 탭·편집기·아래 창)에 교풀 파랑을 입힌다.
   편집기 색은 아두이노 IDE 2 기본 밝은 테마를 그대로 옮겼다(낱말 나누기는 js/arduino-mode.js). */
html, body { height: 100%; }
body.tool { display: flex; flex-direction: column; overflow: hidden; word-break: keep-all; overflow-wrap: break-word; --font-size: 14px; --rail-w: 76px; --console-bg: #10131B; --console-ink: #E3E7EF; }

/* ── 머리줄 ── */
.app-head { flex: none; flex-wrap: nowrap; }
.head-meta { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding-left: 14px; border-left: 1px solid var(--line-2); min-width: 0; }
.head-label { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; line-height: 1.3; }
.head-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; white-space: nowrap; }
.app-head .logo { display: inline-flex; align-items: center; border-radius: 4px; }
.app-head .logo:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 3px; }
/* 교풀AI·교풀에듀 홈페이지(새 창) */
.home-links { display: flex; align-items: center; gap: 2px; padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--line-2); }
.home-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-link:hover { background: var(--surface-2); color: var(--ink); }
.home-link:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 1px; }
.head-guide { border-color: var(--navy-2); color: var(--navy-2); font-weight: 700; }
.head-guide:hover { background: var(--navy-050); border-color: var(--navy-2); }
.head-guide[aria-expanded="true"] { background: var(--navy-2); color: #fff; }
.app-head .btn.quiet { color: var(--ink-2); }
.app-head .btn.quiet:hover { background: var(--surface-2); }

/* ── 몸통: 세로 메뉴 + 펼침 판 + 작업 영역 ── */
.shell { flex: 1; min-height: 0; display: flex; position: relative; }
.rail { flex: none; width: var(--rail-w); background: var(--navy); display: flex; flex-direction: column; padding: 6px 0; gap: 2px; z-index: 21; }
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 2px 9px; background: transparent; border: 0; color: #D5DCF3; cursor: pointer; font-size: 11.5px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.rail-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.rail-item[aria-expanded="true"] { background: var(--paper); color: var(--navy); }
.rail-item:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.rail-item[aria-expanded="true"]:focus-visible { outline-color: var(--navy-2); }

.side-panel { flex: none; width: 340px; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 16px; overflow: auto; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-head h2 { font-size: 17px; letter-spacing: -.01em; }
.side-lead { margin-top: -4px; }
.icon-btn { flex: none; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* 예제·라이브러리 목록 */
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list .group-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; padding: 10px 8px 4px; }
.side-list .group-title:first-child { padding-top: 2px; }
.side-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px 9px; cursor: pointer; color: var(--ink); }
.side-item:hover, .side-item:focus-visible { background: var(--navy-050); }
.side-item svg { flex: none; margin-top: 2px; color: var(--navy-2); }
.side-item .t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.side-item .t b { font-size: 14px; font-weight: 600; }
.side-item .t small { font-size: 12.5px; color: var(--muted); }
.lib-item { padding: 8px 9px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.lib-item:last-child { border-bottom: 0; }
.lib-item b { font-size: 14px; font-weight: 600; }
.lib-item b span { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.lib-item code { font-family: Menlo, Monaco, Consolas, "D2Coding", monospace; font-size: 12.5px; }
.lib-item .inc-k { color: #5b7100; } .lib-item .inc-h { color: #005c5f; }

/* ── 작업 영역 ── */
.work { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px 8px; }
.toolbar .spacer { flex: 1; }
.run { display: flex; align-items: center; gap: 4px; }
.round-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 3px 12px 3px 3px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); }
.round-btn .circle { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-2); color: #fff; display: grid; place-items: center; transition: background .15s; }
.round-btn:hover { background: rgba(45, 74, 197, .09); }
.round-btn:hover .circle { background: var(--navy); }
.round-btn:disabled { opacity: .45; cursor: not-allowed; }
.round-btn:disabled:hover { background: transparent; }
.round-btn:disabled:hover .circle { background: var(--navy-2); }
.board-box { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 8px; flex-wrap: wrap; }
.board-icon { color: var(--ink-2); flex: none; }
.board-lines { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.board-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.board-port { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #A3AABB; flex: none; }
.dot.on { background: #3E9D57; box-shadow: 0 0 0 3px rgba(62, 157, 87, .18); }
.dot.busy { background: var(--mark); }
.dot.warn { background: #E8A23B; }
.dot.bad { background: var(--coral); }
.serial-btn { gap: 8px; }
.serial-btn.live { border-color: var(--navy-2); color: var(--navy-2); box-shadow: inset 0 0 0 1px var(--navy-2); }

.notices { display: flex; flex-direction: column; }
.notices .banner { border-radius: 0; padding: 7px 16px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.notices .banner .btn { margin-left: auto; }

/* 파일 탭 줄 */
.tabs-row { display: flex; align-items: flex-end; gap: 8px; padding: 2px 10px 0 16px; flex-wrap: wrap; }
.file-tab { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-bottom-color: var(--surface); border-radius: 8px 8px 0 0; padding: 8px 14px; font-size: 13.5px; color: var(--ink); margin-bottom: -1px; position: relative; z-index: 1; max-width: 100%; }
.file-tab svg { color: var(--navy-2); flex: none; }
.file-name { font-family: var(--f-mono); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-state { color: var(--muted); font-size: 12px; white-space: nowrap; }
.file-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding-bottom: 4px; }
.tbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 4px 9px; min-height: 30px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tbtn:hover { background: var(--surface); border-color: var(--line); }
.tbtn.strong { color: var(--navy-2); font-weight: 700; }
.tbtn.done { color: var(--sage); }
.tbtn small { font-size: 11px; margin-left: 1px; }
.file-actions .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 5px; }
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; min-width: 260px; max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.menu .menu-title { font-size: 11.5px; color: var(--muted); padding: 6px 8px 2px; font-weight: 600; letter-spacing: .03em; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.menu button:hover, .menu button:focus-visible { background: var(--navy-050); }
.menu button small { display: block; color: var(--muted); font-size: 12px; }

/* ── 편집기: 아두이노 IDE 2 기본 밝은 테마(default.color-theme.json, Monaco 'vs' 기본값 포함) ── */
.editor { flex: 1; min-height: 120px; position: relative; background: #fff; border-top: 1px solid var(--line); }
/* 글꼴은 IDE 2 기본(맥 Menlo, 윈도 Consolas). 한글은 D2Coding이 있으면 그것으로 */
.editor .CodeMirror { position: absolute; inset: 0; height: auto; font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "D2Coding", monospace; font-size: var(--font-size); line-height: 1.45; }
.cm-s-arduino.CodeMirror { background: #ffffff; color: #4e5b61; }
.cm-s-arduino .CodeMirror-gutters { background: #ffffff; border-right: 2px solid #f7f9f9; }
.cm-s-arduino .CodeMirror-linenumber { color: #237893; padding: 0 14px 0 10px; }
.cm-s-arduino .CodeMirror-activeline-background { background: #434f5410; }
.cm-s-arduino .CodeMirror-activeline-gutter .CodeMirror-linenumber { color: #0b216f; }
.cm-s-arduino .CodeMirror-cursor { border-left: 2px solid #4e5b61; }
.cm-s-arduino .CodeMirror-selected { background: #e5ebf1; }
.cm-s-arduino.CodeMirror-focused .CodeMirror-selected, .cm-s-arduino .CodeMirror-line::selection, .cm-s-arduino .CodeMirror-line > span::selection, .cm-s-arduino .CodeMirror-line > span > span::selection { background: #7fcbcdb3; }
.cm-s-arduino span.CodeMirror-matchingbracket { color: inherit !important; background: #0064001a; outline: 1px solid #b9b9b9; }
.cm-s-arduino span.cm-comment { color: #95a5a6; font-style: normal; }
.cm-s-arduino span.cm-keyword, .cm-s-arduino span.cm-meta { color: #728e00; }
.cm-s-arduino span.cm-type { color: #00979d; }
.cm-s-arduino span.cm-fn { color: #d35400; }
.cm-s-arduino span.cm-number, .cm-s-arduino span.cm-string, .cm-s-arduino span.cm-atom { color: #005c5f; }
.cm-s-arduino span.cm-bracket { color: #434f54; }
.cm-s-arduino span.cm-operator, .cm-s-arduino span.cm-variable, .cm-s-arduino span.cm-def, .cm-s-arduino span.cm-property, .cm-s-arduino span.cm-punctuation { color: #4e5b61; }
/* 오류 줄 바탕은 IDE 2와 같은 옅은 분홍(#F2DEDE를 40%로 깐 색). 글자 색 대비를 지킨다 */
.line-error { background: #faf2f2 !important; }
.line-warning { background: #fdf7ea !important; }
.gutter-err { color: var(--coral); font-weight: 700; padding-left: 3px; }
.cm-inline-note { font-family: var(--f-body); font-size: 12.5px; background: var(--coral-soft); color: var(--coral); border-radius: 6px; padding: 3px 8px; margin: 2px 0 4px 6px; display: inline-flex; gap: 8px; align-items: center; }
.cm-inline-note button { border: 0; background: transparent; color: var(--navy-2); text-decoration: underline; cursor: pointer; font-size: 12.5px; padding: 0; }

/* ── 아래 창(출력·시리얼 모니터). 접으면 머리 줄만 남는다 ── */
.console { flex: none; display: flex; flex-direction: column; height: clamp(170px, 30vh, 420px); border-top: 1px solid var(--line); background: var(--bg); }
.console.collapsed { height: auto; }
.console.collapsed .console-body { display: none; }
.console-head { display: flex; align-items: stretch; gap: 12px; padding: 0 8px 0 10px; min-height: 40px; }
.console-tabs { display: flex; gap: 2px; }
.tab { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 0 12px; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--navy-2); font-weight: 700; }
.console.collapsed .tab[aria-selected="true"] { border-bottom-color: transparent; }
.console-status { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; padding: 4px 0; font-size: 13px; color: var(--ink-2); }
.console-status .txt { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-status .acts { display: inline-flex; gap: 6px; margin-left: 6px; flex: none; }
.console:not(.collapsed) .console-status .acts { display: none; } /* 펼치면 출력 창의 카드가 같은 일을 한다 */
.console-status .ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.console-status.ok { color: var(--sage); } .console-status.ok .ic { background: var(--sage); }
.console-status.err { color: var(--coral); } .console-status.err .ic { background: var(--coral); }
.console-status.warn { color: var(--amber); } .console-status.warn .ic { background: #D8962A; }
.console-status.busy { color: var(--navy-2); } .console-status.busy .ic { border: 2px solid var(--navy-soft); border-top-color: var(--navy-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.progress .bar { flex: none; width: clamp(48px, 14vw, 160px); height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
#progressText { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--navy-2); transition: width .2s linear; }
.console-toggle { align-self: center; gap: 4px; color: var(--ink-2); }
.console-toggle svg { transition: transform .15s; }
.console.collapsed .console-toggle svg { transform: rotate(180deg); }
.console-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* 출력: 아두이노 IDE·웹 에디터처럼 어두운 바탕, 안내 카드만 밝게 */
.output { flex: 1; overflow: auto; padding: 10px 16px; font-family: var(--f-mono); font-size: 12.8px; line-height: 1.6; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; background: var(--console-bg); color: var(--console-ink); }
.output .ok { color: #7BD88F; } .output .err { color: #FF8C82; } .output .warn { color: #F5C66E; } .output .muted { color: #98A1B3; }
.output:empty::before { content: '[확인]이나 [업로드]를 누르면 결과가 여기에 나와요.'; color: #98A1B3; font-family: var(--f-body); }
.output .guide-card { font-family: var(--f-body); white-space: normal; word-break: keep-all; overflow-wrap: break-word; background: #fff; color: var(--ink); border-left: 4px solid var(--coral); border-radius: 8px; padding: 10px 14px; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.output .guide-card.warn { border-left-color: #D8962A; }
.output .guide-card.next { border-left-color: var(--navy-2); }
.output .guide-card b { color: var(--coral); }
.output .guide-card.warn b { color: var(--amber); }
.output .guide-card.next b { color: var(--navy-2); }
.output .guide-card ol { margin: 2px 0 0; padding-left: 20px; }
.output .guide-card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.output .raw { color: #B5BCCB; font-size: 12px; }
.output details { margin-top: 4px; }
.output details summary { cursor: pointer; color: #98A1B3; font-family: var(--f-body); font-size: 12.5px; }
/* 주의 목록(학생 코드의 경고): 어두운 바탕 위 밝은 카드 */
.output details.warn-list { font-family: var(--f-body); white-space: normal; background: #fff; color: var(--ink); border-left: 4px solid #D8962A; border-radius: 8px; padding: 8px 14px; margin: 8px 0; max-width: 760px; }
.output details.warn-list > summary { color: var(--amber); font-weight: 700; font-size: 14px; }
.output .warn-list ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.output .warn-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
.output .warn-list .w-text { flex: 1 1 260px; min-width: 0; }
.output .warn-list :focus-visible { outline-color: var(--navy-2); }
.output :focus-visible { outline-color: #8FA6FF; }
.output .guide-card :focus-visible { outline-color: var(--navy-2); }

/* 시리얼 모니터: 흰 바탕(아두이노 IDE 2와 같음) */
.monitor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.monitor-bar .mini { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.monitor-bar select { padding: 3px 6px; font-size: 13px; }
.monitor { flex: 1; overflow: auto; padding: 6px 12px; font-family: var(--f-mono); font-size: 12.8px; line-height: 1.5; background: #fff; color: #4e5b61; white-space: pre-wrap; word-break: break-all; }
.monitor:empty::before { content: attr(data-empty); color: var(--muted); font-family: var(--f-body); }
.monitor .t { color: var(--muted); margin-right: 8px; }
.monitor .sent { color: var(--teal); }
.monitor .sys { color: var(--muted); font-family: var(--f-body); font-size: 12.5px; word-break: keep-all; overflow-wrap: anywhere; }
.monitor-hint { display: flex; gap: 10px; align-items: center; padding: 6px 12px; background: var(--amber-soft); color: var(--amber); font-size: 13px; }
.monitor-hint .btn { margin-left: auto; }
.send-row { display: flex; gap: 6px; padding: 6px 10px; border-top: 1px solid var(--line); background: #fff; }
.send-row input { flex: 1; font-family: var(--f-mono); font-size: 13px; padding: 6px 9px; }

/* ── 시뮬레이션 목록 ── */
.sim-list { display: flex; flex-direction: column; gap: 10px; }
.sim-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.sim-card h3 { font-size: 15.5px; }
.sim-card p { font-size: 13.5px; color: var(--ink-2); }
.sim-card .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.sim-card .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sim-card .mismatch { font-size: 12.5px; color: var(--amber); }

/* ── 오류 해결(오른쪽 서랍) ── */
/* 머리줄 아래 몸통(.shell) 안에서 열려 [아두이노 오류 해결] 단추를 가리지 않는다 */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--paper); border-left: 1px solid var(--line-2); box-shadow: -8px 0 24px rgba(22, 30, 52, .1); z-index: 25; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; overflow: auto; }
.drawer.wide { width: min(540px, 100vw); }
#guideSearch { width: 100%; }
.guide-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-cats button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.guide-cats button[aria-pressed="true"] { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.guide-list { display: flex; flex-direction: column; gap: 8px; }
.guide-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.guide-item summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; gap: 8px; align-items: center; }
.guide-item summary::-webkit-details-marker { display: none; }
.guide-item summary::before { content: '▸'; color: var(--muted); }
.guide-item[open] summary::before { content: '▾'; }
.guide-item .body { padding: 0 14px 12px 30px; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.guide-item .body ol { margin: 0; padding-left: 20px; }
.guide-item.hit { border-color: var(--navy-2); box-shadow: 0 0 0 2px var(--navy-soft); }
.guide-item .cat { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ── 확인 창(<dialog>) ── */
dialog.sheet { border: 0; padding: 0; background: transparent; width: min(440px, calc(100vw - 32px)); max-width: none; overflow: visible; }
dialog.sheet::backdrop { background: rgba(22, 30, 52, .35); }
.sheet-card { background: var(--surface); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.sheet-card h3 { font-size: 17px; }
.sheet-card p { color: var(--ink-2); font-size: 14.5px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── 좁은 화면 ── */
@media (max-width: 1100px) {
  /* 펼침 판은 편집기를 밀지 않고 위에 덮는다 */
  .side-panel { position: absolute; left: var(--rail-w); top: 0; bottom: 0; z-index: 20; box-shadow: 8px 0 24px rgba(22, 30, 52, .12); }
}
@media (max-width: 760px) {
  body.tool { overflow: auto; height: auto; }
  .app-head { flex-wrap: wrap; }
  .head-meta { border-left: 0; padding-left: 0; }
  .shell { flex-direction: column; }
  .rail { width: auto; flex-direction: row; padding: 0 4px; }
  .rail-item { flex: 1; flex-direction: row; justify-content: center; padding: 9px 4px; font-size: 12.5px; }
  .side-panel { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: none; max-height: 70vh; }
  .editor { flex: none; height: 60vh; }
  .console { height: 50vh; }
  .console.collapsed { height: auto; }
  .file-actions { margin-left: 0; }
  .file-actions .sep { display: none; }
  .console-head { flex-wrap: wrap; column-gap: 8px; }
  .console-toggle { margin-left: auto; }
  .console-status { order: 4; flex-basis: 100%; }
  .console-status:empty { display: none; }
  .progress { order: 5; flex-basis: 100%; padding-bottom: 6px; }
  .progress .bar { flex: 1; width: auto; }
  .drawer { position: fixed; top: 0; z-index: 40; }
}
@media (max-width: 760px) {
  .home-links { border-left: 0; padding-left: 0; margin-left: 0; }
}
