@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)}.viewSwitch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,360px)}.actions button,.keyboardControlBar button,.sidebarHead button,.viewSwitch button{min-height:40px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);color:var(--text);padding:8px 10px;font-size:.9rem;font-family:inherit;cursor:pointer}.viewSwitch button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.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,.lessonCard,.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:flex-start;gap:8px;flex-wrap:wrap}.tagsWrap{display:flex;flex-wrap:wrap;gap:6px}.tagsWrap span{background:var(--surface-soft);border:1px solid var(--border);border-radius:999px;padding:3px 9px;font-size:.76rem;color:var(--text-muted)}.actions{display:flex;flex-wrap:wrap;gap:6px}.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)}.engineBadge{margin-left:6px;font-size:.9em}.writeControls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.micButton,.taglishToggle{min-height:40px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);color:var(--text);padding:8px 12px;font-size:.9rem;font-family:inherit;cursor:pointer}.taglishToggle.on{background:var(--accent);color:#fff;border-color:var(--accent)}.micButton{min-width:44px;padding:8px 10px;font-size:1.05rem;line-height:1}.micButton.listening{background:#8b2500;color:#fff;border-color:#8b2500;animation:micPulse 1.1s ease-in-out infinite}.micButton:disabled{opacity:.55;cursor:not-allowed}@keyframes micPulse{0%,to{box-shadow:0 0 #8b250066}50%{box-shadow:0 0 0 6px #8b250000}}.wordCount{font-size:.8rem;color:var(--text-muted);padding-left:4px}.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.correction{border-color:#8b2500;color:#8b2500;font-weight:600}.suggestion:focus-visible{outline:3px solid #f6b042;outline-offset:2px}.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}.tutorPane{display:grid;gap:10px}.lessonCard{display:grid;gap:8px;padding:12px}.lessonCard h2{font-size:1.02rem}.lessonCard p{color:var(--text-muted);font-size:.94rem}.ghostKeys{display:flex;flex-wrap:wrap;gap:7px}.ghostKey{min-width:44px;min-height:44px;padding:0 8px;border-radius:8px;border:1px dashed #b5ada0;background:var(--surface-soft);display:inline-flex;justify-content:center;align-items:center;font-weight:600}@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}.viewSwitch{width:100%}.actions button,.sidebarHead button{min-height:38px;font-size:.84rem}.markdownEditor{min-height:52vh}.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}}
