@import "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap";:root{--background:#ebebf2;--foreground:#111118;--card:#fff;--primary:#4f46e5;--primary-foreground:#fff;--secondary:#f4f4f8;--muted:#f4f4f8;--muted-foreground:#6b6b7e;--border:#e4e4eb;--destructive:#d4183d;--rating-1:#ef4444;--rating-2:#f97316;--rating-3:#f59e0b;--rating-4:#22c55e;--rating-5:#10b981;--radius:12px;--font-sans:"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-display:"Fraunces", Georgia, serif;--font-mono:"DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}*,:before,:after{box-sizing:border-box}body{font-family:var(--font-sans);background:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;margin:0}#root{min-height:100vh}button,input,textarea{font:inherit}.layout{background:var(--background);grid-template-columns:240px 1fr;min-height:100vh;display:grid}.layout-home{background:var(--background);min-height:100vh;display:block}.layout-home .content{min-height:100vh;padding:0;display:block}.sidebar{border-right:1px solid var(--border);background:var(--card);flex-direction:column;flex-shrink:0;width:240px;height:100vh;display:flex;position:sticky;top:0;overflow-y:auto}.sidebar-home-link{text-align:left;width:auto;font:inherit;color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;margin:0 0 20px;padding:0;font-size:14px;transition:color .15s;display:inline-flex}.sidebar-home-link:hover{color:var(--foreground)}.sidebar-home-chevron{flex-shrink:0;width:16px;height:16px}.sidebar h2,.sidebar-title{letter-spacing:.04em;text-transform:uppercase;color:var(--foreground);margin:0 0 12px;font-size:12px;font-weight:600}.sidebar-header{display:none}.sidebar-body-inner{padding:20px 12px 24px}.chapter-list{flex-direction:column;gap:2px;display:flex}.chapter-button{text-align:left;cursor:pointer;color:var(--muted-foreground);background:0 0;border:1px solid #0000;border-radius:8px;padding:10px 12px;font-size:14px;transition:all .15s}.chapter-button:hover{background:var(--secondary);color:var(--foreground)}.chapter-button.active{background:var(--card);border-color:var(--primary);color:var(--foreground);font-weight:500;box-shadow:0 1px 2px #1111180a}.content{justify-content:center;align-items:flex-start;min-width:0;min-height:100vh;padding:0;display:flex;position:relative}.room-id-corner{z-index:1;color:var(--muted-foreground);font-size:12px;font-family:var(--font-mono);letter-spacing:.04em;align-items:center;gap:6px;display:flex;position:absolute;top:16px;right:24px}.room-id-corner code{font-family:inherit;font-size:inherit;color:inherit;background:0 0;padding:0}.room-id-inline{color:var(--muted-foreground);font-size:12px;font-family:var(--font-mono);letter-spacing:.04em;align-items:center;gap:6px;margin-top:6px;display:none}.room-id-inline code{font-family:inherit;font-size:inherit;color:inherit;background:0 0;padding:0}.room-id-label{color:var(--muted-foreground);font-size:12px;font-family:var(--font-mono);letter-spacing:.04em;white-space:nowrap}.room-id-label code{font-family:inherit;font-size:inherit;color:inherit;background:0 0;padding:0}.chapters-index-page{flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:100vh;padding:64px 24px;display:flex}.chapters-index-card{text-align:left;background:0 0;border:none;border-radius:0;width:100%;max-width:32rem;margin:0;padding:0}.chapters-index-brand{align-items:center;gap:10px;margin-bottom:8px;display:flex}.chapters-index-github-link{background:var(--primary);width:28px;height:28px;color:var(--primary-foreground);border-radius:6px;justify-content:center;align-items:center;text-decoration:none;transition:background .15s;display:inline-flex}.chapters-index-github-link:hover{background:color-mix(in srgb, var(--primary) 90%, black)}.chapters-index-github-link svg{width:16px;height:16px}.chapters-index-title{font-family:var(--font-display);letter-spacing:-.02em;color:var(--foreground);font-variation-settings:"opsz" 24;margin:0;font-size:18px;font-weight:600}.chapters-index-lead{color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.12em;margin:0 0 24px;font-size:12px;font-weight:500;line-height:1.4}.chapters-index-list{flex-direction:column;gap:8px;display:flex}.chapters-index-item{border:1px solid var(--border);background:var(--card);text-align:left;width:100%;font:inherit;color:var(--foreground);cursor:pointer;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;font-size:14px;transition:border-color .15s,box-shadow .15s;display:flex}.chapters-index-item:hover{border-color:color-mix(in srgb, var(--primary) 40%, var(--border));box-shadow:0 1px 2px #1111180f}.chapters-index-item-number{color:var(--muted-foreground);margin-right:8px}.chapters-index-item-meta{flex-shrink:0;align-items:center;gap:12px;display:flex}.chapters-index-item-counts{font-size:12px;font-family:var(--font-mono);color:var(--muted-foreground)}.chapters-index-item-arrow{width:16px;height:16px;color:var(--muted-foreground);transition:color .15s,transform .15s}.chapters-index-item:hover .chapters-index-item-arrow{color:var(--primary);transform:translate(2px)}.start-card,.practice-card{border:1px solid var(--border);background:var(--card);border-radius:16px;width:100%;max-width:42rem;padding:32px;box-shadow:0 1px 2px #1111180a}.practice-card{max-width:52rem}.start-card{margin-top:96px}.start-card h1,.practice-card h1,.practice-chapter-title{letter-spacing:-.02em;color:var(--foreground);margin:0 0 8px;font-size:24px;font-weight:700}.start-card>p{color:var(--muted-foreground);margin:0 0 28px;font-size:14px}.start-card-status{color:var(--primary);margin:0 0 12px;font-size:14px}.start-card-room-panel{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.start-card-room-join-form{display:contents}.start-card-room-panel .start-card-button{border-radius:8px;padding:10px 20px;font-size:14px;font-weight:500;line-height:1.25}.start-card-join{white-space:nowrap;flex:none}.start-card-room-or{color:var(--muted-foreground);font-size:14px}.start-card-generate{white-space:nowrap;flex:none}.room-id-input{box-sizing:border-box;border:1px solid var(--border);min-width:0;font:inherit;font-family:var(--font-mono);letter-spacing:.05em;background:var(--card);color:var(--foreground);border-radius:8px;flex:8rem;padding:10px 12px;font-size:14px;transition:border-color .15s,box-shadow .15s}.room-id-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);outline:none}.room-id-input::placeholder{font-family:var(--font-sans);letter-spacing:normal;color:var(--muted-foreground)}.practice-layout{flex-direction:column;width:100%;max-width:52rem;padding:24px 32px 40px;display:flex}.practice-header{grid-template-columns:1fr auto 1fr;align-items:start;gap:16px;margin-bottom:20px;padding-top:8px;display:grid}.practice-header-spacer{min-width:0}.practice-header-center{text-align:center;flex-direction:column;align-items:center;display:flex}.practice-header-room{justify-content:flex-end;padding-top:4px;display:flex}.practice-chapter-number{color:var(--muted-foreground);margin:0 0 2px;font-size:12px}.practice-chapter-title{width:auto;max-width:28rem;margin:0;font-size:18px;font-weight:700}.reset-progress-button{color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;margin-top:6px;padding:0;font-size:12px;transition:color .15s;display:inline-flex}.reset-progress-button:hover{color:var(--foreground)}.reset-progress-icon{width:12px;height:12px}.practice-card{padding:0;overflow:hidden}.practice-card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:12px 24px;display:flex}.practice-card-body{padding:32px 32px 20px}.practice-card-answer{padding:0 32px 32px}.question-title{color:var(--foreground);margin:0 0 16px;font-size:20px;font-weight:700}.progress{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.progress-group{align-items:center;gap:6px;display:flex}.progress-divider{background:var(--border);flex-shrink:0;width:1px;height:14px}.progress-row{display:contents}.dot{appearance:none;box-sizing:border-box;cursor:pointer;background:#d1d5db;border:none;border-radius:999px;width:7px;height:7px;padding:0;transition:opacity .15s,width .15s,height .15s;display:inline-block}.dot:hover{opacity:.7}.dot.active{background:var(--primary);width:10px;height:10px;box-shadow:none}.dot.rating-1{background:var(--rating-1)}.dot.rating-2{background:var(--rating-2)}.dot.rating-3{background:var(--rating-3)}.dot.rating-4{background:var(--rating-4)}.dot.rating-5{background:var(--rating-5)}.dot.active.rating-1,.dot.active.rating-2,.dot.active.rating-3,.dot.active.rating-4,.dot.active.rating-5{background:var(--primary)}.question-context,.formatted-text{min-width:0;max-width:100%}.formatted-text__paragraph{white-space:pre-line;overflow-wrap:break-word;width:100%;margin:0 0 8px;line-height:1.6}.formatted-text__code-block{margin:4px 0 12px;position:relative}.formatted-text__code{border:1px solid var(--border);color:var(--foreground);font-family:var(--font-mono);white-space:pre;background:#f6f6fa;border-radius:12px;max-width:100%;margin:0;padding:16px;font-size:12px;line-height:1.6;overflow-x:auto}.formatted-text__code .hljs{color:#24292e;font-family:inherit;font-size:inherit;line-height:inherit;background:0 0;padding:0;display:block;overflow:visible}.formatted-text__code .hljs-doctag,.formatted-text__code .hljs-keyword,.formatted-text__code .hljs-meta .hljs-keyword,.formatted-text__code .hljs-template-tag,.formatted-text__code .hljs-template-variable,.formatted-text__code .hljs-type,.formatted-text__code .hljs-variable.language_{color:#d73a49}.formatted-text__code .hljs-title,.formatted-text__code .hljs-title.class_,.formatted-text__code .hljs-title.class_.inherited__,.formatted-text__code .hljs-title.function_{color:#6f42c1}.formatted-text__code .hljs-attr,.formatted-text__code .hljs-attribute,.formatted-text__code .hljs-literal,.formatted-text__code .hljs-meta,.formatted-text__code .hljs-number,.formatted-text__code .hljs-operator,.formatted-text__code .hljs-variable,.formatted-text__code .hljs-selector-attr,.formatted-text__code .hljs-selector-class,.formatted-text__code .hljs-selector-id{color:#005cc5}.formatted-text__code .hljs-regexp,.formatted-text__code .hljs-string,.formatted-text__code .hljs-meta .hljs-string{color:#032f62}.formatted-text__code .hljs-built_in,.formatted-text__code .hljs-symbol{color:#e36209}.formatted-text__code .hljs-comment,.formatted-text__code .hljs-code,.formatted-text__code .hljs-formula{color:#6a737d}.formatted-text__code .hljs-name,.formatted-text__code .hljs-quote,.formatted-text__code .hljs-selector-tag,.formatted-text__code .hljs-selector-pseudo{color:#22863a}.formatted-text__code .hljs-subst{color:#24292e}.formatted-text__code .hljs-section{color:#005cc5;font-weight:700}.formatted-text__code .hljs-bullet{color:#735c0f}.formatted-text__code .hljs-emphasis{color:#24292e;font-style:italic}.formatted-text__code .hljs-strong{color:#24292e;font-weight:700}.formatted-text__code .hljs-addition{color:#22863a;background-color:#f0fff4}.formatted-text__code .hljs-deletion{color:#b31d28;background-color:#ffeef0}.formatted-text__code-copy-button{border:1px solid var(--border);background:var(--card);width:26px;height:26px;color:var(--muted-foreground);cursor:pointer;opacity:0;pointer-events:none;border-radius:6px;justify-content:center;align-items:center;padding:0;line-height:1;transition:opacity .15s,color .15s,border-color .15s;display:inline-flex;position:absolute;top:8px;right:8px}.formatted-text__code-block:hover .formatted-text__code-copy-button,.formatted-text__code-copy-button:focus-visible{opacity:1;pointer-events:auto}.formatted-text__code-copy-button:hover{color:var(--foreground);border-color:#9ca3af}.formatted-text__code-copy-button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.formatted-text__code-copy-icon{width:14px;height:14px}.formatted-text__code-block:last-child{margin-bottom:0}.formatted-text.question .formatted-text__paragraph{color:var(--foreground);margin-bottom:4px;font-size:14px;line-height:1.625}.formatted-text__paragraph--emphasis{color:var(--foreground);margin-bottom:4px;font-size:14px;font-weight:600;line-height:1.625}.formatted-text.details{margin:8px 0 0}.formatted-text.details .formatted-text__paragraph{font-size:14px}.formatted-text__section{min-width:0;max-width:100%}.formatted-text__numbered-list{flex-direction:column;gap:10px;margin:12px 0 0;padding:0;list-style:none;display:flex}.formatted-text__numbered-item{color:var(--foreground);gap:12px;font-size:14px;line-height:1.6;display:flex}.formatted-text__numbered-badge{border:1px solid var(--border);background:var(--secondary);width:20px;height:20px;font-family:var(--font-mono);color:var(--muted-foreground);border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;margin-top:2px;font-size:12px;display:inline-flex}.formatted-text__numbered-body{flex:1;min-width:0}.formatted-text__inline-code{background:var(--secondary);font-family:var(--font-mono);color:var(--foreground);border-radius:4px;padding:2px 6px;font-size:.925em;font-weight:400;display:inline}.timer-block{color:var(--muted-foreground);background:0 0;border:0;align-items:center;gap:4px;margin:0;padding:0;display:flex}.timer-block.overtime,.timer-block.overtime .timer-value{color:#ef4444}.timer-value{text-align:left;width:auto;font-size:14px;font-weight:600;font-family:var(--font-mono);color:var(--foreground);font-variant-numeric:tabular-nums;margin:0;line-height:1}.timer-actions{align-items:center;gap:2px;width:auto;display:flex}.timer-top-right .timer-block{margin-bottom:0}.timer-top-right .secondary-button,.timer-icon-button{width:24px;min-width:0;height:24px;color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:4px;transition:background .15s,color .15s;display:inline-flex}.timer-icon-button:hover:not(:disabled){background:var(--secondary);color:var(--foreground)}.timer-icon-button:disabled{opacity:.4;cursor:not-allowed}.timer-icon{width:14px;height:14px}.answer-box{position:relative}.answer-input-wrap{flex-direction:column;display:flex}.answer-box textarea{box-sizing:border-box;resize:vertical;border:1px solid var(--border);background:var(--card);width:100%;color:var(--foreground);border-radius:12px;padding:12px 16px;font-size:14px;line-height:1.6;transition:border-color .15s,box-shadow .15s}.answer-box textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);outline:none}.answer-box textarea::placeholder{color:var(--muted-foreground)}.answer-meta{justify-content:space-between;align-items:center;gap:12px;margin:6px 0 16px;padding:0 2px;display:flex}.answer-shortcut-hint{color:color-mix(in srgb, var(--muted-foreground) 50%, transparent);font-size:12px}.answer-char-meter{align-items:center;gap:8px;display:flex}.answer-char-bar{background:var(--border);border-radius:999px;width:64px;height:4px;overflow:hidden}.answer-char-bar-fill{background:var(--primary);border-radius:999px;height:100%;transition:width .2s,background .2s}.answer-char-bar-fill.over{background:var(--rating-1)}.answer-char-count{text-align:right;font-size:12px;font-family:var(--font-mono);color:var(--muted-foreground);font-variant-numeric:tabular-nums;margin:0}.answer-char-count-over{color:#dc2626;font-weight:500}.answer-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.check-button-wrap{display:inline-flex}.status-inline{color:var(--primary);margin:0 0 16px;font-size:14px}.checking-status{align-items:center;gap:8px;margin:0 0 16px;font-size:14px;font-style:italic;font-weight:400;display:flex}.checking-spinner{flex-shrink:0;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.primary-button,.secondary-button,.voice-button{border:1px solid var(--border);cursor:pointer;background:var(--card);color:var(--foreground);border-radius:8px;padding:10px 20px;font-size:14px;font-weight:500;transition:background .15s,border-color .15s,opacity .15s}.primary-button{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground);font-weight:600}.primary-button:hover:not(:disabled){background:color-mix(in srgb, var(--primary) 90%, black)}.secondary-button:hover:not(:disabled){background:var(--secondary)}.voice-button{width:40px;height:40px;color:var(--muted-foreground);justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.voice-button:hover:not(:disabled){background:var(--secondary)}.mic-icon{width:16px;height:16px;position:relative}.voice-button.recording{color:#fff;background:#ef4444;border-color:#ef4444}.voice-button.recording:before{content:"";opacity:.5;background:#f87171;border-radius:8px;animation:1s cubic-bezier(0,0,.2,1) infinite ping;position:absolute;inset:0}@keyframes ping{75%,to{opacity:0;transform:scale(1.4)}}.primary-button:disabled,.secondary-button:disabled,.voice-button:disabled{opacity:.35;cursor:not-allowed}.reference-toggle-button{color:var(--muted-foreground);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.reference-toggle-label-short{display:none}.reference-toggle-icon{flex-shrink:0;width:16px;height:16px}.reference-panel{border-top:1px solid var(--border);margin-top:20px;padding-top:20px}.reference-panel-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.reference-panel-header-collapse-only{justify-content:flex-end;margin-bottom:0}.reference-panel-title{color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.04em;margin:0;font-size:12px;font-weight:600}.reference-panel-collapse{font:inherit;color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px}.reference-panel-collapse:hover{color:var(--foreground)}.result-card{background:0 0;border:none;border-radius:0;flex-direction:column;gap:20px;margin-top:0;padding:0;display:flex}.result-rating{align-items:center;gap:12px;display:flex}.result-rating-dots{align-items:center;gap:6px;display:flex}.result-rating-dot{background:#e5e7eb;border-radius:999px;width:10px;height:10px}.result-rating-badge{border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600}.result-section-label{color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.04em;margin:0 0 6px;font-size:12px;font-weight:600;display:block}.result-your-answer{border:1px solid var(--border);background:color-mix(in srgb, var(--secondary) 40%, transparent);white-space:pre-line;color:var(--foreground);border-radius:12px;margin:0;padding:12px 16px;font-size:14px;line-height:1.6}.result-comment{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;margin:0;padding:12px 16px}.result-comment .result-section-label{color:#b45309}.result-comment-text{color:#78350f;white-space:pre-line;margin:0;font-size:14px;line-height:1.6}.result-card p,.result-card li{white-space:pre-line}.try-again-button{align-self:flex-start;width:auto}.result-reference{font-size:14px}.navigation{justify-content:center;align-items:center;gap:24px;margin-top:16px;display:flex}.nav-arrow-button{border:1px solid var(--border);width:36px;height:36px;color:var(--muted-foreground);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:inline-flex}.nav-arrow-button:hover:not(:disabled){background:var(--secondary)}.nav-arrow-button:disabled{opacity:.3;cursor:not-allowed}.nav-position{font-size:12px;font-family:var(--font-mono);color:var(--muted-foreground)}.summary-card{background:#f0fcf3;border:1px solid #9bc3a8;border-radius:12px;margin:16px 32px 32px;padding:14px 16px}.summary-card h3{margin:0 0 8px;font-size:14px}.summary-card p{margin:0 0 4px;font-size:14px}.screen-message{min-height:100vh;color:var(--muted-foreground);justify-content:center;align-items:center;font-size:18px;display:flex}.screen-message.error{color:#b91c1c}.error-inline{color:#b91c1c;margin:0 0 12px;font-size:14px}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=900px){.layout{grid-template-rows:auto 1fr;grid-template-columns:1fr}.sidebar{z-index:10;border-right:none;border-bottom:1px solid var(--border);width:100%;height:auto;position:sticky;top:0;overflow:visible}.sidebar-header{background:var(--card);align-items:center;gap:8px;width:100%;min-height:48px;padding:4px 8px 4px 16px;display:flex}.sidebar-header-home{color:var(--foreground);margin:0;padding:8px 4px;font-size:15px}.sidebar-header-title{color:var(--foreground);text-transform:uppercase;letter-spacing:.04em;font-size:14px;font-weight:600}.sidebar-toggle{color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;margin-left:auto;padding:8px;display:inline-flex}.sidebar-toggle:hover{background:var(--secondary)}.sidebar-toggle-icon{flex:none;transition:transform .2s}.sidebar.open .sidebar-toggle-icon{transform:rotate(180deg)}.sidebar-title,.sidebar-body-home{display:none}.sidebar-body{max-height:0;transition:max-height .25s;overflow:hidden}.sidebar.open .sidebar-body{max-height:75vh;overflow-y:auto}.sidebar-body-inner{padding:0 16px 16px}.practice-layout{padding:16px 16px 32px}.practice-header{grid-template-columns:1fr;justify-items:center;gap:8px}.practice-header-spacer,.room-id-corner{display:none}.room-id-inline{display:flex}.start-card{box-sizing:border-box;width:auto;max-width:none;margin:24px 16px;padding:24px 20px}.start-card-room-panel{flex-flow:column;align-items:stretch;gap:10px;width:100%}.start-card-room-panel .start-card-button{width:100%;padding:10px 16px;font-size:14px}.start-card-room-or{text-align:center;flex:none;font-size:13px}.room-id-input{flex:none;width:100%;min-width:0;padding:10px 12px;font-size:14px}.chapters-index-page{justify-content:flex-start;padding:48px 20px}.chapters-index-item-counts{display:none}.practice-card-body,.practice-card-answer{padding-left:20px;padding-right:20px}.practice-card-header{padding-left:16px;padding-right:16px}.answer-actions{flex-wrap:nowrap;gap:8px}.answer-actions .primary-button,.answer-actions .secondary-button{padding:8px 12px;font-size:13px}.answer-actions .voice-button{flex-shrink:0;width:36px;height:36px}.reference-toggle-label-long{display:none}.reference-toggle-label-short{display:inline}.summary-card{margin-left:20px;margin-right:20px}}
