@font-face { font-family: Jost; src: url('/brand/jost.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Almarai; src: url('/brand/Almarai-Regular.ttf') format('truetype'); font-display: swap; }
:root {
  color-scheme: light;
  font-family: Jost, system-ui, sans-serif;
  color: #16131f;
  background: #f7f3ec;
  --ink: #16131f;
  --accent-ink: #98340f;
  --accent: #ff5a1f;
  --muted: #59525f;
  --line: #d8cfc3;
  --paper: #fffcf8;
}
* { box-sizing: border-box; }
html { touch-action: pan-x pan-y; }
body { margin: 0; }
h1,h2,p,ol { margin: 0; }
h1,h2,.brand,.screen-title,.scene-copy b { letter-spacing: -.052em; }
h1 { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.06; font-weight: 650; }
h2 { font-size: 23px; font-weight: 650; line-height: 1.18; }
small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
button,input,textarea,select { font: inherit; color: inherit; }
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--paper); border: 1px solid #b8aeb5; border-radius: 8px;
  padding: 0 15px; min-height: 40px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
button:hover:enabled { background: #f5e9df; border-color: #a08783; }
button:disabled { cursor: default; opacity: .55; }
button.primary,.player-btn { color: var(--ink); background: var(--accent); border-color: var(--accent); }
button.primary:hover:enabled,.player-btn:hover:enabled { background: #ff784b; }
:focus-visible { outline: 3px solid #98340f; outline-offset: 3px; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-btn { padding: 0; width: 40px; min-width: 40px; background: transparent; border-color: transparent; }
.text-btn { background: transparent; border-color: transparent; padding: 0 8px; }
.danger,.error { color: #963c33; }
.error:empty,#upload-status:empty { display: none; }
.error,#upload-status { margin: 10px 0 0; font-size: 14px; }
strong { font-weight: 650; }
header { background: #16131f; color: #f7f3ec; }
.header-inner,.studio { max-width: 1510px; margin: 0 auto; padding-inline: clamp(20px,5vw,84px); }
.header-inner { display: flex; align-items: center; gap: 6%; min-height: 74px; }
.brand { display: block; width: 182px; height: auto; flex: none; }
nav { display: flex; gap: 4px; }
header button { color: #e5dce7; border: 0; background: transparent; }
header button:hover:enabled,header button[aria-current] { background: #3b2c41; color: white; }
header button:focus-visible { outline-color: var(--accent); }
header button[aria-current] .icon { color: var(--accent); }
.signout { margin-left: auto; }
.studio { padding-bottom: 40px; }
.title-bar { display: flex; justify-content: space-between; align-items: end; gap: 22px; padding: clamp(28px,4vw,62px) 0 28px; border-bottom: 1px solid var(--line); }
.clinic-name { font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 8px; overflow-wrap: anywhere; }
.workflow { display: grid; justify-items: end; gap: 10px; flex: none; }
.actions { display: flex; gap: 8px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #457b51; }
.state.pending::before { background: #b77721; }
.workspace { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); gap: clamp(24px,3.5vw,60px); margin-top: 28px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; margin-bottom: 15px; }
.format,.number,.time,.color-field output { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.format { font-size: 12px; letter-spacing: .05em; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }
.preview-frame { padding: clamp(6px,.65vw,10px); border-radius: 15px; background: #261e31; box-shadow: 0 6px 14px #23152c18; }
.screen { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; container-type: inline-size; aspect-ratio: 16/9; position: relative; overflow: hidden; background: #e7f3f0; color: #103b3a; border-radius: 6px; }
.screen .clinic,.screen-title,.description,.tagline { position: absolute; left: 6.25%; width: 50%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.screen .clinic { top: 11%; font-size: 1.875cqw; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: var(--slide-accent); -webkit-line-clamp: 2; }
.screen-title { top: 27%; font-size: 4.875cqw; line-height: 1.08; -webkit-line-clamp: 3; }
.description { top: 59.4%; color: #476963; font-size: 2.1875cqw; line-height: 1.22; -webkit-line-clamp: 5; }
.tagline { top: 90%; color: var(--slide-accent); font-size: 1.5625cqw; -webkit-line-clamp: 1; }
.art { position: absolute; inset: 0 0 0 61.25%; background: #d6ebe5; display: grid; place-items: center; }
.art svg { width: 82%; }
.art img,.full img,.full video { width: 100%; height: 100%; object-fit: cover; }
.full { background: #101a17; }
.full img,.full video { object-fit: contain; }
.empty-screen { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; text-align: center; padding: 16px; }
.empty-screen .icon { height: 30px; width: 30px; }
.empty-screen span,.subtitle,.intro,.empty { color: var(--muted); font-size: 14px; line-height: 1.55; }
.transport,.connection,.device { display: flex; align-items: center; gap: 12px; }
.transport { padding: 16px 0; }
.player-btn { width: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
.now,.connection>div,.device>div { flex: 1; min-width: 0; }
.now strong,.now small,.device strong { overflow-wrap: anywhere; }
.now strong,.connection strong { font-size: 15px; }
.transport .icon-btn { border-color: var(--line); border-radius: 50%; }
.subtitle { margin: -7px 0 12px; }
.subtitle span { padding-inline: 3px; }
.slides { list-style: none; padding: 0; }
.slides li { --slide-gap: 6px; display: flex; align-items: center; padding: 3px 8px 3px 0; border: 1px solid transparent; border-bottom-color: var(--line); min-height: 63px; gap: var(--slide-gap); }
.slides li.selected { background: #ffeadf; border-color: #ffa284; border-radius: 8px; }
.slide-pick { flex: 1; min-width: 0; padding: 8px 4px 8px 10px; min-height: 48px; border: 0; background: transparent; text-align: left; justify-content: start; gap: 13px; }
.number { align-self: center; color: var(--muted); font-weight: 500; font-size: 12px; }
.selected .number { color: var(--accent-ink); }
.slide-info { display: grid; min-width: 0; gap: 2px; }
.slide-info strong,.slide-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-info strong { font-size: 15px; }
.slide-info small { font-weight: 400; }
.hidden-slide strong { color: var(--muted); }
.time { color: var(--muted); font-size: 12px; }
.slides .icon-btn { width: 36px; min-width: 36px; }
.slides .icon-btn + .icon-btn { margin-inline-start: calc(-1 * var(--slide-gap)); }
.connection { border-block: 1px solid var(--line); padding: 18px 0; margin-top: 28px; }
.connection>.icon,.device-icon { color: var(--accent-ink); }
.connection>.icon { width: 24px; height: 24px; margin: 0 8px; }
.forms { grid-template-columns: repeat(2,minmax(0,1fr)); }
.forms section { padding-bottom: 10px; }
.forms .intro { max-width: 480px; }
.agent-actions { flex-wrap: wrap; margin: 18px 0 12px; }
form label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
input,select,textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #a89ba3; border-radius: 7px; background: var(--paper); min-height: 42px; }
textarea { resize: vertical; }
.address-row { display: flex; gap: 8px; margin-bottom: 12px; }
.address-row input { min-width: 0; }
#pair-code { font-family: ui-monospace, monospace; letter-spacing: .2em; max-width: 180px; }
#pair .primary { margin-top: 18px; }
.device { padding: 14px 0; border-top: 1px solid var(--line); }
.color-field { display: flex; align-items: center; gap: 12px; }
.color-field input { width: 60px; padding: 4px; cursor: pointer; }
.color-field output { font-size: 13px; }
dialog { width: min(500px,calc(100% - 24px)); max-height: 92dvh; border: 1px solid var(--line); border-radius: 15px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px #23152c40; }
dialog[open] { animation: appear .16s ease-out; }
dialog::backdrop { background: #16131fa8; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head,.dialog-actions { padding: 12px 22px; display: flex; align-items: center; gap: 8px; background: var(--paper); position: sticky; z-index: 1; }
.dialog-head { top: 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
.dialog-actions { bottom: 0; border-top: 1px solid var(--line); justify-content: end; }
.dialog-actions .danger { margin-right: auto; }
.fields { padding: 0 22px 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
.wide { grid-column: 1/-1; }
.file-label small { display: inline; font-weight: 400; }
input[type=file] { padding: 6px; font-size: 13px; }
input::file-selector-button { margin-right: 8px; padding: 6px 10px; border: 0; border-radius: 4px; color: var(--ink); background: #ffeadf; }
.checkbox { display: flex; align-items: center; gap: 9px; min-height: 32px; }
.checkbox input { margin: 0; min-height: 0; width: 18px; height: 18px; accent-color: var(--accent-ink); }
#toast { position: fixed; z-index: 3; bottom: 22px; left: 50%; transform: translate(-50%,10px); opacity: 0; pointer-events: none; transition: opacity .15s,transform .15s; background: var(--ink); color: white; border-radius: 9px; padding: 12px 18px; max-width: 90vw; width: max-content; font-size: 14px; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
.login-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); padding: 20px; }
.login-panel { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(16px,3vw,50px); }
.login-panel form { width: min(100%,370px); margin: auto; padding: 56px 0; }
.login-panel h1 { font-size: clamp(38px,4vw,57px); }
.login-panel form>p:first-of-type { margin: 12px 0 30px; color: var(--muted); line-height: 1.5; }
.login-panel .primary { margin-top: 18px; width: 100%; justify-content: space-between; min-height: 46px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; height: 46px; }
.password-wrap button { position: absolute; right: 3px; top: 3px; }
.studio-scene { isolation: isolate; overflow: hidden; position: relative; min-height: 260px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-direction: column; background: linear-gradient(152deg,#fbe6d7 0%,#f3bfa6 42%,#ab5238 100%); }
.studio-scene::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(120deg,transparent 0 6.5%,#f2ffd31b 7% 14%,transparent 14.5% 16%); mask-image: linear-gradient(150deg,#000,transparent 75%); }
.studio-scene::after { content: ''; position: absolute; inset: 67% 0 0; z-index: -1; background: linear-gradient(170deg,#a95e48,#dd997b); border-top: 2px solid #ffdbcc66; }
.scene-monitor { width: 74%; max-width: 580px; background: #16131f; border: 2px solid #514354; border-radius: 14px; padding: 1.6% 1.6% 2.6%; position: relative; box-shadow: 14px 16px 26px #23483242; }
.scene-slide { aspect-ratio: 16/9; display: flex; overflow: hidden; border-radius: 5px; background: #e7f3ec; }
.scene-copy { width: 61%; padding: 5% 7%; display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 5%; }
.scene-copy b { font-size: clamp(18px,3.4vw,63px); line-height: .97; font-weight: 650; }
.scene-copy i { width: 72%; height: 2%; background: #aac8b7; border-radius: 4px; }
.scene-copy i:first-child { width: 36%; margin-bottom: 4%; background: #70a38e; }
.scene-copy i:last-child { width: 52%; }
.scene-art { display: grid; place-items: center; width: 39%; background: #c9e4d7; }
.scene-art svg { width: 85%; }
.monitor-led { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); right: 4%; bottom: 2%; }
.stand { height: clamp(16px,2.8vw,43px); width: 8%; background: linear-gradient(#16131f,#514354); }
.stand-foot { height: 8px; width: 24%; border-radius: 60% 60% 3px 3px; background: #352b40; box-shadow: 10px 7px 9px #28473550; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 940px) {
  .workspace { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 22px; }
  .header-inner,.studio { padding-inline: 24px; }
  .header-inner { gap: 24px; }
  .slide-pick { gap: 8px; }
}
@media (max-width: 740px) {
  html { scroll-padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
  body {
    --mobile-nav-height: calc(62px + env(safe-area-inset-bottom));
    --mobile-actions-height: 0px;
  }
  body:has(.workflow .actions button:enabled) { --mobile-actions-height: 62px; }
  .header-inner,.studio {
    padding-inline-start: max(16px,env(safe-area-inset-left));
    padding-inline-end: max(16px,env(safe-area-inset-right));
  }
  .header-inner { gap: 8px; min-height: 60px; padding-top: env(safe-area-inset-top); }
  .brand { width: 154px; }
  .signout { padding-inline: 8px; }
  header nav {
    position: fixed; z-index: 2; inset: auto 0 0; height: var(--mobile-nav-height);
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px;
    padding: 5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    background: var(--ink); color: var(--paper);
  }
  header nav button { flex-direction: column; gap: 4px; padding: 3px 1px; font-size: 12px; line-height: 1.15; }
  header nav .icon { width: 20px; height: 20px; }
  .studio { padding-bottom: calc(24px + var(--mobile-nav-height) + var(--mobile-actions-height)); }
  .title-bar { align-items: start; flex-direction: column; gap: 8px; padding-block: 20px 16px; }
  .title-bar h1 { font-size: clamp(30px,7.8vw,42px); }
  .clinic-name { margin-bottom: 4px; }
  .workflow { justify-items: start; }
  .workflow .actions {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.65fr);
    position: fixed; z-index: 2; inset: auto 0 var(--mobile-nav-height);
    padding: 8px max(16px,env(safe-area-inset-right)) 9px max(16px,env(safe-area-inset-left));
    border-top: 1px solid var(--line); background: var(--paper);
  }
  .workflow:not(:has(.actions button:enabled)) .actions { display: none; }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 14px; }
  .workspace > section { min-width: 0; }
  .forms > section + section { border-top: 1px solid var(--line); padding-top: 16px; }
  .section-head { margin-bottom: 8px; }
  .preview { scroll-margin-top: 12px; }
  .transport { gap: 8px; padding-block: 10px 0; }
  .transport .player-btn,.icon-btn,.slides .icon-btn { width: 44px; min-width: 44px; min-height: 44px; flex-shrink: 0; }
  .queue { border-top: 1px solid var(--line); padding-top: 12px; }
  .queue .section-head { margin-bottom: 10px; }
  .slides li { --slide-gap: 4px; min-height: 66px; padding-inline-end: 3px; }
  .slide-info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
  .connection { margin-top: 18px; }
  .device { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: start; gap: 4px 8px; }
  .device .checkbox { min-height: 44px; }
  .device strong + small { overflow-wrap: anywhere; }
  button,input,select,textarea { min-height: 44px; }
  input,select,textarea { font-size: 16px; }
  .password-wrap input { height: 50px; padding-right: 50px; }
  #app:has(.studio) + #toast { bottom: calc(var(--mobile-nav-height) + var(--mobile-actions-height) + 8px); }
  .login-layout { grid-template-columns: 1fr; padding: 12px; }
  .login-panel { padding: max(16px,env(safe-area-inset-top)) 12px 16px; }
  .login-panel form { padding: 32px 0; }
  .studio-scene { min-height: 225px; }
  .scene-monitor { width: min(52%,300px); }
  .scene-copy b { font-size: clamp(18px,3.8vw,32px); }
}
@media (max-width: 440px) {
  .connection { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; }
  .connection>.icon { margin: 0; }
  .connection .text-btn { grid-column: 2; justify-self: start; padding-inline: 0; }
  #youtube-import .address-row { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* The preview and native player use the same panel proportions. */
.designed { background: #f8f6ee; color: #183b3b; }
.designed .art { background: color-mix(in srgb, var(--slide-accent) 14%, #f4f1e6); overflow: hidden; }
.designed .art img { position: absolute; inset: 0; }
.slide-copy { position: absolute; inset: 0 38.75% 0 0; padding: 0 6.25%; display: flex; flex-direction: column; justify-content: center; }
.designed .clinic,.designed .tagline { width: 80%; left: 10.2%; color: inherit; }
.designed .clinic { top: 9.8%; }
.designed .clinic::before { content: ''; display: inline-block; vertical-align: middle; width: 2.8cqw; height: .34cqw; margin-inline-end: .8cqw; background: var(--slide-accent); }
.designed .screen-title,.designed .description { position: static; width: 100%; }
.designed .description { margin-top: 1.75cqw; }
.designed .description:empty,.designed .tagline:empty { display: none; }
.slide-message { max-height: 65%; overflow: hidden; }
.designed .tagline { top: auto; bottom: 6%; }
.layout-left .slide-copy { inset: 0 0 0 38.75%; }
.layout-left .art { inset: 0 61.25% 0 0; }
.layout-midnight { background: #172f34; color: #fffcf0; }
.layout-midnight .art { inset: 7% 4% 7% 59%; border-radius: 20cqw 20cqw 1cqw 1cqw; }
.layout-midnight .description { color: #d5e2dd; }
.layout-midnight .slide-copy { right: 42%; }
.art service-art,.motion-thumb { display: block; aspect-ratio: 1; background-size: 600% 400%; background-repeat: no-repeat; }
.art service-art { position: relative; width: 90%; border-radius: 50%; }
.art.with-photo service-art { position: absolute; width: 51%; right: 7%; bottom: 6%; border: .35cqw solid #fffaf0; background-origin: padding-box; box-shadow: 0 .3cqw 1cqw #173d3c30; }
dialog:has(#editor) { width: min(1060px,calc(100% - 24px)); }
.editor-preview-toggle { display: none; }
.edit-body { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(0,1fr); align-items: start; }
.edit-preview { position: sticky; top: 66px; padding: 18px 22px 22px; }
.edit-preview h3 { font-size: 16px; margin: 0; }
.edit-preview .section-head { min-height: 24px; margin-bottom: 10px; }
#edit-preview { padding: 5px; border-radius: 10px; background: #261e31; }
.edit-body .fields { border-left: 1px solid var(--line); }
.design-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; }
.design-row .color-field { gap: 6px; }
.design-row .color-field input { width: 42px; flex: none; }
.design-row .color-field button { font-size: 12px; padding: 0 7px; }
.motion-picker { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.motion-picker legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.motion-cards,.motion-modes { display: grid; gap: 6px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.motion-modes { display: flex; margin-top: 6px; }
.motion-option { margin: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; font-size: 12px; cursor: pointer; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.motion-option:has(:checked) { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); background: #ffeadf; }
.motion-option:has(:focus-visible) { outline: 3px solid #98340f; outline-offset: 1px; }
.motion-option input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.motion-option span:last-child { padding: 7px; }
.motion-thumb { width: 100%; }
@media (max-width: 740px) {
  dialog:has(#editor) {
    position: fixed; inset: 0; margin: 0; height: 100dvh; max-height: none;
    width: 100%; max-width: none; border: 0; border-radius: 0;
    overscroll-behavior: contain; scroll-padding-block: 72px 76px;
  }
  #editor { min-height: 100%; display: flex; flex-direction: column; }
  #editor .dialog-head,#editor .dialog-actions,#editor .fields,.edit-preview {
    padding-inline-start: max(16px,env(safe-area-inset-left));
    padding-inline-end: max(16px,env(safe-area-inset-right));
  }
  #editor .dialog-head { padding-block: calc(8px + env(safe-area-inset-top)) 8px; }
  #editor .dialog-head h2 { margin-inline-end: auto; }
  #editor .dialog-actions { margin-top: auto; padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
  #editor .dialog-actions button { padding-inline: 10px; }
  .editor-preview-toggle { display: inline-flex; padding-inline: 10px; }
  #editor:has(.editor-preview-toggle[aria-expanded="false"]) .edit-preview { display: none; }
  .edit-body { display: block; }
  .edit-preview { position: static; padding-block: 12px 0; }
  .edit-body .fields { border: 0; }
  .motion-modes .motion-option { min-height: 44px; justify-content: center; }
}

.serif-title .screen-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.035em; }

.bilingual-video { background: #f8f6ee; color: #183b3b; font-family: Arial, sans-serif; }
.bilingual-video .video-clinic {
  position: absolute; top: 7%; left: 5%; width: 40%; height: 5%;
  border-inline-start: .32cqw solid var(--slide-accent); padding-inline-start: .9cqw;
  font-size: 1.9cqw; line-height: 1.4; font-weight: 700; overflow: hidden; overflow-wrap: anywhere;
}
.bilingual-video video {
  position: absolute; top: 8%; left: 49%; width: 46%; height: 84%; object-fit: contain;
  background: #182b2b; border-radius: 1cqw;
}
.video-copy { position: absolute; inset: 16% 55% 8% 5%; display: flex; flex-direction: column; }
.video-language { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.video-language + .video-language { border-top: .12cqw solid var(--slide-accent); }
.video-language > * {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.video-language strong { font-size: 3.1cqw; line-height: 1.18; -webkit-line-clamp: 2; }
.video-language span { color: #476963; font-size: 1.85cqw; line-height: 1.3; -webkit-line-clamp: 3; }
.video-language strong + span { margin-top: .55cqw; }
#copy-warning { margin: 8px 0 0; color: #8c3f24; font-size: 13px; }
#arabic-fields label:not(:first-child) { margin-top: 8px; }

.audio-actions { flex-wrap: wrap; }
.audio-status { min-height: 1.5em; margin: 14px 0; }
#audio-volume { min-height: 32px; padding: 0; accent-color: var(--accent-ink); }
#audio-volume-value { margin-inline-start: 6px; color: var(--muted); }
#audio-create button { margin-top: 10px; }
.audio-library { margin-top: 22px; }
.audio-library details { border-top: 1px solid var(--line); padding: 12px 0; }
.audio-library summary { cursor: pointer; overflow-wrap: anywhere; }
.audio-library summary small { display: inline; margin-inline-start: 6px; }
.audio-tracks { margin: 10px 0; padding-inline-start: 24px; overflow-wrap: anywhere; }
.audio-tracks:empty { display: none; }
#youtube-import { margin-bottom: 20px; }
#youtube-import input { min-width: 0; }
#youtube-import button { flex-shrink: 0; }
.audio-imports { margin: 0 0 24px; padding: 0; list-style: none; }
.audio-imports:empty { display: none; }
.audio-imports li { padding: 8px 0; border-block-start: 1px solid var(--line); overflow-wrap: anywhere; }
.audio-library-tracks { margin: 16px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; }
.audio-library-tracks legend { padding-inline: 4px; font-size: 14px; font-weight: 600; }
#audio-library-options { max-height: 220px; overflow: auto; }
#audio-library-options .checkbox { margin: 5px 0; overflow-wrap: anywhere; }

#arabic-fields [lang="ar"] { font-family: Almarai, Arial, sans-serif; }
