*{box-sizing:border-box}body{margin:0;background:#f4f7fb;color:#162235;font-family:Arial,Helvetica,sans-serif}button,input{font:inherit}button{border:0;border-radius:10px;background:#2563eb;color:#fff;padding:11px 15px;font-weight:700;cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}input{border:1px solid #cbd5e1;border-radius:9px;padding:11px;width:100%}.wrap{max-width:980px;margin:auto;padding:22px}.header{background:#101d35;color:#fff;padding:20px 24px}.muted{color:#64748b;font-size:14px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:20px;margin:16px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));grid-gap:12px;gap:12px}.field{display:grid;grid-gap:6px;gap:6px;margin:12px 0}.field label{font-size:14px;font-weight:700}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs button{background:#e2e8f0;color:#1e293b}.tabs button.active{background:#2563eb;color:#fff}.pill{display:inline-block;border-radius:999px;padding:5px 9px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:700}.error{background:#fee2e2;color:#991b1b}.error,.success{padding:10px;border-radius:8px}.success{background:#dcfce7;color:#166534}.unit{margin:10px 0}.question,.unit{border:1px solid #e2e8f0;padding:14px;border-radius:12px}.question{margin:12px 0}.choice{display:flex;gap:8px;align-items:flex-start;padding:8px;border:1px solid #e2e8f0;border-radius:9px;margin:6px 0}.choice input{width:auto;margin-top:4px}@media(max-width:600px){.wrap{padding:12px}.header{padding:16px}.card{padding:15px}}.header{background:linear-gradient(135deg,#071b49,#0755c9,#03143a);padding:24px 28px;min-height:130px;border-bottom:3px solid #19c5ff;box-shadow:0 5px 20px rgba(0,40,120,.2)}.header h1{display:flex;align-items:center;gap:14px;font-size:34px;font-weight:800;margin:0;color:white}.header h1 img{width:60px!important;height:60px!important;object-fit:cover;border-radius:14px;box-shadow:0 0 15px rgba(0,195,255,.5)}.header p{margin-top:12px;font-size:16px;color:#d9efff}.header{color:white;background-image:url(/chemsmart-header-flask.png);background-repeat:no-repeat;background-position:100%;background-size:auto 100%}.home-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:28px;margin:16px 0;box-shadow:0 4px 18px rgba(15,23,42,.05)}.home-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}.home-bar{width:6px;height:46px;border-radius:6px;background:linear-gradient(180deg,#2563eb,#19c5ff)}.home-title{margin:0;font-size:26px;font-weight:800;color:#0f172a;letter-spacing:.2px}.home-sub{margin:4px 0 0;color:#64748b;font-size:14px}.home-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));grid-gap:16px;gap:16px}.home-card{position:relative;display:flex;align-items:center;gap:16px;text-align:left;padding:20px 22px;min-height:112px;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-left:5px solid var(--accent,#2563eb);border-radius:16px;box-shadow:0 1px 3px rgba(15,23,42,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;overflow:hidden}.home-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(15,23,42,.12);border-color:var(--accent,#2563eb)}.home-card:focus-visible{outline:3px solid var(--accent,#2563eb);outline-offset:2px}.home-icon{flex:0 0 56px;height:56px;display:flex;align-items:center;justify-content:center;font-size:28px;border-radius:14px;background:color-mix(in srgb,var(--accent,#2563eb) 12%,#fff)}.home-text{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1 1}.home-card-title{font-size:16px;line-height:1.25;font-weight:800;text-transform:uppercase;letter-spacing:.2px}.home-card-desc{font-size:13.5px;line-height:1.4;color:#64748b;font-weight:400}.home-num{top:10px;right:14px;font-size:12px;font-weight:800;opacity:.55}.home-arrow,.home-num{position:absolute;color:var(--accent,#2563eb)}.home-arrow{bottom:10px;right:16px;font-size:20px;opacity:0;transform:translateX(-6px);transition:all .15s ease}.home-card:hover .home-arrow{opacity:1;transform:translateX(0)}@media(max-width:600px){.home-wrap{padding:16px}.home-title{font-size:21px}.home-grid{grid-template-columns:1fr}.home-card{min-height:96px}}.pg{border-radius:20px;box-shadow:0 4px 18px rgba(15,23,42,.05)}.pg h2{font-size:26px;margin:6px 0 4px;padding-left:14px;border-left:6px solid #2563eb;line-height:1.2}.pg h2,.pg h3{font-weight:800;color:#0f172a}.pg h3{font-size:19px;margin:6px 0}.pg h4{color:#0f172a;margin:10px 0 6px}.pg .muted{color:#64748b;line-height:1.5}.pg .pill{background:#e0edff;color:#1d4ed8;letter-spacing:.2px}.pg .grade-card{display:flex;flex-direction:column;gap:4px;text-align:left;padding:22px 18px;min-height:118px;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-top:5px solid #2563eb;border-radius:16px;box-shadow:0 1px 3px rgba(15,23,42,.06);transition:transform .15s,box-shadow .15s}.pg .grade-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(37,99,235,.18)}.pg .grade-card div:first-child{font-size:30px;font-weight:800;color:#1d4ed8}.pg .grade-card small{color:#64748b;font-weight:600}.pg .grade-card.special{background:linear-gradient(135deg,#1e40af,#2563eb 60%,#19c5ff);color:#fff;border:0;box-shadow:0 8px 20px rgba(37,99,235,.35)}.pg .grade-card.special div:first-child,.pg .grade-card.special small{color:#fff}.pg .menu-card,.pg .unit-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;min-height:130px;box-shadow:0 1px 3px rgba(15,23,42,.06);transition:transform .15s,box-shadow .15s,border-color .15s;font-weight:400}.pg .menu-card:hover,.pg .unit-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(15,23,42,.12);border-color:#93c5fd}.pg .menu-card.on,.pg .unit-card.on{background:#eff6ff;border:2px solid #2563eb;box-shadow:0 6px 18px rgba(37,99,235,.18)}.pg .menu-card b{font-size:15px;color:#0f172a}.pg .unit-card h3{font-size:17px;margin:8px 0 4px}.pg .unit{background:#fff;border:1px solid #e2e8f0;border-left:5px solid #2563eb;border-radius:14px;padding:16px;box-shadow:0 1px 3px rgba(15,23,42,.05)}.pg .unit h4{margin:8px 0 4px}.pg .question{background:#f8fafc;border:1px solid #e2e8f0;border-left:5px solid #19c5ff;border-radius:14px;padding:16px}.pg .question button,.pg .unit button{border-radius:10px}.pg .field select{border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff}@media(max-width:600px){.pg h2{font-size:21px}.pg .grade-card{min-height:100px}}.pg .grade-card b{font-size:25px;color:#1d4ed8}.pg .group-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;padding:20px;min-height:110px;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-top:5px solid #19c5ff;border-radius:16px;box-shadow:0 1px 3px rgba(15,23,42,.06);transition:transform .15s,box-shadow .15s}.pg .group-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(15,23,42,.12)}.pg .group-card b{font-size:25px;color:#1d4ed8}.pg table{border-radius:12px;overflow:hidden}.pg thead th{background:#1e3a8a!important;color:#fff;font-size:13px;letter-spacing:.2px;padding:12px 10px!important}.pg tbody td{background:#fff;font-size:14px}.pg tbody tr:nth-child(2n) td{background:#f8fafc!important}.pg tbody tr:hover td{background:#eff6ff!important}.pg .unit h2{margin:6px 0 0;font-size:30px;color:#1d4ed8;padding-left:0;border-left:0}.pg .unit b{color:#334155}.pg .field label{font-size:13.5px;font-weight:800;color:#334155;letter-spacing:.2px}.pg input,.pg select,.pg textarea{width:100%;font:inherit;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:11px 13px;transition:border-color .15s,box-shadow .15s}.pg input::placeholder,.pg textarea::placeholder{color:#94a3b8}.pg input:focus,.pg select:focus,.pg textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.18)}.pg input[type=checkbox],.pg input[type=radio]{width:auto;accent-color:#2563eb;box-shadow:none}.pg input[type=file]{background:#f8fafc;border:2px dashed #93c5fd;padding:14px;cursor:pointer}.pg input[type=file]::-webkit-file-upload-button{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:8px 14px;margin-right:12px;font-weight:700;cursor:pointer}.pg input[type=file]::file-selector-button{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:8px 14px;margin-right:12px;font-weight:700;cursor:pointer}.pg textarea{min-height:90px;resize:vertical}.pg button{transition:transform .12s,box-shadow .12s,filter .12s}.pg button:not(:disabled):not(.grade-card):not(.menu-card):not(.unit-card):not(.group-card):hover{filter:brightness(1.07);box-shadow:0 4px 12px rgba(37,99,235,.25)}.pg button:disabled{opacity:.5}.pg .choice{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;transition:background .12s,border-color .12s}.pg .choice:hover{background:#eff6ff;border-color:#93c5fd}.pg .error{border-left:4px solid #dc2626}.pg .success{border-left:4px solid #16a34a}.header{position:relative;min-height:150px;padding:26px 32px;display:flex;flex-direction:column;justify-content:center;background-color:#071b43;background-image:linear-gradient(90deg,#071b43,#071b43 calc(100% - 650px),rgba(7,27,67,.8) calc(100% - 560px),rgba(7,27,67,0) calc(100% - 360px)),url(/chemsmart-header-flask.png);background-repeat:no-repeat,no-repeat;background-position:0,100%;background-size:100% 100%,auto 100%;border-bottom:0;box-shadow:0 8px 24px rgba(3,20,58,.28)}.header:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#19c5ff,#2563eb 45%,#19c5ff)}.header h1{font-size:38px;letter-spacing:.3px;text-shadow:0 2px 14px rgba(25,197,255,.35)}.header h1 img{box-shadow:0 0 0 2px rgba(255,255,255,.18),0 0 22px rgba(25,197,255,.55)}.header p{display:inline-block;align-self:flex-start;margin:12px 0 0 2px;padding:6px 14px;font-size:14.5px;letter-spacing:.4px;color:#e6f4ff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:999px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}@media(max-width:700px){.header{min-height:120px;padding:18px 16px;background-image:linear-gradient(90deg,#071b43 35%,rgba(7,27,67,.6)),url(/chemsmart-header-flask.png)}.header h1{font-size:28px}.header p{font-size:13px;padding:5px 11px}}main:not(.wrap){max-width:1400px;margin:0 auto;padding:18px 28px 48px}.tabs{align-items:center;margin-bottom:4px}.tabs button{border-radius:12px;box-shadow:0 2px 8px rgba(15,23,42,.12);transition:transform .12s,box-shadow .12s}.tabs button:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(15,23,42,.18)}.tabs button.active{background:linear-gradient(135deg,#1d4ed8,#2563eb 60%,#19c5ff);letter-spacing:.3px}.pg .unit-card .pill{margin-bottom:4px}.pg .unit-card p.muted{font-weight:400}.pg .unit-card h3{font-weight:800}.pg .unit-card b{margin-top:auto;color:#1d4ed8}.wrap .card.pg{margin-top:30px}@media(max-width:600px){main:not(.wrap){padding:12px 12px 36px}}