@font-face{font-family:Hanbit;src:url("KCC-Hanbit.ttf") format("truetype");font-display:swap}
:root{color-scheme:dark;font-family:Hanbit,system-ui,sans-serif;background:#181818;color:#eeeeee}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:14px;min-height:50px;flex-shrink:0;padding:6px 20px;border:0}header strong{font-size:19px}header span{color:#cccccc}header small{color:#999999;margin-right:0}button,.button{background:#2d2d2d;color:#eeeeee;border:1px solid #484848;border-radius:7px;padding:10px 14px;cursor:pointer;font:inherit;font-size:13px}button:hover,.button:hover{background:#3c3c3c}main{width:100%;max-width:none;margin:0;padding:16px 20px}.viewer{height:clamp(220px,42vh,520px);position:relative;background:#101010;border:1px solid #363636;border-radius:10px;overflow:hidden;display:grid;place-items:center}video{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center}#empty{position:absolute;text-align:center;color:#aaaaaa}#empty b{font-size:25px;color:#dddddd}#empty small{font-size:12px}.bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 0}.bar label{font-size:12px;color:#bbbbbb}.bar label:last-child{margin-left:auto}output{font:18px monospace}.timeline{display:flex;border:1px solid #404040;border-radius:8px;overflow:hidden;background:#202020}.labels{width:90px;flex-shrink:0;background:#282828}.labels div{height:130px;padding:18px;font-size:12px;color:#cccccc;border-bottom:1px solid #404040}#scroll{overflow-x:auto;overflow-y:hidden;min-width:0;flex:1;position:relative;height:146px}canvas{display:block;touch-action:none;cursor:crosshair}.tools{display:flex;gap:8px;flex-wrap:wrap;padding:16px 0}kbd{font-size:10px;margin-left:6px;color:#a2b7a8}.detail{display:flex;justify-content:space-between;font:12px monospace;color:#bbbbbb;gap:12px}#status{font-size:12px;color:#aaaaaa;line-height:1.6}input{accent-color:#5db9b3}@media(max-width:700px){header{padding:6px 12px;flex-wrap:wrap}main{padding:4px 12px}header small{display:none}.tools button{padding:9px}.detail{flex-direction:column}#empty b{font-size:18px}}

[hidden]{display:none!important}


#track{position:relative;height:130px}#wave{position:sticky;left:0;height:130px}.zoom-controls{margin-left:auto;display:flex;gap:6px}.zoom-controls button{width:34px;height:30px;padding:0;font-size:20px;line-height:1}.labels{width:98px}

body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}main{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding-top:4px;padding-bottom:4px}.viewer{height:auto;flex:var(--video-share,.55) 1 0;min-height:100px}.timeline{flex:var(--audio-share,.45) 1 0;min-height:180px}.labels div{height:100%;padding:0 8px;display:flex;align-items:center;justify-content:center;text-align:center;border-bottom:0}#scroll{height:100%;align-self:stretch}#track,#wave{height:100%}.bar{flex-shrink:0;padding:2px 0 10px}.detail{flex-shrink:0;min-height:0;padding-top:0}.detail:has(#selection:not(:empty)){padding-top:4px}#status{flex-shrink:0;margin:0}#status:not(:empty){padding-top:4px}#divider{height:8px;flex-shrink:0;cursor:row-resize;touch-action:none;display:grid;place-items:center}#divider::after{content:"";height:3px;width:42px;border-radius:2px;background:#555}#divider:hover::after,#divider:focus-visible::after{background:#83d4d0}body.resizing{cursor:row-resize;user-select:none}body.resizing #divider::after{background:#83d4d0}@media(max-height:540px){body{height:auto;min-height:100dvh;overflow:auto}.viewer{flex:none;height:180px}.timeline{flex:none;height:220px}}


#playhead{position:absolute;top:0;bottom:0;left:0;width:1px;background:#f35c52;pointer-events:none;will-change:transform}

#add-video{width:60px;height:60px;padding:0;border-radius:50%;font:38px/1 system-ui,sans-serif;color:#ccc;background:#242424;border:1px solid #505050}#add-video:hover{background:#333;color:#fff}#add-video:focus-visible{outline:2px solid #83d4d0;outline-offset:4px}
#projects-home{flex:1;min-height:0;overflow:auto;padding:32px 28px}.projects-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.projects-heading h1{font-size:22px;margin:0}#projects-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.project-card{background:#232323;border:1px solid #3a3a3a;border-radius:8px;padding:18px;display:flex;flex-direction:column;gap:14px}.project-open{text-align:left;min-height:64px;background:transparent;border:0;padding:0;display:flex;flex-direction:column;gap:10px}.project-open strong{font-size:16px;overflow-wrap:anywhere}.project-open small{color:#999}.project-delete{align-self:flex-end;color:#bbb}#projects-status{color:#aaa;font-size:13px}#project-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40vw}#projects-back{margin-left:auto;flex-shrink:0;width:38px;height:38px;padding:0;font-size:20px}
#busy-overlay{position:fixed;inset:0;z-index:1000;background:#0009;display:grid;place-items:center;cursor:wait;outline:none}.busy-panel{display:flex;align-items:center;gap:16px;background:#252525;border:1px solid #555;border-radius:10px;padding:24px 30px;box-shadow:0 12px 40px #0006}.busy-panel p{margin:0;font-size:16px}.busy-spinner{width:26px;height:26px;border:3px solid #555;border-top-color:#83d4d0;border-radius:50%;animation:busy-spin .8s linear infinite}@keyframes busy-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.busy-spinner{animation:none}}

