:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#07090d;--panel:#10141c;--panel-soft:#151b25;--line:#2a3240;--text:#f4f6fb;--muted:#919bad;--accent:#ffd24a;--accent-strong:#ffbf00;--danger:#ff6b72;--success:#56d694;--radius:18px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:var(--bg);min-height:100%}body{background:radial-gradient(circle at 82% 5%, #ffd24a1a, transparent 25rem), var(--bg);min-height:100vh;color:var(--text);margin:0;font-size:16px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed;opacity:.55}input,textarea,select{border:1px solid var(--line);width:100%;color:var(--text);background:#0c1017;border-radius:12px;outline:none;padding:.8rem .9rem}input:focus,textarea:focus,select:focus,button:focus-visible{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #ffd24a2e}textarea{resize:vertical;min-height:6rem}label{color:#c9d0dc;font-size:.9rem;font-weight:650}h1,h2,h3,p{margin-top:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.primary-button,.secondary-button,.danger-button,.text-button,.hero-action,.choice-button{border:1px solid #0000;border-radius:12px;min-height:44px;padding:.72rem 1rem;font-weight:750;transition:transform .15s,background .15s,border-color .15s}.primary-button,.hero-action{background:var(--accent);color:#171300}.primary-button:hover,.hero-action:hover{background:#ffdc70;transform:translateY(-1px)}.secondary-button,.choice-button{border-color:var(--line);background:var(--panel-soft);color:var(--text)}.secondary-button:hover,.choice-button:hover,.choice-button[aria-pressed=true]{border-color:var(--accent);background:#ffd24a1a}.danger-button{color:#ffafb3;background:#ff6b721f;border-color:#ff6b7266}.text-button{min-height:38px;color:var(--muted);background:0 0;padding:.45rem .65rem}.text-button:hover{color:var(--text);background:#ffffff0f}.icon-button{border:1px solid var(--line);background:var(--panel-soft);width:44px;height:44px;color:var(--text);border-radius:50%;place-items:center;display:inline-grid}.auth-page,.loading-screen{place-items:center;min-height:100vh;padding:1.5rem;display:grid}.auth-card{border:1px solid var(--line);background:#10141cf0;border-radius:24px;width:min(100%,27rem);padding:2rem;box-shadow:0 24px 80px #0006}.auth-brand{letter-spacing:.02em;align-items:center;gap:.7rem;margin-bottom:2rem;font-size:1.2rem;font-weight:850;display:inline-flex}.brand-mark{background:var(--accent);color:#171300;border-radius:10px;place-items:center;width:2.3rem;height:2.3rem;font-weight:950;display:inline-grid}.auth-card h1{margin-bottom:.35rem;font-size:clamp(1.65rem,5vw,2.15rem)}.auth-mark{width:3rem;height:3rem;color:var(--accent);background:#ffd24a24;border-radius:14px;place-items:center;margin-bottom:1.3rem;display:grid}.muted,.input-hint,.count-label,.connection-state,.phrase-copy p,.detail-list dt{color:var(--muted)}.form-stack{gap:1rem;display:grid}.form-stack label{gap:.45rem;display:grid}.password-field{position:relative}.password-field input{padding-right:3rem}.password-field button{width:2.25rem;height:2.25rem;color:var(--muted);background:0 0;border:0;position:absolute;top:50%;right:.35rem;transform:translateY(-50%)}.form-error{color:#ff9ba0;margin:0;font-size:.9rem}.app-shell{grid-template-columns:16.5rem minmax(0,1fr);min-height:100vh;display:grid}.app-shell.practice-active{grid-template-columns:minmax(0,1fr)}.practice-active .app-main{grid-column:1/-1;min-width:0}.app-navigation{border-right:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#080b10f0;flex-direction:column;height:100vh;padding:1.4rem 1rem;display:flex;position:sticky;top:0}.nav-brand{align-items:center;gap:.75rem;padding:.45rem .55rem 1.6rem;font-size:1.15rem;font-weight:850;display:flex}.nav-items{gap:.35rem;display:grid}.nav-item{min-height:48px;color:var(--muted);text-align:left;background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:.8rem;padding:.75rem .9rem;display:flex}.nav-item:hover,.nav-item[aria-current=page]{color:var(--accent);background:#ffd24a17;border-color:#ffd24a47}.app-main{min-width:0}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;min-height:72px;padding:1rem clamp(1rem,3vw,2.5rem);display:flex}.connection-state{align-items:center;gap:.45rem;font-size:.84rem;display:inline-flex}.connection-state:before{background:var(--success);content:"";border-radius:50%;width:.52rem;height:.52rem}.connection{color:var(--muted);align-items:center;gap:.42rem;font-size:.84rem;display:inline-flex}.connection:before{background:var(--success);content:"";border-radius:50%;width:.5rem;height:.5rem}.connection.offline:before,.connection-state.offline:before{background:var(--danger)}.topbar-user{align-items:center;gap:.6rem;display:flex}.content-section{width:min(100%,76rem);margin:0 auto;padding:clamp(1.2rem,4vw,3.4rem)}.section-heading{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.5rem;display:flex}.section-heading h1{letter-spacing:-.035em;margin:0;font-size:clamp(1.75rem,4vw,2.8rem)}.home-view{gap:1.5rem;width:min(100%,76rem);margin:0 auto;padding:clamp(1.2rem,4vw,3.4rem);display:grid}.home-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.daily-card,.setup-panel,.admin-panel,.summary-card,.feedback-card{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#151b25fa,#0c1017fa);box-shadow:0 18px 50px #0000003d}.daily-card{padding:clamp(1.5rem,5vw,3.5rem);position:relative;overflow:hidden}.daily-card:after{content:"";border:1px solid #ffd24a40;border-radius:50%;width:18rem;height:18rem;position:absolute;bottom:-7rem;right:-5rem}.accent-line{background:var(--accent);border-radius:10px;width:3.5rem;height:.28rem;margin-bottom:1.7rem}.daily-phrase{letter-spacing:-.055em;max-width:16ch;margin-bottom:.8rem;font-size:clamp(2.2rem,7vw,5.5rem);line-height:1.02}.daily-card h2{z-index:1;letter-spacing:-.055em;max-width:16ch;margin-bottom:.8rem;font-size:clamp(2.2rem,7vw,5.5rem);line-height:1.02;position:relative}.daily-context,.daily-note{z-index:1;color:#c7cfdb;max-width:44rem;margin-bottom:.45rem;position:relative}.daily-relations{z-index:1;border-top:1px solid var(--line);max-width:44rem;margin-top:1.35rem;padding-top:1rem;position:relative}.daily-relations>span{color:var(--muted);letter-spacing:.08em;font-size:.75rem;font-weight:800}.daily-note{color:var(--muted);font-size:.9rem}.daily-meaning{color:var(--accent);font-size:clamp(1.15rem,2.5vw,1.5rem);font-weight:750}.daily-meta{z-index:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;max-width:44rem;margin-top:2rem;display:grid;position:relative}.daily-meta span,.eyebrow{color:var(--muted);letter-spacing:.12em;text-transform:uppercase;margin-bottom:.3rem;font-size:.75rem;font-weight:800;display:block}.home-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.hero-action{justify-content:space-between;align-items:center;min-height:92px;padding:1.25rem 1.5rem;font-size:1.1rem;display:flex}.hero-action>span{text-align:left;grid-template-columns:auto 1fr;align-items:center;gap:.15rem .65rem;display:grid}.hero-action>span svg{grid-row:1/3}.hero-action strong,.hero-action small{display:block}.hero-action small{color:currentColor;opacity:.7;font-size:.78rem;font-weight:500}.hero-action.secondary{border-color:var(--line);background:var(--panel);color:var(--text)}.library-tools{flex-wrap:wrap;justify-content:flex-end;gap:.7rem;display:flex}.library-tools .secondary-button{align-items:center;gap:.45rem;text-decoration:none;display:inline-flex}.library-section{gap:1.15rem;display:grid}.library-section .library-heading{align-items:center;margin-bottom:0}.library-filter-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.library-filter-row .count-label{color:var(--muted);font-variant-numeric:tabular-nums;flex:none}.segmented-control{border:1px solid var(--line);background:#0b0f15;border-radius:12px;gap:.25rem;padding:.3rem;display:inline-flex}.segmented-control button{min-height:40px;color:var(--muted);background:0 0;border:0;border-radius:9px;padding:.55rem .9rem}.segmented-control button[aria-selected=true],.segmented-control button.active{background:var(--panel-soft);color:var(--accent)}.library-search,.search-field{margin-bottom:1rem;position:relative}.library-search{margin-bottom:0}.library-search svg,.search-field svg{color:var(--muted);position:absolute;top:50%;left:.85rem;transform:translateY(-50%)}.library-search input,.search-field input{padding-left:2.7rem}.phrase-list{border:1px solid var(--line);border-radius:var(--radius);background:#10141cc2;overflow:hidden}.phrase-row{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--text);text-align:left;background:0 0;grid-template-columns:3rem minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1rem;display:grid}.phrase-row:last-child{border-bottom:0}.phrase-row:hover{background:#ffffff09}.phrase-initial{width:2.6rem;height:2.6rem;color:var(--accent);background:#ffd24a1f;border-radius:10px;place-items:center;font-weight:850;display:grid}.phrase-copy strong,.phrase-copy span,.phrase-row-copy strong,.phrase-row-copy small{display:block}.phrase-row-copy .missing-copy{opacity:.72}.phrase-row-copy small{color:var(--muted);margin-top:.18rem}.phrase-copy p{margin:.2rem 0 0;font-size:.88rem}.weak-star{color:var(--accent)}.empty-state{border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);text-align:center;padding:3rem 1.5rem}.modal-backdrop{z-index:30;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#000000b8;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.modal-panel{border:1px solid var(--line);background:var(--panel);border-radius:22px;width:min(100%,42rem);max-height:min(90vh,58rem);padding:clamp(1.1rem,4vw,2rem);overflow:auto;box-shadow:0 28px 90px #0000008c}.modal-panel.small{width:min(100%,30rem)}.modal-header,.modal-actions,.detail-actions,.account-actions{justify-content:space-between;align-items:center;gap:.7rem;display:flex}.modal-actions{justify-content:flex-end;margin-top:1.4rem}.relation-options,.relation-results{gap:.55rem;display:grid}.relation-option{border:1px solid var(--line);border-radius:10px;justify-content:space-between;align-items:center;gap:.7rem;padding:.7rem;display:flex}.relation-option>span{text-align:left;gap:.15rem;min-width:0;display:grid}.relation-option small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.relation-option.selected{background:#ffd55e14;border-color:#ffd55e8c}.quick-create-relation{width:100%;color:var(--accent);text-align:left;border:1px dashed #ffd55e8c;border-radius:10px;align-items:center;gap:.65rem;padding:.8rem;display:flex}.quick-create-relation span{flex-wrap:wrap;gap:.3rem;min-width:0;display:flex}.quick-create-relation strong{overflow-wrap:anywhere}.selected-relations{border:1px solid var(--line);background:#ffffff06;border-radius:10px;gap:.55rem;padding:.85rem;display:grid}.selected-relations>p,.subform-note{color:var(--muted);margin:0;font-size:.86rem}.selected-relations>div{flex-wrap:wrap;gap:.5rem;display:flex}.selected-relation{max-width:100%;color:var(--accent);overflow-wrap:anywhere;background:#ffd55e1f;border-radius:999px;align-items:center;gap:.35rem;padding:.38rem .45rem .38rem .65rem;display:inline-flex}.selected-relation button{width:1.65rem;height:1.65rem;color:inherit;border-radius:50%;flex:none;place-items:center;display:grid}.detail-list{grid-template-columns:7rem minmax(0,1fr);gap:.8rem 1rem;display:grid}.detail-list dt,.detail-list dd{margin:0}.detail-list>div{min-width:0}.detail-list>.detail-wide{grid-column:1/-1;gap:.55rem;display:grid}.star-button{border:1px solid var(--line);color:var(--muted);background:0 0;border-radius:999px;align-items:center;gap:.45rem;padding:.55rem .85rem;display:inline-flex}.star-button.active{color:var(--accent);border-color:#ffd24a80}.admin-grid{grid-template-columns:minmax(17rem,.75fr) minmax(0,1.25fr);gap:1rem;display:grid}.admin-panel,.setup-panel,.summary-card{padding:clamp(1.1rem,3vw,1.7rem)}.panel{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#151b25fa,#0c1017fa);padding:clamp(1.1rem,3vw,1.7rem)}.panel-title{justify-content:space-between;align-items:center;gap:.55rem;margin-bottom:1.2rem;font-size:1.05rem;display:flex}.panel-title h2{margin:0;font-size:1.05rem}.account-list{gap:.65rem;display:grid}.account-row{border:1px solid var(--line);border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.9rem;display:grid}.account-row p{color:var(--muted);margin:.15rem 0 0;font-size:.82rem}.account-row strong,.account-row small{display:block}.account-row small{color:var(--muted);margin-top:.15rem}.row-actions{align-items:center;gap:.2rem;display:flex}.row-actions button{align-items:center;gap:.35rem;display:inline-flex}.setup-view{width:min(100%,62rem);max-width:55rem;margin:0 auto;padding:clamp(1.2rem,4vw,3.4rem)}.setup-panel{gap:1.5rem;display:grid}.setup-panel fieldset{border:0;margin:0;padding:0}.setup-panel legend{margin-bottom:.7rem;font-weight:800}.choice-grid,.mode-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;display:grid}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-button[aria-pressed=true]{color:var(--accent)}.choice,.mode-choice{border:1px solid var(--line);background:var(--panel-soft);min-height:58px;color:var(--text);border-radius:12px;padding:.7rem}.choice.active,.mode-choice.active{border-color:var(--accent);color:var(--accent);background:#ffd24a1a}.choice small{margin-left:.18rem}.mode-choice{text-align:left;gap:.3rem;min-height:96px;display:grid}.mode-choice span{color:var(--muted);font-size:.82rem}.primary-button.large{min-height:54px;font-size:1.05rem}.mixed-mode-note{color:var(--muted);margin:.75rem 0 0;font-size:.88rem}.mixed-mode-note.warning{color:var(--danger)}.example-editor{border:1px solid var(--line);background:#ffffff05;border-radius:14px;gap:.8rem;padding:1rem;display:grid}.example-editor-heading,.example-form-card>header,.example-line-buttons{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.example-form-actions,.example-edit-card-actions{align-items:center;gap:.45rem;display:flex}.example-editor-heading>div{gap:.15rem;display:grid}.example-editor-heading span{color:var(--muted);font-size:.8rem}.example-form-card{border:1px solid var(--line);background:var(--panel-soft);border-radius:12px;gap:.8rem;padding:.9rem;display:grid}.example-edit-card{border:1px solid var(--line);background:var(--panel-soft);border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;min-width:0;padding:.85rem .9rem;display:flex}.example-edit-card-copy{gap:.3rem;min-width:0;display:grid}.example-edit-card-copy strong{overflow-wrap:anywhere}.assessment-count{width:fit-content;color:var(--accent);background:#ffd24a1f;border-radius:999px;padding:.2rem .5rem;font-size:.74rem;font-weight:800}.assessment-count.warning{color:var(--danger);background:#ff7e8b1a}.dialogue-line-list{gap:.6rem;display:grid}.dialogue-line-editor{border:1px solid #0000;border-radius:10px;grid-template-columns:3.5rem minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.7rem;display:grid}.dialogue-line-editor.other{color:#b8c7dc;background:#6581a91a;border-color:#809bc240}.dialogue-line-editor.you.plain{background:#4bd6be17;border-color:#4bd6be4d}.dialogue-line-editor.you.assessed{background:#ffd24a17;border-color:#ffd24a66}.dialogue-line-role{align-self:start;padding-top:.75rem;font-weight:850}.dialogue-line-text{min-width:0}.dialogue-line-text input.assessed-input{color:var(--accent)}.dialogue-line-text input.plain-input{color:var(--text)}.example-line-composer{grid-column:2/3;grid-template-columns:minmax(0,1fr);gap:.55rem;min-width:0;display:grid}.example-line-composer-field{border:1px solid var(--line);background:var(--bg);overflow-wrap:anywhere;border-radius:10px;flex-wrap:wrap;align-items:baseline;min-width:0;min-height:48px;padding:.75rem .85rem;font-weight:750;line-height:1.55;display:flex}.example-word-token{min-height:0;color:var(--text);font:inherit;line-height:inherit;cursor:pointer;background:0 0;border:0;border-radius:3px;padding:0;display:inline}.example-word-token.assessed,.example-line-draft.assessed{color:var(--accent)}.example-word-token.plain,.example-line-draft.plain,.plain-separator{color:var(--text)}.example-word-token:hover,.example-word-token:focus-visible{background:#ffffff14;outline:none}.preserved-separator{white-space:break-spaces;display:inline-block}.example-line-draft{width:5.5rem;min-width:2.5rem;min-height:0;font:inherit;line-height:inherit;background:0 0;border:0;outline:0;padding:0}.example-word-editor{border:1px solid var(--line);background:#ffffff06;border-radius:10px;flex-wrap:wrap;align-items:center;gap:.45rem;padding:.55rem;display:flex}.example-word-editor>input{flex:9rem;min-width:8rem}.dialogue-line-translation{grid-column:2/3}.assessed-toggle{color:var(--muted);grid-area:2/2/auto/3;justify-self:start;align-items:center;font-size:.78rem;position:relative;gap:.45rem!important;display:inline-flex!important}.assessed-toggle input{z-index:2;opacity:0;cursor:pointer;width:2.6rem;height:1.45rem;margin:0;position:absolute;top:0;left:0}.assessment-switch{pointer-events:none;background:#303744;border:1px solid #566071;border-radius:999px;flex:none;width:2.6rem;height:1.45rem;transition:border-color .16s,background .16s;display:inline-block;position:relative}.assessment-switch i{background:#f4f6fa;border-radius:50%;width:1rem;height:1rem;transition:transform .16s,background .16s;position:absolute;top:.16rem;left:.17rem;box-shadow:0 1px 4px #00000059}.assessed-toggle input:checked+.assessment-switch{border-color:var(--accent);background:#ffd24a47}.assessed-toggle input:checked+.assessment-switch i{background:var(--accent);transform:translate(1.12rem)}.assessed-toggle input:focus-visible+.assessment-switch{outline:2px solid var(--accent);outline-offset:2px}.assessment-switch-label{min-width:4.4rem;color:inherit;font-weight:800}.assessed-toggle.composer-mode-toggle{grid-area:auto/1}.dialogue-line-editor.you .dialogue-line-translation{grid-row:3}.dialogue-line-actions{grid-area:1/3;gap:.15rem;display:flex}.example-line-buttons{justify-content:flex-start}.example-cards{grid-column:1/-1;gap:.55rem;min-width:0;display:grid}.info-label{color:var(--muted);font-size:.78rem;font-weight:800}.example-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr));gap:.5rem;display:grid}.example-card{border:1px solid var(--line);width:100%;min-width:0;min-height:3.1rem;color:var(--text);text-align:left;overflow-wrap:anywhere;word-break:normal;background:#ffffff09;border-radius:10px;align-items:center;padding:.7rem .8rem;display:flex}.relation-card-list{flex-wrap:wrap;gap:.5rem;margin:.45rem 0 0;padding:0;list-style:none;display:flex}.relation-card{color:#f0f2f7;overflow-wrap:anywhere;background:#ffd24a12;border:1px solid #ffd24a47;border-radius:10px;min-width:min(11rem,100%);max-width:100%;padding:.65rem .75rem}.relation-empty{color:var(--muted);margin:0}.relation-card-value{color:#f0f2f7;font-weight:750}.example-card:hover,.example-card.active{background:#ffd24a14;border-color:#ffd24a8c}.example-show-all{color:var(--accent);background:0 0;border:0;justify-self:start;padding:.15rem 0}.example-dialogue-detail{background:#ffffff06;border-left:2px solid #ffd24a80;gap:.45rem;padding:.75rem;display:grid}.example-dialogue-line{border-radius:8px;grid-template-columns:3.5rem minmax(0,1fr);gap:.45rem;padding:.45rem .55rem;display:grid}.example-dialogue-line.other{color:#b8c7dc;background:#6581a917}.example-dialogue-line.you.plain{background:#4bd6be14}.example-dialogue-line.you.assessed{background:#ffd24a17}.example-dialogue-line small{color:var(--muted);grid-column:2}.example-dialogue-content,.dialogue-inline-content{overflow-wrap:anywhere;white-space:break-spaces;min-width:0}.example-dialogue-content .assessed-word{color:var(--accent)}.example-dialogue-content .plain-word{color:var(--text)}.practice-screen{grid-template-rows:auto minmax(0,1fr);width:min(100%,72rem);min-height:100svh;margin:0 auto;padding:clamp(1rem,4vw,3rem);display:grid}.practice-progress-row{grid-template-columns:minmax(6rem,auto) minmax(0,1fr);align-items:center;gap:1rem;display:grid}.practice-back{border:1px solid var(--line);background:var(--panel-soft);color:var(--text);border-radius:10px;justify-content:center;justify-self:start;align-items:center;gap:.4rem;padding:.6rem .8rem;display:inline-flex}.practice-body{align-self:center;width:min(100%,64rem);margin:0 auto;padding:1rem 0 clamp(2rem,8vh,5rem)}.practice-header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:clamp(2rem,8vh,5rem);display:flex}.practice-progress{color:var(--muted);font-variant-numeric:tabular-nums;align-items:center;gap:1rem;margin-bottom:0;display:flex}.practice-progress>div{background:var(--line);border-radius:999px;flex:1;height:5px;overflow:hidden}.practice-progress i{border-radius:inherit;background:var(--accent);height:100%;display:block}.progress-track{background:var(--line);border-radius:999px;flex:1;height:5px;overflow:hidden}.progress-track span{border-radius:inherit;background:var(--accent);height:100%;display:block}.practice-prompt{text-align:center}.practice-prompt h1{margin-bottom:.75rem;font-size:clamp(1.7rem,5vw,3.5rem)}.practice-prompt .context{color:var(--muted)}.dialogue-practice{gap:.65rem;width:min(100%,54rem);margin:clamp(1.5rem,5vh,3rem) auto 0;display:grid}.dialogue-practice-line{border:1px solid #0000;border-radius:12px;grid-template-columns:4rem minmax(0,1fr);align-items:center;gap:.7rem;min-width:0;padding:.8rem;display:grid}.dialogue-practice-line.other{color:#b8c7dc;background:#6581a917;border-color:#809bc238}.dialogue-practice-line.you.plain{background:#4bd6be12;border-color:#4bd6be40}.dialogue-practice-line.you.assessed{background:#ffd24a12;border-color:#ffd24a59}.dialogue-practice-line>strong{align-self:start;padding-top:.75rem}.dialogue-practice-line>small{color:var(--muted);grid-column:2}.dialogue-word-lines{justify-content:flex-start;margin:0}.dialogue-word-lines .word-line{width:clamp(4.6rem,11vw,7rem)}.dialogue-inline-content{flex-wrap:wrap;align-items:baseline;line-height:2.4rem;display:flex}.dialogue-static-word,.dialogue-static-separator{color:var(--text)}.dialogue-practice-line.other .dialogue-inline-content,.dialogue-practice-line.other .dialogue-inline-content span{color:inherit}.dialogue-inline-answer{width:clamp(4.2rem,10vw,7rem);margin:0 .12rem}.word-lines{flex-wrap:wrap;justify-content:center;gap:.75rem;margin:clamp(2rem,7vh,4.5rem) 0 1rem;display:flex}.word-line{width:clamp(5rem,14vw,9rem);min-width:0;color:var(--text);text-align:center;background:0 0;border:0;border-bottom:2px solid #536074;border-radius:0;padding:.65rem .25rem;font-size:clamp(1rem,3vw,1.35rem)}.word-line:focus{border-color:var(--accent);box-shadow:none}.input-hint{text-align:center;margin:.8rem 0 0;font-size:.82rem}.practice-actions{justify-content:center;gap:.75rem;margin-top:1.25rem;display:flex}.practice-actions button{min-width:9.5rem}.practice-input-error{color:#ff9ba0;text-align:center;margin:.8rem 0 0;font-size:.9rem}.answer-feedback,.wrong-feedback{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);width:min(100%,44rem);margin:1.5rem auto 0;padding:1.2rem}.answer-feedback.correct{color:var(--success);text-align:center;border-color:#56d69473;font-size:clamp(1.05rem,3vw,1.35rem);font-weight:850}.wrong-feedback{border-color:#ff6b7273}.wrong-title{color:var(--danger);align-items:center;gap:.45rem;display:flex}.wrong-title strong{font-size:clamp(1.05rem,3vw,1.3rem)}.wrong-details{background:#ffffff09;border-radius:12px;margin:1rem 0;padding:1rem}.wrong-details h2{overflow-wrap:anywhere;margin:0 0 .65rem;font-size:clamp(1.35rem,5vw,2rem);line-height:1.15}.feedback-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.85rem 0 1rem;display:grid}.feedback-fields>div{background:#ffffff09;border-radius:10px;min-width:0;padding:.75rem}.feedback-fields>.feedback-wide{grid-column:1/-1}.feedback-fields span{color:var(--muted);font-size:.78rem;font-weight:800}.feedback-fields p{overflow-wrap:anywhere;margin:.3rem 0 0}.wrong-feedback>.primary-button{margin-left:auto;display:block}.feedback-card{margin-top:1.5rem;padding:1.25rem;position:relative}.feedback-card.correct{border-color:#56d69473}.feedback-card.wrong{border-color:#ff6b7273}.feedback-title{color:var(--danger);font-size:1.05rem;font-weight:850}.correct-answer{color:var(--accent);overflow-wrap:anywhere;margin:.9rem 0;font-size:clamp(1.35rem,4vw,2.1rem);font-weight:850;line-height:1.25}.summary-card{width:min(100%,46rem);margin:1rem auto}.summary-view{align-content:start;gap:1rem;width:min(100%,52rem);min-height:calc(100svh - 72px);margin:0 auto;padding:clamp(1.2rem,4vw,3.4rem);display:grid}.summary-score{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);text-align:center;width:auto;height:auto;margin:0;padding:clamp(1.5rem,5vw,3rem);display:block}.summary-score strong{color:var(--accent);margin-bottom:.35rem;font-size:clamp(3.25rem,11vw,6.5rem);line-height:1;display:block}.summary-score h1{margin-bottom:.35rem;font-size:clamp(1.6rem,5vw,2.4rem);line-height:1.15}.summary-score>p:last-child{color:var(--muted);margin:0;font-size:clamp(.95rem,2.5vw,1.1rem)}.summary-wrong{gap:.55rem;margin:0;display:grid}.summary-wrong h2{margin:0 0 .25rem;font-size:clamp(1.25rem,3vw,1.6rem)}.summary-wrong>div{background:#ff6b7214;border-radius:10px;justify-content:space-between;align-items:center;gap:1rem;min-width:0;padding:.8rem;display:flex}.summary-wrong strong,.summary-wrong span{overflow-wrap:anywhere;min-width:0}.summary-wrong span{color:var(--muted);text-align:right}.summary-actions{justify-content:flex-end;gap:.7rem;margin-top:.25rem;display:flex}.summary-breakdown{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;display:grid}.summary-breakdown>div{border:1px solid var(--line);background:var(--panel-soft);border-radius:12px;gap:.25rem;padding:.9rem;display:grid}.summary-breakdown span{color:var(--muted);font-size:.82rem}.summary-breakdown strong{color:var(--accent);font-size:1.15rem}.wrong-list{gap:.6rem;margin:1rem 0;display:grid}.wrong-item{background:#ff6b7214;border-radius:10px;padding:.85rem}.toast{z-index:50;border:1px solid var(--line);max-width:min(26rem,100vw - 2rem);color:var(--text);background:#202735;border-radius:12px;padding:.8rem 1rem;position:fixed;bottom:1rem;right:1rem;box-shadow:0 14px 50px #00000061}.pending-sync-banner{background:#ffd24a14;border:1px solid #ffd24a66;border-radius:12px;justify-content:space-between;align-items:center;gap:.75rem;width:min(100% - 2rem,52rem);margin:1rem auto 0;padding:.75rem .9rem;display:flex}.pending-sync-banner>div{gap:.45rem;display:flex}@media (max-width:900px){.admin-grid{grid-template-columns:1fr}}@media (max-width:760px){.app-shell{display:block}.app-navigation{z-index:20;height:auto;padding:.45rem max(.5rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));border-top:1px solid var(--line);border-right:0;position:fixed;inset:auto 0 0}.nav-brand{display:none}.nav-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:.2rem;display:grid}.nav-item{flex-direction:column;justify-content:center;gap:.15rem;min-height:54px;padding:.3rem;font-size:.7rem}.nav-item svg{width:1.25rem;height:1.25rem}.app-main{padding-bottom:calc(74px + env(safe-area-inset-bottom))}.topbar{min-height:60px;padding:.65rem 1rem}.topbar-user>span{display:none}.content-section{padding:1.15rem}.library-heading{align-items:stretch}.library-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;width:100%;display:grid}.library-tools>:not(input){justify-content:center;min-width:0;padding-left:.55rem;padding-right:.55rem;font-size:.86rem}.library-filter-row{gap:.7rem}.daily-meta,.home-actions,.mode-grid{grid-template-columns:1fr}.hero-action{min-height:72px}.section-heading{flex-direction:column;align-items:flex-start}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.phrase-row{grid-template-columns:2.6rem minmax(0,1fr) auto;gap:.7rem;padding:.85rem}.modal-backdrop{align-items:end;padding:0}.modal-panel,.modal-panel.small{width:100%;max-height:92vh;padding-bottom:calc(1.25rem + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}.detail-list{grid-template-columns:1fr;gap:.25rem}.detail-list dd{margin-bottom:.7rem}.practice-screen{grid-template-rows:auto auto;padding:1rem}.practice-progress-row{grid-template-columns:auto minmax(0,1fr);gap:.65rem}.practice-body{padding:clamp(2rem, 8vh, 4rem) 0 calc(2rem + env(safe-area-inset-bottom));align-self:start}.word-lines{gap:.45rem}.word-line{width:min(7rem,28vw)}.practice-actions{flex-direction:column;align-items:stretch}.practice-actions button{width:100%}.answer-feedback,.wrong-feedback{padding:1rem}.wrong-feedback>.primary-button{width:100%}.feedback-fields{grid-template-columns:1fr}.dialogue-line-editor{grid-template-columns:3rem minmax(0,1fr)}.dialogue-line-actions{grid-area:auto/2;justify-content:flex-end}.dialogue-line-translation,.dialogue-line-editor.you .dialogue-line-translation,.assessed-toggle,.example-line-composer{grid-area:auto/2}.example-line-composer{grid-template-columns:minmax(0,1fr)}.example-line-composer-field,.composer-mode-toggle{grid-area:auto/1}.example-card-grid,.summary-breakdown{grid-template-columns:1fr}.dialogue-practice-line{grid-template-columns:3.25rem minmax(0,1fr);padding:.65rem}.dialogue-word-lines .word-line{width:min(6.2rem,25vw)}.summary-view{padding:1rem}.summary-score{padding:1.5rem 1rem}.summary-wrong>div{flex-direction:column;align-items:flex-start;gap:.3rem}.summary-wrong span{text-align:left}.summary-actions{flex-direction:column;align-items:stretch}.summary-actions button{width:100%}.pending-sync-banner{flex-direction:column;align-items:stretch}.pending-sync-banner>div{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.account-row{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
