@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root{--bg:#f8f7f3;--paper:#fffefa;--ink:#303b34;--muted:#81857c;--line:#e7e7df;--accent:#dd6842;--accent-dark:#bd4e2a;--soft:#f0eee5;--font:'DM Sans',sans-serif;--display:'Manrope',sans-serif;color-scheme:light;font-family:var(--font);color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:5px}input:focus,select:focus,textarea:focus{outline:2px solid #dd684275;outline-offset:2px}[hidden]{display:none!important}.sprite{position:absolute;width:0;height:0;overflow:hidden}.app-shell{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100dvh;padding:42px 22px 24px;border-right:1px solid var(--line);background:#f3f3ec;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-size:30px;font-weight:800;letter-spacing:-1.6px;width:max-content}.brand-dot{color:var(--accent);margin-left:-9px}.brand-mark{font-size:33px;background:var(--accent);color:#fff8e9;width:38px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;letter-spacing:-4px;padding-right:5px;line-height:1}.brand-mark span{font-size:33px;position:relative;top:5px}.workspace-label{font-size:10px;letter-spacing:1.7px;color:#9a9c91;margin:58px 12px 18px;font-weight:650}nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 12px;border-radius:9px;font-size:13px;font-weight:550;text-align:left;width:100%;white-space:nowrap}.nav-item.active{background:#e7e9df;color:#3c5140}.nav-item>span{margin-left:auto;font-size:11px;min-width:23px;height:22px;border-radius:6px;background:#f7f8f1;display:grid;place-items:center}.nav-item .nav-arrow{margin-left:auto;width:15px;color:#8f978c}.nav-item:hover{background:#e9ebe3}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.small-flower{font-size:43px;color:#a4ad8d;line-height:1}.sidebar-bottom p{font-family:var(--display);font-size:20px;font-weight:600;line-height:1.45;letter-spacing:-.5px;margin:18px 0 10px}.sidebar-bottom>span{font-size:10px;color:#909487}.local-note{display:flex;align-items:center;gap:7px;font-size:10px;color:#878d7f;border-top:1px solid #e1e3d7;padding-top:25px;margin-top:34px}.status-dot{width:6px;height:6px;background:#849278;border-radius:50%;display:inline-block;flex-shrink:0}.main-wrap{min-width:0}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 52px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:8px}.avatar{display:grid;place-items:center;background:#e9eadf;width:30px;height:30px;border-radius:50%;color:#79836b;font-size:11px;margin-left:13px}main{max-width:1350px;margin:auto;padding:48px 52px 0}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:34px;gap:20px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.8px;display:flex;align-items:center;gap:7px}.eyebrow>span{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent)}h1,h2,h3,p{margin:0}h1{font-family:var(--display);font-size:clamp(32px,3vw,45px);line-height:1.25;letter-spacing:-1.9px;margin:15px 0 14px;font-weight:650}h1 em{font-style:normal;color:#8a917d}.intro p{font-size:12px;line-height:1.8;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:43px;padding:11px 19px;font-size:12px;font-weight:550;border-radius:8px;transition:background .2s,transform .2s;white-space:nowrap}.button:hover{transform:translateY(-1px)}.button svg{width:17px;height:17px}.primary{background:var(--accent);color:white;box-shadow:0 3px 4px #a6481910}.primary:hover{background:var(--accent-dark)}.secondary{border:1px solid #dcded3;background:#fffefa}.secondary:hover{background:#f0f0e8}.intro>.button{margin-bottom:3px}.practice-banner{position:relative;min-height:315px;background:#f0eee3;border:1px solid #e9e6da;border-radius:16px;padding:31px 35px;display:flex;overflow:hidden;isolation:isolate}.banner-copy{width:51%;z-index:2}.banner-copy>.eyebrow{font-size:8px;letter-spacing:1.6px;color:#8b8e7b}.banner-copy h2{font-family:var(--display);font-weight:650;letter-spacing:-1.3px;font-size:31px;line-height:1.24;margin:15px 0 12px}.banner-copy p{font-size:11px;color:#858779;line-height:1.9}.banner-copy .button{margin-top:21px;min-height:42px;gap:29px}.banner-caption{display:block;font-size:9px;color:#8f9283;margin-top:11px}.card-art{position:absolute;right:30px;top:0;bottom:0;width:46%;pointer-events:none}.art-card{position:absolute;background:var(--paper);border:1px solid #e4e2d6;border-radius:13px;width:235px;height:210px;box-shadow:0 12px 25px #56553b0c}.art-front{top:50px;left:24px;transform:rotate(-8deg);padding:20px;z-index:2}.art-card-top{font-size:7px;letter-spacing:1.1px;color:#999c8e;display:flex;align-items:center;justify-content:space-between}.art-card-top svg{width:16px;color:#93a080}.art-front h3{font-family:var(--display);font-size:37px;font-weight:600;letter-spacing:-1.7px;margin:28px 0 9px}.art-front h3>span{color:var(--accent)}.pill{display:inline-block;border-radius:5px;font-size:10px;font-weight:500;padding:4px 9px;width:max-content;background:#eeeee9;color:#797c71;line-height:1.3}.pill.noun{color:#8e7553;background:#f4eee0}.pill.verb{color:#64816e;background:#eaf0e7}.pill.adjective{color:#8a789a;background:#eeeaf3}.pill.adverb{color:#6c829a;background:#e9eff4}.art-card-foot{margin-top:24px;border-top:1px solid #eeeee6;padding-top:12px;display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#a0a292}.art-card-foot svg{width:13px;height:13px}.art-back{top:38px;left:95px;transform:rotate(12deg);background:#e3e6d7;color:#7b866d;z-index:1;padding:25px}.art-back>span{display:block;text-align:right;font-size:10px}.art-back>p{font-size:12px;margin-top:30px;text-align:right;line-height:2}.art-spark{position:absolute;color:#899679}.spark-one{font-size:44px;top:25px;left:-12px;transform:rotate(15deg)}.spark-two{font-size:28px;right:0;bottom:67px;color:#cf8b60}.art-orbit{position:absolute;inset:20px -5px 4px -20px;border:1px solid #dedfcf;border-radius:50%;transform:rotate(-24deg)}.art-label{position:absolute;bottom:21px;left:65px;display:flex;align-items:center;gap:7px;font-size:9px;color:#8d9380;transform:rotate(-4deg)}.art-label svg{width:13px;height:13px}.library{margin-top:40px;scroll-margin-top:20px}.library-heading,.library-title,.library-tools,.library-footer{display:flex;align-items:center;justify-content:space-between}.library-title{gap:10px;justify-content:flex-start}.library-title h2{font-family:var(--display);font-size:19px;font-weight:650;letter-spacing:-.6px}.count-badge{display:grid;place-items:center;min-width:23px;height:22px;font-size:10px;background:#eaece3;color:#7e8972;border-radius:6px}.library-subtitle{font-size:10px;color:#92958b}.library-tools{margin:23px 0 18px;gap:15px}.filters{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;padding:3px;flex:1;min-width:0}.filter{padding:8px 12px;border-radius:6px;font-size:10px;color:#8b8e81;white-space:nowrap}.filter.active{background:#e9ece2;color:#55654d;font-weight:600}.filter:hover{background:#edeee7}.search-box{border:1px solid #e3e4dc;display:flex;align-items:center;gap:8px;border-radius:7px;padding:9px 11px;background:#fbfbf7;width:200px}.search-box svg{color:#9ca18f;width:15px;height:15px}.search-box input{min-width:0;width:100%;border:0;outline:none;background:none;font-size:10px;color:var(--ink)}.search-box:focus-within{outline:2px solid #dd684275}.search-box input:focus{outline:none}.search-box input::placeholder{color:#a1a497}.list-header,.word-row{display:grid;grid-template-columns:1.05fr 1.9fr .7fr 66px;gap:15px;align-items:center}.list-header{font-size:8px;letter-spacing:1.4px;color:#a0a394;padding:11px 17px;background:#eeefe7;border-radius:6px}.word-row{min-height:75px;border-bottom:1px solid var(--line);padding:14px 17px;transition:background .2s}.word-row:hover{background:#f2f2ea}.word-term{font-family:var(--display);font-size:14px;font-weight:650;letter-spacing:-.3px;overflow-wrap:anywhere}.word-definition{font-size:11px;color:#929587;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.row-actions{display:flex;justify-content:flex-end;gap:2px}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;flex-shrink:0;transition:background .2s}.icon-button svg{width:16px;height:16px}.icon-button:hover{background:#e9eade}.row-actions .icon-button{width:30px;height:30px;color:#9ca08f}.row-actions .icon-button svg{width:14px;height:14px}.row-actions .delete-button:hover{color:#b45237;background:#f4e4dc}.library-footer{font-size:9px;color:#a1a491;padding:18px 0;gap:20px}.library-footer>span:last-child{display:flex;align-items:center;gap:6px}.library-footer svg{width:12px;height:12px}.page-footer{display:flex;justify-content:space-between;align-items:center;margin-top:25px;padding:22px 0;border-top:1px solid var(--line);color:#8d9383;font-family:var(--display);font-weight:700;font-size:15px;letter-spacing:-.8px}.page-footer .brand-dot{margin-left:0}.footer-tag{margin-left:13px;font-family:var(--font);font-weight:400;font-size:9px;letter-spacing:0;color:#a2a594}.page-footer button{font-family:var(--font);font-size:10px;font-weight:400;letter-spacing:0;color:#959a88;padding:8px}.page-footer button span{margin-left:7px}.empty-state{text-align:center;padding:55px 20px;border-bottom:1px solid var(--line)}.empty-state>svg{color:#a3ac93;width:32px;height:32px;margin-bottom:15px}.empty-state h3{font-size:17px}.empty-state p{font-size:12px;color:var(--muted);margin:10px 0 20px}
dialog{color:var(--ink);border:1px solid var(--line);background:var(--paper);padding:0;max-height:calc(100dvh - 40px);box-shadow:0 30px 120px #18251f26;overscroll-behavior:contain}dialog::backdrop{background:#26342a70;backdrop-filter:blur(6px)}dialog[open]{animation:modal-in .25s ease-out}.modal{width:min(530px,calc(100% - 32px));border-radius:18px;padding:30px}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:27px}.modal-heading .eyebrow{font-size:8px;letter-spacing:1.5px;color:#8d9583}.modal h2{font-family:var(--display);font-size:27px;line-height:1.25;letter-spacing:-1px;font-weight:650;margin-top:11px}.modal-heading>.icon-button{margin:-7px -8px 0 0}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:21px;font-size:12px;font-weight:500}.field input,.field select,textarea{border:1px solid #dedfd4;background:#f9f9f4;color:var(--ink);padding:13px 14px;border-radius:8px;width:100%;font-size:13px}.field input::placeholder,textarea::placeholder{color:#a0a391}.field select{cursor:pointer}textarea{resize:vertical;min-height:110px;line-height:1.7}.definition-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:500;margin-bottom:9px;gap:10px}.definition-label a{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--accent)}.definition-label a svg{width:11px;height:11px}.field-hint{font-size:10px;color:#9a9e8f;margin-top:9px;line-height:1.6}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:27px}.text-button{color:#8a9080}.form-error{color:#af4b30;font-size:12px;line-height:1.7;margin-top:15px}.compact-modal{width:min(460px,calc(100% - 32px))}.compact-modal>p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:18px;overflow-wrap:anywhere}.compact-modal .modal-heading{margin-bottom:16px}.compact-modal .modal-heading h2{font-size:23px;margin-top:0}.help-list{padding-left:20px;display:grid;gap:18px;font-size:13px;line-height:1.8;color:#8a9180}.help-list strong{color:var(--ink)}.help-note{font-size:11px!important;background:#eff1e6;padding:16px;border-radius:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#354536;color:white;padding:14px 22px;border-radius:10px;box-shadow:0 8px 30px #26332530;font-size:12px;z-index:10;max-width:calc(100% - 30px);width:max-content;line-height:1.7}
.practice-dialog{width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;background:var(--bg);border-radius:0}.practice-shell{max-width:850px;margin:auto;min-height:100%;padding:28px 40px;display:flex;align-items:center;flex-direction:column}.practice-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding-bottom:25px;border-bottom:1px solid var(--line)}.small-brand{font-size:26px}.small-brand .brand-dot{margin-left:-10px}.practice-header>span:nth-child(2){display:flex;align-items:center;gap:9px;font-size:12px;color:#858e7c}.practice-header .icon-button{border:1px solid var(--line);border-radius:50%}.session-meta{width:min(450px,100%);display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#89927f;margin:35px 0 24px}.session-meta>span:first-child{display:flex;gap:7px;align-items:center}.session-meta svg{width:14px;height:14px}.card-stage{width:min(450px,100%);height:340px;position:relative;perspective:1300px;margin-bottom:20px;flex-shrink:0}.stack-shadow{position:absolute;inset:0;border:1px solid #dfe2d4;border-radius:22px;background:#eeeee3;pointer-events:none}.shadow-one{transform:translateY(7px) rotate(-2deg);background:#f3f2ea}.shadow-two{transform:translateY(13px) rotate(2deg)}.flashcard{width:100%;height:100%;padding:0;position:relative;perspective:1300px;touch-action:none;user-select:none;border-radius:22px;display:block}.card-inner{display:block;width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.65,.2,1)}.flashcard.flipped .card-inner{transform:rotateY(180deg)}.card-face{position:absolute;inset:0;background:var(--paper);border:1px solid #e0e2d8;border-radius:22px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:35px;box-shadow:0 12px 30px #38422f07}.card-eyebrow{position:absolute;top:30px;left:20px;right:20px;font-size:8px;letter-spacing:1.8px;color:#9aa28e}.card-word{font-family:var(--display);font-size:clamp(27px,5vw,44px);font-weight:600;letter-spacing:-1.7px;overflow-wrap:anywhere;max-width:100%;line-height:1.25;text-align:center;margin-bottom:17px}.card-bottom{position:absolute;bottom:27px;left:20px;right:20px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:#9ba38f}.card-bottom svg{width:14px;height:14px}.card-back{transform:rotateY(180deg);background:#e9eddf}.card-definition{font-size:clamp(16px,3vw,23px);font-weight:450;line-height:1.7;text-align:center;overflow-y:auto;overflow-wrap:anywhere;max-height:190px;white-space:pre-wrap;width:100%;touch-action:pan-y}.practice-controls{display:flex;align-items:center;justify-content:space-between;gap:35px;width:min(450px,100%);margin:8px 0 26px;font-size:11px;color:#959c8a}.round-button{width:42px;height:42px;border:1px solid #dfe3d6;background:#fdfdf6;border-radius:50%;color:#78856c}.round-button svg{width:18px;height:18px}.rotate{transform:rotate(180deg)}.youglish-trigger{display:flex;align-items:center;gap:14px;border:1px solid #e0e2d6;border-radius:12px;padding:15px 18px;background:#f1f2e9;width:min(450px,100%);text-align:left;transition:background .2s}.youglish-trigger:hover{background:#e8edde}.video-icon{width:35px;height:35px;border-radius:9px;display:grid;place-items:center;background:#e1e6d6;color:#6b7f5d}.video-icon svg{width:17px;height:17px}.youglish-trigger>span:nth-child(2){font-size:12px;font-weight:500;flex:1}.youglish-trigger small{display:block;font-size:10px;font-weight:400;color:#969e89;margin-top:5px}.youglish-trigger>svg{width:16px;height:16px;color:#839575}.practice-hint{font-size:9px;color:#a2aa94;margin:21px 0 0;text-align:center;line-height:1.8}.practice-hint span{margin:0 8px}.card-stage.enter-next{animation:card-next .3s ease-out}.card-stage.enter-previous{animation:card-previous .3s ease-out}
.youglish-modal{width:min(760px,calc(100% - 32px));padding:28px;overflow-x:hidden}.sheet-handle{display:none}.youglish-modal .modal-heading{margin-bottom:19px}.youglish-modal h2{font-size:34px;overflow-wrap:anywhere}.heading-dot{color:var(--accent)}.video-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:15px;margin-bottom:14px;font-size:11px;color:#939b87}.accent-label{display:flex;gap:7px;align-items:center;font-size:10px}.accent-label select{border:1px solid #e1e4d7;border-radius:6px;padding:7px;color:#66795c;background:#f4f5ee;max-width:130px}.video-status{padding:14px 15px;border-radius:8px;background:#eff2e7;color:#7f8d73;font-size:11px;line-height:1.8;margin-bottom:15px}.video-status.error{background:#f7eadf;color:#a76b49}#widget-container{width:100%;min-width:200px}#widget-container:empty{min-height:150px;display:grid;place-items:center;border:1px dashed #e3e5da;border-radius:8px}#widget-container:empty:after{content:'YouGlish';font-family:var(--display);font-size:27px;letter-spacing:-1px;color:#c8cebc}#widget-container iframe{max-width:100%;min-height:200px}#retry-video{margin-top:14px}.video-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:20px;font-size:10px;color:#829073}.video-footer>a:last-child{display:flex;align-items:center;gap:5px}.video-footer svg{width:11px;height:11px}.video-note{font-size:10px;line-height:1.8;margin-top:20px;color:#8e9782}.privacy-note{font-size:8px;line-height:1.8;color:#a5ad99;margin-top:9px}.privacy-note a{text-decoration:underline;text-underline-offset:2px}
@keyframes modal-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes card-next{from{opacity:.2;transform:translateX(35px) rotate(3deg)}to{opacity:1;transform:none}}@keyframes card-previous{from{opacity:.2;transform:translateX(-35px) rotate(-3deg)}to{opacity:1;transform:none}}
@media(min-width:1500px){main{padding-top:60px}.practice-banner{min-height:340px}.card-art{right:75px;max-width:400px}.art-front{top:65px;left:45px}.art-back{top:50px;left:135px}.intro{margin-bottom:40px}.library{margin-top:45px}}
@media(max-width:1100px){.app-shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:35px 14px 20px}.brand{font-size:27px}.brand-mark{width:33px;height:35px;font-size:29px}.sidebar-bottom{padding-left:8px}.topbar{padding:0 30px}main{padding:36px 30px 0}.practice-banner{padding:29px}.card-art{right:15px;width:45%;transform:scale(.9);transform-origin:center right}.art-front{left:0}.art-back{left:55px}.spark-one{left:-25px}.art-label{left:16px}.list-header,.word-row{grid-template-columns:1fr 1.4fr .7fr 62px;gap:10px}.library-tools{flex-wrap:wrap}.filters{flex:initial;width:100%;order:2}.search-box{width:100%;order:1}.library-tools{gap:12px}.topbar-right{font-size:10px}.banner-copy h2{font-size:29px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:19px 22px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--line);background:var(--bg);justify-content:space-between}.brand{font-size:27px}.brand-mark{width:32px;height:34px}.workspace-label,.sidebar-bottom{display:none}nav{flex-direction:row;gap:5px}.nav-item{width:auto;font-size:0;padding:10px;gap:0}.nav-item svg{width:18px;height:18px}.nav-item>span,.nav-item .nav-arrow{display:none}.topbar{display:none}main{padding:31px 22px 0}.intro{display:block;position:relative;margin-bottom:26px}.intro>.button{position:absolute;top:0;right:0;min-height:30px;padding:5px 9px;font-size:10px;gap:5px}.intro>.button svg{width:12px;height:12px}.intro>.button{top:-3px}.eyebrow{font-size:8px;letter-spacing:1.3px}h1{font-size:34px;letter-spacing:-1.5px;line-height:1.28;margin-top:22px}.intro p{font-size:11px;line-height:1.9}.practice-banner{padding:25px 23px;min-height:285px;border-radius:13px}.banner-copy{width:65%}.banner-copy>.eyebrow{font-size:6.5px;letter-spacing:.8px}.banner-copy h2{font-size:27px;letter-spacing:-1px;margin-top:14px}.banner-copy p{font-size:10px}.banner-copy .button{margin-top:17px;min-height:38px;padding:9px 13px;font-size:11px;gap:20px}.banner-caption{font-size:8px;margin-top:9px}.card-art{width:45%;right:-3px;transform:scale(.67);transform-origin:center right;top:17px;bottom:0}.art-front{left:-68px;top:41px}.art-back{left:-20px;top:22px}.spark-one{left:-85px;top:-3px}.spark-two{bottom:44px;right:-10px}.art-orbit{inset:-10px -35px -5px -100px}.art-label{display:none}.library{margin-top:31px}.library-title h2{font-size:18px}.library-subtitle{display:none}.library-tools{margin:19px 0 13px;gap:12px}.filters{margin:0 -3px;width:calc(100% + 6px)}.filter{padding:8px 11px;font-size:10px}.search-box{padding:12px;border-radius:8px}.search-box input{font-size:12px}.search-box svg{width:16px;height:16px}.list-header{display:none}.word-list{border-top:1px solid var(--line)}.word-row{position:relative;grid-template-columns:1fr auto;gap:8px 10px;padding:18px 0;min-height:100px}.word-term{font-size:15px;grid-area:1/1}.word-definition{grid-area:2/1/3/3;font-size:11px;padding-right:44px;-webkit-line-clamp:2}.word-row>.pill{grid-area:1/2;margin-right:3px}.row-actions{position:absolute;right:-5px;bottom:12px}.row-actions .delete-button{display:none}.word-row:focus-within .delete-button{display:inline-flex}.row-actions .icon-button{width:29px}.library-footer{font-size:8px;line-height:1.8}.library-footer>span:last-child{max-width:150px;text-align:right}.page-footer{margin-top:15px;padding:20px 0}.footer-tag{font-size:8px;margin-left:8px}.page-footer button{font-size:9px;padding-right:0}.modal{padding:25px 22px}.modal h2{font-size:25px}.field input,.field select,textarea{font-size:16px}.modal-actions{margin-top:22px}.word-modal{max-height:calc(100dvh - 24px)}.practice-shell{padding:18px 22px 24px;justify-content:flex-start}.practice-header{padding-bottom:18px}.practice-header>span:nth-child(2){font-size:11px}.session-meta{margin:30px 0 22px}.card-stage{height:min(380px,46dvh)}.card-face{padding:45px 25px}.card-word{font-size:36px}.card-definition{font-size:20px;max-height:calc(46dvh - 145px)}.card-eyebrow{font-size:7px;letter-spacing:1.4px;top:26px}.card-bottom{font-size:9px;bottom:24px}.practice-controls{margin:12px 0 23px;gap:15px;font-size:10px}.round-button{width:39px;height:39px}.practice-hint{font-size:8px;margin-top:20px}.practice-hint span{margin:0 3px}.youglish-trigger{padding:13px 14px}.youglish-trigger>span:nth-child(2){font-size:11px}.youglish-trigger small{font-size:9px}.youglish-modal{margin:auto 0 0;width:100%;max-width:none;max-height:92dvh;border-radius:20px 20px 0 0;border-bottom:0;padding:15px 20px 26px}.sheet-handle{display:block;width:35px;height:4px;border-radius:10px;background:#d7dccd;margin:0 auto 24px}.youglish-modal h2{font-size:29px}.video-toolbar>span{font-size:9px;max-width:160px;line-height:1.8}.accent-label{font-size:9px}.accent-label select{font-size:12px}.video-footer{font-size:9px}.video-note{font-size:9px}.privacy-note{font-size:8px}.help-list{font-size:12px}}
@media(max-width:370px){main{padding-left:16px;padding-right:16px}h1{font-size:30px}.intro>.button{font-size:9px}.intro>.eyebrow{font-size:7px}.banner-copy{width:72%}.card-art{right:-15px;transform:scale(.53)}.banner-copy h2{font-size:26px}.practice-banner{padding:23px 18px;min-height:275px}.practice-hint{font-size:7px}.footer-tag{display:none}.modal-actions .button{padding-left:12px;padding-right:12px}}
.brand{font-size:27px;letter-spacing:-1.5px}.brand-mark{font-size:26px;letter-spacing:-3px;width:35px;height:37px}.brand-mark span{font-size:26px}.sidebar{padding-left:19px;padding-right:19px}.brand-dot{margin-left:-8px}.small-brand{font-size:25px}.small-brand .brand-dot{margin-left:-9px}
.video-word-summary{margin-top:13px;display:flex;align-items:flex-start;gap:10px}.video-word-summary .pill{margin-top:1px;flex-shrink:0}.video-word-summary p{font-size:12px;line-height:1.8;color:#89937e;white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;overflow-y:auto}.youglish-modal .modal-heading>div{min-width:0}
.autoplay-toggle{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer;position:relative;color:#6c7b61;font-size:11px;user-select:none}.autoplay-toggle input{position:absolute;left:0;top:7px;width:34px;height:24px;opacity:0;cursor:pointer}.toggle-track{display:block;position:relative;width:34px;height:20px;border-radius:20px;background:#d7dccd;transition:background .2s}.toggle-track:after{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fffefa;box-shadow:0 1px 3px #36452b20;transition:transform .2s}.autoplay-toggle input:checked+.toggle-track{background:#81956e}.autoplay-toggle input:checked+.toggle-track:after{transform:translateX(14px)}.autoplay-toggle input:focus-visible+.toggle-track{outline:3px solid var(--accent);outline-offset:4px}
@media(min-width:761px) and (max-width:1100px){.sidebar .brand{font-size:21px;gap:6px}.sidebar .brand-mark{width:28px;height:31px;font-size:23px}.sidebar .brand-dot{margin-left:-5px}}
/* YouGlish mounts its surrounding ad slots in our document, outside the video.
   Scope this rule to those slots; never crop or cover the YouTube player. */
#widget-container .plc_left,#widget-container .plc_right,#widget-container .plc_top,#widget-container .plc_bottom{display:none!important}
#widget-container .ygContent{min-width:0;width:100%}#widget-container .ygContentEx{width:100%}
/* Keep the complete native video and caption above the provider's promotion.
   Player dimensions and caption sizing match YouGlish's embedded layout. */
.player-viewport{position:relative;width:100%;container-type:inline-size;border-radius:10px;overflow:hidden;background:var(--paper)}
.player-viewport #widget-container{height:calc(200px + var(--native-caption-height,0px));height:calc(max(200px,42cqi + 25px) + var(--native-caption-height,0px));overflow:hidden;overflow:clip}
.native-caption-measure{position:absolute;left:0;top:0;visibility:hidden;pointer-events:none;width:100%;padding:5px;font-family:Arial,sans-serif;font-size:40px;line-height:1.42857143;text-align:center;white-space:normal}
.native-caption-measure mark{font:inherit;padding:0 8px 3px;border:1px solid transparent;border-radius:5px}
@container (max-width:700px){.native-caption-measure>div{font-size:.8em}.native-caption-measure mark{padding:0 4px 3px;border-radius:3px}}
@container (max-width:550px){.native-caption-measure>div{font-size:.6em}}
@container (max-width:480px){.native-caption-measure{line-height:25px}.native-caption-measure>div{font-size:.5em}}
@container (max-width:400px){.native-caption-measure>div{font-size:.4em}}
.player-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.player-nav{display:flex;align-items:center;gap:8px;border:1px solid #dfe3d6;background:#f0f2e8;border-radius:8px;min-height:44px;padding:10px 15px;font-size:12px}.player-nav svg{width:16px;height:16px}.player-nav:hover:not(:disabled){background:#e3e9d8}.player-middle{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}.player-middle>span{font-size:10px;color:#89977e}.player-middle>button{display:flex;align-items:center;gap:5px;min-height:32px;font-size:11px;color:#637b55}.player-middle svg{width:13px;height:13px}
@media(max-width:760px){.row-actions .delete-button{display:inline-flex}.word-definition{padding-right:68px}.player-nav{padding:9px 11px;gap:6px;font-size:11px}.player-middle>span{font-size:9px}.player-middle>button{font-size:10px}.player-controls{gap:8px}}
@media(max-width:760px) and (max-height:700px){.practice-shell{padding:12px 20px}.practice-header{padding-bottom:12px}.session-meta{margin:16px 0}.card-stage{height:34dvh;min-height:185px;margin-bottom:12px}.card-definition{font-size:16px;max-height:calc(34dvh - 115px)}.card-face{padding:45px 20px}.card-word{font-size:30px}.card-eyebrow{top:20px}.card-bottom{bottom:18px}.practice-controls{margin:8px 0 15px}.practice-hint{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sync-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin-bottom:26px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.sync-copy{display:flex;align-items:flex-start;gap:10px;min-width:0}.sync-copy>.status-dot{margin-top:6px}.sync-copy strong{font-size:12px;font-weight:600}.sync-copy p{font-size:11px;line-height:1.7;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.sync-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}.sync-actions .button{font-size:11px;padding:9px 12px}.sync-error{border-color:#dd684260}.sync-error .status-dot{background:var(--accent)}#account-name{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-right .button{min-height:38px;font-size:11px;padding:9px 12px}
@media(max-width:1100px){.sync-panel{align-items:flex-start;flex-direction:column}.sync-actions{width:100%}}
@media(max-width:760px){.topbar{display:flex;gap:10px;height:auto;min-height:68px;padding-top:12px;padding-bottom:12px}.topbar>span:first-child{display:none}.topbar-right{width:100%;justify-content:space-between}.sync-panel{padding:16px;margin-bottom:22px;gap:14px}.sync-actions .button{white-space:normal;min-height:44px}.sync-actions{gap:6px}.sync-copy p{font-size:11px}#account-name{max-width:45vw}}

.footer-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}
@media(max-width:760px){.footer-actions{gap:12px}.page-footer{gap:12px;flex-wrap:wrap}}

.login-screen{display:grid;place-items:center;min-height:100svh;width:100%;max-width:none;margin:0;padding:40px 22px;background:radial-gradient(ellipse at 16% 12%,#e9ecdf80,transparent 52%),radial-gradient(ellipse at 90% 90%,#f4e8de80,transparent 45%),var(--bg)}.login-card{width:min(100%,460px);padding:38px 38px 24px;border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:0 20px 80px #303b3407;text-align:center}.login-brand{margin:0 auto;font-size:27px}.login-illustration{display:flex;align-items:center;justify-content:center;gap:24px;margin:36px 0 24px;color:#9ca88c}.login-illustration>span:first-child{font-size:34px;transform:rotate(-12deg)}.login-illustration>span:last-child{font-size:24px;color:#d8a17e}.login-illustration svg{width:58px;height:58px;padding:12px;background:#f0f2e8;border-radius:17px;color:#798b6c;transform:rotate(8deg)}.login-card .eyebrow{justify-content:center;font-size:8px;color:#8d9585}.login-card h1{font-size:34px;line-height:1.25;letter-spacing:-1.4px;margin:17px 0 14px}.login-description{font-size:13px;line-height:1.8;color:var(--muted)}.google-sign-in{width:100%;margin-top:28px;min-height:50px;font-size:13px}.google-mark{display:grid;place-items:center;width:24px;height:24px;background:var(--paper);border-radius:50%;color:#4668ab;font-size:16px;font-weight:700}.login-status{font-size:11px;line-height:1.7;color:var(--muted);margin-top:15px}.login-account{font-size:12px;overflow-wrap:anywhere;margin-top:12px}.login-error{padding:12px 14px;border-radius:9px;background:#fcf0e9;color:#a54f31;font-size:12px;line-height:1.7;margin-top:16px}.login-actions{display:flex;justify-content:center;gap:8px;margin-top:12px}.login-actions:has(>button:not([hidden])){margin-bottom:14px}.login-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:22px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:#929789}.noscript-note{text-align:center;font-size:13px;padding:16px}
@media(max-width:480px){.login-screen{padding:24px 18px}.login-card{padding:30px 25px 22px;border-radius:18px}.login-card h1{font-size:30px}.login-illustration{margin-top:30px}.login-description{font-size:12px}}
