:root{--app-font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;--question-font: "Noto Naskh Arabic", "Amiri", serif;--app-bg: #f4f4f5;--app-surface: #ffffff;--app-accent: #4f46e5;--app-text: #1f2937;--app-border: #e5e7eb;--preview-accent: #4f46e5;--preview-correct-bg: #dcfce7;--preview-correct-border: #16a34a;--preview-instance-radius: 12px;--preview-shadow: 0 1px 2px rgba(0, 0, 0, .06)}html.auth-pending .container,html.signed-out .container,html.signed-in #auth-gate{display:none}.auth-gate{flex:1;width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}.auth-card{width:min(440px,100%);background:#fff;border-radius:16px;padding:36px 32px;text-align:center;box-shadow:0 20px 40px #0000001f}.auth-card h1{margin:0 0 8px;font-size:1.6rem;color:#1f2937}.auth-card p{margin:0 0 20px;color:#4b5563}.auth-gate-error{background:#fef2f2;color:#991b1b;border-radius:8px;padding:10px 12px}.auth-google-btn{display:inline-flex;align-items:center;justify-content:center;min-width:240px;padding:12px 18px;border-radius:10px;background:#4f46e5;color:#fff;font-weight:700;text-decoration:none}.auth-google-btn:hover{background:#4338ca}.auth-user{position:static;display:flex;align-items:center;gap:8px;background:#f4f4f5;border-radius:999px;padding:4px 8px 4px 4px;font-size:13px}.auth-user img{width:28px;height:28px;border-radius:50%;object-fit:cover}.auth-user a,.auth-user button{border:0;background:#fff;color:#312e81;border:1px solid #e5e7eb;border-radius:999px;padding:4px 10px;cursor:pointer;font-weight:700;text-decoration:none}body{margin:0;min-height:100vh;background:var(--app-bg);color:var(--app-text);font-family:var(--app-font)}.dashboard{min-height:100vh;display:flex;flex-direction:column}.dashboard-header{background:var(--app-surface);border-bottom:1px solid var(--app-border);padding:8px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:48px}.dashboard-title{display:flex;flex-direction:column;gap:2px;min-width:0}.dashboard-title h1{margin:0;font-size:1rem;font-weight:600;line-height:1.3;color:var(--app-text)}.dashboard-title p{margin:0;font-size:12px;color:#6b7280}.dashboard-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto}.dashboard-actions a{border:1px solid var(--app-border);background:#fff;color:#312e81;border-radius:999px;padding:4px 12px;font-weight:600;font-size:13px;text-decoration:none;font-family:inherit}.dashboard-actions a:hover{background:#eef2ff}.dashboard-body{width:min(1520px,100%);margin:0 auto;padding:16px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:start;gap:16px}.dashboard-main{display:flex;flex-direction:column;gap:12px;min-width:0}.filters{position:sticky;top:16px;background:var(--app-surface);border:1px solid var(--app-border);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 32px);overflow-y:auto;box-sizing:border-box}.filters-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.filters-head h2{margin:0;font-size:14px;font-weight:600;color:var(--app-text)}.filters-clear{border:0;background:none;color:#b91c1c;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;padding:2px 4px}.filters-clear[hidden]{display:none}.filters-clear:hover{text-decoration:underline}.filters-form{display:flex;flex-direction:column;gap:10px}.filter{display:flex;flex-direction:column;gap:4px;min-width:0}.filter>span{font-size:12px;font-weight:600;color:#4b5563}.filter input,.filter select{width:100%;box-sizing:border-box;height:34px;padding:0 8px;border:1px solid var(--app-border);border-radius:8px;background:#fff;color:var(--app-text);font-family:inherit;font-size:13px}.filter input:focus,.filter select:focus{outline:2px solid #c7d2fe;border-color:#4f46e5}.filter input.is-active,.filter select.is-active{border-color:#4f46e5;background:#eef2ff}.filter-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media (max-width: 900px){.dashboard-body{grid-template-columns:minmax(0,1fr)}.filters{order:-1;position:static;max-height:none}.filters-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.filter-dates{grid-column:1 / -1}}.summary{display:flex;gap:8px;flex-wrap:wrap}.summary:empty{display:none}.summary span{background:#fff;border:1px solid var(--app-border);border-radius:999px;padding:4px 10px;font-size:13px;font-weight:600;color:#312e81}.log-panel{background:var(--app-surface);border:1px solid var(--app-border);border-radius:10px;overflow:auto}table{width:100%;border-collapse:collapse;min-width:860px}th,td{text-align:start;padding:10px 12px;border-bottom:1px solid var(--app-border);white-space:nowrap;font-size:13px}th{position:sticky;top:0;background:#f8fafc;color:#4b5563;font-size:12px;font-weight:600}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f8fafc}.empty{margin:0;padding:36px 20px;text-align:center;color:#6b7280;font-size:14px}.tag{display:inline-block;border-radius:999px;padding:2px 8px;background:#eef2ff;color:#4338ca;font-weight:600;font-size:12px}.tag-download{background:#dcfce7;color:#166534}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pagination[hidden]{display:none}.page-info{font-size:13px;color:#6b7280}.page-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.page-buttons button{min-width:34px;height:34px;padding:0 10px;border:1px solid var(--app-border);background:#fff;color:#312e81;border-radius:8px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}.page-buttons button:hover:not(:disabled):not(.is-current){background:#eef2ff}.page-buttons button.is-current{background:#4f46e5;border-color:#4f46e5;color:#fff;cursor:default}.page-buttons button:disabled{color:#9ca3af;cursor:not-allowed}.page-gap{color:#9ca3af;padding:0 2px}.actions-cell .tag+.tag{margin-inline-start:4px}