.busy-panel strong{display:block;font-size:20px;margin-bottom:10px}.busy-panel p{color:#bbb}


#clock,#clock-input{width:10ch;height:26px;font:18px/26px monospace;flex-shrink:0}#clock{cursor:text}#clock:focus-visible{outline:1px solid #83d4d0;outline-offset:2px}#clock-input{color:#eee;background:#242424;border:0;border-bottom:1px solid #83d4d0;padding:0;outline:none;border-radius:0}#clock-input[aria-invalid="true"]{border-bottom-color:#e47777}

#project-home-link{cursor:pointer;color:inherit;text-decoration:none}#project-home-link:focus-visible{outline:1px solid #83d4d0;outline-offset:3px}

.site-home{margin-left:auto;display:none;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid #484848;border-radius:7px;color:#eeeeee;background:#2d2d2d}.site-home:hover{background:#3c3c3c}.site-home:focus-visible{outline:2px solid #5db9b3;outline-offset:3px}.site-home svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}body.project-home .site-home{display:grid}

button:disabled{opacity:.4;cursor:default}

body:not(.project-home)>header{display:none}

/* Project list header and editing guide dialog. */
body.project-home>header{min-height:96px;padding:24px 32px;gap:20px;border-bottom:1px solid #303030}
body.project-home header strong{font-size:24px}body.project-home header small{font-size:14px}
.guide-link{display:none}body.project-home .guide-link{display:flex;align-items:center;gap:8px;margin-left:auto;color:#ccc;background:transparent;border:0;font-size:14px;padding:10px 12px;border-radius:7px}body.project-home .guide-link:hover{background:#292929;color:#fff}body.project-home .site-home{margin-left:0;width:42px;height:42px}
.help-icon{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #777;border-radius:50%;font:15px/1 system-ui,sans-serif;flex-shrink:0}.guide-link:focus-visible{outline:2px solid #5db9b3;outline-offset:3px}
#projects-home{padding:32px}.projects-heading{margin-bottom:24px}.projects-heading h1{font-size:24px}
#editor-guide{width:min(1120px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 64px);margin:auto;padding:0;border:1px solid #484848;border-radius:16px;background:#181818;color:#eee;box-shadow:0 24px 80px #0008;overflow:hidden}#editor-guide::backdrop{background:#000a}#editor-guide[open]{display:flex;flex-direction:column}.guide-dialog-heading{display:flex;align-items:center;gap:24px;padding:24px 28px;border-bottom:1px solid #343434;flex-shrink:0}.guide-dialog-heading .guide-heading{margin:0;flex:1;min-width:0}#guide-close{width:38px;height:38px;flex-shrink:0;padding:0;font:26px/1 system-ui,sans-serif}#guide-close:focus-visible{outline:2px solid #83d4d0;outline-offset:3px}.guide-body{padding:24px 28px;overflow:auto;min-height:0;overscroll-behavior:contain}.guide-heading{display:flex;align-items:center;gap:14px;margin-bottom:24px}.guide-heading>.help-icon{width:34px;height:34px;font-size:20px;color:#83d4d0;border-color:#4c8985}.guide-heading h2{font-size:22px;margin:0 0 8px}.guide-heading p,.shortcut-heading p{margin:0;color:#aaa;font-size:14px;line-height:1.6}
.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.guide-steps article{padding:22px 24px;background:#202020;border:1px solid #343434;border-radius:10px}.step-number{color:#83d4d0;font:13px monospace}.guide-steps h3{font-size:16px;margin:12px 0 10px}.guide-steps p{font-size:14px;color:#bbb;line-height:1.8;margin:0}
.shortcut-heading{margin:32px 0 18px}.shortcut-heading h3{font-size:18px;margin:0 0 8px}.shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.shortcut-card{border:1px solid #383838;border-radius:10px;overflow:hidden;background:#202020}.shortcut-card h3{font-size:18px;margin:0;padding:20px 24px;border-bottom:1px solid #383838;background:#262626}.shortcut-card table{width:100%;border-collapse:collapse;font-size:14px}.shortcut-card th,.shortcut-card td{text-align:left;padding:12px 20px;border-bottom:1px solid #303030;line-height:1.5}.shortcut-card thead th{font-size:12px;color:#999;font-weight:normal}.shortcut-card tbody th{font-weight:normal;color:#ccc}.shortcut-card td{width:46%}.shortcut-card tr:last-child th,.shortcut-card tr:last-child td{border-bottom:0}.shortcut-card kbd{font:13px/1.6 system-ui,sans-serif;color:#eee;margin:0}
.guide-notes{padding:8px 0 16px;font-size:13px;line-height:1.8;color:#999}.guide-notes strong{color:#ccc;margin-right:8px}.guide-notes code{color:#ccc}
@media(max-width:850px){.guide-steps{grid-template-columns:1fr}.shortcut-grid{grid-template-columns:1fr}body.project-home>header{padding:20px 24px}#projects-home{padding:24px}}

.viewer>#projects-back{position:absolute;top:14px;right:14px;z-index:2;margin:0;width:40px;height:40px;display:grid;place-items:center;background:#202020cc;border-color:#ffffff40;color:#fff;box-shadow:0 2px 10px #0004;backdrop-filter:blur(8px)}.viewer>#projects-back:hover{background:#3c3c3cee}.viewer>#projects-back:focus-visible{outline:2px solid #83d4d0;outline-offset:3px}
