/* Existing account translation dialog, retained for preview header placement. */

.tools-menu{margin:12px 0}.tools-menu button{width:100%;text-align:left;font-size:13px;padding:10px 12px;border-color:#497cad}.tools-menu small{display:block;color:#aabbd2;font-size:11px}#translation-dialog{width:min(1050px,calc(100vw - 32px));max-height:90dvh;overflow:auto;background:#0b1627;color:#edf3ff;border:1px solid #405978;border-radius:16px;padding:24px}#translation-dialog::backdrop{background:#030a16cc}.translation-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.translation-heading h2{font-size:27px;margin:0}.translation-heading p{margin:6px 0 16px;font-size:14px}.translation-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 20px}.translation-toolbar select{background:#192a42;border:1px solid #405978;color:#edf3ff;border-radius:8px;padding:9px;font:inherit}.translation-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.translation-columns label{display:block;color:#bdd7f4;font-size:14px;font-weight:650;margin-bottom:8px}.translation-columns textarea{position:static;width:100%;height:280px;min-height:180px;margin:0;resize:vertical;padding:18px;background:#101e32;border:1px solid #456080;border-radius:12px;font:calc(27px * var(--translation-scale,1))/1.7 Arial,sans-serif}.translation-columns textarea[dir=ltr]{font-family:system-ui,sans-serif;font-size:calc(22px * var(--translation-scale,1))}.translation-columns textarea::placeholder{font:18px/1.7 system-ui,sans-serif;direction:inherit;text-align:inherit}.translation-status{min-height:24px;font-size:14px;color:#9ed0ff;margin:14px 0 0}.translation-status.error{color:#ffadb3}.translation-count{display:block;text-align:right;color:#aabbd2;font-size:12px;margin-top:5px}.translation-footnote{font-size:12px;margin-top:12px;color:#aabbd2}.translation-auth{display:flex;gap:12px;align-items:center;margin:12px 0}.translation-auth[hidden]{display:none}.translation-auth span{font-size:14px}@media(max-width:650px){.translation-columns{grid-template-columns:1fr}#translation-dialog{padding:16px}.translation-columns textarea{height:190px}.translation-heading{flex-wrap:wrap}}

.translation-allowance{padding:10px 14px;background:#152d43;border:1px solid #456080;border-radius:8px;color:#bde1ff;font-size:13px;margin:14px 0 0}

#translation-dialog textarea[dir="ltr"]{direction:ltr;text-align:left;unicode-bidi:plaintext}
#translation-dialog textarea[dir="rtl"]{direction:rtl;text-align:right;unicode-bidi:plaintext}
.translation-box-footer{display:flex;align-items:center;gap:10px;min-height:48px;margin-top:8px}
#translation-dialog .translation-copy{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:8px;border-radius:10px;background:#192a42;color:#bdd7f4;border:1px solid #405978}
#translation-dialog .translation-copy:hover:not(:disabled){background:#294461;color:#fff;border-color:#7ab8f0}
#translation-dialog .translation-copy:disabled{opacity:.4;cursor:default}
.translation-copy-status{font-size:12px;color:#9cdeb8}
.translation-box-footer .translation-count{margin:0 0 0 auto;white-space:nowrap}

.deep-dive{padding:16px;border:1px solid #456080;border-radius:12px;background:#101e32}.deep-dive h4{margin:0 0 8px}.deep-dive p{margin:0 0 12px;overflow-wrap:anywhere}.deep-dive details{padding-top:8px;border-top:1px solid #456080}.deep-dive summary{cursor:pointer;margin-bottom:8px}
/* Deep Dive word cards and profiles */
.deep-dive-result,#word-results{--reading-scale:var(--translation-scale,1);font-size:calc(1.06rem * var(--reading-scale));line-height:1.6}
.deep-dive [lang=ar]{font-family:Arial,sans-serif}
.deep-dive .deep-dive-profile-actions button{font-size:inherit;line-height:1.25;min-height:40px;padding:.4rem .7rem}
.deep-dive #deep-dive-example-button{margin-inline-start:.45rem}
.deep-dive .deep-dive-words{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%, 8rem),1fr));gap:.65rem}
.deep-dive .deep-dive-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.32rem;min-height:5.5rem;min-width:0;padding:.7rem .5rem;font-size:inherit;text-align:center;line-height:1.4}
.deep-dive .deep-dive-card-arabic,.deep-dive .deep-dive-vocab-card strong{font-size:calc(1.55rem * var(--reading-scale));line-height:1.65}
.deep-dive .deep-dive-card[aria-expanded=true]{background:#493a78;border-color:#c2adff;color:#fff}
.deep-dive .deep-dive-profile{margin:1.1rem 0;padding:clamp(.85rem,3vw,1.35rem);border:1px solid #486487;border-radius:14px;background:#14243a}
.deep-dive .deep-dive-profile-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.5rem}
.deep-dive .deep-dive-profile-heading h5{margin:0;font-size:calc(2.1rem * var(--reading-scale));line-height:1.5}
.deep-dive .deep-dive-profile-actions{display:flex;flex-wrap:wrap;gap:.4rem}
.deep-dive .deep-dive-gloss{font-weight:750;margin-bottom:.25rem}
.deep-dive .deep-dive-role{color:#d1e1f6}
.deep-dive .deep-dive-facts,.deep-dive .deep-dive-vocabulary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%, 8.5rem),1fr));gap:.6rem;margin:.6rem 0 1.15rem;padding:0}
.deep-dive .deep-dive-facts div,.deep-dive .deep-dive-vocab-card{min-width:0;background:#1b304d;border:1px solid #385476;border-radius:10px;padding:.65rem .8rem}
.deep-dive .deep-dive-facts dt{color:#c8dbf2}
.deep-dive .deep-dive-facts dd{margin:.15rem 0 0;font-size:calc(1.38rem * var(--reading-scale));line-height:1.65;overflow-wrap:anywhere;text-align:start}
.deep-dive .deep-dive-vocab-card{display:grid;align-content:start;gap:.2rem;text-align:center;list-style:none;overflow-wrap:anywhere}
.deep-dive .deep-dive-subheading,.deep-dive .deep-dive-example h6,.deep-dive .deep-dive-verb-heading{font-size:1em;font-weight:750;text-align:start;margin:1.15rem 0 .45rem}
.deep-dive .deep-dive-example{border-top:1px solid #37516e;margin-top:1rem;padding-top:.15rem}
.deep-dive .deep-dive-example p{margin-bottom:.4rem}
.deep-dive .deep-dive-example .deep-dive-inline-sentence{font-size:calc(1.6rem * var(--reading-scale));text-align:start}
.deep-dive .deep-dive-example-profile{margin-bottom:0;background:#192c47}
.deep-dive .deep-dive-grammar{white-space:pre-line}
.deep-dive .deep-dive-inline-word{display:inline;padding:.03em .18em;margin:.08em .025em;background:#203757;border:1px solid #587da8;border-radius:.35em;color:inherit;font:inherit;line-height:1.55;vertical-align:baseline}
.deep-dive .deep-dive-inline-word:hover,.deep-dive .deep-dive-inline-word[aria-expanded=true]{background:#493a78;border-color:#c2adff}
.deep-dive .deep-dive-focus-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 24px));max-height:88dvh;overflow:auto;padding:clamp(1rem,5vw,2.5rem);color:#f3f7ff;background:#14243a;border:1px solid #6d83af;border-radius:16px;text-align:center}
.deep-dive .deep-dive-focus-dialog::backdrop{background:#040a14eb}
.deep-dive .deep-dive-focus-dialog>button{display:block;margin-inline-start:auto}
.deep-dive .deep-dive-focus-word{font-size:calc(clamp(3rem,10vw,7rem) * var(--reading-scale));line-height:1.6;overflow-wrap:anywhere;margin:.25rem 0 .65rem}
.deep-dive .deep-dive-focus-meaning{font-size:calc(1.35rem * var(--reading-scale));margin:0}
@media(max-width:480px){.deep-dive .deep-dive-words,.deep-dive .deep-dive-facts,.deep-dive .deep-dive-vocabulary{grid-template-columns:repeat(auto-fit,minmax(min(100%, 7rem),1fr))}.deep-dive .deep-dive-profile-actions{width:100%}}


.deep-dive{--controls-height:4rem}
.deep-dive .deep-dive-words{grid-template-columns:repeat(auto-fit,minmax(min(100%, 6.5rem),1fr));gap:.5rem}
.deep-dive .deep-dive-card{min-height:4.35rem;padding:.35rem .42rem;gap:.1rem}
.deep-dive .deep-dive-card-arabic{font-size:calc(1.4rem * var(--reading-scale))}
.deep-dive .deep-dive-profile{scroll-margin-top:var(--controls-height)}
.deep-dive .deep-dive-related{margin:1.05rem 0 0;padding-top:.75rem}
.deep-dive .deep-dive-related summary{font-weight:700}
.deep-dive .deep-dive-focus-dialog .deep-dive-focus-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin-top:1rem}
.deep-dive .deep-dive-focus-controls button:disabled{opacity:.5;cursor:default}
.deep-dive .deep-dive-focus-position{margin:.6rem 0 0;color:#a9beda;font-size:.875rem}
.deep-dive .deep-dive-focus-meaning[hidden]{display:none}
@media(max-width:360px){.deep-dive{--controls-height:6rem}}


.deep-dive h2{margin:0 0 .3rem}
.deep-dive-request{display:flex;gap:.6rem;flex-wrap:wrap;align-items:end}
.deep-dive-request label{display:grid;gap:.2rem}
.deep-dive-request label[hidden]{display:none}
.deep-dive-request select{color:inherit;background:#203757;border:1px solid #587da8;border-radius:8px;padding:.53rem;font:inherit}
#demo-status{margin:.65rem 0;color:#c4d4ee}
#demo-status:empty{display:none}


.deep-dive-request .deep-dive-teaching-toggle[aria-checked=true]{background:#493a78;border-color:#c2adff}
.deep-dive-hide-english .deep-dive-english,.deep-dive:not(.deep-dive-show-definitions) .deep-dive-definition{display:none!important}
.deep-dive .deep-dive-definition{color:#d3e8ff;font-size:calc(1.15rem * var(--reading-scale));line-height:1.75}
.deep-dive .deep-dive-definition-box{background:#1b304d;border:1px solid #385476;border-radius:10px;padding:.7rem .85rem;margin:.65rem 0}
.deep-dive .deep-dive-definition-box h6{font-size:1em;margin:0 0 .35rem}
.deep-dive .deep-dive-definition-box p{margin:0}
.deep-dive .deep-dive-grammar-section{margin-top:1.15rem}
.deep-dive .deep-dive-grammar-section summary{font-weight:750}
.deep-dive .deep-dive-grammar-cards{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.6rem;margin:.6rem 0 1rem;padding:0}
.deep-dive .deep-dive-grammar-card{min-width:0;background:#1b304d;border:1px solid #385476;border-radius:10px;padding:.7rem .85rem}
.deep-dive .deep-dive-grammar-card strong{display:block;direction:rtl;text-align:right;font-size:calc(1.4rem * var(--reading-scale));line-height:1.65}
.deep-dive .deep-dive-grammar-label{display:block;color:#d5c8ff;font-weight:700}
.deep-dive .deep-dive-grammar-card p{margin:.25rem 0 0}



.deep-dive:not(.deep-dive-show-definitions) :is(.deep-dive-arabic,.deep-dive-control-arabic){display:none!important}
.deep-dive-hide-english.deep-dive-show-definitions .deep-dive-control-english{display:none!important}
.deep-dive-hide-english.deep-dive:not(.deep-dive-show-definitions) :is(.deep-dive-grammar-section,.deep-dive-usage-section,.deep-dive-glossary-heading){display:none}
.deep-dive .deep-dive-bilingual>span{unicode-bidi:isolate}
.deep-dive .deep-dive-bilingual>.deep-dive-arabic{display:block;text-align:right;line-height:1.75}
.deep-dive :is(button,summary).deep-dive-bilingual{display:inline-flex;align-items:center;gap:.4em;flex-wrap:wrap}
.deep-dive summary.deep-dive-bilingual{display:list-item}
.deep-dive summary.deep-dive-bilingual>.deep-dive-arabic{display:inline-block;margin-inline-start:.35em}
.deep-dive-hide-english.deep-dive-show-definitions summary.deep-dive-bilingual{direction:rtl;text-align:right}
.deep-dive .deep-dive-grammar-card .deep-dive-grammar-label{overflow-wrap:anywhere}
.deep-dive .deep-dive-grammar-card p[lang=ar],.deep-dive .deep-dive-role[lang=ar]{text-align:right;line-height:1.85}
.deep-dive .deep-dive-definition-box h6{font-size:1rem}


/* Carry the Translation Tool surfaces into Deep Dive. */
#translation-dialog .deep-dive{margin-block:16px 0;background:#101e32;border:1px solid #456080;border-radius:12px}
#translation-dialog .deep-dive h3{font:700 19px/1.35 Arial,sans-serif;margin:0 0 6px}
#translation-dialog .deep-dive h3+p{font-size:14px;color:#bdd7f4;margin:0 0 12px}
#translation-dialog .deep-dive-request{gap:8px;align-items:center}
#translation-dialog .deep-dive :is(.deep-dive-profile,.deep-dive-grammar-card,.deep-dive-facts div,.deep-dive-vocab-card,.deep-dive-definition-box){background:#192a42;border-color:#456080;border-radius:12px}
#translation-dialog .deep-dive :is(.deep-dive-card[aria-expanded=true],.deep-dive-teaching-toggle[aria-checked=true]){background:linear-gradient(#69539e,#493a78);border-color:#c2adff;color:#fff;box-shadow:inset 0 1px #e2d8ff66,inset 0 -2px #332652}
#translation-dialog .deep-dive-grammar-cards{direction:rtl}

/* Keep the emphasis on the Arabic and the primary action. */
#translation-dialog .deep-dive :is(.deep-dive-english,.deep-dive-role,.deep-dive-definition){font-weight:400}
#translation-dialog .deep-dive :is(.deep-dive-grammar-label,.deep-dive-profile-pos,.deep-dive-facts dt){font-weight:500;color:#c9dcf4}
#translation-dialog .deep-dive :is(.deep-dive-grammar-card strong,.deep-dive-subheading,.deep-dive-example h6,.deep-dive-verb-heading){font-weight:600}
#translation-dialog .deep-dive .deep-dive-grammar-label>.deep-dive-english{font-weight:inherit}
#translation-dialog .deep-dive .deep-dive-grammar-card p{margin-top:.45em}
#translation-dialog .deep-dive .deep-dive-grammar-card p[lang=ar]{line-height:1.9}
#translation-dialog .deep-dive .deep-dive-request{align-items:center;gap:.5rem .75rem}
#translation-dialog .translation-toolbar .deep-dive-teaching-toggle,
#translation-dialog .deep-dive :is(.deep-dive-teaching-toggle,.deep-dive-example-action,.deep-dive-profile-actions button){
  background:#192a42;border:1px solid #587492;border-radius:8px;color:#eaf4ff;
  box-shadow:none;text-shadow:none;font-weight:500;
}
#translation-dialog :is(.translation-toolbar,.deep-dive) .deep-dive-teaching-toggle{
  display:inline-flex;align-items:center;gap:.55rem;padding:.4rem .65rem;min-height:44px;
}
#translation-dialog :is(.translation-toolbar,.deep-dive) .deep-dive-teaching-toggle::before{
  content:"";flex:none;box-sizing:border-box;width:1.9rem;height:1.05rem;border:1px solid #819bb6;
  border-radius:1rem;background:radial-gradient(circle at .45rem 50%,#d3e3f5 0 .26rem,transparent .29rem),#101e32;
}
#translation-dialog :is(.translation-toolbar,.deep-dive) .deep-dive-teaching-toggle[aria-checked=true]::before{
  background:radial-gradient(circle at calc(100% - .45rem) 50%,#fff 0 .26rem,transparent .29rem),#3268a6;
  border-color:#a0c9fb;
}
#translation-dialog .deep-dive .deep-dive-example-action{min-height:44px;padding:.4rem .65rem}
#translation-dialog .deep-dive .deep-dive-example-action:hover{background:#24405e;border-color:#81a7cd}
#translation-dialog .deep-dive .deep-dive-inline-sentence{line-height:1.95}
#translation-dialog .deep-dive .deep-dive-inline-word{
  appearance:none;min-height:max(24px,1.55em);padding:0 .13em;margin:0 .02em;
  background:transparent;border:0;box-shadow:none;text-shadow:none;color:inherit;
  text-decoration:underline dotted;text-underline-offset:.24em;text-decoration-thickness:1px;
  text-decoration-color:#8bb5de;line-height:1.65;
}
#translation-dialog .deep-dive .deep-dive-inline-word:hover,
#translation-dialog .deep-dive .deep-dive-inline-word[aria-expanded=true]{background:#493a78;text-decoration-style:solid;text-decoration-color:#e0d5ff}
#translation-dialog .deep-dive .deep-dive-card{font-weight:400;box-shadow:none;text-shadow:none}
#translation-dialog .deep-dive .deep-dive-card-arabic{line-height:1.8}
#translation-dialog .deep-dive .deep-dive-card>.deep-dive-definition{
  align-self:stretch;margin-block:auto;text-align:center;overflow-wrap:anywhere;
}
#translation-dialog .deep-dive .deep-dive-card[aria-expanded=true] .deep-dive-card-arabic{font-weight:700}
#translation-dialog .deep-dive .deep-dive-profile-heading{align-items:flex-start;gap:.6rem 1rem;margin-bottom:.9rem}
#translation-dialog .deep-dive .deep-dive-profile-title{flex:1 1 10rem;min-width:0}
#translation-dialog .deep-dive .deep-dive-profile-title h5{line-height:1.7;text-align:left;overflow-wrap:anywhere}
#translation-dialog .deep-dive.deep-dive-hide-english.deep-dive-show-definitions .deep-dive-profile-title h5{text-align:right}
#translation-dialog .deep-dive .deep-dive-profile-title p{margin:.15rem 0 0}
#translation-dialog .deep-dive :is(.deep-dive-teaching-toggle,#deep-dive-example-button,.deep-dive-inline-word,.deep-dive-profile-actions button):focus-visible{
  outline:2px solid #add6ff;outline-offset:3px;
}
@media (max-width:600px){
  #translation-dialog .deep-dive .deep-dive-request .primary{flex-basis:100%}
  #translation-dialog .deep-dive .deep-dive-profile-actions button{min-height:44px}
  #translation-dialog .deep-dive .deep-dive-profile{scroll-margin-top:1rem}
}

/* Centre bilingual grammar content while keeping each line's reading direction. */
#translation-dialog .deep-dive .deep-dive-grammar-section>summary{
  position:relative;display:block;text-align:center;padding:.4rem 2rem .55rem;
}
#translation-dialog .deep-dive .deep-dive-grammar-section>summary::-webkit-details-marker{display:none}
#translation-dialog .deep-dive .deep-dive-grammar-section>summary::before{
  content:"";position:absolute;inset-inline-start:.6rem;inset-block-start:1em;
  width:.45em;height:.45em;border:solid currentColor;border-width:0 2px 2px 0;
  transform:rotate(-45deg);transform-origin:center;
}
#translation-dialog .deep-dive .deep-dive-grammar-section>summary:dir(rtl)::before{transform:rotate(135deg)}
#translation-dialog .deep-dive .deep-dive-grammar-section[open]>summary::before{transform:rotate(45deg)}
#translation-dialog .deep-dive .deep-dive-grammar-section>summary>span{
  display:block;margin-inline:0;text-align:center;
}
#translation-dialog .deep-dive .deep-dive-grammar-section>summary>.deep-dive-arabic{margin-block-start:.12em}
#translation-dialog .deep-dive .deep-dive-grammar-card{
  display:grid;align-content:start;gap:.5em;text-align:center;padding:.85rem 1rem;
}
#translation-dialog .deep-dive .deep-dive-grammar-card :is(strong,p,.deep-dive-bilingual>.deep-dive-arabic){
  text-align:center;margin:0;
}
#translation-dialog .deep-dive .deep-dive-grammar-card .deep-dive-grammar-label>.deep-dive-arabic{margin-block-start:.18em}

/* The Translation Tool toolbar sets the reading size for the whole dialog. */
#translation-dialog{font-size:calc(1rem * var(--translation-scale,1))}
#translation-dialog .translation-heading h2{font-size:calc(27px * var(--translation-scale,1))}
#translation-dialog .deep-dive h3{font-size:calc(19px * var(--translation-scale,1))}
#translation-dialog :is(.translation-heading p,.translation-columns label,.translation-status,.deep-dive h3+p){
  font-size:calc(14px * var(--translation-scale,1));
}
#translation-dialog .translation-allowance{font-size:calc(13px * var(--translation-scale,1))}
#translation-dialog :is(.translation-count,.translation-copy-status){font-size:calc(12px * var(--translation-scale,1))}
#translation-dialog .translation-columns textarea::placeholder{font-size:calc(18px * var(--translation-scale,1))}
#translation-dialog :is(.translation-toolbar button,.translation-heading button,.deep-dive button:not(.deep-dive-card,.deep-dive-inline-word)){
  font-size:calc(15px * var(--translation-scale,1));
}
#translation-dialog .deep-dive .deep-dive-focus-position{font-size:calc(.875rem * var(--translation-scale,1))}



