:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#212731;background:#f3f5f8;--gold:#b48935;--border:#e2e6eb;--white:#fff;--muted:#667085;--blue:#2463c6;--green:#16834b;--red:#c72d43}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--border);border-radius:12px;background:var(--white);color:inherit;padding:12px 15px;font-weight:650}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #c4a15c;outline-offset:2px}a{color:var(--blue);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:clamp(24px,3vw,32px);letter-spacing:-.7px}h2{font-size:20px}h3{font-size:16px}p{line-height:1.65}small,.muted{font-size:13px;color:var(--muted)}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}header{height:68px;position:sticky;top:0;z-index:5;background:#17191f;color:#f7d98e;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:2px solid #cba653}.brand{display:flex;gap:11px;align-items:center;color:inherit}.brand img{width:42px;border-radius:12px}.brand b{font-size:20px;letter-spacing:2px}.brand small{display:block;font-size:10px;color:#dfd6bf;letter-spacing:1.1px}.plain{background:transparent;color:inherit;border:0;font-size:20px;padding:8px}.shell{display:flex;min-height:calc(100dvh - 68px)}nav{width:222px;background:var(--white);border-right:1px solid var(--border);padding:24px 12px;position:sticky;top:68px;height:calc(100dvh - 68px);display:flex;flex-direction:column;gap:6px}nav button{text-align:left;border:0;color:var(--muted);display:flex;align-items:center;gap:10px}nav button.active{color:#76531a;background:#f9edcf}nav .ni{font-size:20px;width:24px;text-align:center}main{width:100%;min-width:0;max-width:1400px;margin:auto;align-self:flex-start;padding:28px;display:flex;flex-direction:column;gap:20px}.mobile .shell{display:block}.mobile main{max-width:620px;padding:16px 14px 105px}.mobile nav{position:fixed;top:auto;bottom:0;left:0;width:100%;height:auto;z-index:6;flex-direction:row;justify-content:space-around;padding:7px 5px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--border);box-shadow:0 -5px 20px #151b2510}.mobile nav button{flex:1;flex-direction:column;gap:3px;padding:8px 2px;font-size:10px;min-width:0;text-align:center}.mobile nav .ni{font-size:19px}.mobile header{padding:0 15px}.hero{background:linear-gradient(125deg,#fffaf0,#fff 70%);border:1px solid #e7d7b4;border-radius:22px;padding:22px;display:grid;gap:11px}.hero h1{color:#26231d}.card{background:var(--white);border:1px solid var(--border);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 3px 12px #202c4006}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.desktop .topics{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile .topics{grid-template-columns:repeat(2,minmax(0,1fr))}.area,.topic{display:flex;flex-direction:column;align-items:flex-start;gap:9px;position:relative;text-align:left;background:var(--white);border:1px solid var(--border);padding:15px;border-radius:18px;min-width:0;overflow:hidden}.area{border-left:5px solid var(--accent);background:var(--tint)}.topic:hover,.area:hover{filter:brightness(.98)}.topic strong,.area strong{line-height:1.25;overflow-wrap:anywhere}.ico{display:grid;place-items:center;background:var(--tint,#f6edda);width:48px;height:48px;border-radius:14px;font-size:26px;flex-shrink:0}.topic .ico{width:42px;height:42px;font-size:23px}.area .ico{background:#ffffffbd}.chip{font-size:11px;font-weight:800;padding:4px 9px;border-radius:99px;background:var(--tint,#f4ead3);color:var(--accent,#805a19)}.sectionhead,.row,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sectionhead,.between{justify-content:space-between}.sectionhead h2{margin:0}.actions>*{flex:1}.primary,.red,.green,.blue{background:#b48837;color:#fff;border:1px solid transparent;text-align:center;display:inline-block;border-radius:12px;padding:13px;font-weight:750}.red{background:#c52b42}.green{background:#16834b}.blue{background:#2463c6}.examcard{border:0;color:white;padding:18px;text-align:left;display:flex;flex-direction:column;gap:7px;border-radius:18px;background:linear-gradient(135deg,#d13c50,#a91f35)}.examcard.green{background:linear-gradient(135deg,#229b60,#147441)}.examcard small{color:#fff;opacity:.85}.progress{height:8px;background:#e8e9ed;border-radius:9px;overflow:hidden}.progress span{height:100%;background:#bf963d;display:block;border-radius:9px}.input,select,input,textarea{border:1px solid var(--border);border-radius:10px;background:var(--white);color:inherit;padding:11px;width:100%;min-width:0}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.notice{padding:12px;border-radius:12px;background:#fff5dd;color:#795719;font-size:13px;line-height:1.5}.question{font-size:19px;font-weight:650;line-height:1.6;white-space:pre-wrap}.sustento{background:#edf8f0;color:#184b30;padding:17px;border-radius:12px;line-height:1.7;white-space:pre-wrap}.sustento mark{background:#fff1a8;color:#3d3106}.opt{width:100%;text-align:left;line-height:1.5;background:var(--white);font-weight:550}.opt.correct{border-color:#16834b;background:#e7f7eb;color:#14643a}.opt.wrong{border-color:#d8394e;background:#ffedf0;color:#aa2738}.opt.selected{border-color:#2463c6;background:#eaf2ff;color:#194e9d}.studygrid{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:14px;align-items:start}.mobile .studygrid{display:flex;flex-direction:column}.mobile .studygrid>*{width:100%}.numbergrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:5px;max-height:240px;overflow:auto}.numbergrid button{padding:6px;font-size:12px}.numbergrid .current{border:2px solid #b48837}.numbergrid .done{background:#e8f2ff;color:#2457a5}.clock{font-variant-numeric:tabular-nums;color:#c52b42;font-weight:800;font-size:26px;text-align:center}.reading{white-space:pre-wrap;line-height:1.8;max-height:53vh;overflow:auto}.desktop .articlegrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px}.mobile .articlegrid{display:flex;flex-direction:column;gap:12px}.mobile .articlegrid .reading{max-height:35vh}.listrow{display:flex;align-items:center;gap:12px;text-align:left}.listrow span{flex:1}.settingsrow{display:flex;align-items:center;justify-content:space-between;gap:12px}.settingsrow input{width:auto}dialog{width:min(540px,calc(100% - 26px));max-height:88dvh;border:1px solid var(--border);border-radius:22px;padding:22px;color:inherit;background:var(--white);box-shadow:0 20px 80px #0004}dialog::backdrop{background:#17202c88;backdrop-filter:blur(3px)}dialog form{display:grid;gap:14px}dialog label{display:grid;gap:6px;font-size:13px;font-weight:700}.footer{color:var(--muted);font-size:12px;text-align:center}.empty{padding:35px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:#20242b;color:white;padding:10px 18px;border-radius:12px;z-index:20;display:none;max-width:90%;text-align:center}#intro{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:radial-gradient(ellipse at center,#37301e,#101114 68%);color:#f5d488;text-align:center}#intro img{width:122px;filter:drop-shadow(0 0 24px #b58a4b65);animation:arrive .7s ease-out}#intro h1{font-size:36px;letter-spacing:5px}#intro p{color:#efe8d9}#intro small{color:#bdb5a7}#intro button{margin-top:22px;background:#d0ad61;color:#19150c;border:0;min-width:180px}#intro.hide{opacity:0;pointer-events:none;transition:opacity .35s}.landing{display:grid;place-items:center;min-height:100dvh;background:#16191f}.landingcard{display:grid;justify-items:center;gap:18px;color:#f4d27f;padding:30px}.landingcard a{width:100%}.dark{background:#15171c;color:#eee;--white:#21242b;--border:#343943;--muted:#b7bec9}.dark .hero{background:#2a251b;border-color:#55472d}.dark .hero h1{color:#f5d488}.dark .area{background:#21242b}.dark .sustento{background:#173728;color:#bce9c8}.dark .notice{background:#392d18;color:#f0d597}.dark nav button.active{background:#3c3020;color:#f4d27f}.dark .chip{color:#262626}.dark .opt.correct{background:#163d2a;color:#a9eac1}.dark .opt.wrong{background:#43252d;color:#ffbac5}.dark .opt.selected{background:#203454;color:#c4d9ff}.dark .progress{background:#383b42}@keyframes arrive{from{transform:scale(.85);opacity:.2}to{transform:scale(1);opacity:1}}@media(max-width:800px){.desktop nav{width:72px;padding:14px 6px}.desktop nav button{justify-content:center}.desktop nav .nt{display:none}.desktop main{padding:16px}.desktop .topics{grid-template-columns:repeat(2,minmax(0,1fr))}.desktop .studygrid,.desktop .articlegrid{display:flex;flex-direction:column}.desktop .studygrid>*{width:100%}}@media(max-width:380px){.grid{gap:8px}.area,.topic{padding:11px}.topic strong{font-size:14px}.mobile nav button{font-size:9px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.area .progress,.topic .progress{width:100%}.mobile .area strong{font-size:15px}#intro.hide{visibility:hidden;transition:opacity .35s,visibility .35s}.brand{cursor:pointer}
.vectoricon{width:1.35em;height:1.35em;vertical-align:middle;display:inline-block;flex-shrink:0}.ico .vectoricon{width:27px;height:27px}.ni .vectoricon{width:21px;height:21px}.area .ico,.topic .ico{background:var(--tint,#f4eee1);color:var(--accent,var(--user-accent));border:1px solid color-mix(in srgb,currentColor 12%,transparent);width:54px;height:54px;border-radius:16px;display:grid;place-items:center}.dark .ico{background:#30343c;color:#e5c67b}.primary,.progress span{background:var(--user-accent,#b48837)}.question{font-size:calc(19px * var(--study-scale,1));color:var(--question-color)}.sustento{font-size:calc(16px * var(--study-scale,1));color:var(--context-color)}.sustento mark{background:color-mix(in srgb,var(--highlight-color) calc(var(--highlight-strength)*100%),transparent)}.opt.correct{color:var(--correct-color);border-color:var(--correct-color)}.dark .question{color:color-mix(in srgb,var(--question-color) 22%,#fff)}.dark .sustento{color:color-mix(in srgb,var(--context-color) 22%,#fff)}.dark .opt.correct{color:color-mix(in srgb,var(--correct-color) 45%,#fff)}.settingscard label{display:grid;gap:6px;font-size:14px;font-weight:600}.settingscard label.settingsrow{display:flex}.settingscard input[type=range]{padding:0;accent-color:var(--user-accent);border:0}.settingscard input[type=color]{height:42px;padding:4px}.colorgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.voice-status:not(:empty){padding:10px;color:#16834b;background:#e9f7ef;border-radius:10px;font-weight:600}.examcard .vectoricon{width:32px;height:32px}.clock{position:sticky;top:64px;z-index:2;background:var(--white);border-radius:12px;padding:7px;border:1px solid var(--border)}

/* EDUTEUS Mobile: visual language for iPhone, with safe areas. */
:root{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,sans-serif;background:#f2f2f7;--border:#e5e5ea;--muted:#65656b;color:#1c1c1e}body.mobile{background:#f2f2f7;min-height:100dvh;--topbar:calc(62px + env(safe-area-inset-top));-webkit-tap-highlight-color:transparent}body.mobile.dark{background:#111114;color:#f5f5f7;--white:#1c1c1e;--border:#333336;--muted:#a1a1aa}body.mobile header{height:var(--topbar);padding:env(safe-area-inset-top) 18px 0;background:#f9f9fbea;color:#24201b;border-bottom:1px solid #d9d9dfaa;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.mobile.dark header{background:#1c1c1eea;color:#f5e3ae;border-color:#39393d}.mobile .brand img{width:42px;height:42px;border-radius:12px}.mobile .brand b{font-size:19px;letter-spacing:.8px}.mobile .brand small{color:var(--muted);font-size:10px;letter-spacing:.65px}.mobile header .plain{display:grid;place-items:center;width:44px;height:44px;color:var(--user-accent);background:var(--white);border:1px solid var(--border);border-radius:50%}.mobile header .plain svg{width:24px;height:24px}.mobile main{max-width:580px;padding:19px 16px calc(100px + env(safe-area-inset-bottom));gap:17px}.mobile h1{font-size:30px;font-weight:750;letter-spacing:-1px;line-height:1.15}.mobile h2{font-size:21px;font-weight:720;letter-spacing:-.45px}.mobile .hero{border:0;background:linear-gradient(140deg,#fff8e7,#fff 85%);border-radius:24px;padding:20px;box-shadow:0 3px 14px #54442c0c}.mobile.dark .hero{background:linear-gradient(135deg,#32291d,#242424)}.mobile .card,.mobile .topic,.mobile .area{border-radius:20px;border:1px solid var(--border);box-shadow:0 2px 7px #00000004}.mobile .area{border-left:0;padding:15px;min-height:155px}.mobile .area .ico,.mobile .topic .ico{border:0;border-radius:16px;width:48px;height:48px}.mobile .topic .ico svg,.mobile .area .ico svg{width:27px;height:27px}.mobile .topic strong,.mobile .area strong{font-size:15px;font-weight:700}.mobile .grid{gap:12px}.mobile button{min-height:44px}.mobile input:not([type=range]):not([type=checkbox]):not([type=color]),.mobile select,.mobile textarea{font-size:16px;min-height:44px}.mobile nav{background:#fbfbfdee;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:0;border-top:1px solid #d9d9df;padding:6px 6px calc(8px + env(safe-area-inset-bottom));gap:1px}.mobile.dark nav{background:#1c1c1eee;border-color:#3a3a3c}.mobile nav button{background:transparent;color:var(--muted);font-weight:550;font-size:10px;gap:3px;border-radius:12px;padding:7px 1px}.mobile nav button.active{background:transparent;color:var(--user-accent);font-weight:750}.mobile nav .ni .vectoricon{height:25px;width:25px;stroke-width:2}.mobile nav button.active .ni{transform:translateY(-1px)}.mobile .examcard{border-radius:19px;min-height:120px}.mobile .examcard strong{font-size:15px}.mobile .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile .actions button{font-size:13px;min-width:0;padding:10px 7px;display:flex;justify-content:center;align-items:center;gap:6px}.mobile .question{font-weight:650;line-height:1.5}.mobile .clock{top:var(--topbar);background:var(--white);color:#d32d44;font-size:30px}.mobile dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,580px);max-height:calc(92dvh - env(safe-area-inset-top));border-radius:28px 28px 0 0;border:0;padding:26px 20px calc(20px + env(safe-area-inset-bottom));overflow:auto;box-shadow:0 -12px 60px #0003}.mobile dialog::before{content:'';display:block;width:38px;height:5px;background:#aaa;border-radius:8px;margin:-13px auto 17px}.mobile dialog::backdrop{background:#0006;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mobile .settingscard{gap:17px}.mobile .settingscard label.settingsrow{min-height:36px}.mobile .settingscard input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 49px;width:49px;height:29px;border:0;padding:0;background:#c7c7cc;border-radius:20px;transition:background .15s}.mobile .settingscard input[type=checkbox]::before{content:'';position:absolute;top:2px;left:2px;width:25px;height:25px;border-radius:50%;background:white;box-shadow:0 1px 5px #0003;transition:transform .15s}.mobile .settingscard input[type=checkbox]:checked{background:#34c759}.mobile .settingscard input[type=checkbox]:checked::before{transform:translateX(20px)}.mobile #intro{padding:calc(25px + env(safe-area-inset-top)) 24px calc(26px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 40%,#42341a,#101012 65%)}.mobile #intro img{width:134px;border-radius:30px}.mobile #intro h1{font-size:38px;letter-spacing:5px}.mobile #intro .intro-note{font-size:10px;letter-spacing:1.8px;color:#d1bb89;margin-top:12px}.mobile #intro button{border-radius:16px;min-height:54px;width:min(320px,90%);font-size:16px;margin-top:28px}.mobile #toast{bottom:calc(85px + env(safe-area-inset-bottom))}.mobile[data-view='study'] nav{display:none}.mobile[data-view='study'] main{padding-bottom:calc(28px + env(safe-area-inset-bottom))}@media(max-width:360px){.mobile main{padding-left:12px;padding-right:12px}.mobile .area,.mobile .topic{padding:11px}.mobile .grid{gap:8px}.mobile .area strong{font-size:14px}}@media(prefers-reduced-motion:reduce){.mobile *{transition:none!important;animation:none!important}}
