.bilingual-choice,.bilingual-choice-option{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;direction:rtl;align-items:center}
.bilingual-choice{width:100%;margin:0;min-height:42px;padding:9px 12px;border:1px solid #94b9a7;border-radius:8px;background:#fff;color:#20332c;font:inherit;font-weight:400;box-shadow:none;text-align:right;cursor:pointer}
.bilingual-choice:hover{background:#f8fcfa;box-shadow:none;transform:none}.bilingual-choice:focus-visible{outline:2px solid #236b57;outline-offset:2px}
.bilingual-choice-hebrew{min-width:0;text-align:right;overflow-wrap:anywhere}.bilingual-choice-foreign{min-width:0;text-align:left;overflow-wrap:anywhere;font-size:.92em}
.bilingual-choice-menu{position:fixed;z-index:2147483640;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #94b9a7;border-radius:9px;box-shadow:0 8px 24px #164f4330;padding:4px;font-family:Arial,sans-serif;font-size:15px;box-sizing:border-box}
.bilingual-choice-menu[hidden]{display:none!important}.bilingual-choice-option{min-height:38px;padding:8px 10px;border-radius:5px;cursor:pointer;color:#20332c}
.bilingual-choice-option[aria-selected=true]{font-weight:700;background:#edf7f1}.bilingual-choice-option.is-active{background:#dcefe4;outline:1px solid #78a78e;outline-offset:-1px}.bilingual-choice-option[aria-disabled=true]{opacity:.5;cursor:default}
.narration-text-section{display:flow-root}.narration-text-section>#tag38Tools{margin-bottom:12px}

/* Physical right-hand scrollbars; each option keeps its own RTL column layout. */
.bilingual-choice-menu{direction:ltr}
/* Shared outer card follows the voice card; inner cards remain distinct. */
.connected-style-sections{display:flow-root;margin:14px 0 16px;padding:11px 22px;border:1px solid rgba(105,154,132,.38);border-radius:18px;background:linear-gradient(145deg,rgba(238,248,242,.96),rgba(224,242,235,.95));box-shadow:0 8px 26px rgba(35,82,64,.14),inset 0 1px 0 rgba(255,255,255,.75);backdrop-filter:blur(4px)}
/* Halve vertical padding (14 to 7) and between-card gaps (12 to 6),
   while preserving field heights, typography, and horizontal padding. */
.connected-style-sections>.style-section{margin:0 0 6px;padding:7px 14px}
.connected-style-sections>.style-section:last-child{margin-bottom:0}
.voice-selection-section{margin-bottom:18px}
/* Editor direction is independent of the separate right-hand scrollbar. */
.tts-text-wrap textarea#text{direction:rtl!important;text-align:right!important;unicode-bidi:normal!important}
.tts-text-wrap textarea#text[data-right-scrollbar]{scrollbar-width:none;scrollbar-gutter:auto}
.tts-text-wrap textarea#text[data-right-scrollbar]::-webkit-scrollbar{display:none}
.tts-right-scrollbar{position:absolute;top:10px;bottom:10px;right:2px;width:16px;direction:ltr;overflow-x:hidden;overflow-y:scroll;border-radius:7px;background:#f1f3f2}
.tts-right-scrollbar:focus-visible{outline:2px solid #236b57;outline-offset:1px}
.tts-right-scrollbar-space{width:1px;pointer-events:none}

/* Matching separator tones, inset beyond both rounded inner corners. */
.connected-style-sections>.style-section+.style-section{position:relative}
.connected-style-sections>.style-section+.style-section::before{content:"";position:absolute;top:-7px;left:7px;right:7px;height:6px;pointer-events:none;background:var(--workspace-page-background);border-radius:3px}

/* Halve the shared text-to-corrections gap, including collapsing card margins. */
#narrationTextSection{margin-bottom:0;padding-bottom:4px}
#narrationTextSection+#currentSection{margin-top:4px}
#narrationTextSection+#currentSection #current>.output-card:first-child{margin-top:0}
/* A mobile toolbar can leave its notice lane behind when returning to desktop.
   Empty lanes below the text must not reserve space above the corrections. */
#narrationTextSection>.tts-text-wrap~.studio-credit-lane:not(:has(.studio-credit-cost:not([hidden]))){display:none}
#narrationTextSection>.mobile-generation-actions[hidden]{display:none!important}

.style-long-text-notice{margin:0 0 10px;padding:10px 12px;border:1px solid #e4c47e;border-radius:10px;background:transparent;color:#794700;font-size:14px;line-height:1.7;text-align:right;direction:rtl}
.style-long-text-notice strong{font-weight:800}
.style-long-text-notice span{font-weight:700}
