@charset "UTF-8";
:root{font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:#282b3b;background:#f6f7fc;font-synthesis:none;--purple:#8970ce;--purple-strong:#6e51b2;--purple-soft:#eee9f8;--muted:#73798e;--border:#e1e3ef;--surface:#fff;--shadow:0 6px 26px #30224b06;color-scheme:light}
*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--purple-strong)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b8a1e8;outline-offset:3px}input,textarea,select{width:100%;border:1px solid #dce0ed;background:#fff;border-radius:10px;padding:12px 14px;min-height:48px;color:#282b3b;box-shadow:0 1px 2px #282b3b02}input::placeholder,textarea::placeholder{color:#8c91a2;opacity:1}input:focus,textarea:focus,select:focus{border-color:var(--purple);outline:2px solid #8970ce25}textarea{resize:vertical;line-height:1.6}input[type=number]{max-width:180px}label{display:block;margin:0 0 8px;font-weight:600}h1,h2,h3,p{margin:0}h1{font-size:clamp(32px,7vw,48px);font-weight:750;letter-spacing:-1.7px;line-height:1.15}h2{font-size:23px;font-weight:700;letter-spacing:-.6px;line-height:1.3}h3{font-size:17px;font-weight:650}small{font-size:14px}svg{display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:14px;top:0;transform:translateY(-150%);z-index:100;padding:12px;background:#fff;border:2px solid var(--purple);border-radius:8px}.skip-link:focus{transform:translateY(12px)}
.app-header{max-width:1040px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 24px 18px}.brand{display:inline-flex;align-items:center;gap:10px;color:#282b3b;text-decoration:none;font-size:29px;font-weight:800;letter-spacing:-1.3px;line-height:1}.brand img{border-radius:11px}.brand-dot{color:var(--purple)}.connection-indicator{max-width:52%;font-size:13px;color:var(--muted);text-align:right;line-height:1.4}.connection-indicator.online{color:#48745c}.connection-indicator.offline{color:#9b6926}main{max-width:960px;margin:0 auto;padding:15px 24px calc(124px + env(safe-area-inset-bottom))}.view{animation:enter .18s ease-out}.page-heading{margin:24px 0 30px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.65px;color:#84899b;line-height:1.6}.page-heading h1{margin:8px 0 14px}.lead{color:var(--muted);line-height:1.65;max-width:550px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:19px;box-shadow:var(--shadow)}.notice{background:#eee9f8;border:1px solid #dbd0ef;color:#5e458f;padding:13px 16px;border-radius:12px;margin:0 0 20px;overflow-wrap:anywhere;font-size:15px}.notice.error,.notice[data-kind=error]{background:#fff2f1;border-color:#eed1d0;color:#a33e45}.notice.success,.notice[data-kind=success]{background:#edf6f0;border-color:#d3e8da;color:#3e7051}.notice.warning,.notice[data-kind=warning]{background:#fff8e9;border-color:#eddfbc;color:#856623}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;border:1px solid transparent;border-radius:10px;padding:12px 19px;line-height:1.35;font-weight:650;text-decoration:none;transition:background .15s,box-shadow .15s,transform .15s}.button.primary{background:var(--purple);color:white;box-shadow:0 3px 8px #8970ce1c}.button.primary:hover{background:var(--purple-strong)}.button.subtle{background:#fff;border-color:var(--border);color:#48415c}.button.subtle:hover{background:#f7f4fc;border-color:#cbbde6}.button.danger-subtle{color:#aa454e;background:#fff;border-color:#efd9dc}.button.danger-subtle:hover{background:#fff1f2}.button.compact{font-size:14px;padding:9px 13px;min-height:44px}.button.full-width{width:100%}.text-button{padding:8px 0;border:0;background:transparent;color:var(--purple-strong);font-weight:600;font-size:14px;min-height:40px;text-align:left}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.field-help{font-size:14px;line-height:1.6;color:var(--muted);margin:8px 0 16px}.muted{color:var(--muted);font-size:14px}.empty-state{padding:30px 22px;text-align:center;max-width:620px;margin:18px auto;color:var(--muted);line-height:1.7;background:#fff;border:1px dashed #d6d1e2;border-radius:16px;overflow-wrap:anywhere}
.connection-view{max-width:520px;margin:24px auto 0}.connection-art{display:flex;gap:18px;align-items:center;margin:0 0 32px;color:var(--purple-strong);font-size:14px;font-weight:600}.connection-art span{border:1px solid #e3daef;border-radius:50%;display:grid;place-items:center;background:#f0eafa;width:77px;height:77px;transform:rotate(-8deg)}.connection-art span:last-child{background:#fff;transform:rotate(8deg)}.connection-art svg{width:54px;height:24px;opacity:.6}.connection-view h1{margin:11px 0 18px;font-size:clamp(38px,9vw,57px);letter-spacing:-2.1px}.connection-view>.lead{margin-bottom:27px}.connection-form{padding:24px}.connection-form label{font-size:15px}.connection-form .field-help{margin-bottom:20px}.privacy-hint{font-size:12px;color:#8a8da1;line-height:1.6;margin-top:16px;text-align:center}.connection-footer{font-size:13px;color:#9295a4;text-align:center;margin-top:24px}
.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 24px}.stat,.stat-card{padding:20px;background:white;border:1px solid var(--border);border-radius:15px;min-width:0}.stat strong,.stat-card strong,.stat-value{display:block;font-size:32px;font-weight:750;line-height:1.2;letter-spacing:-1px;margin-bottom:7px;color:#39324b}.stat span,.stat-card span,.stat-label{font-size:13px;line-height:1.4;color:var(--muted);display:block}.study-invitation{display:grid;grid-template-columns:48px 1fr;gap:18px;padding:25px;background:linear-gradient(120deg,#f1ebfc,#fbf9ff);border-color:#e5dbf5}.invitation-symbol{background:#e8dcfa;color:#8161be;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:26px}.study-invitation h2{margin:6px 0 10px}.study-invitation p:not(.eyebrow){font-size:15px;color:#777087;line-height:1.65;max-width:540px}.study-invitation .button{grid-column:1/-1;margin-top:7px}.sync-line{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin:19px 0 0;font-size:12px;color:#8a8d9b}.sync-line p{flex:1;min-width:160px}.sync-line .text-button{font-size:12px;min-height:32px;padding:4px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#9b8bb6;flex:none;align-self:center}
.session-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 27px}.session-heading h1{font-size:29px;margin-top:8px;letter-spacing:-.9px}.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:11px}.direction-badge{background:#ede8f8;border:1px solid #e2d8f1;color:#765aa8;font-weight:650;letter-spacing:.4px;font-size:12px;padding:5px 11px;border-radius:7px}progress{display:block;width:100%;height:5px;border:0;border-radius:5px;background:#e7e5f0;margin:0 0 23px;overflow:hidden;appearance:none}progress::-webkit-progress-bar{background:#e7e5f0}progress::-webkit-progress-value{background:var(--purple);border-radius:5px;transition:width .2s}progress::-moz-progress-bar{background:var(--purple);border-radius:5px}.review-card{padding:28px 25px 20px}.phrase-question{font-size:clamp(24px,5.5vw,37px);line-height:1.42;letter-spacing:-.6px;margin:17px 0 28px;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap}.answer-panel{padding:20px 0 24px;border-top:1px solid #ece8f3}.phrase-answer{font-size:clamp(22px,5vw,31px);line-height:1.5;margin-top:10px;color:#6a509c;overflow-wrap:anywhere;white-space:pre-wrap}.reveal-button{margin:6px 0 0}.review-note-panel{border-top:1px solid #eeeaf4;margin-top:22px;padding-top:12px}.note-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.note-heading .eyebrow{font-size:10px;letter-spacing:1.3px}.note-heading .text-button{font-size:13px}.note-copy{font-size:15px;line-height:1.7;color:#737083;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere}.note-copy:empty{display:none}fieldset{min-width:0;border:0;margin:25px 0 0;padding:0}legend{font-size:15px;font-weight:650;padding:0;margin-bottom:13px;color:#555267}.rating-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rating-button{display:grid;grid-template-columns:9px 1fr;align-items:center;column-gap:9px;row-gap:2px;min-width:0;min-height:78px;padding:13px 12px;background:#fff;border:1px solid var(--border);border-radius:11px;text-align:left;color:#383548;transition:border-color .15s,background .15s}.rating-button:hover{border-color:#ac93d3;background:#fbf8ff}.rating-button strong{font-weight:600;font-size:14px}.rating-button small{grid-column:2;color:#878396;font-size:11px;line-height:1.4}.rating-button:last-child{grid-column:1/-1}.rating-dot{width:7px;height:7px;border-radius:50%;background:#7daf93}.rating-good{background:#a5b978}.rating-medium{background:#cfb569}.rating-hard{background:#ce976e}.rating-again{background:#c67e88}.binary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.binary-controls .field-help{margin-top:-3px}
.heading-with-action{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between}.heading-with-action h1{font-size:40px}.heading-with-action .button{flex-shrink:0}.library-tools{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:18px}.search-field{position:relative;min-width:0}.search-field svg{position:absolute;top:16px;left:14px;height:18px;width:18px;color:#9895a8;pointer-events:none}.search-field input{padding-left:43px}.phrase-list{display:grid;gap:12px}.phrase-item,.phrase-row{background:#fff;padding:20px;border:1px solid var(--border);border-radius:14px;min-width:0}.phrase-item h2,.phrase-item h3,.phrase-row h2,.phrase-row h3,.phrase-text{font-size:18px;line-height:1.5;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap}.phrase-translation,.phrase-item>p,.phrase-row>p{font-size:16px;color:var(--muted);margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.phrase-meta{font-size:12px!important;color:#9290a1!important;display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 0}.phrase-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #efedf5;margin-top:14px;padding-top:9px}.phrase-actions button{min-height:42px}.phrase-note{padding:10px 12px;background:#faf8fe;border-radius:9px;font-size:14px!important;color:#797186!important;margin-top:13px!important;overflow-wrap:anywhere;white-space:pre-wrap}.badge{display:inline-flex;font-size:11px;line-height:1.4;background:#f0edf7;border-radius:5px;color:#79688f;padding:3px 7px}.notebook-content{display:grid;gap:20px}.notebook-content>.panel,.notebook-sheet{padding:22px;overflow-x:auto}.notebook-content h2{margin-bottom:16px}.notebook-content table{border-collapse:collapse;width:100%;font-size:14px;min-width:280px}.notebook-content th,.notebook-content td{border-bottom:1px solid #e9e6f1;padding:11px 12px;text-align:left;vertical-align:top;max-width:400px;overflow-wrap:anywhere;white-space:pre-wrap}.notebook-content th{color:#797087;background:#faf8fd;font-weight:600}
.settings-panel{padding:25px;margin-bottom:20px}.settings-panel h2{font-size:21px;margin-bottom:24px}.settings-panel form>label,.settings-panel>label{margin-top:20px}.form-grid{display:grid;grid-template-columns:1fr;gap:14px}.form-field{min-width:0}.settings-panel>.button[type=submit]{margin-top:5px}.settings-action{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;padding:22px 0;border-top:1px solid #ece8f2;flex-wrap:wrap}.settings-action:first-of-type{border-top:0;padding-top:0}.settings-action:last-child{padding-bottom:0}.settings-action>div{flex:1;min-width:190px}.settings-action p{font-size:14px;color:var(--muted);max-width:490px;line-height:1.65;margin-top:7px}.settings-action .button{font-size:14px}.settings-footer{text-align:center;font-size:12px;color:#9a97a8;margin-top:30px}.settings-footer span{padding:0 8px}.bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:#ffffffed;border-top:1px solid #e7e4ef;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;min-height:57px;color:#8d899b;font-size:10px;line-height:1.4;font-weight:600;border-radius:10px;padding:7px 3px}.nav-button svg{width:21px;height:21px}.nav-button[aria-current=page],.nav-button.active{color:#8061bb;background:#f2edf9}.nav-button:hover{color:#7654ae;background:#f7f4fc}
dialog{max-width:620px;width:calc(100% - 24px);max-height:calc(100dvh - 36px);border:1px solid #ddd6e9;background:#fff;color:#282b3b;border-radius:18px;padding:26px;box-shadow:0 20px 80px #251e3b30;overscroll-behavior:contain}dialog::backdrop{background:#29233768;backdrop-filter:blur(3px)}dialog label{font-size:14px;margin-top:18px}dialog textarea{font-size:16px}dialog .form-grid{margin-top:2px}dialog .form-grid label{margin-top:18px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-heading h2{font-size:23px}.icon-button{background:transparent;color:#8b8498;display:grid;place-items:center;width:44px;height:44px;flex:none;font-size:28px;border:0;border-radius:9px}.icon-button:hover{background:#f3eff9}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.dialog-actions .button{flex:1}.dialog-heading+.field-help{margin-top:4px}
@media(min-width:640px){main{padding:25px 32px calc(132px + env(safe-area-inset-bottom))}.app-header{padding:30px 32px 10px}.connection-view{margin-top:38px}.connection-form{padding:30px}.page-heading{margin-top:30px;margin-bottom:36px}.stats-grid{gap:17px}.stat,.stat-card{padding:24px}.stat strong,.stat-card strong,.stat-value{font-size:38px}.study-invitation{padding:32px;grid-template-columns:52px 1fr;gap:22px}.study-invitation .button{grid-column:2;justify-self:start}.review-card{padding:35px 36px 26px}.rating-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.rating-button{grid-template-columns:1fr;gap:7px;min-height:111px;padding:13px 12px}.rating-button small{grid-column:1}.rating-button:last-child{grid-column:auto}.rating-button strong{font-size:13px}.rating-dot{margin-bottom:2px}.form-grid{grid-template-columns:1fr 1fr;gap:22px}.library-tools{grid-template-columns:1fr 190px}.settings-panel{padding:30px}.settings-action{flex-wrap:nowrap}.settings-action .button{flex:none}.bottom-nav{max-width:580px;left:50%;right:auto;transform:translateX(-50%);bottom:16px;width:calc(100% - 48px);padding:7px;border:1px solid #e7e1ef;border-radius:18px;box-shadow:0 8px 40px #30234413}.nav-button{font-size:11px;gap:6px}.session-heading h1{font-size:34px}.dialog-actions .button{flex:initial}.phrase-item,.phrase-row{padding:23px}}
@media(min-width:960px){.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.app-header{padding-top:36px}main{padding-top:25px}.connection-view{margin-top:26px}.connection-view h1{font-size:58px}.page-heading h1{font-size:48px}.review-card{padding:40px 45px 30px}.session-heading{margin-top:26px}.phrase-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.view{max-width:840px;margin-left:auto;margin-right:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@keyframes enter{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
