@import"https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&family=Noto+Sans+Khmer:wght@400;500;700&display=swap";.turnstile-gate{width:100%;height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg-primary, #fff)}.turnstile-gate__box{display:flex;flex-direction:column;align-items:center;gap:16px}.turnstile-gate__widget{display:flex;justify-content:center}.turnstile-gate__hint{margin:0;font-size:13px;color:var(--text-muted, #888);text-align:center}.turnstile-gate__error{margin:0;font-size:13px;color:var(--error, #e53e3e);text-align:center}.topbar{display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 16px;border-bottom:1px solid var(--border);background:var(--bg-surface);flex-shrink:0;z-index:100}.topbar__left,.topbar__right{display:flex;align-items:center;gap:4px}.topbar__logo{display:flex;align-items:center;gap:8px;color:var(--text-primary);margin-right:4px}.topbar__logo-img{height:32px;width:auto;object-fit:contain;display:block}.topbar__title{font-size:15px;font-weight:700;letter-spacing:.02em}.topbar__icon-btn{width:36px;height:36px;border:0;background:transparent;color:var(--text-secondary);border-radius:8px;cursor:pointer;display:grid;place-items:center;transition:background .15s,color .15s}.topbar__icon-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.topbar__lang-wrap{position:relative}.topbar__lang-btn{display:flex;align-items:center;gap:6px;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text-secondary);font-size:13px;font-weight:500;font-family:inherit;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.topbar__lang-btn:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--text-secondary)}.topbar__lang-label{white-space:nowrap}.topbar__chevron{transition:transform .15s}.topbar__chevron.is-up{transform:rotate(180deg)}.topbar__menu-wrap{position:relative}.topbar__dropdown{position:absolute;top:calc(100% + 6px);left:0;min-width:180px;padding:4px;background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 30px var(--shadow);z-index:200;animation:dropdown-in .12s ease}.topbar__dropdown--right{left:auto;right:0}@keyframes dropdown-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.topbar__dropdown-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;background:transparent;color:var(--text-primary);font-size:13px;font-family:inherit;border-radius:8px;cursor:pointer;text-decoration:none;transition:background .1s}.topbar__dropdown-item:hover{background:var(--bg-hover)}.topbar__dropdown-item.is-active{font-weight:600;color:var(--accent)}.topbar__dropdown-item svg{flex-shrink:0;color:var(--text-secondary)}.topbar__dropdown-item.is-active svg{color:var(--accent)}@media(max-width:480px){.topbar__lang-label{display:none}.topbar__title{font-size:13px}}.wp{display:flex;align-items:center;gap:10px;background:var(--bg-hover);border-radius:22px;padding:8px 14px 8px 10px;min-width:220px;max-width:340px;width:100%;box-sizing:border-box}.wp--error{opacity:.5}.wp__play{width:34px;height:34px;border:0;border-radius:50%;background:var(--text-primary);color:var(--bg);cursor:pointer;display:grid;place-items:center;flex-shrink:0;transition:background .15s}.wp__play:hover{background:var(--text-secondary)}.wp__play:disabled{opacity:.4;cursor:not-allowed}.wp__bars{flex:1;height:28px;display:flex;align-items:center;gap:2px;cursor:pointer}.wp__bar{flex:1;min-width:2px;max-width:4px;border-radius:2px;background:var(--border);transition:background .15s}.wp__bar--played{background:var(--text-primary)}.wp__time{font-size:13px;font-weight:500;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;min-width:32px;text-align:right}@media(max-width:640px){.wp{min-width:180px;max-width:280px;padding:6px 12px 6px 8px}.wp__bars{height:24px}.wp__play{width:30px;height:30px}}.tts-empty{width:100%;height:100%;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;padding-top:28vh;box-sizing:border-box}.tts-empty__wrap{width:100%;max-width:680px;display:flex;flex-direction:column;align-items:center;gap:24px}.tts-empty__greeting{margin:0;font-size:22px;font-weight:500;color:var(--text-primary);text-align:center;letter-spacing:-.01em}.tts-chat{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.tts-chat__feed{flex:1;overflow-y:auto;padding:28px 16px 16px;display:flex;flex-direction:column;gap:20px}.tts-thread{width:100%;max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:10px}.msg--user{align-self:flex-end;text-align:right;max-width:85%}.msg--user .msg__text{margin:0;font-size:14px;line-height:1.55;color:var(--text-primary);opacity:.75}.msg--sys{align-self:flex-start;max-width:85%;display:flex;flex-direction:column;gap:6px}.msg__err{margin:0;font-size:13px;color:var(--error)}.msg__expired{margin:0;font-size:13px;opacity:.45;font-style:italic;color:var(--text-muted)}.msg__acts{display:flex;gap:2px}.act-btn{width:28px;height:28px;border:0;background:transparent;color:var(--text-muted);border-radius:6px;cursor:pointer;display:grid;place-items:center;transition:color .1s,background .1s}.act-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.act-btn:disabled{opacity:.3;cursor:not-allowed}.dots{display:flex;gap:4px;padding:6px 0}.dots span{width:6px;height:6px;background:var(--text-muted);border-radius:50%;animation:pulse 1.2s ease infinite}.dots span:nth-child(2){animation-delay:.15s}.dots span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.tts-dock{width:100%;padding:10px 16px 16px;box-sizing:border-box}.ib{width:100%;max-width:680px;margin:0 auto;border:1px solid var(--border);border-radius:16px;padding:14px 16px 10px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;background:var(--bg-input);transition:border-color .15s ease,background .15s ease}.ib:focus-within{border-color:var(--border-focus)}.ib__input{width:100%;border:0;outline:none;resize:none;font-size:15px;line-height:1.6;color:var(--text-primary);background:transparent;font-family:inherit;box-sizing:border-box}.ib__input::placeholder{color:var(--text-muted)}.ib__bar{display:flex;justify-content:space-between;align-items:center;gap:8px}.ib__options{display:flex;align-items:center;gap:0}.ib__sep{width:1px;height:16px;background:var(--border);margin:0 8px;flex-shrink:0}.ib__right{display:flex;align-items:center;gap:12px}.ib__count{font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums}.ib__count.is-over{color:var(--error);font-weight:600}.ib__send{width:32px;height:32px;border:0;background:transparent;color:var(--text-muted);border-radius:8px;cursor:pointer;display:grid;place-items:center;flex-shrink:0;transition:color .15s ease,background .15s ease}.ib__send:hover{color:var(--text-primary);background:var(--bg-hover)}.ib__send:disabled{opacity:.3;cursor:not-allowed}.isel{position:relative}.isel-btn{display:flex;align-items:center;gap:3px;height:28px;padding:0;border:0;background:transparent;color:var(--text-secondary);font-size:13px;font-weight:500;font-family:inherit;cursor:pointer;white-space:nowrap;transition:color .1s ease}.isel-btn:hover{color:var(--text-primary)}.isel-icon{flex-shrink:0;transition:transform .15s ease}.isel-icon.is-up{transform:rotate(180deg)}.isel-list{position:absolute;bottom:calc(100% + 8px);left:0;min-width:150px;margin:0;padding:4px;list-style:none;background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 4px 20px var(--shadow);z-index:60}.isel-item{padding:8px 12px;font-size:13px;color:var(--text-primary);border-radius:8px;cursor:pointer;transition:background .1s;display:flex;align-items:center;justify-content:space-between;gap:8px}.isel-item:hover{background:var(--bg-hover)}.isel-item.is-active{background:var(--bg-hover);color:var(--text-primary);font-weight:600}.isel-item.is-disabled{color:var(--text-muted);cursor:not-allowed}.isel-item.is-disabled:hover{background:transparent}.isel-soon{font-size:10px;font-weight:600;color:var(--text-muted);background:var(--bg-hover);padding:1px 6px;border-radius:4px;letter-spacing:.03em;text-transform:uppercase}@media(max-width:640px){.tts-empty{padding-top:20vh}.tts-empty__greeting{font-size:18px}.tts-chat__feed{padding:20px 12px 12px}.tts-dock{padding:8px 12px 14px}.ib{padding:12px 12px 8px;border-radius:14px}.msg--user,.msg--sys{max-width:92%}.isel-btn{font-size:12px}.ib__sep{margin:0 6px}}:root,[data-theme=light]{--bg: #ffffff;--bg-surface: #ffffff;--bg-hover: #f1f5f9;--bg-input: #ffffff;--text-primary: #0f172a;--text-secondary:#64748b;--text-muted: #94a3b8;--border: #e2e8f0;--border-focus: #111827;--accent: #2563eb;--accent-hover: #1d4ed8;--bubble-user-bg:#111827;--bubble-user-fg:#ffffff;--error: #dc2626;--shadow: rgba(0, 0, 0, .08)}[data-theme=dark]{--bg: #0f1117;--bg-surface: #161922;--bg-hover: #1e2230;--bg-input: #1a1d27;--text-primary: #e2e8f0;--text-secondary:#94a3b8;--text-muted: #64748b;--border: #2a2e3a;--border-focus: #e2e8f0;--accent: #3b82f6;--accent-hover: #60a5fa;--bubble-user-bg:#2563eb;--bubble-user-fg:#ffffff;--error: #f87171;--shadow: rgba(0, 0, 0, .4)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0;font-family:Ubuntu,Noto Sans Khmer,sans-serif}html,body,#root{width:100%;height:100%;margin:0;padding:0;overflow-x:hidden}body{font-family:Ubuntu,Noto Sans Khmer,sans-serif;background:var(--bg);color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background .2s,color .2s}input,textarea,select,button{font-family:Ubuntu,Noto Sans Khmer,sans-serif}.app-shell{width:100%;height:100vh;display:flex;flex-direction:column;overflow:hidden}.content-stack{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