#translation-dialog .translation-recording-brand{
  position:sticky;inset-block-start:0;z-index:3;width:fit-content;max-width:100%;
  margin:0 0 8px;padding:.35em .65em;background:#142840;border:1px solid #456080;
  border-radius:8px;color:#d9edff;font-size:calc(.9375rem * var(--translation-scale,1));font-weight:700;
  overflow-wrap:anywhere;
}
#translation-dialog .deep-dive .deep-dive-verb-forms{
  direction:rtl;grid-template-columns:repeat(4,minmax(0,1fr));
}
#translation-dialog .deep-dive .deep-dive-verb-forms :is(dt,dd,dt>.deep-dive-arabic){text-align:center}
@media(max-width:720px){
  #translation-dialog .deep-dive .deep-dive-verb-forms{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:350px){
  #translation-dialog .deep-dive .deep-dive-verb-forms{grid-template-columns:minmax(0,1fr)}
}

#translation-dialog .translation-mode-bar{display:flex;justify-content:space-between;align-items:center;gap:.55rem 1rem;flex-wrap:wrap;margin:.8rem 0 1rem}
#translation-dialog :is(.translation-modes,.notepad-actions){display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
#translation-dialog .translation-modes button{min-width:6.4rem}
#translation-dialog :is(#translator-mode,#notepad-mode,#note-translation)[hidden]{display:none}
#translation-dialog .translation-heading h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#translation-dialog .translation-heading p{display:none}
#translation-dialog #lesson-note-label{display:block;color:#d3e7ff;font-weight:700;margin:.2rem 0 .55rem}
#translation-dialog #lesson-note{box-sizing:border-box;display:block;width:100%;min-height:12rem;height:clamp(12rem,35vh,20rem);resize:vertical;padding:.85rem 1.05rem;border:1px solid #456080;border-radius:12px;background:#101e32;color:#f4f7ff;font:calc(24px * var(--translation-scale,1))/1.8 Arial,sans-serif}
#translation-dialog .notepad-meta{display:flex;justify-content:space-between;gap:.25rem 1rem;flex-wrap:wrap;margin:.55rem 0 .8rem;color:#bed5f0;font-size:.875em}
#translation-dialog .notepad-meta p{margin:0}
#translation-dialog #note-storage{color:#b1d6bc}
#translation-dialog #note-status{color:#bfdfff;margin:.6rem 0}
#translation-dialog #note-status:empty{display:none}
#translation-dialog #note-translation{background:#101e32;border:1px solid #456080;border-radius:12px;margin-top:.9rem;padding:1rem}
#translation-dialog .note-result-heading{display:flex;justify-content:space-between;align-items:center;gap:.55rem;flex-wrap:wrap}
#translation-dialog .note-result-heading h3{font-size:1.1em;margin:0}
#translation-dialog #note-translated-text{font-size:1.25em;margin:.6rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#translation-dialog :is(.deep-dive,#deep-dive-run,#deep-dive-example-button)[hidden]{display:none}

