/* Home dashboard: original brand, existing learning tools. */
:root{--desk-header:76px;--desk-sidebar:260px;--tab-h:76px}
body{background:var(--parchment);background-image:none;padding-bottom:0}
button,input,select{font-family:'DM Sans',sans-serif}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.ui-icon{width:25px;height:25px;display:inline-block;flex:none;object-fit:contain;vertical-align:middle}
.hdr{height:var(--desk-header);padding:0 38px;border-bottom:1px solid var(--border);gap:20px}
.hdr::after{display:none}
.logo{font-size:25px;gap:0;white-space:nowrap;text-decoration:none;background:none;border:0;cursor:pointer}
.logo img{width:46px!important;height:46px!important;border-radius:13px!important;margin-right:14px}
.logo em{margin-left:6px}
.hdr-stats,.goal-mini{display:none}
.hdr-right{gap:12px}
.hdr-right .btn-icon{border:0;border-radius:8px;width:auto;min-width:44px;height:44px;padding:0 12px;gap:9px;color:var(--ink);font-size:14px;background:transparent}
.hdr-right .btn-icon:hover{background:var(--green-l);color:var(--green-d)}
.hdr-right .ui-icon{width:21px;height:21px}
#autoBtn{display:none}
#loginBtn{order:-1;border-right:1px solid var(--border);border-radius:0}
#loginBtn:after{content:attr(data-label);font-size:14px;max-width:150px;overflow:hidden;text-overflow:ellipsis}
#voiceBtn:after{content:'Settings';font-size:14px}
.voice-panel{left:auto;right:24px;width:min(560px,calc(100vw - 32px));border:1px solid var(--border);border-radius:12px;top:calc(100% + 8px);box-shadow:0 12px 32px var(--shadow)}
.tab-bar{top:var(--desk-header);bottom:0;right:auto;width:var(--desk-sidebar);padding:24px 14px;display:flex;flex-direction:column;gap:7px;background:transparent;border-right:1px solid var(--border)}
.tab-bar:before{display:none}
.tb{flex:none;min-height:53px;flex-direction:row;justify-content:flex-start;gap:20px;padding:12px 20px;font-size:16px;border-radius:9px;text-align:left;color:var(--muted)}
.tb .ico{font-size:initial;display:flex}
.tb .ui-icon{width:27px;height:27px}
.tb.on{color:var(--green-d);background:#e7ecdf;font-weight:700}
.tb.on .ui-icon{filter:invert(23%) sepia(94%) saturate(1166%) hue-rotate(90deg) brightness(75%) contrast(110%)}
.tb:hover{background:#ecebdf}
.tb .lock-dot{position:static;margin-left:auto;font-size:11px}
.desk-premium{border:0;border-top:1px solid var(--border);background:none;display:flex;gap:18px;text-align:left;padding:26px 20px;margin-top:12px;color:var(--muted);cursor:pointer;font-size:14px;line-height:1.4}
.desk-premium strong{font-size:14px;font-weight:500;color:var(--ink);display:block;margin-bottom:4px}
.desk-premium small{font-size:12px;line-height:1.5;display:block}
.desk-premium>.ui-icon{width:26px;height:26px;filter:invert(61%) sepia(93%) saturate(778%) hue-rotate(7deg) brightness(91%) contrast(101%)}
.desk-home{padding:34px 38px 48px;max-width:1400px;margin:0 auto}
.panel{margin-left:var(--desk-sidebar);min-width:0}
.desk-eyebrow{font-size:11px;font-weight:700;letter-spacing:.23em;color:var(--muted);margin:0 0 12px;text-transform:uppercase}
.desk-home h1{font-family:'Playfair Display',serif;font-size:clamp(30px,3.1vw,46px);letter-spacing:-.035em;line-height:1.18;margin:0 0 10px;font-weight:700}
.desk-lead{font-size:16px;line-height:1.7;color:var(--muted);margin:0}
.desk-start-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:34px;margin-top:37px}
.desk-section-heading{display:flex;align-items:center;gap:20px;margin:0 0 16px;font-family:'Playfair Display',serif;font-size:27px;font-weight:700;line-height:1.35}
.desk-section-heading:after{content:'';height:1px;background:var(--border);flex:1}
.desk-start-card{background:#fff;border:1px solid #e9e2d5;box-shadow:0 2px 6px rgba(26,17,8,.025);border-radius:14px;padding:25px 26px 24px}
.desk-badges{display:flex;align-items:center;gap:6px;margin-bottom:12px}
.desk-badge{font-size:11px;font-weight:700;color:var(--green-d);background:var(--green-l);border-radius:30px;padding:5px 9px;line-height:1.2}
.desk-start-card h3{font-family:'Playfair Display',serif;font-size:28px;font-weight:700;line-height:1.25;letter-spacing:-.025em;margin:0 0 6px}
.desk-start-card>p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.desk-words{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}
.desk-word{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #eee7dc;border-radius:11px;padding:14px 16px;background:#fcfbf8;min-width:0}
.desk-word strong{font-family:'Playfair Display',serif;font-size:25px;line-height:1.25;display:block;overflow-wrap:anywhere}
.desk-word small{font-size:14px;color:var(--muted);display:block;margin-top:3px}
.desk-audio{width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:none;border-radius:50%;border:1px solid var(--border);background:transparent;cursor:pointer}
.desk-audio:hover{background:var(--green-l);border-color:var(--green)}
.desk-audio .ui-icon{width:20px;height:20px}
.desk-primary{width:100%;border:0;border-radius:10px;background:var(--green);color:white;min-height:56px;padding:14px 20px;display:flex;align-items:center;justify-content:center;gap:20px;font-size:16px;font-weight:600;cursor:pointer;transition:background .15s}
.desk-primary:hover{background:var(--green-d)}
.desk-primary>.ui-icon{filter:invert(1);width:22px;height:22px}
.desk-goal{border-left:1px solid var(--border);text-align:center;padding:0 0 0 28px;align-self:stretch}
.desk-goal h2{font-family:'Playfair Display',serif;font-size:27px;line-height:1.35;margin:0}
.desk-goal-meter{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:200px;height:200px;border:14px solid #eae4d3;border-radius:50%;margin:32px auto 24px}
.desk-goal-meter:before{content:'';position:absolute;width:15px;height:15px;top:-14px;left:calc(50% - 7.5px);border-radius:50%;background:var(--gold-bright)}
.desk-goal-meter.complete{border-color:var(--green)}
.desk-goal-value{font-family:'Playfair Display',serif;font-size:37px;line-height:1.1;letter-spacing:-.025em}
.desk-goal-meter small{font-size:16px;color:var(--muted);margin-top:7px}
.desk-goal p{font-size:15px;color:var(--muted);line-height:1.6}
.desk-goal .desk-goal-note{font-size:13px;color:#766954;margin-top:8px}
.desk-goal progress{width:80%;height:5px;accent-color:var(--green);margin-top:13px}
.desk-explore{margin-top:30px}
.desk-explore-list{border:1px solid #e9e2d5;background:#fff;border-radius:13px;overflow:hidden}
.desk-explore-row{border:0;background:none;width:100%;min-height:78px;padding:15px 24px;display:flex;align-items:center;gap:24px;text-align:left;cursor:pointer;color:var(--ink)}
.desk-explore-row+.desk-explore-row{border-top:1px solid #e9e2d5}
.desk-explore-row:hover{background:#f6f7ef}
.desk-explore-row>.ui-icon:first-child{width:30px;height:30px}
.desk-explore-copy{flex:1;min-width:0}
.desk-explore-copy strong{font-size:15px;line-height:1.4;display:block;font-weight:600}
.desk-explore-copy small{font-size:13px;line-height:1.5;color:var(--muted);display:block;margin-top:1px}
.desk-access{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;white-space:nowrap}
.desk-access .ui-icon{width:16px;height:16px}
.desk-explore-row>.ui-icon:last-child{width:19px;height:19px;opacity:.7}
.desk-footnote{font-size:12px;line-height:1.6;color:var(--muted);margin:18px 0 0}
.desk-footnote a{color:var(--green);text-underline-offset:3px}
.desk-topic-toggle{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--ink);padding:10px 14px;cursor:pointer;min-height:44px;margin:14px 20px 0}
.desk-topic-toggle .ui-icon{width:18px;height:18px}
.desk-topic-controls[hidden]{display:none!important}
#tab-flashcards .main{max-width:1050px;margin:auto;padding-top:24px}
#tab-flashcards .scene{max-width:600px}
#tab-flashcards .controls{padding:14px 20px}
#tab-flashcards .pill{min-height:36px}
#tab-flashcards .add-card-fab{position:static;display:block;margin:14px auto 0;font-size:13px;box-shadow:none;background:transparent;color:var(--green);border:1px solid var(--border)}
#tab-flashcards .card-pt{font-size:34px}
.pw-sheet:not(.open),.ac-sheet:not(.open){visibility:hidden}
.pw-sheet.open,.ac-sheet.open{visibility:visible}
.pw-sheet{max-width:760px;left:50%;right:auto;width:calc(100% - 32px);border-radius:18px 18px 0 0;transform:translate(-50%,110%)}
.pw-sheet.open{transform:translate(-50%,0)}
.pw-feat{font-size:14px}
.install-prompt{max-width:420px}
[data-active-tab='home'] #addCardFab{display:none}
@media(min-width:1550px){.desk-home{padding-left:60px;padding-right:60px}.desk-start-grid{grid-template-columns:minmax(0,1fr) 320px;gap:42px}.desk-home h1{font-size:48px}}
@media(max-width:1150px){:root{--desk-sidebar:215px}.hdr{padding:0 24px}.logo{font-size:23px}.desk-home{padding:30px 28px 40px}.desk-start-grid{grid-template-columns:minmax(0,1fr) 220px;gap:24px}.desk-goal{padding-left:22px}.desk-goal-meter{width:170px;height:170px}.desk-word{padding:12px}.desk-words{gap:10px}.desk-audio{width:36px;height:36px}.tb{padding-left:16px;gap:15px}}
@media(max-width:900px){.desk-start-grid{grid-template-columns:minmax(0,1fr)}.desk-goal{border-left:0;border-top:1px solid var(--border);display:grid;grid-template-columns:auto 1fr;column-gap:20px;text-align:left;padding:20px 0 0}.desk-goal h2{grid-column:2;align-self:end;font-size:22px}.desk-goal-meter{grid-column:1;grid-row:1/5;width:110px;height:110px;border-width:8px;margin:0}.desk-goal-meter:before{top:-8px;width:10px;height:10px;left:calc(50% - 5px)}.desk-goal-value{font-size:26px}.desk-goal-meter small{font-size:12px;margin-top:3px}.desk-goal p{grid-column:2;font-size:13px}.desk-goal .desk-goal-note{margin-top:2px}.desk-goal progress{grid-column:2;width:100%;margin-top:6px}.desk-home h1{font-size:34px}}
@media(max-width:700px){:root{--desk-header:68px;--desk-sidebar:0px;--tab-h:70px}body{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom))}.hdr{padding:0 16px;gap:8px}.logo{font-size:18px;line-height:1.1;white-space:normal;flex-wrap:wrap;max-width:240px}.logo img{width:35px!important;height:35px!important;border-radius:9px!important;margin-right:9px}.logo em{margin-left:4px}.hdr-right{gap:0}.hdr-right .btn-icon{width:38px;min-width:38px;padding:7px;height:40px}.hdr-right .btn-icon:after{display:none!important}#loginBtn{border:0}.prem-badge{display:none!important}.tab-bar{top:auto;bottom:0;left:0;right:0;width:auto;height:calc(var(--tab-h) + env(safe-area-inset-bottom));flex-direction:row;padding:6px 5px calc(6px + env(safe-area-inset-bottom));gap:0;background:white;border-right:0;border-top:1px solid var(--border);justify-content:space-around}.tb{flex:1;min-width:0;min-height:54px;gap:5px;flex-direction:column;justify-content:center;font-size:10px;padding:6px 1px;border-radius:8px}.tb .ui-icon{width:23px;height:23px}.tb .lock-dot{position:absolute;top:4px;right:9px;font-size:8px;margin:0}.tb.on{background:#edf3e7}.desk-premium{display:none}.desk-home{padding:26px 20px 30px}.desk-eyebrow{font-size:9px;letter-spacing:.2em;margin-bottom:11px}.desk-home h1{font-size:32px;line-height:1.18;max-width:340px;margin-bottom:12px}.desk-lead{font-size:14px;line-height:1.65}.desk-start-grid{margin-top:25px;gap:24px}.desk-section-heading{font-size:23px;gap:15px;margin-bottom:12px}.desk-start-card{padding:20px 18px;border-radius:12px}.desk-start-card h3{font-size:25px}.desk-start-card>p{font-size:13px}.desk-words{margin:18px 0;gap:9px}.desk-word{padding:11px 10px;gap:5px;flex-wrap:wrap;position:relative}.desk-word strong{font-size:22px}.desk-word small{font-size:12px}.desk-audio{width:32px;height:32px;margin-left:auto}.desk-audio .ui-icon{width:17px;height:17px}.desk-primary{font-size:15px;min-height:52px;gap:14px}.desk-explore{margin-top:25px}.desk-explore-row{padding:16px 15px;gap:14px;min-height:82px}.desk-explore-row>.ui-icon:first-child{width:25px;height:25px}.desk-explore-copy strong{font-size:14px}.desk-explore-copy small{font-size:12px}.desk-access{font-size:10px;gap:4px}.desk-access .ui-icon{width:13px;height:13px}.desk-explore-row>.ui-icon:last-child{width:15px;height:15px}.desk-footnote{font-size:11px}.desk-goal{column-gap:16px}.desk-goal h2{font-size:23px}.voice-panel{right:12px}.pw-sheet{width:100%;border-radius:16px 16px 0 0}.pw-sheet h2{font-size:27px}#tab-flashcards .controls{padding:12px;gap:6px}#tab-flashcards .pill{min-height:38px;font-size:12px;padding:7px 11px}#tab-flashcards .clabel{font-size:10px}#tab-flashcards .scene{max-width:560px}#tab-flashcards .card{aspect-ratio:1.15}#tab-flashcards .main{padding:18px 16px 24px}#tab-flashcards .card-pt{font-size:30px}.free-banner{font-size:12px;line-height:1.5;padding:12px}.btn-card{width:36px;height:36px}.desk-topic-toggle{margin:12px 12px 0}.shortcuts{display:none}.prog-main,.gram-main,.exam-main{padding-left:16px;padding-right:16px}.install-prompt{max-width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
[hidden]{display:none!important}
.desk-support-link{border:0;padding:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:var(--green);font-size:inherit;cursor:pointer}
@media(max-width:700px){.desk-explore-row{flex-wrap:wrap}.desk-explore-copy{flex-basis:calc(100% - 72px)}.desk-access{margin-left:39px;margin-top:-9px;order:2}.desk-explore-row>.ui-icon:last-child{margin-left:auto}}
.voice-panel #autoBtn{display:flex;width:auto;height:42px;padding:10px 14px;border-radius:8px;gap:8px;font-size:14px}
.voice-panel #autoBtn:after{content:'Auto-pronounce'}
.tb .lock-dot .ui-icon{width:13px;height:13px;vertical-align:middle}
#voicePanel:not(.open){visibility:hidden}
#voicePanel.open{visibility:visible}
.logo .desk-brand{display:inline-block}
.logo{flex-wrap:nowrap}
.desk-word small{overflow-wrap:anywhere}
@media(max-width:360px){.logo .desk-brand{display:flex;flex-direction:column;gap:2px;font-size:16px}.logo em{margin-left:0}.logo img{width:32px!important;height:32px!important}.desk-home h1{font-size:30px}.desk-section-heading{font-size:22px}}
/* Premium dialog shares the dashboard's typography and surfaces. */
#pwSheet.premium-dialog{top:50%;bottom:auto;left:50%;width:min(760px,calc(100vw - 40px));max-height:calc(100dvh - 48px);border:1px solid var(--border);border-radius:20px;transform:translate(-50%,-48%);opacity:0;box-shadow:0 24px 80px rgba(26,17,8,.2);padding:0;transition:opacity .18s,transform .18s;overflow-y:auto}
#pwSheet.premium-dialog.open{transform:translate(-50%,-50%);opacity:1}
#pwSheet .pw-inner{padding:34px 36px 25px}
#pwSheet .pw-close{position:absolute;top:17px;right:17px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f8f4ea;border:0;z-index:2}
#pwSheet .pw-close .ui-icon{width:20px;height:20px}
.premium-brand{display:flex;align-items:center;gap:10px;padding-right:30px;margin-bottom:20px;font-size:10px;font-weight:600;letter-spacing:.12em;color:var(--green)}
.premium-brand>img{width:34px;height:34px;border-radius:9px}.premium-brand strong{display:block;color:var(--red);font-size:10px;margin-top:3px}
#pwSheet .pw-title{font-family:'Playfair Display',serif;color:var(--ink);font-size:35px;line-height:1.16;letter-spacing:-.025em;margin:0 0 12px}
#pwSheet .pw-sub{color:var(--muted);font-size:14px;line-height:1.65;max-width:580px;margin:0}
.premium-features{display:grid;grid-template-columns:1fr 1fr;gap:20px 26px;margin:25px 0 28px;padding:22px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.premium-features>div{display:flex;gap:12px;align-items:flex-start}.premium-features .ui-icon{width:24px;height:24px;margin-top:2px}
.premium-features strong{display:block;font-size:13px;line-height:1.4;font-weight:600}.premium-features small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:3px}
#pwSheet .plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 18px}
#pwSheet .plan{display:flex;flex-direction:column;align-items:flex-start;position:relative;text-align:left;background:var(--parchment);border:1.5px solid var(--border);border-radius:12px;padding:18px;cursor:pointer;font-family:'DM Sans',sans-serif;color:var(--ink);min-height:130px}
#pwSheet .plan.on{border:2px solid var(--green);background:#edf5e9;padding:17.5px;box-shadow:none}
#pwSheet .plan-name{font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink);margin-bottom:8px}
#pwSheet .plan-price{font-family:'Playfair Display',serif;font-size:31px;line-height:1.15;color:var(--ink);font-weight:700}.plan-price>span{font-family:'DM Sans',sans-serif;font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}
#pwSheet .plan-period{font-size:11px;color:var(--muted);line-height:1.5;margin-top:8px}
#pwSheet .plan-badge{position:absolute;top:12px;right:12px;left:auto;transform:none;background:var(--green);color:white;font-size:9px;letter-spacing:0;text-transform:none;padding:4px 7px;border-radius:20px}
#pwSheet .btn-pw{min-height:54px;background:var(--green);color:white;box-shadow:none;font-size:15px;border-radius:10px;margin:0;width:100%}
#pwSheet .pw-trial{font-size:11px;color:var(--muted);line-height:1.6;text-align:center;margin:10px 0}
#pwSheet .pw-restore{border:0;background:transparent;display:block;margin:10px auto;color:var(--green);font-size:12px;min-height:35px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#pwSheet .pw-legal{color:var(--muted);font-size:10px;line-height:1.6;text-align:center;margin:8px 0 0}#pwSheet .pw-legal a{color:var(--green)}
/* Original sentence practice collection. */
.sentence-main{max-width:1180px}.sentence-toolbar{display:flex;gap:18px;align-items:end;margin-top:28px;flex-wrap:wrap}.sentence-toolbar label{display:block;font-size:11px;color:var(--muted);font-weight:600;margin-bottom:7px}.sentence-toolbar select{background:white;border:1px solid var(--border);border-radius:9px;padding:11px 34px 11px 13px;font-size:13px;color:var(--ink);min-height:44px;max-width:100%}
.sentence-modes{display:flex;margin-left:auto;background:#ebe7dc;padding:4px;border-radius:10px}.sentence-modes button,.sentence-exercise-tabs button{border:0;border-radius:7px;padding:10px 18px;background:transparent;color:var(--muted);cursor:pointer;font-size:13px;min-height:40px}.sentence-modes [aria-pressed=true],.sentence-exercise-tabs [aria-pressed=true]{background:white;color:var(--green);box-shadow:0 1px 4px rgba(26,17,8,.07);font-weight:600}
.sentence-summary{font-size:12px;color:var(--muted);margin:18px 0}
.sentence-card{background:white;border:1px solid #e9e2d5;border-radius:15px;padding:28px 32px;max-width:850px}
.sentence-card-top{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted);margin-bottom:27px}.sentence-portuguese,.sentence-prompt{font-family:'Playfair Display',serif;font-size:clamp(25px,3vw,36px);line-height:1.4;margin:16px 0 24px;color:var(--ink)}
.sentence-audio-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.sentence-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;min-height:44px;border:1px solid var(--green);border-radius:9px;color:white;background:var(--green);cursor:pointer;font-size:13px;font-weight:500}.sentence-action .ui-icon{width:18px;height:18px}.sentence-action.outline{background:transparent;color:var(--green)}.sentence-action:hover{background:var(--green-d);color:white}.sentence-action:disabled{opacity:.45;cursor:default}.sentence-text-button{border:0;background:none;padding:8px 0;color:var(--green);font-size:13px;text-decoration:underline;text-underline-offset:4px;cursor:pointer;min-height:40px}
.sentence-translation{color:var(--muted);font-size:15px;line-height:1.7;margin:12px 0}.sentence-reply{margin-top:22px;padding-top:22px;border-top:1px solid var(--border)}.sentence-reply>p[lang]{font-family:'Playfair Display',serif;font-size:24px;line-height:1.5}.sentence-reply .desk-eyebrow{font-size:9px}
.sentence-note{padding:18px 0;margin:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.sentence-note strong{font-size:12px;font-weight:600}.sentence-note p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:5px}.sentence-pagination{display:flex;justify-content:space-between;gap:12px;max-width:850px;margin-top:18px}
.sentence-exercise-tabs{display:flex;gap:5px;background:var(--parchment);border-radius:9px;padding:4px;margin-bottom:24px;flex-wrap:wrap}.sentence-question{font-size:14px;font-weight:600;margin:16px 0}.sentence-options{display:grid;gap:10px;margin:18px 0}.sentence-options button{padding:15px 17px;text-align:left;background:var(--parchment);border:1px solid var(--border);border-radius:9px;color:var(--ink);font-size:14px;line-height:1.6;cursor:pointer}.sentence-options button:hover{border-color:var(--green);background:var(--green-l)}
.sentence-feedback{font-size:14px;line-height:1.7;padding:0;margin:18px 0}.sentence-feedback.success{border-left:3px solid var(--green);padding:12px 15px;background:var(--green-l);color:var(--green-d)}.sentence-feedback.retry{border-left:3px solid var(--red);padding:12px 15px;background:var(--red-l);color:var(--ink)}
.sentence-answer-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px}#sentenceGapForm label{font-size:12px;font-weight:600}#sentenceGapAnswer{min-height:45px;min-width:180px;flex:1;border:1px solid var(--border);border-radius:8px;padding:12px;font-size:15px}.sentence-token-bank{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.sentence-token-bank button{border:1px solid var(--border);background:var(--parchment);border-radius:8px;padding:10px 13px;min-height:44px;font-size:14px;cursor:pointer}.sentence-token-bank button:disabled{opacity:.3}.sentence-order-answer{min-height:80px;border:1px dashed var(--border);border-radius:9px;padding:18px;font-size:17px;line-height:1.7;background:#fcfbf8}
.sentence-progress-summary{padding:20px;background:white;border:1px solid var(--border);border-radius:11px;font-size:14px;line-height:1.8}.sentence-progress-summary span{padding:0 8px}.sentence-progress-summary button{display:block}
#tab-progress .prog-main{max-width:1050px;padding:32px 38px 50px;margin:auto}#tab-progress .prog-hero{background:white;border:1px solid var(--border);box-shadow:none;color:var(--ink)}#tab-progress .prog-hero-title{color:var(--ink);font-family:'Playfair Display',serif;font-size:32px}#tab-progress .prog-hero-sub{color:var(--muted);line-height:1.6}#tab-progress .sec-title{font-family:'Playfair Display',serif;font-size:21px;text-transform:none;letter-spacing:0;color:var(--ink);margin-top:26px}#tab-progress .streak-val{font-family:'Playfair Display',serif}#tab-progress .reco-card{box-shadow:none}#tab-progress .prog-hero-level{color:var(--green)!important}
@media(max-width:700px){#pwSheet.premium-dialog{top:auto;bottom:0;width:100%;max-height:calc(100dvh - 16px);border-radius:18px 18px 0 0;transform:translate(-50%,10px)}#pwSheet.premium-dialog.open{transform:translate(-50%,0)}#pwSheet .pw-inner{padding:28px 21px 22px}#pwSheet .pw-title{font-size:30px}#pwSheet .pw-sub{font-size:13px}.premium-features{gap:17px 14px;margin:20px 0;padding:18px 0}.premium-features strong{font-size:12px}.premium-features small{font-size:11px}.premium-features .ui-icon{width:21px;height:21px}.premium-features>div{gap:9px}#pwSheet .plan{padding:14px;min-height:133px}#pwSheet .plan.on{padding:13.5px}#pwSheet .plan-price{font-size:27px}#pwSheet .plan-price>span{font-size:10px;margin-left:3px}#pwSheet .plan-badge{font-size:8px;top:10px;right:8px}#pwSheet .plan-grid{gap:10px}#pwSheet .plan-period{font-size:10px}#pwSheet .btn-pw{font-size:14px}.tb{font-size:9px}.tb .ui-icon{width:21px;height:21px}.tb .lock-dot{right:3px}.sentence-toolbar{gap:12px;margin-top:22px}.sentence-toolbar>div:not(.sentence-modes){flex:1;min-width:120px}.sentence-toolbar select{width:100%;font-size:12px;padding-right:20px}.sentence-modes{margin-left:0;width:100%;justify-content:center}.sentence-modes button{flex:1}.sentence-card{padding:21px 18px}.sentence-portuguese,.sentence-prompt{font-size:27px}.sentence-card-top{font-size:10px;margin-bottom:22px}.sentence-exercise-tabs{gap:2px}.sentence-exercise-tabs button{padding:9px 8px;font-size:12px;flex:1}.sentence-options button{font-size:13px}.sentence-note p{font-size:13px}.sentence-answer-row input{width:100%;min-width:0}#tab-progress .prog-main{padding:25px 18px 35px}#tab-progress .prog-hero-title{font-size:28px}}
@media(max-width:360px){#pwSheet .plan-grid{grid-template-columns:1fr}#pwSheet .plan{min-height:112px}.premium-features{grid-template-columns:1fr}.sentence-toolbar>div:not(.sentence-modes){min-width:100%}.sentence-card{padding:20px 15px}}
/* Illustrated sentence collection: artwork stays text-free; all controls are real UI. */
#tab-sentences .sentence-card:has(.illustrated){max-width:none}
#sentenceLearnPanel.illustrated:not([hidden]){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:30px;align-items:start}
.sentence-scene{min-width:0}.sentence-scene[hidden]{display:none}.sentence-scene-image{position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:12px;background:#f0ecdf}
.sentence-scene-image>img{display:block;width:100%;height:100%;object-fit:contain}
.sentence-hotspot{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border:2px solid white;border-radius:50%;background:#006600;color:white;box-shadow:0 2px 12px #0005;cursor:pointer;font:600 15px 'DM Sans',sans-serif;outline-offset:3px}
.sentence-hotspot:hover,.sentence-hotspot[aria-pressed=true]{background:#C8102E}.sentence-hotspot:focus-visible{outline:3px solid #C8A000}
.sentence-scene-hint{font-size:12px;color:var(--muted);line-height:1.5;margin:12px 0 10px}.sentence-scene-detail{border:1px solid var(--border);border-radius:10px;background:var(--parchment);padding:12px 14px;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
.sentence-scene-detail strong{display:block;font-family:'Playfair Display',serif;font-size:22px;color:var(--ink);margin-bottom:3px}.sentence-scene-detail .sentence-action{padding:9px 12px}.sentence-scene-fallback{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.sentence-lesson-copy{min-width:0}.illustrated .sentence-portuguese{margin-top:0;font-size:clamp(25px,2.7vw,34px)}
.sentence-scene-detail>span{line-height:1.6}.sentence-card-top{flex-wrap:wrap}.sentence-exercise-tabs button[hidden]{display:none}
#sentenceSceneExercise{max-width:720px}#sentenceSceneExercise .sentence-scene-detail{display:none}
@media(max-width:1100px){#sentenceLearnPanel.illustrated:not([hidden]){grid-template-columns:1fr;gap:24px}}
@media(max-width:700px){.sentence-hotspot{width:44px;height:44px;font-size:13px}.sentence-scene-detail strong{font-size:21px}.sentence-card:has(.illustrated){padding:18px 15px}.illustrated .sentence-portuguese{font-size:27px}.sentence-scene-detail{padding:10px;gap:8px}.sentence-scene-hint{font-size:11px}}
.sentence-study-status{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0}.sentence-study-status .sentence-summary{margin:0}.sentence-jump{min-width:0;max-width:330px}.sentence-jump label{font-size:11px;color:var(--muted);margin-right:8px}.sentence-jump select{max-width:100%;width:230px;min-height:40px;border:1px solid var(--border);border-radius:8px;background:white;color:var(--ink);padding:8px;font-size:12px}.sentence-pagination{max-width:none}@media(max-width:700px){.sentence-jump{width:100%;max-width:100%}.sentence-jump label{display:block;margin-bottom:5px}.sentence-jump select{width:100%}}

.sentence-scene-detail[hidden]{display:none}
/* A small visible dot and an independent 44px touch target keep artwork clear. */
.sentence-marker-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.sentence-marker-lines line{vector-effect:non-scaling-stroke;stroke-linecap:round}
.sentence-marker-line-underlay{stroke:#fff;stroke-width:3;opacity:.9}.sentence-marker-line{stroke:#006600;stroke-width:1.2}
.sentence-direction-underlay{stroke:#fff;stroke-width:9}.sentence-direction-arrow{stroke:#006600;stroke-width:4}
.sentence-hotspot,.sentence-hotspot:hover,.sentence-hotspot[aria-pressed=true]{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#fff;z-index:1}
.sentence-marker-dot{display:grid;place-items:center;width:32px;height:32px;border:2px solid #fff;border-radius:50%;background:#006600;color:#fff;font:600 14px 'DM Sans',sans-serif;box-shadow:0 1px 4px #0004;pointer-events:none}
.sentence-hotspot:hover .sentence-marker-dot,.sentence-hotspot[aria-pressed=true] .sentence-marker-dot{background:#C8102E}
.sentence-scene-words{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.sentence-scene-words[hidden]{display:none}
.sentence-scene-words button{min-height:44px;padding:8px 11px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--green-d);font:500 12px 'DM Sans',sans-serif;cursor:pointer}
.sentence-scene-words button[aria-pressed=true]{background:var(--green-l);border-color:var(--green)}
.sentence-direction-cue{margin:10px 0;color:var(--green-d);font-weight:600;text-align:right;font-size:18px}
@media(max-width:700px){.sentence-marker-dot{width:16px;height:16px;border-width:1px;font-size:10px;box-shadow:0 1px 3px #0004}.sentence-marker-line-underlay{stroke-width:2.5}.sentence-marker-line{stroke-width:1}.sentence-direction-cue{font-size:16px}}


/* Focused redesign of the existing footer Progress page. */
#tab-progress .prog-main{max-width:1120px;padding:30px 34px 92px;margin:0 auto;display:grid;gap:22px}
#tab-progress .prog-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);align-items:center;gap:28px;padding:28px 30px;background:linear-gradient(135deg,#fff 0%,#f8f6ee 100%);border:1px solid #e9e2d5;border-radius:20px;box-shadow:0 8px 24px #2b24160a}
#tab-progress .prog-kicker{margin:0 0 7px;color:var(--green);font-size:11px;font-weight:800;letter-spacing:.13em}
#tab-progress .prog-hero-title{margin:0;color:var(--ink);font:600 32px 'Playfair Display',serif}
#tab-progress .prog-hero-sub{margin:7px 0 0;color:var(--muted);line-height:1.55}
#tab-progress .prog-hero-level{margin-top:10px;color:var(--green);font-size:12px;font-weight:700}
#tab-progress .prog-overall{padding:17px 18px;background:#fff;border:1px solid #e9e2d5;border-radius:14px}
#tab-progress .prog-overall-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}
#tab-progress .prog-overall-top strong{color:var(--green);font:600 28px 'Playfair Display',serif}
#tab-progress .prog-overall-track{height:9px;margin:10px 0 8px;background:#eee9df;border-radius:99px;overflow:hidden}
#tab-progress .prog-overall-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#006600,#b18b36);border-radius:inherit;transition:width .3s}
#tab-progress .prog-overall p{margin:0;color:var(--muted);font-size:12px}
#tab-progress .prog-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
#tab-progress .streak-card{min-width:0;padding:17px 18px;background:#fff;border:1px solid #e9e2d5;border-radius:14px;text-align:left}
#tab-progress .streak-val{color:var(--ink);font:600 26px 'Playfair Display',serif}
#tab-progress .streak-lbl{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35}
#tab-progress .prog-section{min-width:0}
#tab-progress .prog-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
#tab-progress .prog-section-heading h2{margin:0;color:var(--ink);font:600 22px 'Playfair Display',serif}
#tab-progress .prog-section-heading p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
#tab-progress .course-progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0}
#tab-progress .course-progress-card{min-width:0;padding:18px;background:#fff;border:1px solid #e9e2d5;border-radius:15px}
#tab-progress .course-progress-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#tab-progress .course-progress-card h3{margin:0;color:var(--ink);font:600 20px 'Playfair Display',serif}
#tab-progress .course-progress-card-head strong{color:var(--green);font-size:13px;white-space:nowrap}
#tab-progress .course-progress-card>p{margin:4px 0 14px;color:var(--muted);font-size:12px}
#tab-progress .course-progress-levels{display:grid;gap:11px}
#tab-progress .course-progress-level-label{display:flex;justify-content:space-between;margin-bottom:4px;color:var(--muted);font-size:12px}
#tab-progress .course-progress-level-label span:first-child{color:var(--ink);font-weight:700}
#tab-progress .course-progress-track{height:6px;background:#eee9df;border-radius:99px;overflow:hidden}
#tab-progress .course-progress-track span{display:block;height:100%;background:#006600;border-radius:inherit;transition:width .25s}
#tab-progress .course-progress-card:nth-child(2) .course-progress-track span{background:#c8102e}
#tab-progress .course-progress-card:nth-child(3) .course-progress-track span{background:#b18b36}
#tab-progress .prog-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#tab-progress .reco-card{min-height:82px;padding:16px 18px;background:#fff;border:1px solid #e9e2d5;border-radius:14px;box-shadow:none}
#tab-progress .prog-routine-grid,#tab-progress .prog-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#tab-progress .prog-panel{min-width:0;padding:19px;background:#fff;border:1px solid #e9e2d5;border-radius:15px}
#tab-progress .prog-panel .prog-section-heading{margin-bottom:14px}
#tab-progress .daily-goal-box{display:flex;align-items:center;gap:14px;margin:0;padding:0;background:transparent;border:0}
#tab-progress .dg-info{flex:1;min-width:0}
#tab-progress .dg-label{color:var(--ink);font-size:13px;font-weight:700}
#tab-progress .dg-bar-wrap{height:7px;margin:9px 0 6px;background:#eee9df;border-radius:99px}
#tab-progress .dg-bar{height:100%;background:var(--green);border-radius:inherit;transition:width .25s}
#tab-progress .dg-txt{color:var(--muted);font-size:12px}
#tab-progress .goal-select-label{color:var(--muted);font-size:11px}
#tab-progress #goalSel{border:1px solid #ded7ca;border-radius:8px;padding:8px;background:#fff;color:var(--ink);font:inherit}
#tab-progress .live-indicator{padding:4px 8px;border-radius:99px;background:#edf5ed;color:var(--green);font-size:10px;font-weight:800;letter-spacing:.08em}
#tab-progress .live-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;background:transparent;border:0}
#tab-progress .live-vals{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px}
#tab-progress .live-vals strong{color:var(--ink)}
#tab-progress .live-correct{color:var(--green)}
#tab-progress .live-wrong{color:var(--red)}
#tab-progress .live-goal-badge{padding:6px 9px;border-radius:8px;background:#f5f2ea;color:var(--ink);font-size:11px;white-space:nowrap}
#tab-progress .prog-levels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#tab-progress .pl-card{min-width:0;padding:11px 10px;background:#fbfaf7;border:1px solid #eee9df;border-radius:10px}
#tab-progress .prog-review-block{padding:0 0 12px}
#tab-progress .prog-review-block h3{margin:0 0 7px;color:var(--ink);font-size:13px}
#tab-progress .prog-review-actions,#tab-progress .prog-tools-actions{display:flex;flex-wrap:wrap;gap:8px}
#tab-progress .prog-review-actions button,#tab-progress .prog-tools-actions>*{min-height:40px}
#tab-progress .prog-history{padding:19px}
#tab-progress .prog-tools{padding:14px 17px;background:#fff;border:1px solid #e9e2d5;border-radius:13px}
#tab-progress .prog-tools summary{color:var(--ink);font-weight:700;cursor:pointer}
#tab-progress .prog-tools-content{padding-top:14px}
#tab-progress .prog-tools-content p{color:var(--muted);font-size:12px;line-height:1.5}
#tab-progress .prog-tools-actions{margin:10px 0}
@media(max-width:800px){#tab-progress .prog-main{padding:22px 18px 92px}#tab-progress .prog-hero{grid-template-columns:1fr;padding:22px;gap:18px}#tab-progress .prog-routine-grid,#tab-progress .prog-detail-grid{grid-template-columns:1fr}#tab-progress .course-progress-grid{grid-template-columns:1fr}#tab-progress .course-progress-levels{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}}
@media(max-width:560px){#tab-progress .prog-main{gap:16px;padding:16px 13px calc(88px + env(safe-area-inset-bottom))}#tab-progress .prog-hero{padding:19px 17px;border-radius:16px}#tab-progress .prog-hero-title{font-size:27px}#tab-progress .prog-stats{gap:7px}#tab-progress .streak-card{padding:12px 10px}#tab-progress .streak-val{font-size:22px}#tab-progress .streak-lbl{font-size:10px}#tab-progress .prog-next-grid{grid-template-columns:1fr}#tab-progress .prog-panel{padding:15px}#tab-progress .prog-section-heading h2{font-size:20px}#tab-progress .daily-goal-box{flex-wrap:wrap}#tab-progress .goal-select-label{margin-left:auto}#tab-progress .live-bar{align-items:flex-start;flex-direction:column}#tab-progress .prog-levels{grid-template-columns:repeat(2,minmax(0,1fr))}}

#tab-progress .course-progress-locked{width:100%;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;text-align:left;background:#faf8f3;border:1px solid #eee9df;border-radius:9px;color:var(--muted);font:500 12px 'DM Sans',sans-serif;cursor:pointer}#tab-progress .course-progress-locked:hover{border-color:#c8a764;background:#fbf7eb;color:var(--ink)}#tab-progress .course-progress-locked span:first-child{font-weight:700;color:var(--ink)}

/* Progress page: keep the primary study action focused and spacious. */
.prog-next-section .prog-next-grid{grid-template-columns:minmax(0,1fr);max-width:680px}
.prog-next-section .reco-card{min-height:76px}
#tab-progress .prog-routine-panel{display:grid;gap:12px}
#tab-progress .prog-routine-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#tab-progress .routine-block{min-width:0;padding:14px 16px;background:#fbfaf7;border:1px solid #eee9df;border-radius:12px}
#tab-progress .routine-block h3{margin:0 0 10px;color:var(--ink);font:600 15px 'Playfair Display',serif}
#tab-progress .routine-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
#tab-progress .routine-heading h3{margin:0}
#tab-progress .routine-block .daily-goal-box{display:flex}
#tab-progress .routine-block .live-bar{display:flex;align-items:center;justify-content:space-between}
@media(max-width:700px){#tab-progress .prog-routine-grid{grid-template-columns:1fr}}
@media(max-width:700px){.prog-next-section .prog-next-grid{max-width:none}}
