h2{margin:0 0 8px;font-size:1.15rem}.small{font-size:.85rem}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 16px}.page-head h1,.page-head h2{margin:0}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:24px}.stat{display:flex;flex-direction:column;gap:4px}.stat strong{font-size:1.8rem;color:var(--primary)}.list{display:flex;flex-direction:column;gap:12px}.list-item,.exam-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.exam-card{display:flex;flex-direction:column;gap:10px}.meta{display:flex;flex-wrap:wrap;gap:4px 16px}.code-row{display:flex;align-items:center;gap:8px}.code-row code{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:2px 10px;font-size:1.05rem;letter-spacing:2px}.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}.badge-ok{background:#e3f6ea;color:#1c6b3a}.badge-draft{background:#eef0f4;color:var(--muted)}.btn-sm{padding:6px 12px;font-size:.9rem}.btn-danger{background:#c62f2f;color:#fff}.btn-danger:hover:not(:disabled){background:#a12626}.btn-danger-outline{background:transparent;color:#c62f2f;border-color:#e7b4b4}.alert-ok{background:#e3f6ea;color:#1c6b3a;margin-bottom:12px}.alert-error{margin-bottom:12px}textarea{font:inherit;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;resize:vertical}.form-wide{max-width:720px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:8px}.check{display:flex;align-items:center;gap:8px;font-weight:400}.check input{width:18px;height:18px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{width:100%;max-width:420px}@media (max-width: 600px){.grid-2{grid-template-columns:1fr}.page-head{flex-wrap:wrap}}.spaced{margin-top:16px}.editor{display:flex;flex-direction:column;gap:8px;margin:12px 0}.seg{display:flex;flex-wrap:wrap;gap:8px}.seg-btn{font:inherit;padding:6px 14px;border:1px solid var(--border);border-radius:999px;background:#fff;cursor:pointer}.seg-active{background:var(--primary);border-color:var(--primary);color:#fff}.label-text{font-weight:600;font-size:.95rem}.choices{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.choice-row{display:flex;align-items:center;gap:8px;width:100%}.choice-row input:not([type=radio]){flex:1;min-width:0}.choice-row input[type=radio]{width:18px;height:18px}.q-card{display:flex;flex-direction:column;gap:8px}.choice-list{margin:0;padding-inline-start:20px}.choice-correct{color:#1c6b3a;font-weight:600}.choice-row textarea{flex:1;min-width:0}.pre-wrap{white-space:pre-wrap}.instructions{margin:0 0 16px;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px}.exam-wrap{width:100%;max-width:800px;margin:0 auto;padding:0 16px 48px;display:flex;flex-direction:column;gap:12px}.exam-bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;background:var(--bg);border-bottom:1px solid var(--border)}.timer{font-size:1.5rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--primary)}.timer-warn{color:#c62f2f}.save-state{font-size:.8rem;color:var(--muted)}.save-error{color:#c62f2f}.q-box{display:flex;flex-direction:column;gap:12px}.q-text{margin:0;font-size:1.15rem;font-weight:600;white-space:pre-wrap}.opts{display:flex;flex-direction:column;gap:8px}.opt{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff;cursor:pointer;font-weight:400}.opt input{width:18px;height:18px}.opt-selected{border-color:var(--primary);background:#eef3ff}.answer-input{width:100%}.nav-row{justify-content:space-between}.palette{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}.pal-btn{width:40px;height:40px;font:inherit;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}.pal-answered{background:#e3f6ea;border-color:#9bd3af}.pal-current{outline:2px solid var(--primary);outline-offset:1px}.result-banner{text-align:center;font-size:1.3rem}.result-pass{background:#e3f6ea;color:#1c6b3a}.result-fail{background:#fdecec;color:#a12626}:root{--bg: #f5f7fb;--surface: #ffffff;--text: #1b2430;--muted: #6b7686;--primary: #2457d6;--primary-dark: #1b44ab;--border: #dde3ee;--danger-bg: #fdecec;--danger-text: #a12626;--radius: 12px}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Cairo,system-ui,-apple-system,Segoe UI,Tahoma,sans-serif;background:var(--bg);color:var(--text);line-height:1.7}h1{margin:0 0 12px;font-size:1.5rem}.muted{color:var(--muted)}.container{width:100%;max-width:1100px;margin:0 auto;padding:20px 16px 48px}.app-shell{min-height:100vh}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.center-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px}.hero{text-align:center;width:100%;max-width:420px}.form{width:100%;max-width:420px;display:flex;flex-direction:column;gap:8px}label{font-weight:600;font-size:.95rem}input{font:inherit;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fff}input:focus{outline:2px solid var(--primary);outline-offset:1px}.btn{display:inline-block;font:inherit;font-weight:600;padding:10px 18px;border-radius:8px;border:1px solid transparent;cursor:pointer;text-decoration:none;text-align:center}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-outline{background:transparent;color:var(--text);border-color:var(--border)}.alert{padding:10px 12px;border-radius:8px;font-size:.95rem}.alert-error{background:var(--danger-bg);color:var(--danger-text)}.spinner{width:32px;height:32px;border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}:root{--primary: #0a6ee8;--primary-dark: #0858bd;--bg: #f4f7fc;--radius: 16px;--header-h: 72px;--danger: #d92d20;--ink: #0f1b33}body{background:var(--bg)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px}.btn-block{width:100%}.btn-lg{padding:14px 18px;font-size:1.05rem;border-radius:14px}.btn-primary.btn-lg{box-shadow:0 8px 18px #0a6ee847}.btn-light{background:#fff;color:#0a4fb5;border-color:transparent}.btn-light:hover{background:#eaf3ff}.btn-glass{width:100%;background:#ffffff24;border-color:#ffffff52;color:#fff}.btn-glass:hover{background:#ffffff38}.topbar{position:sticky;top:0;z-index:40;height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px;min-width:0;color:inherit;text-decoration:none}.brand-logo{width:48px;height:48px;flex:none;border-radius:14px;border:1px solid var(--border);box-shadow:0 2px 8px #0f1b3324;background:#000}.brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}.brand-text strong{font-size:1.3rem;font-weight:800;color:var(--ink)}.brand-text small{color:var(--primary);font-weight:700;font-size:.8rem}.icon-btn{width:44px;height:44px;display:grid;place-items:center;flex:none;border:0;border-radius:12px;background:transparent;color:#334155;cursor:pointer}.icon-btn:hover{background:#eef2f8}.menu-panel{position:fixed;top:var(--header-h);left:0;right:0;bottom:0;z-index:39;background:var(--surface);padding:16px;overflow-y:auto}.menu-inner{width:100%;max-width:560px;min-height:100%;margin:0 auto;display:flex;flex-direction:column;gap:12px}.menu-profile{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:16px;background:#f7f9fd}.avatar{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--primary);color:#fff;font-weight:800;font-size:1.2rem}.menu-who{flex:1;min-width:0;display:flex;flex-direction:column}.menu-who strong,.menu-who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-who span{color:var(--muted);font-size:.9rem;direction:ltr;text-align:right}.role-badge{flex:none;padding:3px 14px;border-radius:999px;border:2px solid;font-weight:700;font-size:.85rem}.role-teacher{background:#eaf3ff;color:#0a58b8;border-color:#bcd9fb}.role-student{background:#e6f8ef;color:#12805c;border-color:#a6e3c6}.menu-links{display:flex;flex-direction:column;gap:4px}.menu-link{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:12px;color:var(--text);font-weight:600;text-decoration:none}.menu-link:hover{background:#f1f5fb}.menu-link-active{background:#eaf3ff;color:var(--primary)}.menu-logout{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;border:1px solid #fecaca;border-radius:14px;background:#fff;color:var(--danger);font:inherit;font-weight:800;cursor:pointer}.menu-logout:hover{background:#fef3f2}.splash{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#00124a}.splash-img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.splash-logo{border-radius:36px}.splash-text{margin:0;font-weight:600;opacity:.9}.landing{min-height:calc(100vh - var(--header-h) - 70px);display:flex;align-items:center;justify-content:center;padding:24px 0}.landing-top{align-items:flex-start}.entry-card{width:100%;max-width:480px;display:flex;flex-direction:column;align-items:center;gap:14px;padding:28px 22px;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:28px;box-shadow:0 20px 40px #0f1b3314}.entry-logo{width:132px;height:132px;border-radius:30px;border:1px solid var(--border);box-shadow:0 8px 20px #0f1b332e;background:#000}.entry-title{margin:0;font-size:2rem;font-weight:800;color:var(--ink)}.entry-sub{margin:0;color:var(--muted);font-weight:600}.entry-alert{width:100%;text-align:start;margin:0}.alert-ok{background:#e3f6ea;color:#1c6b3a}.input-icon{position:relative;width:100%}.input-icon>input{width:100%;height:54px;padding-inline:46px 14px;border-radius:14px;background:#f7f9fd}.input-icon>.input-ico{position:absolute;top:50%;inset-inline-start:15px;transform:translateY(-50%);color:#94a3b8;pointer-events:none}.input-icon>.ico-end{position:absolute;top:50%;inset-inline-end:6px;transform:translateY(-50%)}.input-icon.has-end>input{padding-inline-end:52px}.code-input{unicode-bidi:plaintext;text-align:center;font-weight:700;letter-spacing:1px}.entry-foot{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding-top:14px;border-top:1px solid var(--border);color:var(--muted);font-size:.95rem}.entry-foot a{display:inline-flex;align-items:center;gap:6px;color:var(--primary);font-weight:700;text-decoration:none}.auth-card{align-items:stretch;text-align:start}.auth-card .icon-box,.auth-card .entry-logo,.auth-card>img{align-self:center;margin-inline:auto}.auth-card .icon-box{display:grid;place-items:center}.auth-card .entry-logo,.auth-card>img{display:block}.icon-box>svg{display:block}.logo-wrap{display:flex;justify-content:center;width:100%}.auth-title{font-size:1.6rem;text-align:center}.auth-card .entry-sub{text-align:center}.field-label{margin-top:2px;font-weight:700}.notice-warn{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #f3dc9a;border-radius:14px;background:#fff8e6;color:#8a5200}.notice-warn svg{flex:none;margin-top:3px}.notice-warn strong{display:block}.code-pill{display:inline-block;padding:0 10px;margin:2px 0;border-radius:8px;background:#fde9a8;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;letter-spacing:2px;direction:ltr}.auth-foot{margin:4px 0 0;padding-top:14px;border-top:1px solid var(--border);color:var(--muted);font-size:.9rem;text-align:center}.icon-box{flex:none;display:grid;place-items:center;border-radius:18px}.icon-box-md{width:60px;height:60px}.icon-box-lg{width:72px;height:72px;border-radius:22px}.icon-box-blue{background:#eaf3ff;color:#0a6ee8;border:1px solid #cfe3fb}.icon-box-green{background:#e6f8ef;color:#12805c;border:1px solid #bfe9d3}.icon-box-amber{background:#fff3df;color:#b76e00;border:1px solid #f5dcae}.icon-box-violet{background:#f1ebff;color:#6d3fd1;border:1px solid #dccffa}.dash-title{margin:4px 0;font-size:1.9rem;font-weight:800;color:var(--ink)}.dash-sub{margin:0 0 18px}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}.action-card{display:flex;flex-direction:column-reverse;align-items:flex-start;justify-content:flex-end;gap:10px;min-height:112px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:20px;color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}.action-card:hover{border-color:#9cc6f7;box-shadow:0 10px 24px #0a6ee81f;transform:translateY(-1px)}.action-text{display:flex;flex-direction:column;min-width:0;gap:2px}.action-title{font-size:1.05rem;font-weight:800;color:var(--ink)}.action-desc{color:var(--muted);font-size:.88rem}.action-tag{margin-inline-start:8px;padding:1px 10px;border-radius:999px;background:#f1ebff;color:#6d3fd1;font-size:.72rem;font-weight:700;vertical-align:middle}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.stat-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid-2 .stat-card{flex-direction:column-reverse;align-items:flex-start;justify-content:flex-end;gap:12px;padding:18px}.stat-grid-2 .stat-card.stat-card-wide{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between}.stat-grid-spaced{margin:18px 0}.stat-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:20px}.stat-text{display:flex;flex-direction:column;min-width:0}.stat-label{color:var(--muted);font-weight:700}.stat-value{font-size:2.1rem;font-weight:800;line-height:1.25;color:var(--ink)}.stat-hint{color:var(--muted);font-size:.85rem}.hero-blue{display:flex;flex-direction:column;gap:12px;padding:24px 20px;border-radius:28px;background:linear-gradient(135deg,#0a6ee8,#0a4fb5 55%,#07316f);color:#fff;box-shadow:0 16px 32px #0a6ee847}.hero-blue h1{margin:0;font-size:1.8rem;font-weight:800}.hero-blue p{margin:0;opacity:.92}.hero-pill{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:#ffffff29;font-size:.9rem;font-weight:700}.quick-box{display:flex;flex-direction:column;gap:10px;margin-top:6px;padding:16px;border:1px solid rgba(255,255,255,.28);border-radius:20px;background:#ffffff1f}.quick-label{display:flex;align-items:center;gap:8px;font-weight:700}.quick-row{display:flex;gap:8px}.quick-row input{flex:1;min-width:0;height:48px;border:0;border-radius:14px;color:var(--ink)}.quick-row .btn{height:48px;padding-inline:22px}.quick-error{padding:6px 10px;border-radius:8px;background:#fffffff2;color:var(--danger-text);font-size:.9rem}.history-card{padding:0;overflow:hidden;border-radius:20px}.history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px}.history-head h2{margin:0}.count-badge{min-width:30px;padding:1px 10px;border-radius:999px;background:#eef2f8;text-align:center;font-weight:700}.history-pad{margin:0 20px 16px}.history-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 20px 36px;border-top:1px solid var(--border);text-align:center}.history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--border)}.soon-card{max-width:520px;margin:24px auto;display:flex;flex-direction:column;align-items:center;gap:10px;padding:32px 22px;border-radius:24px;text-align:center}.soon-card h1{margin:8px 0 0}.soon-card p{margin:0 0 8px}@media (min-width: 768px){.hero-blue{padding:32px}.container{padding-top:28px}}.clock-banner{padding:10px 16px;border-bottom:1px solid #f3d3a3;background:#fff4e5;color:#8a4b00;font-weight:600;text-align:center}@media (min-width: 900px){.action-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer}.icon-btn:hover:not(:disabled){background:#eef4fd}.icon-btn-danger{color:var(--danger)}.icon-btn-danger:hover:not(:disabled){background:#fdecec}.modal-lg{max-width:520px;max-height:90vh;overflow-y:auto}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.modal-head h2{margin:0;font-size:1.15rem}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;color:var(--primary);font-weight:700;text-decoration:none}.page-top{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px}.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px}.chip{display:inline-flex;align-items:center;gap:6px;flex:none;padding:7px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}.chip-on{background:var(--primary);border-color:var(--primary);color:#fff}.chip-n{min-width:22px;padding:0 6px;border-radius:999px;background:#0f1b3314;font-size:.78rem;text-align:center}.chip-on .chip-n{background:#ffffff40}.toolbar{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}.search-box{width:100%}.table-card{padding:0;overflow:hidden}.table-wrap{overflow-x:auto}.data-table{width:100%;min-width:680px;border-collapse:collapse}.data-table th,.data-table td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:start;vertical-align:middle}.data-table th{background:#f1f5fb;color:var(--muted);font-size:.85rem}.data-table tr:last-child td{border-bottom:0}.row-off{opacity:.6}.grade-select{padding:6px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font:inherit}.act-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.pw-row{display:flex;align-items:center;gap:8px}.pw-row input{flex:1;min-width:0}.cred-box{padding:14px;border:1px dashed var(--border);border-radius:12px;background:#f6f9ff;font-family:monospace;font-size:1.05rem;line-height:1.9;-webkit-user-select:all;user-select:all}.community-hero{align-items:flex-start;margin-bottom:16px}.post-card{display:flex;flex-direction:column;gap:10px}.post-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.post-title{margin:0;font-size:1.1rem}.post-body{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.badge-teacher{background:#e7f7ee;color:#11794a}.badge-grade{background:#eaf2ff;color:#0a4fb5}.code-box{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 14px;border:1px dashed #9cc6f7;border-radius:14px;background:#f3f8ff}.code-big{font-size:1.4rem;font-weight:800;letter-spacing:2px}.post-foot{display:flex}.like-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);font:inherit;font-weight:700;cursor:pointer}.like-on{border-color:#f5b5bd;background:#fff0f2;color:#d6283f}.like-on svg{fill:currentColor}@media (min-width: 700px){.toolbar{padding:16px}}.action-card .icon-box{width:46px;height:46px;border-radius:14px}.action-card .icon-box svg{width:22px;height:22px}.action-title{line-height:1.35}.stat-grid-2 .stat-card{padding:14px;gap:8px}.stat-grid-2 .stat-value{font-size:1.7rem}.stat-grid-2 .icon-box{width:46px;height:46px;border-radius:14px}.stat-grid-2 .icon-box svg{width:22px;height:22px}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}input,textarea,select,.selectable,.cred-box{-webkit-user-select:text;user-select:text}.back-link{background:none;border:0;padding:4px 0;font:inherit;font-weight:700;cursor:pointer}@media print{body{display:none}}.watermark{position:fixed;top:-20%;right:-20%;bottom:-20%;left:-20%;z-index:5;display:flex;flex-direction:column;justify-content:space-around;overflow:hidden;pointer-events:none;transform:rotate(-24deg);color:#0f1b33;opacity:.07;font-weight:700;font-size:1rem;white-space:nowrap;direction:ltr}.status-pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.8rem;font-weight:700;white-space:nowrap}.st-none{background:#eef1f6;color:#55607a}.st-live{background:#e5f0ff;color:#0a4fb5}.st-done{background:#e7f7ee;color:#11794a}.st-blocked{background:#fdecec;color:#a12626}.review-list{display:flex;flex-direction:column;gap:12px}.review-item{padding:12px;border:1px solid var(--border);border-radius:12px}.review-answer{margin:0;padding:8px 10px;border-radius:8px;background:#f3f8ff;white-space:pre-wrap;overflow-wrap:anywhere}.grade-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}.marks-input{width:90px}.modal-lg{max-width:640px}html:has(body.in-exam),body.in-exam{overscroll-behavior:none}.rv-ok{border-color:#8fd1ae;background:#f4fbf7}.rv-bad{border-color:#f1b3b3;background:#fff7f7}.rv-part{border-color:#d9a400;background:#d9a40014}.help-fab{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:30;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--primary);color:#fff;box-shadow:0 4px 14px #0f285a4d;cursor:pointer}.menu-link-btn{width:100%;border:0;background:none;font:inherit;font-weight:600;text-align:start;cursor:pointer}.link-btn{align-self:flex-start;padding:4px 0;border:0;background:none;color:var(--primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.support-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;text-align:center}.q-img{display:block;max-width:100%;max-height:420px;margin:10px auto;border-radius:8px;border:1px solid var(--border, #ddd);background:#fff;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.q-img-thumb{max-height:140px;margin:8px 0}.q-img-fail{padding:10px;text-align:center}.img-pick{display:flex;flex-direction:column;gap:8px}.or-line{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.9rem;margin:4px 0}.or-line:before,.or-line:after{content:"";flex:1;height:1px;background:var(--border)}.pw-rules{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.85rem;color:var(--muted)}.pw-rules .pw-ok{color:#1c6b3a;font-weight:700}.pending-info{text-align:center;display:flex;flex-direction:column;gap:4px}.status-pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.8rem;font-weight:700}.status-pending{background:#fff3df;color:#9a5b00}.status-suspended{background:#eef0f4;color:#55606e}.status-tabs{margin-bottom:12px}.topbar-actions{display:flex;align-items:center;gap:4px;flex:none}.bell-wrap,.bell-btn{position:relative}.bell-badge{position:absolute;top:3px;inset-inline-start:3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font-size:.7rem;font-weight:800;line-height:18px;text-align:center}.bell-backdrop{position:fixed;inset:var(--header-h) 0 0 0;z-index:44;border:0;background:#0f1b3340;cursor:default}.bell-panel{position:fixed;top:calc(var(--header-h) + 6px);left:8px;z-index:45;width:min(calc(100vw - 16px),380px);max-height:calc(100vh - var(--header-h) - 20px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:0 16px 40px #0f1b3338;overflow:hidden}.bell-head{padding:12px 16px;border-bottom:1px solid var(--border)}.bell-perm{padding:10px 16px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:6px;align-items:flex-start}.push-ok{color:#1c6b3a;font-weight:700;font-size:.9rem}.bell-list{overflow-y:auto;display:flex;flex-direction:column}.bell-empty{padding:24px 16px;text-align:center}.bell-item{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:start;padding:12px 16px;border:0;border-bottom:1px solid var(--border);background:transparent;font:inherit;color:inherit;cursor:pointer}.bell-item:hover{background:#f1f5fb}.bell-item-new{background:#eaf2ff}.bell-body{color:#334155;font-size:.95rem;white-space:pre-line}.push-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:10px 16px;background:#eaf2ff;border-bottom:1px solid #cfe0fb;color:#0b3a82;font-size:.95rem}.push-banner-text{display:flex;gap:8px;align-items:center;flex:1 1 260px}.push-banner-actions{display:flex;gap:8px}.push-banner-msg{flex-basis:100%;color:var(--danger);font-size:.9rem}.notif-students{max-height:240px;overflow-y:auto;border:1px solid var(--border);border-radius:12px;padding:4px 10px}.notif-student{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);font-weight:400}.notif-student:last-child{border-bottom:0}.notif-student input{width:20px;height:20px;flex:none}.notif-radio{display:flex;flex-direction:column;gap:8px}.notif-radio label{display:flex;align-items:flex-start;gap:10px;font-weight:400}.notif-radio input{width:20px;height:20px;flex:none;margin-top:4px}.notif-stats{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.9rem;color:#334155}.plain-list{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px}.check-row{display:flex;align-items:flex-start;gap:10px;font-weight:400}.check-row input{width:20px;height:20px;flex:none;margin-top:4px}.section-title{margin:20px 0 8px;font-size:1.1rem}.post-link{display:inline-flex;margin-top:10px}.auth-foot{display:flex;flex-direction:column;gap:8px;align-items:stretch;text-align:center}.avatar-btn{width:40px;height:40px;border-radius:50%;font-size:1.05rem;text-decoration:none;margin-inline:2px}.badge-trial{background:#fff4d6;color:#8a5a00}.auth-card .entry-title{text-align:center}.input-icon>input{padding-right:46px;padding-left:14px}.input-icon.has-end>input{padding-left:52px;padding-right:46px}.input-icon>input::placeholder{font-size:.9rem}.auth-card>input,.auth-card>select{width:100%;height:54px;padding:0 14px;border:1px solid var(--border);border-radius:14px;background:#f7f9fd;font:inherit;color:var(--ink)}.auth-card>input:disabled,.auth-card .input-icon>input:disabled{background:#eef1f6;color:#6b7686;-webkit-text-fill-color:#6b7686}.auth-card>select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-inline:14px 40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 14px center}.site-footer{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 16px calc(10px + env(safe-area-inset-bottom,0px));font-size:.82rem;border-top:1px solid var(--border);background:var(--surface);color:var(--muted);text-align:center}.footer-links{display:flex;align-items:center;gap:10px;font-weight:700}.footer-links a{color:var(--primary);text-decoration:none}.footer-links a:hover{text-decoration:underline}.policy{max-width:760px;margin:0 auto;line-height:1.9}.policy h1{margin:0 0 4px}.policy h2{margin:22px 0 6px;font-size:1.15rem}.policy ul{margin:6px 0;padding-inline-start:22px}.policy li{margin-bottom:4px}.auth-foot a,.auth-foot a:visited{color:var(--primary);font-weight:700;text-decoration:none}.site-footer .footer-teacher{white-space:nowrap;font-weight:700;color:var(--ink)}.reopen-box{display:flex;flex-direction:column;gap:8px;margin-top:12px}.badge-request{background:#fff4d6;color:#8a5a00;border:1px solid #f3dc9a;border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700}.link-btn{border:0;background:none;padding:0;font:inherit;font-weight:700;color:var(--primary);text-decoration:underline;cursor:pointer}.an-bars{display:flex;align-items:flex-end;gap:6px;height:140px;margin:8px 0 16px}.an-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:2px}.an-bar{width:100%;background:var(--primary, #2563eb);border-radius:4px 4px 0 0;min-height:4px}.an-n,.an-lbl{font-size:12px;color:var(--muted, #6b7280)}.an-low{color:#b91c1c;font-weight:700}.an-flags{padding-inline-start:20px;line-height:2}.rv-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.rv-box{margin:8px 0;padding:10px 12px;border-radius:10px;background:#f3f6fa;border:1px solid var(--border)}.rv-box p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.note-row{display:flex;flex-direction:column;gap:4px;margin-top:8px}.note-row textarea{width:100%}.ev-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.ev{padding:8px 12px;border-radius:10px;border:1px solid var(--border);border-inline-start:4px solid var(--muted)}.ev-blocked{border-inline-start-color:#d92d20}.ev-reopened{border-inline-start-color:#d9a400}.ev-submitted{border-inline-start-color:#12805c}.ev-started{border-inline-start-color:var(--primary)}.app-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.app-shell>.container{width:100%;flex:1 0 auto}.site-footer{margin-top:auto;flex-shrink:0}.site-footer small{font-size:.78rem;line-height:1.5}.footer-links{gap:8px}body:has(.help-fab) .site-footer{padding-bottom:calc(52px + env(safe-area-inset-bottom,0px))}.rank-cell{font-weight:800;text-align:center;white-space:nowrap}.brand-text strong,.brand-text small{white-space:nowrap}@media (max-width: 480px){.topbar{padding:0 10px;gap:6px}.brand{gap:8px}.brand-logo{width:40px;height:40px;border-radius:12px}.brand-text strong{font-size:1.05rem}.brand-text small{font-size:.68rem}.topbar .icon-btn{width:36px;height:36px}.topbar .avatar-btn{width:34px;height:34px}.topbar-actions{gap:2px}}@media (max-width: 360px){.brand-text small{display:none}}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;padding:0 10px}.topbar-start{display:flex;align-items:center;gap:4px;justify-self:start;min-width:0}.topbar-end{display:flex;align-items:center;justify-self:end}.topbar .brand{justify-self:center;gap:8px}.topbar .brand-logo{width:40px;height:40px;border-radius:12px}.topbar .brand-text strong{font-size:1.05rem}.topbar .brand-text small{font-size:.7rem}.topbar .icon-btn{width:38px;height:38px}.topbar .avatar-btn{width:36px;height:36px}@media (max-width: 360px){.topbar .brand-text small{display:block;font-size:.62rem}.topbar .brand-logo{width:34px;height:34px}.topbar .brand-text strong{font-size:.95rem}}.theme-pill{position:relative;width:66px;height:34px;flex:none;padding:0;border:1px solid var(--border);border-radius:999px;background:#eef2f8;cursor:pointer;color:var(--muted);transition:background .2s,border-color .2s}.theme-pill-bg{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:space-between;padding:0 9px;opacity:.55}.theme-pill-thumb{position:absolute;z-index:1;top:3px;left:3px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;box-shadow:0 2px 6px #00000040;transition:transform .2s}.theme-pill-dark{background:#1b2740;border-color:#34466b;color:#a9cdfa}.theme-pill-dark .theme-pill-thumb{transform:translate(32px);background:#4d97f5}.help-fab{width:52px;height:52px}body:has(.help-fab) .site-footer{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}.account-stack{width:100%;max-width:480px;display:flex;flex-direction:column;gap:12px}.account-stack .entry-card{max-width:none}.logout-btn{color:#b42318;border-color:#f0b6b0}:root[data-theme=dark] .logout-btn{color:#ff9a9a;border-color:#6b3338}.bell-panel{left:auto;right:8px}.help-fab{left:auto;right:16px}.modal .form{max-width:none}.support-box{text-align:center;align-items:center}.support-box .support-actions{width:100%;max-width:360px;margin-inline:auto}.support-box .support-actions .btn,.support-box .row-actions{justify-content:center}.page-narrow{max-width:720px;margin-inline:auto}.form-wide{margin-inline:auto}.grid-2>*{min-width:0}.field input,.field select,.field textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}input[type=datetime-local]{min-width:0;max-width:100%;box-sizing:border-box}.grid-2.grid-dt{grid-template-columns:1fr}.page-top-actions{display:flex;flex-wrap:wrap;gap:8px}.help-fab{right:22px;bottom:calc(22px + env(safe-area-inset-bottom,0px));isolation:isolate}.help-fab:before,.help-fab:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;border-radius:50%;background:var(--primary);opacity:0;pointer-events:none;animation:fab-wave 2.8s ease-out infinite}.help-fab:after{animation-delay:1.4s}@keyframes fab-wave{0%{transform:scale(1);opacity:.45}to{transform:scale(1.9);opacity:0}}@media (prefers-reduced-motion: reduce){.help-fab:before,.help-fab:after{animation:none}}.theme-pill{width:72px;height:38px}.theme-pill-thumb{top:3px;left:3px;width:30px;height:30px}.theme-pill-dark .theme-pill-thumb{transform:translate(34px)}.help-fab{width:48px;height:48px}@keyframes fab-wave{0%{transform:scale(1);opacity:.4}to{transform:scale(1.7);opacity:0}}.pub{max-width:980px;margin:0 auto;display:grid;gap:28px;padding-bottom:12px}.pub h2,.pub h3,.pub p{margin:0}.pub-h{text-align:center;font-size:1.45rem;margin-bottom:14px!important}.pub-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px 18px}.pub-hero{position:relative;overflow:hidden;display:grid;gap:18px;align-items:end;padding:24px 20px 0;border-radius:28px;color:#fff;background:radial-gradient(520px 260px at 85% 0%,rgba(120,180,255,.35),transparent 70%),linear-gradient(150deg,#0a2a73,#1450c8 55%,#1d6be3);box-shadow:0 18px 40px #0c2c7847}.pub-hero-text{display:grid;gap:14px;justify-items:start;padding-bottom:8px}.pub-badge{display:inline-block;padding:4px 12px;border-radius:999px;font-size:.85rem;font-weight:700;color:#fff;background:#ffffff29;border:1px solid rgba(255,255,255,.28)}.pub-title{font-size:2.3rem;line-height:1.2;display:flex;align-items:center;gap:10px;color:#fff}.pub-logo{border-radius:12px;background:#fff}.pub-lead{font-size:1.04rem;line-height:2;color:#ffffffe0;max-width:540px}.pub-actions{display:flex;flex-wrap:wrap;gap:10px}.pub-hero .btn-primary{background:#fff;color:#0f3a99;border-color:#fff}.pub-hero .btn-outline{background:transparent;color:#fff;border-color:#ffffffb3}.pub-photo{margin:0;justify-self:center;width:min(82vw,340px);line-height:0}.pub-photo img{display:block;width:100%;height:auto;aspect-ratio:1 / 1;object-fit:cover;border-radius:22px 22px 0 0}@media (min-width: 760px){.pub-hero{grid-template-columns:1.15fr 1fr;padding:36px 34px 0}.pub-hero-text{padding-bottom:36px;align-self:center}.pub-title{font-size:3.1rem}.pub-photo{width:100%;max-width:400px;justify-self:end}}.pub-about h2{font-size:1.3rem;margin-bottom:12px}.pub-about-grid{display:grid;gap:16px}.pub-name{font-size:1.5rem;font-weight:800}.pub-name-en{color:var(--muted);font-weight:600;text-align:right}.pub-role{margin-top:6px!important;font-weight:700;color:var(--primary)}.pub-tags{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-wrap:wrap;gap:8px}.pub-tags li{padding:4px 12px;border-radius:999px;border:1px solid var(--border);font-size:.9rem}.pub-bio{display:grid;gap:10px;line-height:2}@media (min-width: 760px){.pub-about-grid{grid-template-columns:1fr 1.4fr;gap:28px}}.pub-features{display:grid;gap:12px;grid-template-columns:1fr}@media (min-width: 560px){.pub-features{grid-template-columns:1fr 1fr}}@media (min-width: 860px){.pub-features{grid-template-columns:repeat(3,1fr)}}.pub-feature{display:grid;gap:6px;align-content:start}.pub-feature h3{font-size:1.05rem}.pub-feature p{color:var(--muted);line-height:1.85;font-size:.95rem}.pub-ico{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:var(--primary);background:#2457d61f}.pub-steps{list-style:none;padding:0;margin:0;display:grid;gap:12px}@media (min-width: 760px){.pub-steps{grid-template-columns:repeat(3,1fr)}}.pub-step{display:flex;gap:12px;align-items:flex-start}.pub-step h3{font-size:1.02rem}.pub-step p{color:var(--muted);line-height:1.8;font-size:.93rem;margin-top:2px}.pub-step-n{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#fff;background:var(--primary)}.pub-contact{text-align:center;display:grid;gap:10px;justify-items:center}.pub-contact h2{font-size:1.3rem}.pub-contact p{color:var(--muted);max-width:520px;line-height:1.9}.pub-social{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:4px}.pub-soc{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;font-weight:700;text-decoration:none;color:#fff;transition:filter .15s}.pub-soc-fb{background:#1877f2}.pub-soc-wa{background:#1fa855}.pub-soc-tg{background:#229ed9}.pub-soc:hover{filter:brightness(1.08)}@media (prefers-reduced-motion: reduce){.pub-soc{transition:none}}.pub-privacy{text-align:center;color:var(--muted);font-size:.9rem;line-height:1.9}.pub-privacy-links{display:block;margin-top:4px}:root[data-theme=dark]{color-scheme:dark;--bg: #0b1220;--surface: #131c2e;--text: #e6ebf5;--muted: #9aa7bd;--border: #26324a;--ink: #f1f5fb;--primary: #4d97f5;--primary-dark: #3b82e0;--danger-bg: #3a1b1d;--danger-text: #ff9a9a}:root[data-theme=dark] body{background:var(--bg);color:var(--text)}:root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea,:root[data-theme=dark] .input-icon>input,:root[data-theme=dark] .auth-card>select{background:#0f1829;color:var(--text);border-color:var(--border)}:root[data-theme=dark] .auth-card .input-icon>input:disabled{background:#1a2438;color:#8b97ac;-webkit-text-fill-color:#8b97ac}:root[data-theme=dark] .input-icon>.input-ico{color:#7d8aa3}:root[data-theme=dark] ::placeholder{color:#6f7c93}:root[data-theme=dark] .icon-btn{color:#c9d3e6}:root[data-theme=dark] .icon-btn:hover,:root[data-theme=dark] .icon-btn:hover:not(:disabled){background:#1b2740}:root[data-theme=dark] .icon-btn-danger:hover:not(:disabled){background:#3a1b1d}:root[data-theme=dark] .btn-light{background:#1b2740;color:#a9cdfa}:root[data-theme=dark] .btn-light:hover{background:#22314f}:root[data-theme=dark] .btn-danger-outline{border-color:#6b3338;color:#ff9a9a}:root[data-theme=dark] .menu-profile{background:#0f1829}:root[data-theme=dark] .menu-link:hover{background:#1b2740}:root[data-theme=dark] .menu-link-active{background:#1b2f52}:root[data-theme=dark] .menu-logout{background:transparent;border-color:#6b3338}:root[data-theme=dark] .menu-logout:hover{background:#3a1b1d}:root[data-theme=dark] .seg-btn{background:#0f1829;color:var(--text)}:root[data-theme=dark] .count-badge{background:#1b2740}:root[data-theme=dark] .chip-n{background:#ffffff1a}:root[data-theme=dark] .badge-ok,:root[data-theme=dark] .alert-ok,:root[data-theme=dark] .result-pass,:root[data-theme=dark] .pal-answered,:root[data-theme=dark] .st-done,:root[data-theme=dark] .badge-teacher{background:#123424;color:#8be0b0}:root[data-theme=dark] .pal-answered{border-color:#2c6b4a}:root[data-theme=dark] .badge-draft,:root[data-theme=dark] .st-none,:root[data-theme=dark] .status-suspended{background:#1d2940;color:#aeb9cf}:root[data-theme=dark] .result-fail,:root[data-theme=dark] .st-blocked{background:#3a1b1d;color:#ff9a9a}:root[data-theme=dark] .st-live,:root[data-theme=dark] .badge-grade,:root[data-theme=dark] .role-teacher{background:#14284a;color:#a9cdfa;border-color:#25416d}:root[data-theme=dark] .role-student{background:#123424;color:#8be0b0;border-color:#2c6b4a}:root[data-theme=dark] .notice-warn,:root[data-theme=dark] .clock-banner,:root[data-theme=dark] .badge-trial,:root[data-theme=dark] .badge-request,:root[data-theme=dark] .status-pending{background:#3a2c0e;color:#f3cf7a;border-color:#6a5420}:root[data-theme=dark] .code-pill{background:#5b4710;color:#ffe9a8}:root[data-theme=dark] .action-tag{background:#2a1f4d;color:#cdbbff}:root[data-theme=dark] .like-on{background:#3a1b25;border-color:#7a3243;color:#ff8aa0}:root[data-theme=dark] .push-banner{background:#14284a;border-color:#25416d;color:#a9cdfa}:root[data-theme=dark] .timer-warn,:root[data-theme=dark] .save-error{color:#ff9a9a}:root[data-theme=dark] .choice-correct,:root[data-theme=dark] .pw-rules .pw-ok,:root[data-theme=dark] .push-ok{color:#8be0b0}:root[data-theme=dark] .an-low{color:#ff9a9a}:root[data-theme=dark] .icon-box-blue{background:#14284a;color:#7db6fb;border-color:#25416d}:root[data-theme=dark] .icon-box-green{background:#123424;color:#6fd6a2;border-color:#2c6b4a}:root[data-theme=dark] .icon-box-amber{background:#3a2c0e;color:#f3b957;border-color:#6a5420}:root[data-theme=dark] .icon-box-violet{background:#2a1f4d;color:#bba3ff;border-color:#473a7a}:root[data-theme=dark] .action-card:hover{border-color:#3b6fb5;box-shadow:none}:root[data-theme=dark] .data-table th{background:#1a2438}:root[data-theme=dark] .cred-box{background:#0f1829}:root[data-theme=dark] .code-box{background:#0f1829;border-color:#3b6fb5}:root[data-theme=dark] .review-answer,:root[data-theme=dark] .rv-box{background:#0f1829}:root[data-theme=dark] .rv-ok{background:#0f2a1f;border-color:#2c6b4a}:root[data-theme=dark] .rv-bad{background:#2b1618;border-color:#6b3338}:root[data-theme=dark] .opt{background:#0f1829}:root[data-theme=dark] .opt-selected{background:#14284a}:root[data-theme=dark] .pal-btn{background:#0f1829;color:var(--text)}:root[data-theme=dark] .modal-backdrop,:root[data-theme=dark] .bell-backdrop{background:#0009}:root[data-theme=dark] .bell-item:hover{background:#1b2740}:root[data-theme=dark] .bell-item-new{background:#14284a}:root[data-theme=dark] .bell-body,:root[data-theme=dark] .notif-stats{color:#c3cde0}:root[data-theme=dark] .watermark{color:#fff}:root[data-theme=dark] .q-img{background:#fff}
