    :root { color-scheme: light; font-family: system-ui, sans-serif; color: #202124; background: #f5f6f8; }
    * { box-sizing: border-box; }
    body { margin: 0; padding: 40px 16px; }
    main { max-width: 760px; margin: auto; padding: 32px; background: white; border: 1px solid #e1e4e8; border-radius: 14px; box-shadow: 0 8px 32px #17202a0c; }
    h1 { margin: 0 0 8px; font-size: 1.7rem; }
    p { color: #5d6672; line-height: 1.5; }
    label { display: block; margin: 22px 0 8px; font-weight: 650; }
    input[type="file"], input[type="url"], textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd1d8; border-radius: 8px; font: inherit; }
    textarea { min-height: 190px; resize: vertical; }
    .code-output { min-height: 220px; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; direction: ltr; }
    .hint { margin: 6px 0; font-size: .9rem; }
    .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
    button { padding: 10px 16px; border: 0; border-radius: 8px; color: white; background: #155eef; font: inherit; font-weight: 650; cursor: pointer; }
    button.secondary { color: #263246; background: #e9edf3; }
    button:disabled { opacity: .55; cursor: wait; }
    #status { min-height: 1.5em; margin-top: 14px; }
    #status.error { color: #b42318; }
    #result { margin-top: 30px; padding-top: 22px; border-top: 1px solid #e1e4e8; }
    #preview { margin: 18px 0 28px; padding: 18px; border: 1px solid #e1e4e8; border-radius: 10px; background: #fafbfc; }
    #preview-text { min-height: 80px; padding: 18px; border-radius: 8px; background: white; font-size: 1.3rem; line-height: 2; direction: rtl; text-align: right; }
    #preview-text .active { color: #f69101; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
    .player-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
    .player-row audio { flex: 1 1 260px; width: 100%; }
    .player-row label { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
    .player-row input[type="range"] { width: 180px; accent-color: #155eef; }
    .player-row output { min-width: 3.5em; font-variant-numeric: tabular-nums; }
    [hidden] { display: none !important; }
    @media (max-width: 540px) { body { padding: 16px 10px; } main { padding: 22px 16px; } }
