:root{color-scheme:light;--bg:#f4f6f3;--surface:#fff;--ink:#182c26;--muted:#5c6c65;--line:#dce4dd;--accent:#176650;--soft:#e6f0e9;--hero:#e4ede1;--shadow:0 8px 30px #18372908}
:root[data-theme=dark]{color-scheme:dark;--bg:#101b18;--surface:#192923;--ink:#eef4eb;--muted:#abbeb2;--line:#32473d;--accent:#9bd3b4;--soft:#284336;--hero:#203d2d;--shadow:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--accent);text-underline-offset:4px}button,input,textarea,select{font:inherit}button,.button{display:inline-block;border:1px solid transparent;border-radius:9px;background:var(--accent);color:var(--surface);padding:11px 19px;font-weight:650;cursor:pointer;text-decoration:none;line-height:1.5}button:hover,.button:hover{filter:brightness(.92)}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d99938;outline-offset:3px}.secondary{background:var(--soft);color:var(--ink);border-color:var(--line)}.quiet{background:transparent;color:var(--muted);padding:7px 9px;font-size:14px}.danger{background:#a33131;color:#fff}header{max-width:1280px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:24px 36px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:750;color:var(--ink);text-decoration:none;white-space:nowrap}.brand small{font-size:11px;letter-spacing:.08em;color:var(--muted);margin-left:5px}.brand-icon{width:38px;height:38px;background:var(--accent);color:var(--surface);border-radius:11px;display:grid;place-items:center;font-size:16px}nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}nav a{font-size:14px;font-weight:550;text-decoration:none;color:var(--muted)}nav form{margin:0}main{max-width:1190px;margin:auto;padding:42px 28px 70px;min-height:75vh}h1,h2,h3{line-height:1.22;letter-spacing:-.035em;margin-top:0}h1{font-size:clamp(30px,4.6vw,54px);font-weight:700;margin-bottom:22px}h2{font-size:28px;margin-bottom:20px}h3{font-size:21px}p{margin:0 0 20px}.eyebrow{display:block;font-size:11px;font-weight:750;letter-spacing:.14em;color:var(--muted);margin-bottom:18px}.hero{background:var(--hero);border:1px solid var(--line);border-radius:22px;padding:48px 52px;position:relative;overflow:hidden}.hero:after{content:'AP1';position:absolute;right:35px;bottom:0;font-size:180px;font-weight:800;line-height:1;opacity:.06;pointer-events:none;letter-spacing:-.08em}.hero p{max-width:550px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:26px 0 48px}.stats div{display:flex;gap:15px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:22px 26px}.stats strong{font-size:34px;line-height:1}.stats span{font-size:14px;color:var(--muted)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.section-head h2{margin-bottom:0}.section-head .eyebrow{margin-bottom:8px}.search{display:flex;align-items:center;gap:8px}.search input{max-width:250px}.search button{padding:9px 14px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.module-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}.module-card:hover{transform:translateY(-3px);border-color:var(--accent)}.card-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:10px;margin-bottom:22px}.tag{display:inline-block;background:var(--soft);color:var(--accent);padding:4px 9px;border-radius:6px;font-size:11px;font-weight:650}.module-card h3{font-size:19px;letter-spacing:-.02em;min-height:47px}.module-card p{font-size:13px;color:var(--muted);margin-top:auto}.card-link{font-size:13px;font-weight:650;color:var(--accent)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:30px;margin-bottom:24px;box-shadow:var(--shadow)}.auth{max-width:590px;margin:30px auto}.auth h1{font-size:40px}.auth p{color:var(--muted)}label{display:block;font-size:14px;font-weight:600;margin-bottom:18px}input,textarea,select{display:block;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;width:100%;padding:11px 13px;margin-top:7px}textarea{resize:vertical}input[type=file]{font-size:13px}.search input,.search select{margin:0;padding:9px 12px}.search select{width:150px}.notice{background:var(--soft);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:8px;padding:16px 20px;margin-bottom:26px;overflow-wrap:anywhere}.back{display:inline-block;margin-bottom:25px;text-decoration:none;font-size:14px}.module-head h1{font-size:38px;max-width:850px}.actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.actions form{margin:0}.prose{max-width:900px}.prose h2{font-size:29px;margin-top:10px}.prose h3{font-size:24px;margin-top:35px}.prose h4{font-size:20px;margin-top:25px}.prose p{white-space:pre-wrap;overflow-wrap:anywhere}.prose .bullet{margin-bottom:10px;padding-left:12px}.table-wrap{overflow-x:auto;margin:25px 0}table{border-collapse:collapse;width:100%;font-size:14px}td{border:1px solid var(--line);padding:12px;vertical-align:top}tr:first-child{background:var(--soft);font-weight:650}pre{background:var(--bg);padding:16px;border-radius:8px;overflow-x:auto;white-space:pre-wrap;font-size:13px}code{font-size:.9em}hr{border:0;border-top:1px solid var(--line);margin:28px 0}.diagrams{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}.diagrams figure{margin:0;padding:12px;background:#fff;color:#24342e;border-radius:10px}.diagrams img{display:block;max-width:100%;height:auto;max-height:650px;margin:auto}figcaption{font-size:12px;padding-top:10px}.task{padding-top:25px;margin-top:25px;border-top:1px solid var(--line)}details{margin-top:20px}summary{cursor:pointer;color:var(--accent);font-weight:650}details[open]>summary{margin-bottom:22px}.review{max-width:850px;margin-top:35px;padding:38px}.review h2{font-size:30px;margin:30px 0}.answer{padding:24px;background:var(--bg);border-radius:10px}.ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:25px}.ratings button{background:var(--soft);color:var(--ink);border-color:var(--line);padding:12px 8px;font-size:14px}.ratings small{display:block;font-size:10px;font-weight:400}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.admin-grid .panel{margin:0}.json-editor{font-family:ui-monospace,monospace;font-size:13px;line-height:1.6;tab-size:2}.narrow{max-width:650px}.muted{color:var(--muted);font-size:13px;overflow-wrap:anywhere}footer{border-top:1px solid var(--line);max-width:1190px;margin:auto;padding:25px 28px;font-size:12px;color:var(--muted)}li{margin-bottom:12px}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(max-width:1000px){header{align-items:flex-start;flex-direction:column}.module-grid{grid-template-columns:repeat(2,1fr)}.section-head{align-items:flex-start;flex-direction:column}.stats div{padding:18px;align-items:flex-start;flex-direction:column;gap:8px}.hero:after{font-size:130px}}@media(max-width:620px){header{padding:18px 20px}nav{gap:12px}nav a{font-size:12px}.brand small{display:none}main{padding:25px 16px 40px}.hero{padding:30px 24px}.hero h1{font-size:36px}.hero:after{display:none}.stats{gap:8px;margin-bottom:30px}.stats div{padding:15px 10px}.stats strong{font-size:27px}.stats span{font-size:11px}.module-grid,.admin-grid{grid-template-columns:1fr}.panel{padding:23px}.search{flex-wrap:wrap}.search input{max-width:none;flex:1;min-width:150px}.ratings{grid-template-columns:1fr 1fr}.module-head h1{font-size:30px}.review{padding:24px}.review h2{font-size:25px}.auth h1{font-size:34px}}
h1,h2,h3,h4,h5,h6{overflow-wrap:anywhere;hyphens:auto}.panel,.module-card,.stats>div,.admin-grid>section{min-width:0}.table-wrap{max-width:100%}
