@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;500;600;700&display=swap";:root{--bg:#f6f3ed;--surface:#fffcf7;--surface-soft:#f1ece3;--border:#ddd6cb;--text:#2a2621;--text-muted:#6b645b;--accent:#413a33;--radius:10px}*{box-sizing:border-box;margin:0;padding:0}#root,body,html{width:100%;min-height:100%}body{background:var(--bg);color:var(--text);font-family:Noto Sans Tamil,Nirmala UI,Latha,Vijaya,system-ui,sans-serif}.appShell{height:100vh;display:flex;flex-direction:column;gap:10px;padding:10px;overflow:hidden}.topBar{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px}.topBar h1{font-size:clamp(1.05rem,2vw,1.35rem)}.exportButton,.sidebarHead button{min-height:38px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);color:var(--text);padding:8px 12px;font-size:.88rem;font-family:inherit;cursor:pointer}.editorLayout{flex:1;min-height:0;height:100%;display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:10px}.editorLayout.withKeyboard{display:grid;grid-template-columns:minmax(220px,300px) 1fr;grid-template-rows:1fr 35vh;gap:10px;grid-template-areas:"notes editor" "keyboard keyboard"}.editorLayout.withKeyboard>.sidebar{grid-area:notes}.editorLayout.withKeyboard>.editorPane{grid-area:editor}.editorLayout.withKeyboard>.keyboardDock{grid-area:keyboard}.editorPane,.keyboardDock,.sidebar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);height:100%}.sidebar{min-height:0;display:flex;flex-direction:column;gap:8px;padding:10px}.sidebarHead{display:flex;justify-content:space-between;align-items:center;gap:8px}.sidebarHead h2{font-size:.96rem}.noteList{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:6px}.noteItem{background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;padding:8px;text-align:left;color:var(--text);display:flex;flex-direction:column;gap:2px;font-family:inherit;cursor:pointer}.noteItem strong{font-size:.9rem;line-height:1.25}.noteItem span{font-size:.72rem;color:var(--text-muted)}.noteItem.active{border-color:var(--accent)}.editorPane{min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px}.editorToolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.toolbarEnd{display:flex;align-items:center;gap:10px}.editorStack,.editorTextWrap{min-height:0;display:flex;flex-direction:column;gap:6px;flex:1}.markdownEditor{flex:1;width:100%;min-height:0;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font-family:Noto Sans Tamil,Nirmala UI,Latha,Vijaya,system-ui,sans-serif;font-size:clamp(1rem,1.6vw,1.06rem);line-height:1.65;padding:12px;resize:none}.markdownEditor:focus{outline:2px solid #c5bdaf;outline-offset:1px}.saveHint{font-size:.78rem;color:var(--text-muted)}.brandSub{font-size:.82em;font-weight:500;color:var(--text-muted)}.wordCount{font-size:.8rem;color:var(--text-muted)}.chapterRename{border:1px solid var(--accent);border-radius:8px;padding:8px;font-family:inherit;font-size:.9rem;background:#fff;color:var(--text)}.suggestionStrip{display:flex;gap:6px;overflow-x:auto;min-height:40px;padding:2px 0;align-items:center}.suggestionStrip.empty{min-height:40px}.suggestion{flex:0 0 auto;border:1px solid var(--border);border-radius:999px;background:var(--surface-soft);color:var(--text);padding:6px 14px;font-family:inherit;font-size:.98rem;cursor:pointer}.suggestion.primary{border-color:#8b2500;color:#8b2500;font-weight:600;display:inline-flex;align-items:center;gap:8px}.tabHint{font-family:inherit;font-size:.68rem;font-weight:600;color:#fff;background:#8b2500;border-radius:5px;padding:1px 6px}.suggestion:focus-visible{outline:3px solid #f6b042;outline-offset:2px}.speakButton{min-height:38px;min-width:42px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);color:var(--text);padding:8px 10px;font-size:1.02rem;line-height:1;font-family:inherit;cursor:pointer}.speakButton.speaking{background:#8b2500;border-color:#8b2500}.speakButton:disabled{opacity:.55;cursor:not-allowed}.modeSwitch{display:inline-flex;gap:2px;padding:2px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px}.modeButton{min-height:34px;border:0;border-radius:8px;background:0 0;color:var(--text-muted);padding:6px 12px;font-size:.86rem;font-family:inherit;cursor:pointer}.modeButton.active{background:var(--accent);color:#fff}.keyCap{position:relative;display:inline-flex;align-items:center;justify-content:center}.keyGlyph{line-height:1}.keyHint{position:absolute;top:3px;right:5px;font-size:.6rem;font-weight:500;color:var(--text-muted);opacity:.75}.keyCap.pressed{background:var(--accent);color:#fff;border-color:var(--accent);transform:translateY(1px)}.keyCap.pressed .keyHint{color:#fff;opacity:.85}.kbControl.shift{font-size:.9rem;font-weight:600}.kbControl.shift.on{background:var(--accent);color:#fff;border-color:var(--accent)}.keyboardDock{min-height:0;display:flex;padding:10px}.keyboardPanel{background:var(--surface);border:1px solid var(--border);border-radius:10px;display:grid;gap:7px;padding:8px}.keyboardPanel.attached{width:100%;height:35vh;margin-top:auto}.keyboardRow{display:flex;justify-content:center;gap:6px}.keyboardRow button{min-width:48px;min-height:48px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);color:var(--text);font-family:inherit;font-weight:600;font-size:1.06rem;padding:0 10px;cursor:pointer}.keyboardRow button:focus-visible{outline:3px solid #f6b042;outline-offset:2px;box-shadow:0 0 0 3px #f6b0421f}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}.keyboardPanel.big .keyboardRow button{min-width:62px;min-height:62px;font-size:1.24rem}@media(max-width:1280px){.keyboardPanel.big .keyboardRow button{min-width:56px;min-height:56px;font-size:1.14rem}}@media(max-width:980px){.editorLayout,.editorLayout.withKeyboard{grid-template-columns:1fr}.editorPane,.keyboardDock,.sidebar{min-height:auto}.sidebar{max-height:240px}.keyboardDock{padding:0}.keyboardPanel.big .keyboardRow button{min-width:52px;min-height:52px;font-size:1.08rem}}@media(max-width:700px){.topBar{flex-direction:column;align-items:stretch}.exportButton,.sidebarHead button{min-height:36px;font-size:.82rem}.markdownEditor{min-height:46vh}.keyboardRow{gap:4px}.keyboardRow button{min-width:40px;min-height:40px;font-size:.96rem;padding:0 7px}.keyboardPanel.big .keyboardRow button{min-width:46px;min-height:46px;font-size:1rem}}@media(max-width:420px){.appShell{padding:8px}.editorPane,.keyboardDock,.lessonCard,.sidebar,.topBar{border-radius:8px;padding:8px}.noteItem strong{font-size:.84rem}}
