:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#17243b;background:#f5f7fc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--navy:#111c34;--primary:#5d5bea;--primary-dark:#4843dc;--border:#e7eaf3;--muted:#71809c;--bg:#f5f7fc;--green:#1e9b7a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#8e8afa!important;box-shadow:0 0 0 3px #eeedff}button:focus-visible{outline:3px solid #9b9aff;outline-offset:3px}[hidden]{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{width:255px;flex:0 0 255px;background:#101a31;color:#fff;display:flex;flex-direction:column;padding:31px 18px 24px;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 45px}.brand-mark{height:43px;width:43px;background:linear-gradient(150deg,#7979ff,#5650ce);border-radius:13px;display:grid;place-items:center;font-size:25px;box-shadow:0 8px 22px #0002}.brand-mark.small{width:34px;height:34px;border-radius:10px;font-size:19px}.brand strong,.mobile-brand strong{display:block;font-size:22px;letter-spacing:-.7px}.brand strong span,.mobile-brand strong span{color:#9d99ff}.brand small{display:block;color:#8f9bb5;font-size:10px;letter-spacing:.4px;margin-top:1px}.sidebar-label{font-size:10px;font-weight:800;color:#6f7c98;letter-spacing:1.4px;padding:0 15px;margin-bottom:15px}.desktop-nav{display:flex;flex-direction:column;gap:7px}.nav-link{background:transparent;border:0;color:#aebad2;padding:14px 14px;border-radius:12px;display:flex;align-items:center;gap:14px;text-align:left;font-size:13px;font-weight:650;width:100%}.nav-link>span{width:20px;text-align:center;font-size:19px}.nav-link.active{background:#343d71;color:#fff}.nav-link:hover:not(.active){background:#202e48;color:#fff}.nav-link b{font-weight:600;font-size:11px;margin-left:auto;background:#2d3950;color:#afb7cd;padding:3px 7px;border-radius:8px}.sidebar-bottom{margin-top:auto}.tip-card{background:linear-gradient(160deg,#242b55,#212945);border:1px solid #343e62;border-radius:15px;padding:18px 16px;margin-bottom:23px}.tip-card .tip-icon{display:block;font-size:24px;margin-bottom:8px}.tip-card b{font-size:13px}.tip-card p{font-size:11px;line-height:1.75;color:#b1bbd4;margin-bottom:0}.sidebar-bottom>small{color:#7786a5;font-size:10px;padding-left:7px}.workspace{min-width:0;flex:1}.topbar{height:78px;background:#fff;border-bottom:1px solid #e9edf5;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3.5vw,51px)}.topbar-title{display:flex;flex-direction:column;gap:5px}.topbar-title b{font-size:13px}.topbar-title span{font-size:12px;color:#8792a5}.topbar-right{display:flex;align-items:center;gap:19px}.connection-pill{font-size:11px;color:#248d73;display:inline-flex;align-items:center;gap:7px}.connection-pill i{display:block;width:8px;height:8px;background:#37c69e;border-radius:50%}.connection-pill.offline{color:#a96b29}.connection-pill.offline i{background:#e7a048}.avatar{background:#eceafe;color:#5e5bc6;font-size:11px;font-weight:800;width:36px;height:36px;border-radius:12px;display:grid;place-items:center}.mobile-brand{display:none}.main-content{max-width:1460px;margin:0 auto;padding:36px clamp(18px,3.5vw,51px) 70px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.35px;font-weight:850;color:#6665df;margin-bottom:12px}.page-heading h1{margin:0;color:#17233b;font-size:clamp(25px,3vw,37px);letter-spacing:-1.15px;font-weight:800;line-height:1.2}.page-heading h1 span{font-size:25px}.page-heading p{font-size:13px;color:#73809a;margin:12px 0 0;line-height:1.6}.btn{border:1px solid transparent;border-radius:11px;min-height:43px;padding:10px 17px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;white-space:nowrap;transition:background .15s,transform .15s}.btn:active{transform:translateY(1px)}.btn-brand{background:#625fea;color:#fff;box-shadow:0 7px 16px #5858ef1d}.btn-brand:hover{background:#4e4ada}.btn-light{background:#fff;border-color:#e4e9f2;color:#39455d}.btn-light:hover,.btn-outline:hover{background:#f0efff}.btn-outline{background:#fff;border-color:#dddff0;color:#5854cc}.btn-block{width:100%}.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat{background:#fff;border:1px solid var(--border);border-radius:16px;padding:19px 20px;display:flex;align-items:center;gap:15px;box-shadow:0 7px 24px #1d2f6b04}.stat-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:21px}.stat-icon.lilac{background:#efedff}.stat-icon.mint{background:#e8f8f2}.stat-icon.peach{background:#fff0df}.stat b{display:block;font-size:24px;line-height:1.2}.stat small{display:block;color:#8490a6;margin-top:4px;font-size:10px}.card{background:#fff;border-radius:17px;border:1px solid var(--border);box-shadow:0 9px 26px #15285505}.listen-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(255px,.92fr);gap:18px}.player{background:linear-gradient(155deg,#1a2b50 0%,#141f3c 53%,#171b36 100%);border:0;color:white;overflow:hidden;padding:24px 24px 19px;min-height:475px;display:flex;flex-direction:column}.player-top,.player-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.eyebrow-light{color:#a7b9e8;margin:0}.player-counter{background:#ffffff18;padding:8px 12px;border-radius:100px;color:#c6d1ea;font-weight:700;font-size:11px}.player-content{text-align:center;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:294px;padding:12px 0 22px}.sound-waves{height:34px;display:flex;align-items:center;gap:4px;margin-bottom:19px}.sound-waves i{display:block;height:12px;width:4px;background:#9b99ff;border-radius:3px;opacity:.7}.sound-waves i:nth-child(3n+1){height:21px}.sound-waves i:nth-child(2n+4){height:30px}.player.is-playing .sound-waves i{animation:wave 1s ease-in-out infinite alternate}.player.is-playing .sound-waves i:nth-child(even){animation-delay:.3s}.player.is-playing .sound-waves i:nth-child(3n){animation-delay:.6s}@keyframes wave{from{height:7px}to{height:31px}}.player-word{font-size:clamp(25px,3vw,36px);font-weight:850;letter-spacing:-.9px;overflow-wrap:anywhere}.player-ipa{color:#aebee4;margin-top:7px;font-size:13px}.player-meaning{color:#e4e9f5;font-size:15px;margin-top:14px;font-weight:600}.example-panel{background:#ffffff0c;border:1px solid #ffffff19;border-radius:12px;padding:15px;width:100%;max-width:500px;margin-top:27px;line-height:1.6}.example-label{font-size:9px;letter-spacing:1.4px;color:#9aa9d0;font-weight:800;margin-bottom:7px}.example-panel #player-example-en{font-size:12px;font-weight:600}.example-panel #player-example-vi{font-size:11px;color:#bac8e6;margin-top:4px}.progress-track{background:#344160;height:5px;border-radius:8px;overflow:hidden}.progress-track>div{background:#9d9aff;width:0%;height:100%;transition:width .18s}.player-bottom{font-size:10px;color:#b5c2e0;padding-top:10px;min-height:34px}.player-controls{display:flex;align-items:center;justify-content:center;gap:9px;padding:17px 0 10px}.ctrl{height:42px;min-width:48px;border-radius:11px;border:0;font-size:18px}.ctrl-primary{background:#817dff;color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 25px;font-size:16px;font-weight:800}.ctrl-primary span{font-size:12px}.ctrl-secondary{background:#ffffff16;color:#e2e6f2}.ctrl-secondary:hover{background:#ffffff30}.player-footnote{text-align:center;font-size:10px;color:#8494b8;line-height:1.5}.listen-side{display:flex;flex-direction:column;gap:18px}.compact-card{padding:19px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.card-heading h2,.editor-card h2,.howto-card h2,.settings-card h2{font-size:15px;margin:0;color:#25304c}.count-pill{background:#f0efff;padding:6px 10px;border-radius:100px;font-weight:800;color:#6b66db;font-size:10px}.queue-list{display:flex;flex-direction:column;gap:4px;max-height:255px;overflow:auto}.queue-item{display:flex;align-items:center;gap:10px;padding:10px 6px;border-radius:10px}.queue-item.is-current{background:#f2f0ff}.queue-num{font-size:11px;color:#a0a9bc;width:17px;text-align:center;flex:0 0 17px}.queue-item.is-current .queue-num{color:#5c59dc;font-weight:800}.queue-text{flex:1;min-width:0}.queue-text strong{font-size:12px;display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.queue-text small{font-size:10px;color:#8490a9;display:block;margin-top:4px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.text-button{border:0;background:transparent;color:#5e5be3;font-size:12px;font-weight:750;padding:9px 0}.text-button:hover{text-decoration:underline}.compact-card>.text-button{display:block;margin-top:8px}.stack-field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.stack-field label,.settings-line>label{font-size:12px;font-weight:750;color:#45516a}.stack-field input,.stack-field textarea,.stack-field select,.settings-line input[type=number],.settings-line select,.filter-row input,.filter-row select{width:100%;border:1px solid #dfe4ed;background:#fff;border-radius:10px;color:#20314d;padding:11px 13px;font-size:13px}.stack-field textarea{resize:vertical;min-height:70px;line-height:1.55}.stack-field input::placeholder,.stack-field textarea::placeholder{color:#a3adbf}.library-card{overflow:hidden}.filter-row{display:grid;grid-template-columns:minmax(0,1fr) 165px 140px;gap:12px;padding:18px 20px 15px}.search-wrap{position:relative}.search-wrap span{position:absolute;left:14px;top:6px;color:#8793aa;font-size:22px}.filter-row .search-wrap input{padding-left:37px}.selection-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #f0f1f7;padding:13px 20px}.selected-description{font-size:13px;color:#4b5870}.selected-description b{color:#5854db}.selected-description small{color:#96a1b2}.selection-actions{display:flex;gap:16px}.selection-actions .text-button{font-size:11px}.action-row{display:flex;align-items:center;gap:11px;padding:0 20px 15px}.word-list{border-top:1px solid #f0f1f7}.word-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;padding:17px 20px;border-bottom:1px solid #eff1f6;align-items:start}.word-item:last-child{border-bottom:0}.word-item.is-selected{background:#f9f8ff}.word-check{width:19px;height:19px;accent-color:#625fea;margin-top:6px;cursor:pointer}.word-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.word-head strong{font-size:16px;letter-spacing:-.25px}.pos-tag{color:#6964c9;font-size:10px;background:#efeeff;border-radius:6px;padding:4px 7px}.word-ipa{font-size:11px;color:#8490ab;margin-top:3px}.word-meaning{font-size:12px;font-weight:700;margin-top:7px;color:#47546d}.word-example{font-size:11px;color:#8692a8;font-style:italic;line-height:1.55;margin-top:5px}.word-group{font-size:10px;color:#8290a9;margin-top:9px}.word-tools{display:flex;gap:4px}.tool-btn{border:0;background:#f5f6fb;color:#6b7790;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;font-size:14px}.tool-btn:hover{background:#eeedff;color:#5854db}.tool-btn.danger:hover{background:#ffeeef;color:#c13e5d}.empty-state{text-align:center;padding:52px 25px}.empty-state .empty-illustration{font-size:40px}.empty-state h3{font-size:17px;margin:9px 0}.empty-state p{max-width:360px;margin:0 auto 18px;color:#8190a8;font-size:12px;line-height:1.65}.inline-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.saved-playlists{margin-top:18px;padding:20px}.muted{color:#8894a9;font-size:12px;line-height:1.75}.playlist-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:11px}.playlist-card{border:1px solid #e6e9f3;background:#fbfcff;border-radius:12px;padding:13px}.playlist-card strong{font-size:12px}.playlist-card small{display:block;color:#8490a6;margin:7px 0 10px;font-size:10px}.playlist-actions{display:flex;gap:10px}.playlist-actions button{border:0;background:transparent;color:#5f5bdd;font-size:11px;font-weight:750;padding:3px 0}.playlist-actions button.danger{color:#bb5870}.editor-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,.8fr);gap:18px;align-items:start}.editor-card{padding:26px}.field-title{display:flex;align-items:center;gap:11px;margin-bottom:18px;margin-top:4px}.field-title:not(:first-child){padding-top:14px;border-top:1px solid #f0f1f7;margin-top:20px}.field-title p{font-size:11px;color:#94a0b1;margin:5px 0 0}.step-number{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;color:#6661e4;font-size:12px;font-weight:850;background:#eeedff;flex:0 0 30px}.lookup-row{display:flex;align-items:end;gap:10px}.flex-field{flex:1}.lookup-btn{margin-bottom:14px}.inline-note{background:#f2f4fd;border-radius:10px;color:#7682a0;padding:11px 12px;font-size:11px;line-height:1.6;margin-bottom:20px}.inline-note.warning{background:#fff6e7;color:#8f713b}.inline-note.success{background:#edf8f4;color:#267e69}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .stack-field{min-width:0}.stack-field label em{color:#e26c77;font-style:normal}.optional{font-weight:400;color:#9da7b8}.label-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.mini-action{border:0;background:transparent;color:#5e5add;font-size:11px;font-weight:700;padding:3px;white-space:nowrap}.form-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:25px}.howto-card,.info-card{padding:23px}.howto-card ol{padding-left:22px;font-size:12px;line-height:2.3;color:#64728c}.howto-card li{padding-left:4px}.info-card{margin-top:16px;background:#fdfcff}.info-card h3{font-size:13px;margin:0 0 12px;color:#4b5875}.info-card p{font-size:12px;line-height:1.85;color:#7c89a0;margin:0}.settings-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.9fr);gap:18px;align-items:start}.settings-card{padding:22px}.settings-line{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #f0f1f6;padding:11px 0}.settings-line label{flex:1}.settings-line small{color:#98a2b5;font-size:10px;font-weight:400}.settings-line input[type=number],.settings-line select{width:100px}.settings-line input[type=range]{width:130px;accent-color:#6762ea}.settings-card>.stack-field{margin-top:14px}.checkboxes{display:flex;flex-direction:column;gap:13px;margin:20px 0}.checkboxes label{font-size:12px;color:#536078;display:flex;align-items:center;gap:10px}.checkboxes input{width:17px;height:17px;accent-color:#6260e9}.settings-side .settings-card{margin-bottom:17px}.file-label{margin-top:10px;cursor:pointer}.microcopy{color:#99a2b1;font-size:10px;line-height:1.7;margin:13px 0 0}.toast{position:fixed;z-index:80;bottom:24px;right:23px;min-width:220px;max-width:min(90vw,410px);background:#16253f;color:#fff;padding:14px 17px;box-shadow:0 13px 35px #18213c40;border-radius:12px;font-size:12px;line-height:1.5;opacity:0;pointer-events:none;transform:translateY(12px);transition:.24s}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#9f334d}.alert{background:#fff4e5;border:1px solid #eedbb8;border-radius:12px;padding:13px 16px;font-size:12px;color:#78582c;margin-bottom:20px;line-height:1.6}.mobile-nav{display:none}@media(max-width:1150px){.sidebar{width:215px;flex-basis:215px}.listen-layout,.editor-layout,.settings-grid{grid-template-columns:minmax(0,1fr)}.listen-side{display:grid;grid-template-columns:1fr 1fr}.editor-info{display:grid;grid-template-columns:1fr 1fr;gap:15px}.editor-info .info-card{margin:0}.settings-side{display:grid;grid-template-columns:1fr 1fr;gap:15px}.settings-side .settings-card{margin:0}.settings-side .info-card{margin:0}.sidebar .tip-card{padding:14px}}@media(max-width:760px){.sidebar{display:none}.topbar{height:65px;padding:0 17px}.topbar-title{display:none}.mobile-brand{display:flex;align-items:center;gap:9px}.mobile-brand strong{font-size:19px}.topbar-right{gap:10px}.avatar{display:none}.main-content{padding:26px 15px 115px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:13px}.page-heading h1{font-size:27px}.page-heading>.btn{padding:9px 13px;font-size:11px}.stats-row{gap:9px}.stat{padding:13px 10px;border-radius:12px;gap:9px}.stat-icon{width:33px;height:33px;border-radius:9px;font-size:17px}.stat b{font-size:20px}.stat small{font-size:9px;line-height:1.3}.player{min-height:450px;padding:20px 16px}.player-content{min-height:270px}.player-word{font-size:29px}.listen-side{grid-template-columns:1fr}.filter-row{grid-template-columns:1fr 1fr;padding:15px;gap:8px}.filter-row .search-wrap{grid-column:1/-1}.selection-row{align-items:flex-start;flex-direction:column;padding:13px 15px}.selection-actions{gap:15px}.action-row{padding:0 15px 13px;flex-wrap:wrap}.word-item{padding:15px 13px;gap:10px}.word-tools{flex-direction:column}.editor-card,.settings-card{padding:18px}.editor-info{grid-template-columns:1fr}.settings-side{grid-template-columns:1fr}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:20;bottom:0;left:0;right:0;height:calc(67px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #e7eaf3;box-shadow:0 -5px 20px #18284808}.mob-nav{border:0;background:transparent;color:#8f9cb1;font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-weight:700}.mob-nav span{font-size:21px;line-height:1}.mob-nav.active{color:#625fea}.toast{bottom:calc(84px + env(safe-area-inset-bottom));right:12px;left:12px;max-width:unset;min-width:0}.form-grid{grid-template-columns:1fr 1fr}.lookup-row{align-items:stretch;flex-direction:column;gap:0}.lookup-row .lookup-btn{align-self:flex-start}.form-bottom{gap:8px}.form-bottom .btn{padding:9px 12px}.page-heading .eyebrow{font-size:9px}.saved-playlists{padding:15px}}@media(max-width:385px){.stat{padding:11px 7px;gap:5px}.stat-icon{width:29px;height:29px}.stat b{font-size:17px}.stat small{font-size:8px}.ctrl-primary{padding:0 15px}.ctrl-secondary{min-width:40px}.form-grid{grid-template-columns:1fr}.filter-row select{font-size:11px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
