
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:#eef1f6;color:#1a1a1a;line-height:1.55}
a{color:#1749B3}
.topbar{background:#fff;border-bottom:2px solid #e2e6ee;padding:10px 16px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:60;flex-wrap:wrap;gap:6px}
.topbar .brand{font-weight:800;text-decoration:none;color:#1749B3}
.topbar .brand span{color:#ED3624}
.topbar .prof{color:#555;font-size:.9em}
.exnav{max-width:860px;margin:12px auto 0;display:flex;justify-content:space-between;align-items:center;padding:0 4px;gap:8px}
.exnav a{background:#fff;border-radius:999px;padding:7px 14px;text-decoration:none;font-weight:600;font-size:.9em;box-shadow:0 1px 5px rgba(20,40,90,.08);white-space:nowrap}
.exnav a.dis{opacity:.35;pointer-events:none}
.page{background:#fff;max-width:860px;margin:14px auto 110px;padding:28px 30px 22px;border-radius:14px;box-shadow:0 2px 14px rgba(20,40,90,.08)}
.subiect-badge{display:inline-block;background:#1749B3;color:#fff;font-weight:700;padding:3px 12px;border-radius:999px;font-size:.85em;letter-spacing:.5px}
.pct-badge{float:right;color:#1749B3;font-weight:700}
h1.extitle{font-size:1.12em;margin:.7em 0 .35em}
.enunt{font-size:1.05em;margin:.4em 0 1em}
.workspace{border:1.5px dashed #b9c3d8;border-radius:10px;min-height:300px;margin-top:10px;padding:10px 14px;background:repeating-linear-gradient(#fff,#fff 30px,#f0f3f9 31px)}
.workspace .wlabel{color:#8b96ad;font-size:.8em;letter-spacing:1px;font-weight:600}
.btnbar{position:fixed;left:0;right:0;bottom:0;z-index:50;background:#ffffffee;backdrop-filter:blur(6px);border-top:1.5px solid #dbe1ec;padding:8px 10px calc(8px + env(safe-area-inset-bottom));display:flex;gap:8px;overflow-x:auto;justify-content:center}
.btnbar button{flex:0 0 auto;border:none;border-radius:999px;padding:9px 15px;font-size:.92em;font-weight:600;cursor:pointer;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.b-teorie{background:#ED3624} .b-barem{background:#1749B3} .b-gres{background:#b45309}
.b-c8a{background:#0d6e8c} .b-c8b{background:#3b5bd6} .b-ant{background:#9C27B0}
html.js details.sheet:not(.as-sheet){display:none}
details.sheet{max-width:860px;margin:10px auto;background:#fff;border-radius:12px;box-shadow:0 2px 10px rgba(20,40,90,.07);overflow:hidden}
details.sheet>summary{cursor:pointer;padding:13px 18px;font-weight:700;list-style:none;display:flex;justify-content:space-between;align-items:center}
details.sheet>summary::-webkit-details-marker{display:none}
details.sheet>summary .chev{color:#98a3b8;font-weight:400}
.sheetbody{padding:6px 20px 20px}
html.js details.sheet[open].as-sheet{position:fixed;left:50%;transform:translateX(-50%);bottom:64px;top:auto;width:min(900px,100vw);max-height:78vh;margin:0;z-index:40;border-radius:18px;box-shadow:0 -8px 40px rgba(10,25,60,.35);display:flex;flex-direction:column}
html.js details.sheet[open].as-sheet .sheetbody{overflow-y:auto;-webkit-overflow-scrolling:touch}
html.js details.sheet[open].as-sheet>summary{position:sticky;top:0;background:#fff;border-bottom:1px solid #edf0f6;z-index:2}
.backdrop{display:none}
html.js .backdrop.on{display:block;position:fixed;inset:0;background:rgba(15,25,50,.45);z-index:30}
.closex{display:none}
html.js details.sheet[open].as-sheet .closex{display:inline-block;background:#eef1f6;border:none;border-radius:50%;width:30px;height:30px;font-size:15px;cursor:pointer;color:#333}
.eq{margin:.45em 0;overflow-x:auto;padding:2px 0}
.s-teorie .sheetbody{color:#ED3624}
.s-teorie .tcard{border:1.5px solid #ED362422;border-left:4px solid #ED3624;border-radius:8px;padding:10px 14px;margin:10px 0;background:#fff8f7}
.s-teorie .ttitle{font-weight:700;color:#ED3624}
.s-teorie .tctx{color:#8a2a20;font-size:.95em;margin:.3em 0}
.lessons{background:#faf5ff;border:1.5px solid #9C27B0;border-radius:8px;padding:10px 14px;margin-top:14px;color:#4a148c;font-size:.95em}
.lessons a{color:#9C27B0;font-weight:600}
.s-barem .sheetbody,.barem-in{color:#1749B3}
.bstep{display:flex;gap:12px;margin:10px 0;align-items:flex-start}
.pct{flex:0 0 auto;background:#1749B3;color:#fff;border-radius:6px;font-weight:700;padding:2px 8px;font-size:.85em;margin-top:2px}
.answer{border-top:1.5px solid #1749B333;margin-top:14px;padding-top:10px;color:#1749B3;font-size:1.05em}
.s-gres .c6ename{color:#b45309;font-weight:700;font-size:1.05em}
.s-gres .c6edesc{color:#b45309;margin:.4em 0 .8em}
.c6ecols{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.c6ecols .lbl{font-weight:700;font-size:.85em;letter-spacing:.5px}
.c6ecols .wrong{border:1.5px solid #ED362455;border-radius:8px;padding:8px 12px;color:#ED3624;background:#fff7f6}
.c6ecols .right{border:1.5px solid #1749B355;border-radius:8px;padding:8px 12px;color:#1749B3;background:#f5f8ff}
@media(max-width:640px){.c6ecols{grid-template-columns:1fr}}
.s-c8a .sheetbody,.c8a-in{color:#1749B3}
.c8text{margin:.6em 0 .2em;font-weight:600}
.s-c8b .sheetbody,.c8b-in{color:#15306e}
.c8btitle{font-weight:700;margin-top:.9em;color:#1749B3}
.antintro{color:#5e35a1;margin-top:4px}
details.ant{border:1.5px solid #e4d5f2;border-radius:10px;margin:10px 0;background:#fdfbff}
details.ant>summary{cursor:pointer;padding:11px 14px;list-style:none;font-size:.98em}
details.ant>summary::-webkit-details-marker{display:none}
details.ant .hint-open{float:right;color:#b39ddb;font-size:.85em}
.antbody{padding:4px 16px 14px}
.antenunt{margin:.3em 0 .8em}
details.sub{border-top:1px dashed #e0d4ee;margin-top:6px}
details.sub>summary{cursor:pointer;padding:8px 2px;font-weight:600;color:#5e35a1;list-style:none}
details.sub>summary::-webkit-details-marker{display:none}
.subbody{padding:4px 6px 10px}
.nico{margin-right:4px}
.paywall{text-align:center;padding:26px 18px;color:#333}
.paywall h3{color:#1749B3;margin:.2em 0 .4em}
.paywall a.buy{display:inline-block;background:#1749B3;color:#fff;font-weight:700;text-decoration:none;padding:11px 22px;border-radius:999px;margin-top:10px}
.gate-loading{text-align:center;color:#98a3b8;padding:24px}
/* cuprins */
.cuprins{max-width:860px;margin:16px auto 60px}
.chero{background:linear-gradient(135deg,#1749B3,#2b6be6);color:#fff;border-radius:18px;padding:32px 30px;margin-bottom:20px}
.chero h1{margin:0 0 6px;font-size:1.55em}
.chero p{margin:4px 0;opacity:.94}
.subgrp{background:#fff;border-radius:14px;padding:16px 20px;margin:14px 0;box-shadow:0 2px 10px rgba(20,40,90,.06)}
.subgrp h2{margin:0 0 8px;font-size:1.05em;color:#1749B3}
.exgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.excard{border:1.5px solid #e3e8f2;border-radius:10px;padding:10px 12px;text-decoration:none;color:inherit;display:block}
.excard:hover{border-color:#1749B3;box-shadow:0 2px 8px rgba(23,73,179,.15)}
.excard .exid{font-weight:800;color:#1749B3;font-size:.85em}
.excard .exti{font-size:.92em;margin-top:2px;color:#2a3352}
.howto{background:#fff8e6;border:1.5px solid #f4d47c;color:#7a5c00;border-radius:12px;padding:14px 18px;margin:16px 0;font-size:.95em}
@media print{
  body{background:#fff}
  .topbar,.btnbar,.exnav,details.sheet,.backdrop{display:none !important}
  .page{box-shadow:none;margin:0;max-width:none;border-radius:0;padding:0 6mm}
  .workspace{min-height:170mm}
  .print-note{display:block !important;color:#666;font-size:.8em;margin-top:6mm}
}
.print-note{display:none}
