* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: #eef1fb; color: #1b2245; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: linear-gradient(90deg, #07114a, #1d3aa8); color: #fff; flex-wrap: wrap; gap: 8px; }
.top nav a { color: #ffd864; margin-left: 18px; text-decoration: none; font-weight: 600; }
main { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(20,30,90,.08); margin-bottom: 14px; }
.card h2 { margin-top: 0; font-size: 20px; }
.narrow { max-width: 380px; margin: 60px auto; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
label input[type=text], label input[type=password], label input[type=file] { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #c5cbe6; border-radius: 8px; font-size: 15px; }
.btn { display: inline-block; background: linear-gradient(180deg, #ffd864, #e0a800); color: #241800; border: 0; border-radius: 30px; padding: 10px 20px; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn.ghost { background: #e3e8fb; color: #1b2a7a; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.red { background: #fde2e2; color: #b91c1c; }
.hint { color: #5b6390; font-size: 13px; }
.hint ul { padding-left: 18px; line-height: 1.6; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.alert.ok { background: #dcfce7; color: #14532d; } .alert.bad { background: #fee2e2; color: #7f1d1d; }
.red { color: #dc2626; } .green { color: #16a34a; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl td { padding: 10px 6px; border-bottom: 1px solid #eef; vertical-align: middle; }
.tbl td.act { text-align: right; white-space: nowrap; }
.tbl td.act form { display: inline; }
.tbl th { text-align: left; padding: 8px 6px; background: #f1f4ff; font-size: 13px; }
.sticky { position: sticky; top: 0; z-index: 5; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sticky .inline { display: flex; align-items: center; gap: 8px; margin: 0; flex: 1; min-width: 260px; }
.sticky .inline input { margin: 0; }
.stat { font-size: 14px; }
.q.nokey { border-left: 6px solid #ef4444; }
.qtop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.no { background: #1d3aa8; color: #fff; font-weight: 800; border-radius: 20px; padding: 2px 12px; }
.del { font-weight: 400; color: #b91c1c; margin: 0; font-size: 13px; }
.qtext, .stim textarea { width: 100%; font-size: 15px; padding: 8px; border: 1px solid #c5cbe6; border-radius: 8px; font-family: inherit; resize: vertical; }
.stim { background: #f6f7ff; border-radius: 10px; padding: 8px; margin-bottom: 8px; }
.stim img, .qimg { max-height: 120px; margin: 4px; border: 1px solid #dde; border-radius: 6px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.opt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 8px; border: 2px solid #e1e5f7; border-radius: 10px; cursor: pointer; }
.opt input[type=radio] { display: none; }
.opt .let { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e3e8fb; font-weight: 800; flex: 0 0 auto; }
.opt input[type=text] { flex: 1; border: 0; font-size: 15px; padding: 6px; outline: none; background: transparent; }
.opt.on { border-color: #16a34a; background: #f0fdf4; }
.opt.on .let { background: #16a34a; color: #fff; }
.ar, [dir=auto] { font-family: "Segoe UI", "Traditional Arabic", Arial, sans-serif; }
.filters { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.filters select { padding: 8px; border-radius: 8px; border: 1px solid #c5cbe6; }
@media (max-width: 800px) { .cols, .opts { grid-template-columns: 1fr; } }
.no { flex: 0 0 auto; }
.no.isian { background: #7c3aed; }
.qtop .topic { flex: 1; margin: 0 12px; padding: 6px 10px; border: 1px dashed #c5cbe6; border-radius: 8px; font-size: 13px; max-width: 260px; }
.isian { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.isian label { margin: 0; }
.isian input[type=text], .isian textarea { display: block; width: 100%; margin-top: 5px; padding: 8px 10px; border: 2px solid #ddd6fe; border-radius: 8px; font-size: 15px; font-family: inherit; }
.isian .chk { grid-column: 1 / -1; font-weight: 400; display: flex; gap: 6px; align-items: center; }
.addrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
@media (max-width: 800px) { .isian { grid-template-columns: 1fr; } }
.narrow2 { max-width: 700px; }
.opt .oimg { max-height: 50px; border-radius: 6px; border: 1px solid #dde; }
