* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Arial, Tahoma, sans-serif; }
body { margin: 0; padding: 25px 15px; background: #f3f5f9; color: #17243a; }
.container { max-width: 680px; width: 100%; margin: auto; }
.header { text-align: center; margin-bottom: 24px; }
.header h1 { font-size: 25px; margin: 0 0 8px; }
.header p, .footer { color: #64748b; font-size: 14px; }
.panel { background: #fff; border-radius: 16px; padding: 22px; margin-bottom: 16px; box-shadow: 0 3px 15px #0000000a; }
.panel h2 { text-align: center; font-size: 19px; }
.mic { width: 90px; height: 90px; border-radius: 50%; border: 0; background: #2563eb; color: white; font-size: 34px; cursor: pointer; display: block; margin: 15px auto; }
.mic.active { background: #dc2626; animation: pulse 1s infinite; }
.mic:disabled { opacity: .55; cursor: not-allowed; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px #dc262622; } }
input { width: 100%; padding: 13px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 16px; margin: 8px 0; direction: rtl; }
button.action { width: 100%; padding: 13px; border: 0; border-radius: 9px; background: #172f55; color: white; font-size: 15px; cursor: pointer; margin-top: 8px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
#status { text-align: center; color: #64748b; min-height: 25px; font-size: 14px; line-height: 1.7; }
.error { color: #dc2626 !important; }
.success { color: #15803d !important; }
.student { border: 1px solid #e2e8f0; padding: 17px; border-radius: 12px; margin-top: 12px; background: #fff; }
.student h3 { margin: 0 0 15px; font-size: 22px; }
.info { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid #edf0f4; padding: 10px 0; }
.info:last-child { border: 0; }
.info-label { color: #64748b; flex: 0 0 38%; }
.info-value { text-align: left; overflow-wrap: anywhere; }
.class-name { color: #166534; font-weight: bold; font-size: 24px; }
.choose { background: #eff6ff; border-color: #bfdbfe; }
.phone-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.phone-actions a { text-decoration: none; font-weight: bold; padding: 7px 10px; border-radius: 8px; color: white; font-size: 13px; }
.phone-call { background: #15803d; }
.phone-sms { background: #2563eb; }
.phone-wa { background: #16a34a; }
.footer { text-align: center; padding: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { body { padding: 15px 10px; } .panel { padding: 16px; } .student h3 { font-size: 20px; } .class-name { font-size: 22px; } .info { gap: 8px; } }