#translation-dialog .translation-recording-bar{
  position:sticky;inset-block-start:0;z-index:3;display:flex;align-items:center;flex-wrap:wrap;
  gap:.35rem .7rem;width:fit-content;max-width:100%;margin:0 0 .6rem;padding:.25rem .4rem;
  background:#142840;border:1px solid #456080;border-radius:10px;color:#d9edff;
}
#translation-dialog .translation-recording-bar .translation-recording-brand{
  position:static;margin:0;padding:.15rem .2rem;background:none;border:0;color:inherit;
  font-size:.9375rem;font-weight:700;overflow-wrap:anywhere;
}
#translation-dialog .translation-recording-controls{display:flex;align-items:center;gap:.25rem}
#translation-dialog .translation-recording-controls>button{
  box-sizing:border-box;position:relative;display:inline-grid;place-items:center;
  inline-size:44px;block-size:44px;min-inline-size:44px;min-block-size:44px;padding:0;
  border:1px solid #617c9b;border-radius:8px;background:#1b344f;color:#f4f8ff;
  box-shadow:none;text-shadow:none;line-height:1;font:700 .875rem Arial,sans-serif;
}
#translation-dialog .translation-recording-controls>button[lang=ar]{font-size:1.25rem}
#translation-dialog .translation-recording-controls>button[aria-checked=false]{
  background:#132338;color:#adc4dd;
}
#translation-dialog .translation-recording-controls>button[aria-checked=true]{
  background:#493a78;border-color:#c2adff;
}
#translation-dialog .translation-recording-controls>button[role=switch]::before{content:none}
#translation-dialog .translation-recording-controls>button[aria-checked=true]::after{
  content:"";position:absolute;inset-inline-end:4px;inset-block-end:4px;width:4px;height:4px;
  border-radius:50%;background:#e3d1ff;
}
#translation-dialog .translation-recording-controls>button:focus-visible{
  outline:2px solid #a7d6ff;outline-offset:2px;
}
#translation-dialog .translation-recording-controls>button:disabled{opacity:.45;cursor:default}
#translation-dialog #translation-size[hidden]{display:none}

#translation-dialog .deep-dive-opening{padding:.7rem .9rem;border:1px solid #456080;border-radius:10px;margin:.55rem 0;background:#142840}
#translation-dialog .deep-dive-opening p{margin:0;overflow-wrap:anywhere}
#translation-dialog .deep-dive-opening p[lang=ar]{font-size:calc(1.4rem * var(--translation-scale,1));line-height:1.75}
