/* Ayah Studio v49 — Video editor Quran controls. Only #panel-style and its small shortcut. */
#panel-style .ev49-shell{border:1px solid #567b76;border-radius:17px;background:linear-gradient(150deg,#102d39,#10252f 80%);padding:15px;margin:2px 0 21px;box-shadow:0 9px 30px rgba(0,0,0,.17)}
#panel-style .ev49-shell summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:47px}
#panel-style .ev49-shell summary::-webkit-details-marker{display:none}
#panel-style .ev49-shell summary::after{content:"▾";color:#e2ca92;font-size:20px}
#panel-style .ev49-shell:not([open]) summary::after{transform:rotate(-90deg)}
#panel-style .ev49-shell h2{color:#f1d99b;margin:0;font-size:18px;line-height:1.2}
#panel-style .ev49-shell h3{color:#d5b973;font-size:11px;letter-spacing:.095em;font-weight:750;text-transform:uppercase;margin:0 0 11px}
#panel-style .ev49-shell p{font-size:12px;line-height:1.5;color:#b6d0cf;margin:6px 0}
#panel-style .ev49-shell small{color:#aac6c6;font-size:11px;line-height:1.45;display:block}
#panel-style .ev49-body{padding-top:12px}
#panel-style .ev49-group{padding:15px 0;border-top:1px solid #2b535b}
#panel-style .ev49-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#panel-style .ev49-option{border:1px solid #537579;border-radius:10px;min-height:48px;padding:9px 10px;display:flex;gap:9px;align-items:center;color:#eef3f2;cursor:pointer;font-size:13px;line-height:1.4}
#panel-style .ev49-option:has(input:checked){border-color:#d9c383;background:#284e4c}
#panel-style .ev49-option input{accent-color:#e9c688;flex:none;min-width:17px;min-height:17px}
#panel-style .ev49-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#panel-style .ev49-field{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:12px;color:#d8e5e4}
#panel-style .ev49-field select{width:100%;background:#0a2029;border:1px solid #55727b;border-radius:9px;min-height:44px;color:#f1f6f5;padding:8px;font:inherit}
#panel-style .ev49-field input[type=range]{width:100%;accent-color:#ddb97e;min-height:28px;cursor:pointer}
#panel-style .ev49-field output{font-weight:700;color:#ebcf93}
#panel-style .ev49-actions{display:flex;flex-wrap:wrap;gap:8px;margin:11px 0 4px}
#panel-style .ev49-actions button,#panel-style .ev49-field button,.ev49-caption-shortcut button{border:1px solid #ccae6a;border-radius:10px;background:#c9aa73;color:#10272e;min-height:43px;padding:8px 13px;font-weight:750;cursor:pointer;font-size:12px;flex:0 1 auto}
#panel-style .ev49-actions button.ev49-quiet,#panel-style .ev49-field button.ev49-quiet{background:#142e39;border-color:#648a8d;color:#ebf2f1}
#panel-style .ev49-actions button:disabled,#panel-style .ev49-field button:disabled{opacity:.5;cursor:not-allowed}
#panel-style .ev49-preview{border:1px solid #627574;background:#f5eee0;color:#1d2b25;border-radius:11px;padding:13px;margin-top:10px}
#panel-style .ev49-preview-arabic{font-size:var(--ev49-arabic-size,42px);line-height:1.7;direction:rtl;text-align:center;overflow-wrap:anywhere;white-space:normal;max-height:240px;overflow:auto;color:#1a2b24}
#panel-style .ev49-preview-translation{font-size:var(--ev49-translation-size,19px);line-height:1.6;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#30473e}
#panel-style .ev49-preview small{color:#4c675a}
#panel-style .ev49-status{margin:9px 0 0!important;padding:9px 10px;border:1px solid #41656a;border-radius:9px;color:#e4f2e7!important;min-height:36px;overflow-wrap:anywhere}
#panel-style .ev49-status[data-type=error]{border-color:#b47c5d;color:#ffded0!important}
#panel-style .ev49-status[data-type=success]{border-color:#629d7f;color:#b8ffd4!important}
#panel-style .ev49-translation-preview{background:#0d2630;border:1px solid #4b7277;border-radius:11px;padding:12px;white-space:pre-wrap;color:#d8f1eb;font-size:13px;max-height:260px;overflow:auto}
#panel-style .ev49-support-note{border-left:3px solid #d6b478;padding:8px 11px;background:#152f3a}
#panel-style .ev49-hidden{display:none!important}
#panel-style .ev49-shell :is(button,select,input,summary):focus-visible,.ev49-caption-shortcut button:focus-visible{outline:3px solid #ecce84;outline-offset:3px}
.ev49-caption-shortcut{border:1px solid #5b7d7c;border-radius:13px;padding:12px;background:#15333b;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.ev49-caption-shortcut strong{color:#dcdcb8;font-size:13px}
.ev49-caption-shortcut p{font-size:12px;color:#c0d4d4;margin:4px 0}
@media(max-width:530px){#panel-style .ev49-controls{grid-template-columns:1fr}#panel-style .ev49-shell{padding:12px}#panel-style .ev49-preview-arabic{max-height:160px}.ev49-caption-shortcut{flex-direction:column;align-items:stretch}.ev49-caption-shortcut button{width:100%}}

/* The caption size demonstration is separate from the optional Mushaf font
   preview. It uses the user's current sizes, with no automatic font override. */
#panel-style .ev49-caption-size-live{display:grid;gap:7px;border:1px solid #698383;border-radius:10px;padding:12px;margin:12px 0;background:#0b222d;min-width:0}
#panel-style .ev49-caption-size-live small{font-size:12px;color:#dbd1aa}
#panel-style .ev49-caption-size-live p{display:block;min-width:0;margin:0;padding:4px 2px;color:#f0f3ed!important;line-height:1.5;white-space:normal;overflow-wrap:anywhere;max-height:165px;overflow-y:auto}
#panel-style .ev49-caption-size-live p[hidden]{display:none!important}
#panel-style #ev49-size-preview-arabic{text-align:center;line-height:1.65}
#panel-style #ev49-size-preview-translit{font-style:italic}
