#oto-math-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #385264; border-radius: 14px; background: #0b2232; color: #fff; box-shadow: 0 24px 90px #0007; overflow: auto; }
#oto-math-dialog::backdrop { background: #04111dcc; backdrop-filter: blur(4px); }
#oto-math-dialog * { box-sizing: border-box; font-family: Manrope, Arial, sans-serif; }
#oto-math-dialog .oto-math-box { position: relative; padding: 32px; margin: 0; }
#oto-math-dialog .oto-math-brand { margin: 0 0 16px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
#oto-math-dialog h2 { margin: 0 24px 10px 0; color: #fff; font-size: 25px; font-weight: 700; line-height: 1.25; }
#oto-math-dialog .oto-math-intro { margin: 0; color: #c9d3db; font-size: 14px; line-height: 1.7; }
#oto-math-dialog .oto-math-question { margin: 24px 0; padding: 20px 10px; background: #17394e; border-radius: 8px; text-align: center; color: #fff; font-size: 30px; font-weight: 800; line-height: 1.4; }
#oto-math-dialog label { display: block; margin-bottom: 8px; font-size: 13px; color: #fff; }
#oto-math-dialog input { display: block; width: 100%; height: 52px; margin: 0; padding: 10px 15px; border: 1px solid #688293; border-radius: 6px; background: #071b29; color: #fff; font-size: 20px; box-shadow: none; }
#oto-math-dialog #oto-math-status { min-height: 24px; margin: 10px 0; color: #ffbaba; font-size: 12px; line-height: 1.6; }
#oto-math-dialog button { cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; }
#oto-math-dialog .oto-math-confirm, #oto-math-dialog .oto-math-retry { display: block; width: 100%; min-height: 50px; border: 0; border-radius: 6px; padding: 12px; background: #c71617; color: #fff; font-size: 14px; font-weight: 700; }
#oto-math-dialog .oto-math-retry { margin-top: 10px; background: #28516a; }
#oto-math-dialog [hidden] { display: none !important; }
#oto-math-dialog button:disabled { opacity: .5; cursor: wait; }
#oto-math-dialog .oto-math-cancel { display: block; width: 100%; margin-top: 12px; padding: 10px; min-height: 44px; border: 0; background: transparent; color: #c9d3db; font-size: 12px; }
#oto-math-dialog .oto-math-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 28px; }
#oto-math-dialog :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 480px) { #oto-math-dialog .oto-math-box { padding: 26px 20px; } }
