@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Quicksand:wght@400&display=swap');
.ingrid-welcome{position:fixed;inset:0;z-index:1000;background:#fff;color:#191919;display:grid;place-items:center;overflow:hidden;font-family:ui-rounded,'Quicksand',-apple-system,BlinkMacSystemFont,sans-serif}
.ingrid-welcome p{margin:0;padding:24px;text-align:center;font-size:clamp(36px,7vw,88px);font-weight:400;letter-spacing:-.025em;line-height:1.2}
.ingrid-welcome button{position:absolute;right:24px;bottom:24px;background:transparent;color:#666;font-weight:400}
.ingrid-welcome button:hover{background:#f5f5f5}
.conjugation-guide{margin-top:10px;padding:10px 12px;border-left:3px solid #9bc7a9;color:#557062;font-size:12px;line-height:1.5}
.conjugation-guide p{margin:0}
.conjugation-guide .tense-rule{margin-bottom:4px;font-weight:600;color:#244936}
:root{font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;color:#20382e;background:#f4f7f3;font-synthesis:none}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;min-height:100vh;background:linear-gradient(115deg,#f8f9f6,#edf5ee)}
button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:9px;background:#196b50;color:white;padding:10px 15px;font-size:14px;font-weight:700;transition:background .15s}button:hover{background:#12563f}button.secondary,.finish-button{background:#e2efe5;color:#245d46}button.secondary:hover,.finish-button:hover{background:#d4e6d9}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #9bc7a9;outline-offset:2px}
.shell{width:min(1340px,calc(100% - 40px));margin:auto;padding:12px 0 24px}header{display:flex;align-items:center;gap:20px;padding-bottom:11px;border-bottom:1px solid #dce7dc}.eyebrow{display:flex;align-items:center;gap:9px;color:#1d634a;font-size:12px;font-weight:700;letter-spacing:.13em;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#196b50;color:white;font-size:19px;letter-spacing:0}.lesson-picker{display:flex;align-items:center;gap:9px;color:#677f6e;font-size:11px;font-weight:700;letter-spacing:.1em}.lesson-picker select,.settings select{border:1px solid #cbdccf;border-radius:8px;background:white;color:#234938;padding:8px 11px;font-size:13px;font-weight:600;letter-spacing:0}
.header-actions{display:flex;align-items:center;gap:15px;margin-left:auto}.header-actions button{padding:7px 11px;font-size:12px}#account-control{display:flex;align-items:center;gap:7px;min-width:max-content}#account-name{color:#24523d;font-size:13px;font-weight:700}#account-control button{padding:7px 10px;font-size:12px}
.brand-lockup{display:flex;align-items:center;gap:6px;color:inherit;text-decoration:none;white-space:nowrap}.brand-lockup:focus-visible{outline:2px solid #9bc7a9;outline-offset:3px;border-radius:5px}.bull-mark{width:48px;height:48px;flex:none;object-fit:contain;margin-left:-4px;transform:translate(-2px,-1px)}.brand-product{color:#194f3b;font-size:17px;line-height:1;font-weight:700;letter-spacing:-.025em}
.hero{padding:11px 0 8px}.kicker{margin:0 0 3px;color:#aa6248;font-size:10px;font-weight:700;letter-spacing:.13em}.hero h1{margin:0;color:#1a4e3d;font-size:clamp(28px,3vw,35px);font-weight:700;line-height:1.15;letter-spacing:-.025em}.settings{display:flex;align-items:end;gap:11px;padding:0 0 7px}.settings label{display:grid;gap:4px;color:#647b6c;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.settings select{min-width:220px;height:38px}.settings button{height:38px}
.account-setting{height:38px;display:flex;align-items:center;gap:5px;color:#647b6c;font-size:12px}.account-setting strong{color:#245d46}
.card{background:white;border:1px solid #dce8dd;border-radius:16px;padding:15px 24px;box-shadow:0 12px 34px #2d51300d}.card-top{display:flex;justify-content:space-between;gap:15px;color:#657c6d;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding-bottom:8px;border-bottom:1px solid #e5eee6}.question-side{padding:10px 0 7px}h2{margin:0;color:#1e4233;font-size:clamp(22px,2.5vw,29px);font-weight:700;line-height:1.25;letter-spacing:-.015em}#hint{margin:5px 0 0;color:#61776a;font-size:14px;line-height:1.4}
#answer-form{margin:0}input[type=text]{width:100%;height:44px;border:1px solid #ccdcd0;border-radius:8px;background:white;color:#1f3b2e;padding:9px 13px;font-size:16px;font-weight:400}input[type=text]:focus-visible{outline:none;border-color:#84b69a;box-shadow:0 0 0 2px #deefe3}#check{margin-top:8px}
#result-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:14px;margin-top:12px}#result-layout:has(#conjugation[hidden]){display:block}.feedback-side,.chart-side{min-width:0}#feedback{padding:11px 13px;border-radius:9px;font-size:13px;line-height:1.42}#feedback.correct{background:#e8f5e9;color:#285f3e}#feedback.close{background:#fff3df;color:#76521d}#feedback.incorrect{background:#fbeee9;color:#834a3d}#feedback p{margin:0}.answer-reveal{margin-top:10px;padding:9px 11px;border:1px solid #b7d1bd;border-radius:8px;background:white}.answer-reveal span{display:block;color:#64806b;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.answer-reveal strong{display:block;margin-top:2px;color:#14563d;font-size:clamp(24px,2.5vw,30px);font-weight:700;line-height:1.2}.answer-example,.answer-tip{margin-top:9px!important;color:#45634f;font-size:13px;line-height:1.4}.answer-tip{padding:8px 10px;border-radius:7px;background:#ffffffb3}#tense-subtitle{margin:8px 0 0;color:#557062;font-size:12px;line-height:1.4}
#conjugation{border:1px solid #cbded0;border-radius:8px;background:#fff;overflow:hidden}.chart-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:6px 9px;background:#f2f7f2;border-bottom:1px solid #cbded0}#conjugation h3{margin:0;color:#1f4835;font-size:15px;font-weight:700}.chart-controls select{min-width:105px;max-width:48%;border:1px solid #c8dccd;border-radius:6px;background:#fff;color:#28513b;padding:4px 7px;font-size:12px;font-weight:600}:is(#conjugation,.verb-chart) table{width:100%;border-collapse:collapse;table-layout:fixed}:is(#conjugation,.verb-chart) td{width:50%;padding:7px 10px;border-top:1px solid #dce8df;border-left:1px solid #dce8df;background:#fff;vertical-align:top}:is(#conjugation,.verb-chart) tr:first-child td{border-top:0}:is(#conjugation,.verb-chart) td:first-child{border-left:0}:is(#conjugation,.verb-chart) td.expected{background:#e7f4e9;box-shadow:inset 3px 0 #67ad80}:is(#conjugation,.verb-chart) .pronoun{display:block;color:#687d6e;font-size:10px;font-weight:700;text-transform:uppercase}:is(#conjugation,.verb-chart) .form{display:block;margin-top:1px;color:#244936;font-size:14px;font-weight:700}#next{margin-top:10px}
.parts-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:5px}.parts-list li{padding:7px 9px;border-radius:6px;background:#ffffffab;color:#344d3d;font-size:12px}.parts-list .part-right{border-left:3px solid #3a9f72;background:#e2f3e7;color:#1d5836}.parts-list .part-close{border-left:3px solid #d89b38;background:#fff3d9;color:#76521d}.parts-list .part-wrong,.parts-list .part-missing{border-left:3px solid #c66d5a;background:#fbe7e2;color:#834a3d}
#session-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:9px}.segment-target{width:215px;border:1px solid #dce8dd;border-radius:9px;background:white;padding:8px 11px;color:#466951}.segment-target strong,.segment-target span{display:block}.segment-target strong{font-size:12px}.segment-target span{font-size:11px}.segment-track{height:4px;background:#e6eee7;border-radius:10px;margin-top:6px;overflow:hidden}#segment-fill{height:100%;width:0;background:#d98556;transition:width .3s}.footnote{text-align:center;color:#788a7b;font-size:11px;margin:10px 0 0;line-height:1.35}
#save-status{margin:7px 0;color:#9b4d39;font-size:12px;font-weight:600}#save-status:empty{display:none}
.login-dialog{position:fixed;inset:0;z-index:10;display:grid;place-items:start center;padding:clamp(50px,12vh,130px) 18px;background:#1936298c;backdrop-filter:blur(4px)}.login-card{width:min(100%,390px);display:grid;gap:12px;margin:0;padding:26px;background:white;border:1px solid #dce8dd;border-radius:16px;box-shadow:0 22px 65px #122a1b66}.login-card h1{margin:0;color:#1a4e3d;font-size:28px;letter-spacing:-.025em}.login-card>p:not(.kicker){margin:0 0 4px;color:#5e7465;font-size:14px;line-height:1.45}.login-card label{display:grid;gap:5px;color:#527060;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.login-card input{height:43px;border:1px solid #ccdcd0;border-radius:8px;padding:9px 11px;color:#1f3b2e;font-size:16px;text-transform:none;letter-spacing:0}.login-card #login-error{min-height:18px;margin:0;color:#a14f3c;font-size:13px;font-weight:600}.login-card button{margin-top:2px}
#summary{background:white;border:1px solid #dce8dd;border-radius:16px;padding:23px;box-shadow:0 12px 34px #2d51300d}#summary h2{font-size:30px}#summary-intro{color:#526b58;line-height:1.45;font-size:14px}#summary-counts{font-weight:700;color:#276e52;font-size:14px;margin:10px 0 16px}#summary-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}.summary-group{border:1px solid #dfe9e1;border-radius:11px;background:#f7fbf8;padding:14px;min-width:0}.summary-group.revisit{background:#fdf8f5;border-color:#eeded6}.summary-group h3{font-size:18px;margin:0 0 10px;color:#1e4935}.summary-group.revisit h3{color:#7d4b37}.summary-grid{display:grid;gap:9px}.summary-card{border:1px solid #dfe9e1;border-radius:8px;padding:12px;background:white}.summary-card.incorrect,.summary-card.close{border-color:#ebd6cb}.summary-status{display:inline-block;color:#277153;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.summary-card.incorrect .summary-status,.summary-card.close .summary-status{color:#a55c42}.summary-prompt{margin:6px 0;line-height:1.35;color:#354f3e;font-size:13px;font-weight:600}.summary-submitted{margin:0 0 8px;color:#6d7e70;font-size:12px}.summary-answer{display:flex;align-items:baseline;gap:9px;padding:7px 9px;border-radius:6px;background:#eaf5eb}.summary-card.incorrect .summary-answer,.summary-card.close .summary-answer{background:#fff1e8}.summary-answer span{color:#5e7965;font-size:10px;font-weight:700;text-transform:uppercase}.summary-answer strong{color:#19583e;font-size:19px;line-height:1.2}.summary-context{color:#5a6e5f;line-height:1.4;font-size:12px;margin:8px 0 0}.summary-empty{margin:5px 0;color:#788b7b;font-size:13px}.summary-actions{display:flex;gap:9px;margin-top:16px}body:has(#summary:not([hidden])) .footnote{display:none}
#history{margin-top:12px;background:white;border:1px solid #dce8dd;border-radius:16px;padding:22px;box-shadow:0 12px 34px #2d51300d}.history-head{display:flex;justify-content:space-between;align-items:start;gap:16px}.history-head h2{font-size:27px}.history-actions{display:flex;align-items:center;gap:9px}.history-scope{display:flex;padding:3px;border:1px solid #cbdccf;border-radius:9px;background:#f1f6f1}.history-scope button{padding:6px 9px;border-radius:6px;background:transparent;color:#557362;font-size:12px}.history-scope button:hover{background:#e1ede3}.history-scope button[aria-pressed="true"]{background:#196b50;color:white}#history-status{color:#607566;font-size:13px}#history-list{display:grid;gap:9px}.history-session{border:1px solid #dce8dd;border-radius:9px;background:#f8fbf8;padding:11px 14px}.history-session summary{cursor:pointer;font-weight:700;color:#27563d}.history-meta{margin:4px 0 10px;color:#637768;font-size:12px}.history-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.history-answer{background:white;border:1px solid #e0e9e1;border-radius:7px;padding:9px 10px;font-size:12px}.history-answer.wrong{border-color:#e9d4cb}.history-answer p{margin:3px 0}.history-answer strong{color:#1b6044}.history-answer .attempt{color:#745044}
.history-delete{margin:0 0 10px;padding:5px 9px;font-size:17px}
#history{margin-top:15px;min-height:300px}#history h1{margin:0;color:#1a4e3d;font-size:31px;line-height:1.15}.lesson-picker strong{display:block;border:1px solid #cbdccf;border-radius:8px;background:white;color:#234938;padding:8px 11px;font-size:13px;font-weight:600;letter-spacing:0}.history-session summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}.history-session summary::-webkit-details-marker{display:none}.history-session summary::before{content:'▸';color:#73917b}.history-session[open] summary::before{content:'▾'}.history-session summary span{flex:1}.history-delete{margin:0;width:31px;height:31px;display:grid;place-items:center}.history-meta{margin:8px 0 3px}.history-answers{margin-top:12px}
.history-totals{margin:6px 0 11px;color:#2d674d;font-size:13px;font-weight:700}.history-totals-bottom{margin:12px 0 0;padding-top:10px;border-top:1px solid #dce8dd}.history-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.history-column{min-width:0;padding:12px;border:1px solid #dce8dd;border-radius:9px;background:#f5faf6}.history-column.review{background:#fdf7f3;border-color:#eeddd2}#history .history-column h2{margin:0;font-size:16px;color:#245b42}.history-column.review h2{color:#8a4c38}.history-column .history-answers{display:grid;grid-template-columns:1fr;gap:8px}.history-answer{min-width:0}.history-answer .history-prompt{font-weight:700;color:#34513f}.history-answer .history-note{color:#66786b}.history-answer.incorrect .history-note,.history-answer.close .history-note{color:#945c44}
.history-answer.incorrect,.history-answer.close{border-color:#e9d4cb}
.history-answer{font-size:13px}
@media(max-width:850px){#result-layout{grid-template-columns:1fr}#summary-sections,.history-columns{grid-template-columns:1fr}}
@media(max-width:560px){.shell{width:min(100% - 24px,1340px);padding-top:10px}header{flex-wrap:wrap;gap:8px}.header-actions{order:3;width:100%;justify-content:space-between;gap:8px;margin-left:0}.lesson-picker{gap:5px}.lesson-picker strong{max-width:190px;font-size:12px}.hero{padding:13px 0 9px}.hero h1{font-size:27px}.settings{flex-wrap:wrap}.settings label:first-child{flex:1}.settings select{width:100%;min-width:0}.card{padding:15px}.card-top{padding-bottom:8px}.question-side{padding:12px 0 8px}#session-actions{justify-content:stretch}.segment-target{flex:1;min-width:0}#summary{padding:17px}.history-answers{grid-template-columns:1fr}#history{padding:16px}.history-head{align-items:center}#history h1{font-size:25px}}

/* Verb reference: quiet surfaces, clear typography, shared conjugation grids. */
.verb-reference-intro{color:#61776a;line-height:1.5;margin:0 0 28px;font-size:14px}
.verb-map{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:32px;align-items:start}
.verb-column{display:grid;gap:32px;min-width:0}
.tense-group{min-width:0}
.tense-group>h2{font-size:20px;letter-spacing:-.025em}
.group-subtitle{margin:4px 0 14px;color:#718477;font-size:12px}
.tense-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.conditional .tense-cards,.subjunctive .tense-cards,.commands .tense-cards{grid-template-columns:1fr}
.tense-card{position:relative;text-align:left;background:#fff;color:#345342;border:1px solid #20382e0b;border-radius:16px;padding:20px;font-weight:400;box-shadow:0 2px 3px #20382e03,0 8px 24px #20382e06;transition:box-shadow .18s,background .18s}
.tense-card:hover{background:#fff;box-shadow:0 4px 8px #20382e07,0 12px 28px #20382e10}
.tense-card h3{margin:0;padding-right:18px;font-size:17px;color:#204e39;line-height:1.3;letter-spacing:-.02em}
.tense-subtitle{display:block;margin-top:5px;font-size:12px;color:#748075}
.tense-card p{font-size:13px;line-height:1.5;margin:14px 0;color:#526759}
.tense-preview{display:block;font-size:13px;color:#486750;margin-top:16px}
.tense-more{position:absolute;right:18px;top:18px;font-size:16px;font-weight:400;color:#7d9182}
.tense-card.foundational{background:#eaf2eb;border-color:transparent;box-shadow:0 6px 22px #20382e07}
.tense-card.foundational:hover{background:#e3eee5}
.tense-card.foundational h3{font-size:20px}
.tense-badge{display:block;margin-bottom:10px;color:#47705a;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#verbs-button[aria-current=page]{background:#196b50;color:white}
#verb-dialog{width:min(1080px,calc(100% - 32px));max-height:90vh;overflow:auto;padding:0;border:0;border-radius:20px;color:#345342;background:#fff;box-shadow:0 24px 80px #122a1b44}
#verb-dialog::backdrop{background:#19362999;backdrop-filter:blur(4px)}
.verb-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:start;justify-content:space-between;gap:20px;padding:26px 30px 22px;background:#fffffff5;backdrop-filter:blur(12px);border-bottom:1px solid #e7ede7}
.verb-dialog-head h1{margin:0;color:#194f3b;font-size:28px;letter-spacing:-.03em;line-height:1.25}
.verb-dialog-head p{margin:6px 0 0;color:#748075;font-size:14px}
#verb-dialog-close{flex:none;background:#f0f4ef;color:#486750;font-size:12px}
#verb-dialog-content{padding:24px 30px 30px}
.verb-overview{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;align-items:center;margin-bottom:24px}
.verb-use{margin:0;font-size:16px;line-height:1.6;color:#405d49}
.verb-example{padding:16px 18px;background:#f3f7f1;border-radius:12px}
.verb-example p{margin:0;font-size:16px;font-weight:600;line-height:1.5;color:#234e37}
.verb-example .verb-translation{margin-top:5px;font-size:13px;font-weight:400;color:#6c7f70}
.verb-note{margin:0 0 24px;font-size:12px;line-height:1.6;color:#6c7f70}
.verb-detail-section+.verb-detail-section{margin-top:30px;padding-top:26px;border-top:1px solid #e7ede7}
.verb-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.verb-section-head h2{font-size:18px;letter-spacing:-.02em}
.verb-section-head p{margin:0;color:#748075;font-size:12px;line-height:1.5}
.verb-chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.verb-chart{border:1px solid #e1e9e1;border-radius:12px;background:white;overflow:hidden}
.verb-chart h3{margin:0;padding:12px 14px;background:#f4f7f2;color:#28513b;font-size:14px;border-bottom:1px solid #e1e9e1}
.verb-chart td{padding:10px 12px!important;border-color:#e7ede7!important}
.verb-chart .pronoun{font-size:9px!important;letter-spacing:.04em;color:#7b8a7e!important}
.verb-chart .form{margin-top:4px!important;font-size:15px!important}
@media(max-width:850px){.verb-map{grid-template-columns:1fr}.verb-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}header{flex-wrap:wrap}.header-actions{flex-wrap:wrap}}
@media(max-width:540px){.tense-cards,.verb-chart-grid,.verb-overview{grid-template-columns:1fr}.verb-dialog-head{padding:20px 18px}.verb-dialog-head h1{font-size:22px}#verb-dialog-content{padding:20px 18px}.verb-overview{gap:14px}.verb-section-head{display:block}.verb-section-head p{margin-top:4px}.tense-card{padding:18px}}

/* Compact tense map: time down the center, other moods at the edges. */
.verb-map{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);gap:26px}
.verb-column{gap:30px}
.verb-possibilities,.verb-moods{padding-top:100px}
.tense-group>h2{font-size:13px;font-weight:600;color:#6b7e70;margin-bottom:10px}
.verb-timeline .tense-group>h2{text-align:center;font-size:14px;color:#365942}
.verb-timeline{position:relative}
.verb-timeline::before{content:"";position:absolute;top:16px;bottom:12px;left:50%;width:1px;background:#d6e2d7;z-index:0}
.verb-timeline .tense-group>h2{background:#f1f6ef;width:max-content;margin:0 auto 10px;padding:0 12px}
.tense-card{padding:15px;border-radius:12px}
.tense-card h3{font-size:15px;padding:0}
.tense-subtitle{font-size:11px;margin-top:4px}
.tense-card p{font-size:12px;line-height:1.4;margin:10px 0 0}
.tense-card.foundational h3{font-size:17px}
.tense-card.foundational{background:#e5efe6}
.tense-cards{gap:10px}
#verb-reference .footnote{max-width:760px;margin:26px auto 0;line-height:1.5}
.history-scope{align-items:center;gap:8px;padding:0;border:0;background:transparent;font-size:12px;color:#637768}
#history-owner{border:1px solid #dce7dc;border-radius:8px;padding:8px 11px;background:#f5f8f3;color:#234938;font-size:13px;max-width:200px}
@media(max-width:1000px){.verb-map{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr)}.verb-timeline .tense-cards{grid-template-columns:1fr}.verb-possibilities,.verb-moods{padding-top:60px}}
@media(max-width:700px){.verb-map{grid-template-columns:1fr 1fr;gap:24px}.verb-timeline{grid-column:1/-1;grid-row:1}.verb-timeline .tense-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.verb-possibilities,.verb-moods{padding-top:0}.history-actions{flex-wrap:wrap;justify-content:flex-end}.history-scope{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:400px){.verb-map{gap:14px}.tense-card{padding:12px}.tense-card h3{font-size:14px}.tense-card.foundational h3{font-size:16px}}

.verb-timeline>.tense-group{position:relative;z-index:1}

/* Time bands stop at the central column; other moods sit outside them. */
.verb-map{gap:30px}
.verb-column{gap:38px}
.verb-timeline::before{display:none}
.verb-timeline>.tense-group+.tense-group{padding-top:32px}
.verb-timeline>.tense-group+.tense-group::before{content:"";position:absolute;top:0;left:8%;right:8%;height:1px;background:#9db2a1}
.verb-timeline .tense-group>h2{background:none;margin-bottom:16px;font-size:16px;letter-spacing:-.02em}
.verb-possibilities,.verb-moods{padding-top:124px}
.tense-group>h2{font-size:14px;color:#4e6657;margin-bottom:14px}
.tense-cards{gap:14px}
.tense-card{padding:20px;border-radius:15px;border:1px solid #20382e0c;box-shadow:0 3px 6px #20382e05,0 12px 30px #20382e08;display:flex;flex-direction:column;align-items:stretch}
.future .tense-card{background:#e0eaf0}
.present .tense-card{background:#e0eade}
.past .tense-card{background:#efe4d5}
.conditional .tense-card,.subjunctive .tense-card{background:#e9e4ef}
.commands .tense-card{background:#ece8d7}
.tense-card:hover{background:#fff;box-shadow:0 6px 12px #20382e09,0 16px 32px #20382e12}
.tense-card h3{font-size:17px;line-height:1.3;color:#234d38}
.tense-subtitle{font-size:12px;color:#657367;margin-top:6px}
.tense-card p{font-size:13px;line-height:1.5;margin:14px 0 20px;color:#445e4d;flex:1}
.tense-sample{display:block;padding-top:14px;border-top:1px solid #20382e1c;font-size:14px;line-height:1.5;font-weight:600;color:#244e39}
.tense-sample-translation{display:block;margin-top:5px;font-size:12px;line-height:1.5;font-weight:400;color:#627367}
.tense-card.foundational{background:#285f49;border-color:transparent;box-shadow:0 8px 24px #285f4920}
.tense-card.foundational:hover{background:#204f3d}
.tense-card.foundational h3{font-size:19px;color:#fff}
.tense-card.foundational .tense-subtitle{color:#c9dfd0}
.tense-card.foundational p{color:#e5eee7}
.tense-card.foundational .tense-sample{color:#fff;border-color:#ffffff33}
.tense-card.foundational .tense-sample-translation{color:#c9dfd0}
@media(max-width:1000px){.verb-map{gap:20px}.tense-card{padding:17px}.verb-possibilities,.verb-moods{padding-top:76px}}
@media(max-width:700px){.verb-map{gap:24px}.verb-possibilities,.verb-moods{padding-top:0}.verb-timeline>.tense-group+.tense-group{padding-top:26px}}
@media(max-width:540px){.verb-timeline .tense-cards{grid-template-columns:1fr}.verb-map{grid-template-columns:1fr}.verb-timeline{grid-column:1}.tense-card{padding:20px}}

/* Separate mood islands, without extending the time dividers. */
.verb-possibilities>.tense-group,.verb-moods>.tense-group{padding:18px;background:#ffffff75;border:1px solid #cdd8cf;border-radius:22px;box-shadow:0 8px 30px #20382e04}
.verb-possibilities>.tense-group>h2,.verb-moods>.tense-group>h2{margin:0 0 16px;padding:0 2px;color:#435c4d;font-size:16px;font-weight:600}
.verb-possibilities .tense-card,.verb-moods .tense-card{padding:17px;border-radius:12px}
@media(max-width:1000px) and (min-width:701px){.verb-map{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:16px}.verb-possibilities>.tense-group,.verb-moods>.tense-group{padding:12px}.verb-possibilities .tense-card,.verb-moods .tense-card{padding:14px}}

.verb-overview{align-items:start}
.verb-use{padding-top:10px}
.verb-use-examples{display:grid;gap:10px;min-width:0}
.verb-use-label{display:flex;align-items:center;gap:7px;margin:0 0 9px;color:#567360;font-size:11px;line-height:1.4;font-weight:600;letter-spacing:0}
.verb-use-label::before{content:"";width:5px;height:5px;border-radius:50%;background:#679276;flex:none}

.tense-sample,.verb-example p[lang=es]{font-weight:400}
.tense-sample strong,.verb-example p[lang=es] strong{font-weight:700}
/* Keep the everyday forms within the same soft palette as the other cards. */
.tense-card.foundational{background:#cbded0;border-color:#20382e0c;box-shadow:0 8px 24px #285f4910}
.tense-card.foundational:hover{background:#bfd5c5}
.tense-card.foundational h3{color:#234d38}
.tense-card.foundational .tense-subtitle,.tense-card.foundational .tense-sample-translation{color:#526c5b}
.tense-card.foundational p{color:#365641}
.tense-card.foundational .tense-sample{color:#244e39;border-color:#20382e1c}

/* Clip the outer shell; scroll the body below the fixed modal header. */
#verb-dialog{overflow:hidden;max-height:90dvh}
#verb-dialog[open]{display:flex;flex-direction:column}
.verb-dialog-head{position:relative;flex:none}
#verb-dialog-content{min-height:0;overflow-y:auto;scrollbar-gutter:stable;margin-bottom:12px;padding-bottom:18px}

/* Color identifies the group; saturation emphasizes its core forms. */
.future{--tense-surface:#e0eaf0;--tense-hover:#d6e5ee;--tense-ink:#284c62;--tense-muted:#526b7c;--tense-core:#c5dce9;--tense-core-hover:#bad4e4}
.present{--tense-surface:#e0eade;--tense-hover:#d4e3d2;--tense-ink:#244e39;--tense-muted:#526c5b;--tense-core:#cbded0;--tense-core-hover:#bfd5c5}
.past{--tense-surface:#f0e0e7;--tense-hover:#e9d5df;--tense-ink:#654355;--tense-muted:#795d6b;--tense-core:#e5d2da;--tense-core-hover:#dcc6d0}
.conditional,.subjunctive{--tense-surface:#e9e4ef;--tense-hover:#e0d9e9;--tense-ink:#514464;--tense-muted:#70627d}
.commands{--tense-surface:#f1d6cf;--tense-hover:#eac9c0;--tense-ink:#744638;--tense-muted:#805c50}
.tense-group .tense-card{background:var(--tense-surface)}
.tense-group .tense-card:hover{background:var(--tense-hover)}
.tense-group .tense-card.foundational,.tense-group .tense-card.core-future{background:var(--tense-core)}
.tense-group .tense-card.foundational:hover,.tense-group .tense-card.core-future:hover{background:var(--tense-core-hover)}
.tense-group .tense-card h3,.tense-group .tense-card p,.tense-group .tense-card .tense-sample{color:var(--tense-ink)}
.tense-group .tense-card .tense-subtitle,.tense-group .tense-card .tense-sample-translation{color:var(--tense-muted)}

/* Subjunctive stays in one continuous group, independent of the time bands. */
.subjunctive-present{display:grid;gap:14px}
.subjunctive-band-label{margin:0 0 12px;color:#70627d;font-size:12px;line-height:1.4;font-weight:600}
.subjunctive-past{margin-top:8px}

#verb-reference{padding-top:11px}
#verb-reference-title{margin:0;color:#1a4e3d;font-size:clamp(28px,3vw,35px);line-height:1.15;letter-spacing:-.025em}
.verb-reference-intro{margin-top:6px}

.header-actions button[aria-current=page]{background:#196b50;color:white}
#practice-button{font-weight:700}
.header-actions{row-gap:8px}
@media(max-width:1050px){header{flex-wrap:wrap}.header-actions{flex-wrap:wrap}}

/* Stable shell: centered navigation, independent side controls, reserved scrollbar space. */
html{scrollbar-gutter:stable both-edges}
header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:center;min-height:60px;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.brand-lockup{justify-self:start}
.header-actions{justify-self:center;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:10px;margin:0;width:auto;order:initial}
.header-actions button{flex:none;white-space:nowrap;min-height:32px}
#account-control{justify-self:end;min-height:32px}
.hero .lesson-picker{margin-top:7px;gap:7px;letter-spacing:.06em}
.hero .lesson-picker strong{padding:0;border:0;background:none;color:#61776a;font-size:12px;font-weight:500}
@media(max-width:760px){header{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding-bottom:12px}.header-actions{grid-column:1/-1;grid-row:2;justify-self:center;gap:8px}.brand-lockup{grid-column:1;grid-row:1}#account-control{grid-column:2;grid-row:1}.hero .lesson-picker strong{max-width:none}}
@media(max-width:360px){.header-actions{gap:5px}.header-actions button{padding:7px 9px}.brand-product{font-size:15px}.bull-mark{width:40px;height:40px}}
@media(max-width:360px){.header-actions button{font-size:11px;padding:7px 3px}.brand-product{font-size:14px}.bull-mark{width:36px;height:36px}#account-name{font-size:11px}#account-control button{font-size:11px;padding:7px}header{column-gap:8px}}

/* Practice heading and settings share one compact row. */
.practice-heading-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:15px 0 12px}
.practice-heading-row .hero{padding:0;min-width:0}
.practice-heading-row .settings{display:flex;align-items:end;justify-content:flex-end;gap:10px;padding:0;flex:none}
.practice-heading-row .settings label{min-width:0;flex:initial}
.practice-heading-row .settings select{min-width:0;font-size:12px;padding:8px 10px}
#lesson{width:248px}
#mode{width:194px}
.practice-heading-row .settings button{white-space:nowrap;font-size:12px;padding:8px 12px}
@media(max-width:1000px){.practice-heading-row{flex-wrap:wrap;gap:12px}.practice-heading-row .settings{margin-left:auto}}
@media(max-width:620px){.practice-heading-row .settings{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:10px}.practice-heading-row .settings label:first-child{grid-column:1/-1}.practice-heading-row .settings select{width:100%}.practice-heading-row .settings button{grid-column:2;grid-row:2}.practice-heading-row .settings label:nth-child(2){grid-column:1;grid-row:2}}

.practice-heading-row{padding-top:26px;padding-bottom:24px}
#hint{margin-top:4px;font-size:13px;line-height:1.4;color:#61776a}

.question-heading{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
#question-instruction{color:#7a897e;font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;line-height:1.4}
.card-top{align-items:baseline}
.conjugation-prompt{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.prompt-verb{color:#1b6046;font-weight:700}
.prompt-connector{color:#819085;font-size:16px;font-weight:400;letter-spacing:0}
.prompt-person{font-size:.85em;color:#395847;font-weight:600}
.prompt-infinitive{color:#1b6046;font-weight:700}
.prompt-blank{color:#96ad9c;letter-spacing:.06em}
@media(max-width:560px){.question-heading{gap:4px}.card-top{gap:8px}#question-instruction{flex-basis:100%}.conjugation-prompt{gap:7px}}

#answer-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
#answer-workspace.with-pattern{grid-template-columns:minmax(0,1fr) minmax(280px,1fr)}
#retry-status{margin:8px 0 0;color:#756044;font-size:13px;line-height:1.45}
.pattern-note{margin:8px 0 0;color:#61776a;font-size:12px;line-height:1.5}
.conjugation-guide .irregular-note{margin-top:8px;font-weight:600}
@media(max-width:700px){#answer-workspace.with-pattern{grid-template-columns:minmax(0,1fr)}}

#question-instruction .prompt-tense{display:inline-block;padding:3px 8px;margin:0 2px;background:#e5eee4;border-radius:5px;color:#24523c;font-size:14px;font-weight:700}
.conjugation-prompt{gap:10px}
.conjugation-prompt .prompt-person{font-size:24px;font-weight:500;color:#526c5b}
.conjugation-prompt .prompt-verb{padding:4px 11px;border-radius:8px;background:#e7f0e5;color:#24523c;font-size:26px}
.prompt-english{font-size:18px;font-weight:400;color:#61776a;letter-spacing:0}
.answer-input-with-subject{display:flex;align-items:center;height:44px;width:100%;border:1px solid #ccdcd0;border-radius:8px;background:white;overflow:hidden}
.answer-input-with-subject:focus-within{border-color:#84b69a;box-shadow:0 0 0 2px #deefe3}
.answer-subject{flex:none;padding:0 0 0 13px;color:#829185;font-size:14px;font-weight:400}
.answer-input-with-subject input[type=text]{flex:1;min-width:0;width:0;border:0;border-radius:0;padding-left:9px;height:42px}
.answer-input-with-subject input[type=text]:focus-visible{box-shadow:none;border:0;outline:0}
@media(max-width:560px){.conjugation-prompt .prompt-person{font-size:21px}.conjugation-prompt .prompt-verb{font-size:23px}.prompt-english{font-size:16px}}

#summary-sections,.history-columns{grid-template-columns:repeat(3,minmax(0,1fr))}
.summary-group.prompted,.history-column.prompted{background:#f3f0f8;border-color:#ddd5e8}
.summary-group.prompted h3,#history .history-column.prompted h2{color:#66517d}
.history-answer.review,.summary-card.incomplete{border-color:#e9d4cb}
.summary-card.incomplete .summary-status{color:#a55c42}
@media(max-width:950px){#summary-sections,.history-columns{grid-template-columns:1fr}}

#question-instruction .prompt-tense{background:#f4ddbb;color:#674719;border:1px solid #dbb57d;padding:4px 9px}
.tense-cue{color:#718074;font-size:12px;line-height:1.45}

.vocabulary-hint{padding:16px 18px;background:#f2f6ee;border:1px solid #d8e3d6;border-radius:12px}
.vocabulary-hint h3{margin:0 0 15px;color:#47634e;font-size:13px;font-weight:600}
.vocabulary-hint-words{display:flex;align-items:start;gap:16px;flex-wrap:wrap}
.hint-article{color:#718674;font-size:18px;line-height:1.4}
.hint-word{display:grid;gap:5px}
.hint-letters{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:20px;letter-spacing:.04em;line-height:1.4;color:#9cad9f;overflow-wrap:anywhere}
.hint-letters strong{color:#2f6045;font-weight:700}
.hint-word-length{color:#6c7e70;font-size:11px}

.sentence-hint{padding:14px;border:1px solid #dce8dd;border-radius:10px;background:#f8fbf8}
.sentence-hint h3{margin:0 0 5px;font-size:14px;color:#27563d}
.sentence-hint>p{margin:0;color:#607566;font-size:12px;line-height:1.45}
.parts-list .part-hint{background:#fff3d9;color:#76521d}

.hint-word.correct-word{background:#e2f3e7;border-color:#c0dac8}.correct-word .hint-letters,.correct-word .hint-word-length{color:#245c3e}

.answer-example{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:start}
.example-copy p{margin:0}.example-translation{color:#617565;font-size:.95em}
.summary-context .answer-example{margin-top:0!important;font-size:12px}
.tense-sample-translation,.verb-translation{font-style:italic}

#verb-notes .irregular-note{margin:9px 0 0;font-size:13px;line-height:1.65}
.verb-highlight{background:linear-gradient(transparent 12%,#ffe3a5 12%,#ffe3a5 88%,transparent 88%);color:#5d4821;padding:1px 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone;font-weight:600;line-height:1.65}

.english-translation,.example-translation,.example-translation em,.verb-translation,.tense-sample-translation,#verb-dialog-subtitle{font-style:italic;font-synthesis:style}
.study-settings{position:relative;margin:12px 0 0 auto;width:max-content;color:#526c5b;font-size:12px}
.study-settings summary{cursor:pointer;font-weight:600;padding:6px 10px;border-radius:8px;background:#e4eee6}
.study-settings-box{position:absolute;right:0;top:100%;z-index:10;width:270px;padding:16px;background:#fff;border:1px solid #d3e2d6;border-radius:12px;box-shadow:0 8px 24px #20382e18}
.study-settings-box label{display:flex;gap:9px;align-items:center;font-weight:600;font-size:13px}
.study-settings-box input{accent-color:#237158;width:16px;height:16px}
.study-settings-box p{margin:9px 0 0;line-height:1.5;color:#738278}
.unused-person{background:#f8faf8}

.question-navigation{display:flex;align-items:center;gap:16px}
#skip-question{font-size:12px;font-weight:400;color:#6d8177;text-decoration:underline;text-underline-offset:3px}
#skip-question:hover{color:#205e48}
#skip-question:focus-visible{outline:2px solid #92bba1;outline-offset:4px;border-radius:2px}

.question-navigation{margin-top:10px}.question-navigation #next{margin-top:0}
#skip-dialog{padding:24px;border:1px solid #d3e2d6;border-radius:16px;color:#20382e;background:#fff;box-shadow:0 12px 40px #20382e25;max-width:calc(100vw - 40px)}
#skip-dialog::backdrop{background:#20382e40}
#skip-dialog h2{margin:0 0 20px;font-size:20px}
#skip-dialog form{display:flex;justify-content:flex-end;gap:10px}

/* Every conjugation chart keeps three equal rows, including the empty person slot. */
:is(#conjugation,.verb-chart) table{display:block}
:is(#conjugation,.verb-chart) tbody{display:grid;grid-template-rows:repeat(3,1fr)}
:is(#conjugation,.verb-chart) tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
:is(#conjugation,.verb-chart) td{display:block;width:auto;min-width:0;overflow-wrap:anywhere}
.answer-mismatch{text-decoration-line:underline;text-decoration-color:#c44850;text-decoration-thickness:3px;text-underline-offset:4px;text-decoration-skip-ink:none}
.answer-actions{display:flex;align-items:center;gap:16px}

.answer-marked-field{position:relative;min-width:0;flex:1}
.answer-input-with-subject .answer-marked-field input[type=text]{width:100%}
.answer-underlines{position:absolute;inset:0;display:flex;align-items:center;overflow:hidden;pointer-events:none;border-radius:8px;color:transparent}
.answer-underline-copy{flex:none;white-space:pre;color:transparent;line-height:normal}
.answer-actions #check{margin-top:0}.answer-actions{margin-top:8px}
#answer-control input[type=text]{height:52px;font-size:18px}
.answer-input-with-subject{height:52px}
#answer-control .answer-input-with-subject input[type=text]{height:50px}
#submitted-label{display:block;margin:0 0 5px;color:#728276;font-size:11px;font-weight:600;letter-spacing:.04em}
#answer-control input:disabled{opacity:1;-webkit-text-fill-color:#1f3b2e}
