/* Round 14: invite rewards card in the account dialog. Uses the base theme variables (light/dark), logical properties (RTL/LTR). */
.tj-rewards { margin-block: 14px; padding: 14px 16px; border: 1px solid var(--line, #cfe4e1); border-radius: 16px; background: var(--surface-soft, #f4faf9); color: var(--ink, inherit); }
.tj-rewards h3 { margin: 0 0 8px; font-size: 16px; color: var(--teal, #0f766e); }
.tj-rewards dl { margin: 0; display: grid; gap: 2px; }
.tj-rewards__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 7px; border-block-start: 1px solid var(--line, #cfe4e1); }
.tj-rewards__row:first-child { border-block-start: 0; }
.tj-rewards dt { margin: 0; font-size: 13px; color: var(--muted, #52616b); overflow-wrap: anywhere; }
.tj-rewards dd { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink, inherit); }
@media (prefers-contrast: more) { .tj-rewards { border-width: 2px; } }

/* Tarjawan web «1.0.11 shell» (web design parity, 2026-11-28). Edge-owned; assembled from the iOS app 1.0.11 layers
   glass-shell.css, brand-backdrop.css, tajdeed-app-ui.css, translation-actions.css and the web-relevant parts of ios35-ui.css / native-layout.css.
   Served inside the LAST stylesheet slot (rewards.css + app-shell.css, one hashed asset: build-site.mjs), so it loads after polish, translator,
   writing and voice layers exactly like glass-shell.css does in the app. Colours and surfaces apply at every width; geometry that belonged to the
   native shell is scoped to phone widths (max-width:767px) and the safe areas use env() instead of the native constants.
   CSS only: no native-platform selectors, no hard-coded native safe-area constants, no fixed-shell rules. Display only; no behaviour changes.
   Already ported elsewhere (not repeated here): glass-shell §8/§11-13 -> voice-ui.css Round 33, glass-shell §9 -> app-menu.css Round 33. */

/* Saudi riyal sign (U+20C1): OFL glyph-only font, served by web-tools/assets.json (font-src 'self'). */
@font-face{font-family:'Tarjawan Riyal';src:url('/fonts/saudi-riyal-regular.woff2') format('woff2');font-weight:100 500;font-display:block;unicode-range:U+20C1,U+E900}
@font-face{font-family:'Tarjawan Riyal';src:url('/fonts/saudi-riyal-bold.woff2') format('woff2');font-weight:501 1000;font-display:block;unicode-range:U+20C1,U+E900}
.sar-sign{font-family:'Tarjawan Riyal',sans-serif;font-style:normal;font-feature-settings:normal;letter-spacing:0;display:inline-block;line-height:1;margin-inline:.06em;vertical-align:baseline;unicode-bidi:isolate}

/* ======== tokens + one emerald backdrop (glass-shell tokens, §1) ======== */
:root{
  --gs-bg:#f4f8f6;
  --gs-glow:radial-gradient(60% 50% at 80% 10%,color-mix(in oklab,#14c9a0 22%,transparent),transparent 70%),
            radial-gradient(50% 45% at 10% 70%,color-mix(in oklab,#2ff0c2 14%,transparent),transparent 70%);
  --gs-ink:#0a1714;--gs-mute:#4d655e;--gs-label:#3d5a53;--gs-accent:#0a7d68;
  --gs-glass:linear-gradient(160deg,rgba(255,255,255,.82) 0%,rgba(255,255,255,.58) 100%);
  --gs-glass-2:linear-gradient(160deg,rgba(255,255,255,.74) 0%,rgba(236,247,242,.56) 100%);
  --gs-line:rgba(10,90,74,.14);
  --gs-line-focus:rgba(10,125,104,.55);
  --gs-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 14px 34px -24px rgba(6,40,33,.34);
  --gs-blur:blur(16px) saturate(1.35);
  --gs-btn:linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(235,246,242,.78) 100%);
  --gs-btn-line:rgba(10,90,74,.17);
  --gs-btn-sh:inset 0 1px 0 rgba(255,255,255,1),inset 0 -1px 0 rgba(10,90,74,.05),0 6px 16px -12px rgba(6,50,40,.42);
  --gs-btn-ink:#0b3b33;
  --gs-tint:linear-gradient(180deg,rgba(20,201,160,.20) 0%,rgba(10,125,104,.10) 100%);
  --gs-tint-line:rgba(10,125,104,.30);
  --gs-bar:linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(246,251,249,.9) 100%);
  --gs-bar-line:rgba(255,255,255,.85);
  --gs-bar-sh:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1px rgba(10,60,50,.07),0 16px 36px -22px rgba(6,40,33,.42);
}
:root[data-theme=dark]{
  --gs-bg:#06110e;
  --gs-ink:#e9f4f0;--gs-mute:#9fb8b1;--gs-label:#a9c6be;--gs-accent:#5ff0cc;
  --gs-glass:linear-gradient(160deg,rgba(38,78,68,.40) 0%,rgba(12,32,27,.34) 100%);
  --gs-glass-2:linear-gradient(160deg,rgba(44,92,79,.38) 0%,rgba(14,38,32,.34) 100%);
  --gs-line:rgba(160,255,225,.13);
  --gs-line-focus:rgba(95,240,204,.55);
  --gs-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 40px -26px rgba(0,0,0,.8);
  --gs-btn:linear-gradient(180deg,rgba(70,130,114,.32) 0%,rgba(22,54,47,.42) 100%);
  --gs-btn-line:rgba(160,255,225,.17);
  --gs-btn-sh:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -1px 0 rgba(0,0,0,.18),0 8px 18px -12px rgba(0,0,0,.75);
  --gs-btn-ink:#e9f4f0;
  --gs-tint:linear-gradient(180deg,rgba(47,240,194,.22) 0%,rgba(20,201,160,.10) 100%);
  --gs-tint-line:rgba(95,240,204,.34);
  --gs-bar:linear-gradient(180deg,rgba(18,44,38,.95) 0%,rgba(8,24,20,.92) 100%);
  --gs-bar-line:rgba(160,255,225,.14);
  --gs-bar-sh:inset 0 1px 0 rgba(255,255,255,.07),0 18px 40px -24px rgba(0,0,0,.85);
}
@media (prefers-color-scheme:dark){:root:not([data-theme]){
  --gs-bg:#06110e;
  --gs-ink:#e9f4f0;--gs-mute:#9fb8b1;--gs-label:#a9c6be;--gs-accent:#5ff0cc;
  --gs-glass:linear-gradient(160deg,rgba(38,78,68,.40) 0%,rgba(12,32,27,.34) 100%);
  --gs-glass-2:linear-gradient(160deg,rgba(44,92,79,.38) 0%,rgba(14,38,32,.34) 100%);
  --gs-line:rgba(160,255,225,.13);--gs-line-focus:rgba(95,240,204,.55);
  --gs-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 40px -26px rgba(0,0,0,.8);
  --gs-btn:linear-gradient(180deg,rgba(70,130,114,.32) 0%,rgba(22,54,47,.42) 100%);
  --gs-btn-line:rgba(160,255,225,.17);
  --gs-btn-sh:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -1px 0 rgba(0,0,0,.18),0 8px 18px -12px rgba(0,0,0,.75);
  --gs-btn-ink:#e9f4f0;
  --gs-tint:linear-gradient(180deg,rgba(47,240,194,.22) 0%,rgba(20,201,160,.10) 100%);--gs-tint-line:rgba(95,240,204,.34);
  --gs-bar:linear-gradient(180deg,rgba(18,44,38,.95) 0%,rgba(8,24,20,.92) 100%);--gs-bar-line:rgba(160,255,225,.14);
  --gs-bar-sh:inset 0 1px 0 rgba(255,255,255,.07),0 18px 40px -24px rgba(0,0,0,.85)}}
/* brand-backdrop.css tokens (mint paper / deep emerald ink) */
:root{--bd-bg:#f4f8f6;--bd-surface:#ffffff;--bd-surface-2:#eef5f2;--bd-text:#0a1714;--bd-muted:#4d655e;--bd-line:rgba(10,40,34,.12)}
html[data-theme=dark]{--bd-bg:#06110e;--bd-surface:#0e1f1b;--bd-surface-2:#132a25;--bd-text:#e9f4f0;--bd-muted:#9fb8b1;--bd-line:rgba(190,240,225,.12)}
@media (prefers-color-scheme:dark){html:not([data-theme]){--bd-bg:#06110e;--bd-surface:#0e1f1b;--bd-surface-2:#132a25;--bd-text:#e9f4f0;--bd-muted:#9fb8b1;--bd-line:rgba(190,240,225,.12)}}
#translator#translator{--t-surface:#ffffff;--t-s2:#eef5f2;--t-field:#f4f8f6;--t-line:rgba(10,40,34,.12);--t-ink:#0a1714;--t-mute:#4d655e}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) #translator#translator{--t-surface:#0e1f1b;--t-s2:#132a25;--t-field:#0a1916;--t-line:rgba(190,240,225,.12);--t-ink:#e9f4f0;--t-mute:#9fb8b1}}
:root[data-theme=dark] #translator#translator{--t-surface:#0e1f1b;--t-s2:#132a25;--t-field:#0a1916;--t-line:rgba(190,240,225,.12);--t-ink:#e9f4f0;--t-mute:#9fb8b1}
dialog:not(#tarjawan-cloud-consent):not(.lib-sheet):not(.lib-show){background-color:var(--bd-surface);color:var(--bd-text)}

/* ---------- 1. one emerald backdrop for every tab ---------- */
html:root{background-color:var(--gs-bg)!important}
html:root body{background:var(--gs-glow),var(--gs-bg)!important;background-attachment:fixed!important}
html:root body .app-shell,
html:root body .app-shell>main,
html:root body .app-shell .workspace,
html:root body .app-shell .workspace>.view{background:transparent!important}

/* ======== glass-shell §3 outer wrapper cards cleared, §4 inner glass boxes ======== */
/* ---------- 3. no outer wrapper cards (border widths kept, colour cleared) ---------- */
:root body #translator#translator .translator-card,
:root body #writing #writing-card.writing-card,
:root body .app-shell #assistant.view,
:root body #assistant #assistant-form,
:root body #documents .documents-source-card,
:root body #currency .calculator-card,
:root body #photos #photo-input-panel.photo-card{
  background:transparent!important;border-color:transparent!important;box-shadow:none!important}

/* ---------- 4. inner glass boxes ---------- */
:root body #translator#translator .conversation-bottom,
:root body #translator#translator #face-panel.voice-result-card,
:root body #writing #writing-input,
:root body #writing .writing-result-card,
:root body #assistant #assistant-input,
:root body #documents #documents-input,
:root body #documents .documents-result-card,
:root body #documents .documents-file-bar,
:root body #documents .tj-docs-intro,
:root body #photos #photo-dropzone.photo-dropzone,
:root body #photos #photo-status.photo-status{
  background:var(--gs-glass)!important;border-color:var(--gs-line)!important;box-shadow:var(--gs-shadow)!important}
/* real blur only on the leaf fields (no descendants, so no containing-block side effects); wrapper boxes stay
   translucent gradients — over the smooth backdrop they read the same and keep scrolling cheap */
:root body #writing #writing-input,:root body #assistant #assistant-input,:root body #documents #documents-input{
  -webkit-backdrop-filter:var(--gs-blur)!important;backdrop-filter:var(--gs-blur)!important}
:root body #translator#translator #face-panel.voice-result-card,
:root body #writing .writing-result-card,
:root body #documents .documents-result-card{background:var(--gs-glass-2)!important}
:root body #translator#translator .conversation-bottom:focus-within,
:root body :is(#writing-input,#assistant-input,#documents-input):focus{border-color:var(--gs-line-focus)!important}
/* pronunciation helper cards: emerald-tinted glass so they stay distinct inside the result box */
:root body #translator#translator #face-panel #conversation-pronunciation,
:root body #writing#writing #writing-pronunciation,
:root body #photos#photos #photo-pronunciation{background:var(--gs-tint),var(--gs-glass)!important;border-color:var(--gs-tint-line)!important;box-shadow:none!important}
/* the sticky playback row inside the result box: clear instead of a flat slab; a light frost still hides long
   translations scrolling beneath it (invisible over the smooth glass otherwise) */
:root body #translator#translator #face-panel .voice-result .voice-main-actions{background:transparent!important;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* ======== glass-shell §6 soft glass buttons + tab bar ======== */
/* ---------- 6. soft glass buttons ----------
   Resting / disabled states only: anything whose active state is an accent gradient (#replay, listen, submit when
   enabled, saved ✓ .is-done, pressed face mode, listening mics) keeps its own styling. */
:root body :is(#translator#translator,#writing#writing,#assistant#assistant,#documents#documents,#photos#photos) .language-picker-button,
:root body #translator#translator :is(#copy-translation,#offline-save-voice):not(.is-done),
:root body #translator#translator :is(#stop-playback,#voice-open,#clear-conversation,#face-toggle,#whatsapp-voice,.speed-control,#replay:disabled),
:root body #translator#translator #ios-face-shortcut:not([aria-pressed=true]),
:root body #translator#translator .mic-button.secondary:not(.listening):not(.aura-listening):not(:disabled),
:root body #translator#translator #conversation-send:disabled,
:root body #writing#writing :is(#writing-copy,#writing-phrases,#tj-wface,.clear-action,.subtle-button,#writing-submit:disabled,#writing-listen:disabled),
:root body #assistant :is(#assistant-clear,.assistant-examples button),
:root body #documents :is(#documents-clear,#documents-copy,#documents-submit:disabled,#documents-listen:disabled,.documents-result-heading>button:not(#documents-listen)),
:root body #currency .keypad button:not(.equals),
:root body #photos :is(#photo-upload,#photo-clear,.clear-action,.photo-empty-icon){
  background:var(--gs-btn)!important;border-color:var(--gs-btn-line)!important;box-shadow:var(--gs-btn-sh)!important}
/* readable ink on enabled glass buttons (disabled / off states keep their own muted ink) */
:root body :is(#translator#translator,#writing#writing,#assistant#assistant,#documents#documents,#photos#photos) .language-picker-button,
:root body :is(#translator#translator,#writing#writing,#assistant#assistant,#documents#documents,#photos#photos) .language-picker-button>span,
:root body #translator#translator :is(#voice-open,#clear-conversation,#whatsapp-voice,.speed-control):not(:disabled),
:root body #translator#translator #ios-face-shortcut:not(:disabled):not([aria-pressed=true]),
:root body #translator#translator .mic-button.secondary:not(.listening):not(.aura-listening):not(:disabled),
:root body #writing#writing :is(#writing-copy,#writing-phrases,.clear-action):not(:disabled),
:root body #assistant :is(#assistant-clear,.assistant-examples button),
:root body #documents :is(#documents-clear,#documents-copy):not(:disabled),
:root body #currency .keypad button:not(.operator),
:root body #photos :is(#photo-upload,#photo-clear):not(:disabled){color:var(--gs-btn-ink)!important;-webkit-text-fill-color:var(--gs-btn-ink)}
/* the other-language mic stays the strong secondary: emerald-tinted glass, not grey */
:root body #translator#translator .mic-button.secondary:not(.listening):not(.aura-listening):not(:disabled){
  background:var(--gs-tint),var(--gs-btn)!important;border-color:var(--gs-tint-line)!important}
/* accent-tinted glass: swap buttons and calculator operators */
:root body :is(#translator#translator,#writing#writing,#assistant#assistant,#documents#documents,#photos#photos) :is(#swap-languages,#writing-swap),
:root body #currency .keypad button.operator:not(.equals){
  background:var(--gs-tint),var(--gs-btn)!important;border-color:var(--gs-tint-line)!important;box-shadow:var(--gs-btn-sh)!important;
  color:var(--gs-accent)!important;-webkit-text-fill-color:var(--gs-accent)}
/* speed select pill inside its glass chip */
:root body #translator#translator .speed-control select{background:var(--gs-tint)!important;color:var(--gs-btn-ink)!important}
/* primary accents keep their gradient; only a gentle top sheen is added */
:root body #translator#translator .mic-button.primary:not(.listening):not(.aura-listening):not(:disabled),
:root body #documents #documents-attach,
:root body #photos #photo-camera,
:root body #currency .keypad button.equals{box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 10px 22px -12px rgba(10,150,120,.65)!important}

/* ---------- bottom tab bar: floating glass ---------- */
html:root body:not(#gs-x) .app-shell>.bottom-nav{background:var(--gs-bar)!important;border-color:var(--gs-bar-line)!important;box-shadow:var(--gs-bar-sh)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.5)!important;backdrop-filter:blur(18px) saturate(1.5)!important}
html:root body .app-shell>.bottom-nav .nav-indicator{background:var(--gs-tint)!important;border-color:var(--gs-tint-line)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 14px -10px rgba(10,125,104,.55)!important}

@media (prefers-reduced-transparency:reduce){
  html:root body .app-shell>.topbar::before,html:root body .app-shell>.bottom-nav{background:var(--gs-bg)!important}
}

/* ======== glass-shell §7 balanced language bar + type ======== */
/* ---------- 7. round 27 (owner, after Build 60 review): balanced language bar + type ----------
   Geometry here is requested by the owner: every language picker in every tab is the same 52px pill, the captions
   above them are larger and clearer, the input/translation text is a touch larger and crisper, and the empty
   translation box gives back height to the language bar and the input box (it still grows with a translation). */
:root{--gs-cap:#1c4239;--gs-text:#0b1f1a;--gs-ph:rgba(11,31,26,.48)}
:root[data-theme=dark]{--gs-cap:#d3ebe4;--gs-text:#f5fbf9;--gs-ph:rgba(233,244,240,.5)}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--gs-cap:#d3ebe4;--gs-text:#f5fbf9;--gs-ph:rgba(233,244,240,.5)}}

/* one picker size everywhere: 52px, comfortable inline padding, long names (e.g. «الأمهرية (إثيوبيا)») on two tidy lines */
html:root body :is(#translator#translator,#writing#writing,#assistant#assistant,#documents#documents,#photos#photos) .language-picker-button.language-picker-button{
  box-sizing:border-box!important;block-size:52px!important;min-block-size:52px!important;max-block-size:52px!important;
  padding-block:4px!important;padding-inline:12px 10px!important;gap:8px!important;align-items:center!important}
html:root body :is(#translator#translator,#writing#writing,#assistant#assistant,#documents#documents,#photos#photos) .language-picker-button.language-picker-button>span{
  font-size:15px!important;font-weight:700!important;line-height:1.22!important;white-space:normal!important;
  display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}
html:root body :is(#translator#translator,#writing#writing,#assistant#assistant,#documents#documents,#photos#photos) .language-picker-button .country-flag{
  inline-size:26px!important;block-size:26px!important;flex:0 0 26px}
/* swap buttons sit centred on the 52px pills */
html:root body #translator#translator .language-bar{align-items:end!important}
html:root body #translator#translator #swap-languages,
html:root body #writing .writing-language-bar>button{align-self:end!important;margin-block:0 4px!important}
html:root body #writing .writing-language-bar>label{grid-template-rows:auto 52px!important}

/* captions: larger, clearer, even spacing above the pickers */
:root body .app-shell .view :is(.language-bar,.writing-language-bar,.documents-languages,.photo-language-bar,.assistant-toolbar) label>span:first-child{
  font-size:15px!important;font-weight:700!important;line-height:20px!important;color:var(--gs-cap)!important;-webkit-text-fill-color:var(--gs-cap);
  min-block-size:20px!important;margin-block-end:7px!important;padding-inline-start:16px}
:root body .app-shell .view :is(.writing-language-bar,.documents-languages,.photo-language-bar,.assistant-toolbar) label{row-gap:0!important}

/* input and translation text: a little larger, medium weight, pure ink (soft white in dark) */
:root body #translator#translator #original-output,
:root body #writing #writing-input{font-size:18px!important;font-weight:500!important;line-height:1.6!important;color:var(--gs-text)!important;-webkit-text-fill-color:var(--gs-text)}
:root body #translator#translator #target-output{font-size:20px!important;font-weight:500!important;line-height:1.6!important;color:var(--gs-text)!important;-webkit-text-fill-color:var(--gs-text)}
:root body #writing#writing #writing-output{font-size:21px!important;font-weight:500!important;line-height:1.65!important;color:var(--gs-text)!important;-webkit-text-fill-color:var(--gs-text)}
:root body :is(#original-output,#writing-input)::placeholder{color:var(--gs-ph)!important;-webkit-text-fill-color:var(--gs-ph);font-weight:400}
:root[data-theme=dark] body :is(#original-output,#writing-input,#target-output,#writing-output){-webkit-font-smoothing:antialiased}

/* breathing room: a taller input box; the empty translation box shrinks (voice: the flexible result box absorbs it) */
:root body #translator#translator .conversation-bottom{min-block-size:128px!important}
:root body #translator#translator #original-output{min-block-size:126px!important}
:root body #writing #writing-input{min-block-size:120px!important}
html:root body #writing.active{grid-template-rows:auto auto!important;align-content:start!important}
html:root body #writing .writing-card{min-block-size:0!important}
html:root body #writing .writing-result-card{min-block-size:0!important;block-size:auto!important}
html:root body #writing .writing-result-scroll{flex:0 0 auto!important;min-block-size:128px!important;overflow:visible!important}
/* voice captions: tajdeed-translator pins 13px/16px with two ids; the dialect short-label (three ids) still wins */
html:root body #translator#translator .language-bar .language-select>span:first-child{font-size:15px!important;line-height:20px!important;min-block-size:20px!important;margin-block-end:7px!important}
/* voice, before any translation: the empty result box gives height to the input box (same total, so nothing below
   moves); once a translation exists the result box takes back its full flexible height */
html:root body #translator#translator .translator-card[data-has-translation=false] .voice-panels>.conversation-bottom{flex:1 1 0!important;min-block-size:128px!important}
html:root body #translator#translator .translator-card[data-has-translation=false] .voice-panels>.conversation-bottom>#original-output{block-size:100%!important}
html:root body #translator#translator .translator-card[data-has-translation=false] .voice-panels>#face-panel{flex:1.15 1 0!important;min-block-size:150px!important}
/* the voice bar starts 4px higher than the writing bar (card padding); line them up exactly */
html:root body #translator#translator .language-bar{margin-block-start:4px!important}


/* ======== floating glass header (glass-shell §2, web scope) ========
   The blur sits on the header box, the rounded tinted bar is drawn by ::before. The web document scrolls and the header is sticky, so the native
   "main slides under the bar" negative margin is not used: the pill simply floats 8px from the top with the page scrolling beneath it. */
html:root body:not(#gs-x) .app-shell>.topbar{background:transparent!important;border-color:transparent!important;box-shadow:none!important;border-radius:22px;
  -webkit-backdrop-filter:blur(20px) saturate(1.5)!important;backdrop-filter:blur(20px) saturate(1.5)!important}
html:root body .app-shell>.topbar::before{content:"";position:absolute;z-index:-1;pointer-events:none;
  inset-block:calc(env(safe-area-inset-top,0px) + 1px) 0;inset-inline:0;border-radius:22px;
  background:var(--gs-bar);border:1px solid var(--gs-bar-line);box-shadow:var(--gs-bar-sh)}
html:root body .app-shell>.topbar{position:sticky;z-index:20}
@media (max-width:767px){
  html:root body:not(#gs-x) .app-shell>.topbar{margin-block:8px;inset-block-start:8px}
}

/* ======== bottom tab bar: home-indicator safe area (env instead of the native constant) ======== */
html:root body:not(#gs-x) .app-shell>.bottom-nav{padding-block-end:calc(5px + env(safe-area-inset-bottom,0px))!important}

/* ======== web-only controls take the same soft glass (face-to-face and writing shortcuts) ======== */
:root body #translator#translator :is(#tj-face,#face-toggle):not([aria-pressed=true]),
:root body #writing#writing :is(#writing-phrases,#tj-wface){
  background:var(--gs-btn)!important;border-color:var(--gs-btn-line)!important;box-shadow:var(--gs-btn-sh)!important;color:var(--gs-btn-ink)!important;-webkit-text-fill-color:var(--gs-btn-ink)}
:root body #translator#translator :is(#tj-face,#face-toggle)[aria-pressed=true]{background:var(--gs-tint),var(--gs-btn)!important;border-color:var(--gs-tint-line)!important;
  box-shadow:var(--gs-btn-sh)!important;color:var(--gs-btn-ink)!important;-webkit-text-fill-color:var(--gs-btn-ink)}

/* ======== voice action row «ترجم / وجهاً لوجه / مسح» (ios35-ui .ios-conversation-actions, re-scoped to the web DOM, phone widths) ======== */
@media (max-width:767px){
  html:root body #translator#translator#translator .translator-card>.conversation-actions.tj-actions3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    inline-size:min(100%,314px);align-self:center;margin-inline:auto!important;gap:8px!important;flex:0 0 auto}
  html:root body #translator#translator#translator .translator-card>.conversation-actions.tj-actions3>:is(#conversation-send,#tj-face,#clear-conversation){display:flex;align-items:center;justify-content:center;gap:4px;
    inline-size:100%!important;min-inline-size:0!important;min-block-size:44px;padding:0 2px!important;border-radius:14px!important;font:inherit;font-size:12px!important;font-weight:700;white-space:nowrap}
  html:root body #translator#translator#translator .translator-card>.conversation-actions.tj-actions3 #tj-face svg{inline-size:14px;block-size:14px;flex:0 0 14px}
}

/* ======== result text: the app's result face (ios35-ui) ======== */
html:root body #translator#translator :is(#target-output,#original-output,.pronunciation-text){
  font-family:'IBM Plex Sans Arabic',-apple-system,Kefa,'PingFang SC','Hiragino Sans','Apple SD Gothic Neo','Devanagari Sangam MN',Companion,sans-serif}

/* ======== account sheet as a flex column: heading fixed, body scrolls (ios35-ui, phone widths) ======== */
@media (max-width:767px){
  #account-modal[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important;height:auto!important}
  #account-modal>.modal-heading{position:relative!important;inset:auto!important;flex:0 0 auto!important;margin:0!important;padding:16px!important;z-index:1}
  #account-modal>.modal-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:20px 16px 24px!important;scroll-padding-block:20px;overscroll-behavior:contain}
  #account-modal #offer-periods{position:relative!important;inset:auto!important;flex-shrink:0;scroll-margin-top:20px;margin-block:12px!important}
}

/* ======== sheet tokens + close buttons (tajdeed-app-ui) ======== */
:is(#account-modal,#usage-modal,#voice-depleted){
  --u-ink:#0b2b27;--u-mute:#4f6b65;--u-surface:#fff;--u-surface2:#f3f8f6;--u-line:#dbe8e3;--u-line2:#c4d9d1;
  --u-brand:#0a7d68;--u-brand-ink:#08624f;--u-brand-2:#14c9a0;--u-mint:#2ff0c2;--u-tint:rgba(10,125,104,.08);--u-tint2:rgba(10,125,104,.14);
  --u-grad:linear-gradient(135deg,#17c7a1 0%,#0a7d68 100%);--u-on-grad:#fff;
  --u-gold:#c99a3d;--u-gold-hi:#f3d98b;--u-deep:#0f3d39;
  --u-ok-bg:#e3f6ec;--u-ok:#17643c;--u-info-bg:#e8f1fb;--u-info:#1f4f86;--u-warn-bg:#fdf1e3;--u-warn:#8a4f0c;
  --u-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308624f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4 9-9'/%3E%3C/svg%3E");--u-fs-xs:12px;--u-fs-s:13.5px;--u-fs-m:15px;--u-fs-l:17px;--u-fs-xl:20px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) :is(#account-modal,#usage-modal,#voice-depleted){
  --u-ink:#effbf8;--u-mute:#a9c9c0;--u-surface:#102629;--u-surface2:#17302f;--u-line:#26433f;--u-line2:#38605a;
  --u-brand:#2ff0c2;--u-brand-ink:#8ff0d6;--u-brand-2:#14c9a0;--u-tint:rgba(47,240,194,.10);--u-tint2:rgba(47,240,194,.16);
  --u-grad:linear-gradient(135deg,#2ff0c2 0%,#14c9a0 100%);--u-on-grad:#06231e;--u-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ff0d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4 9-9'/%3E%3C/svg%3E");
  --u-ok-bg:rgba(60,220,140,.14);--u-ok:#86e6b3;--u-info-bg:rgba(110,170,255,.14);--u-info:#a9cbff;--u-warn-bg:rgba(255,170,80,.14);--u-warn:#ffc58a}}
:root[data-theme=dark] :is(#account-modal,#usage-modal,#voice-depleted){
  --u-ink:#effbf8;--u-mute:#a9c9c0;--u-surface:#102629;--u-surface2:#17302f;--u-line:#26433f;--u-line2:#38605a;
  --u-brand:#2ff0c2;--u-brand-ink:#8ff0d6;--u-brand-2:#14c9a0;--u-tint:rgba(47,240,194,.10);--u-tint2:rgba(47,240,194,.16);
  --u-grad:linear-gradient(135deg,#2ff0c2 0%,#14c9a0 100%);--u-on-grad:#06231e;--u-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ff0d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4 9-9'/%3E%3C/svg%3E");
  --u-ok-bg:rgba(60,220,140,.14);--u-ok:#86e6b3;--u-info-bg:rgba(110,170,255,.14);--u-info:#a9cbff;--u-warn-bg:rgba(255,170,80,.14);--u-warn:#ffc58a}
/* the first focus lands on the sheet's «×» when it opens: no ring on touch devices (keyboard users keep theirs) */
@media (hover:none){:root:root:root body :is(dialog .modal-heading button,#site-menu .site-menu-close,#voice-depleted .voice-depleted-close):focus-visible,
  :root:root:root body :is(#account-modal,#usage-modal) .modal-heading :is(#account-close,#usage-close):focus-visible{outline:none;box-shadow:none}}
:root:root:root body #voice-depleted .voice-depleted-close{display:grid;place-items:center;inline-size:44px;block-size:44px;min-block-size:44px;padding:0;
  border:1px solid var(--u-line);border-radius:50%;background:var(--u-surface2);color:var(--u-ink);font:inherit;font-size:22px;font-weight:400;line-height:1;box-shadow:none}
:root:root:root body #voice-depleted .voice-depleted-description{color:var(--u-mute)}

/* ======== plans: period tabs, plan identities, stat tiles, riyal sign (tajdeed-app-ui, keyed on the web plan cards: .web-plan-card[data-family]) ======== */
:root:root:root body #account-modal #offer-periods>button{gap:6px;flex-wrap:nowrap;white-space:nowrap}
:root:root:root body #account-modal #offer-periods .offer-discount{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:999px;background:var(--u-tint2);color:var(--u-brand-ink);
  font-size:11.5px;font-weight:700;line-height:18px}
:root:root:root body #account-modal #offer-periods>button[aria-pressed=true] .offer-discount{background:rgba(255,255,255,.92);color:#075446}
:root[data-theme=dark]:root:root body #account-modal #offer-periods>button[aria-pressed=true] .offer-discount{background:rgba(6,35,30,.88);color:#8ff0d6}
:root:root:root body #account-modal .web-plan-grid{gap:16px}
:root:root:root body #account-modal .web-plan-card[data-family]{position:relative;padding:18px 16px 16px;border:1px solid var(--u-line);border-radius:22px;
  background:linear-gradient(180deg,#fbfdfc,#f3f7f6);color:var(--u-ink);box-shadow:0 1px 2px rgba(6,40,35,.05),0 12px 26px -20px rgba(6,40,35,.35);overflow-wrap:normal;font-family:inherit}
:root:root:root body #account-modal .web-plan-card[data-family] h4{margin:0;font-size:18px;line-height:1.4;font-weight:700;color:inherit}
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:14px 0 0}
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-price strong{font-size:30px;line-height:1.15;font-weight:800;letter-spacing:-.4px;color:inherit;white-space:nowrap}
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-price>span{font-size:14px;color:var(--u-mute)}
:root:root:root body #account-modal .web-plan-card[data-family] .sar-sign{font-size:.92em;margin-inline:.1em}
/* stat tiles: minutes, images/pages, characters (built display-only by app-enhance.js from the card's own first three lines) */
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-features li.tj-plan__src{display:none}
:root:root:root body #account-modal .tj-plan__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 4px;padding:0}
:root:root:root body #account-modal .tj-plan__stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-inline-size:0;padding:10px 4px 9px;
  border-radius:14px;background:rgba(11,43,39,.045);border:1px solid rgba(11,43,39,.06);text-align:center}
:root:root:root body #account-modal .tj-plan__stat dd{margin:0;font-size:18px;line-height:1.25;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;color:inherit}
:root:root:root body #account-modal .tj-plan__stat dd.is-long{font-size:15.5px;letter-spacing:-.2px}
:root:root:root body #account-modal .tj-plan__stat dt{margin:0;font-size:11.5px;line-height:1.35;color:var(--u-mute);font-weight:500}
/* check items */
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-features{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:14px 0 0;padding:0;list-style:none;font-size:14px;line-height:1.5;color:inherit}
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-features li{display:flex;align-items:center;gap:10px;min-inline-size:0;font-size:14px;line-height:1.5;color:inherit}
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-features li::before{content:'';flex:none;display:block;inline-size:20px;block-size:20px;margin:0;padding:0;
  border-radius:50%;background:var(--u-check) center/13px no-repeat,var(--u-tint2);color:transparent;font-size:0;opacity:1}
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-terms{margin:12px 0 0;font-size:var(--u-fs-xs);line-height:1.6;color:var(--u-mute)}
/* call to action (the web purchase flow is untouched: only its look follows the app) */
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-action{display:block;inline-size:100%;min-block-size:48px;margin-block-start:16px;padding:10px 14px;border:0;border-radius:14px;
  background:#123b36;color:#fff;font:inherit;font-size:var(--u-fs-m);font-weight:700;line-height:1.4;box-shadow:none}
:root:root:root body #account-modal .web-plan-card[data-family] .web-plan-action:disabled{opacity:.5}
/* فزعة / الخفيفة — very soft mint/teal wash */
:root:root:root body #account-modal .web-plan-card[data-family=faza]{border:1px solid rgba(10,125,104,.20);
  background:linear-gradient(165deg,#f1fbf7 0%,#e2f5ee 100%);box-shadow:0 1px 2px rgba(6,40,35,.05),0 14px 28px -22px rgba(10,125,104,.45)}
:root:root:root body #account-modal .web-plan-card[data-family=faza] .tj-plan__stat{background:rgba(255,255,255,.7);border-color:rgba(10,125,104,.14)}
:root:root:root body #account-modal .web-plan-card[data-family=faza] .web-plan-action{background:#0f4a43;color:#fff}

/* البيت والمسافر — clearer, lively teal/green wash + brand frame, «الأكثر طلباً» */
:root:root:root body #account-modal .web-plan-card[data-family=home]{border:2px solid transparent;
  background:linear-gradient(160deg,#d4f6ea 0%,#b8eedb 48%,#e4f9f1 100%) padding-box,linear-gradient(140deg,#2ff0c2,#0a7d68 52%,#14c9a0) border-box;
  box-shadow:0 18px 36px -22px rgba(10,125,104,.65)}
:root:root:root body #account-modal .web-plan-card[data-family=home] :is(.web-plan-price>span,.web-plan-price del,.web-plan-equivalent,.tj-plan__stat dt){color:#2f5a52}
:root:root:root body #account-modal .web-plan-card[data-family=home] .tj-plan__stat{background:rgba(255,255,255,.68);border-color:rgba(10,125,104,.16)}
:root:root:root body #account-modal .web-plan-card[data-family=home] .tj-plan__stat dd{color:#075446}
:root:root:root body #account-modal .web-plan-card[data-family=home] .web-plan-features li::before{background-color:rgba(255,255,255,.75)}
:root:root:root body #account-modal .web-plan-card[data-family=home] .web-plan-action{background:var(--u-grad);color:var(--u-on-grad);box-shadow:0 10px 22px -12px rgba(10,125,104,.75)}

/* بلس المكثفة — deep luxurious emerald/teal, white text, bright mint CTA, «أفضل قيمة» */
:root:root:root body #account-modal .web-plan-card[data-family=plus]{border:2px solid transparent;color:#fff;
  background:linear-gradient(160deg,#0e5c50 0%,#0a4039 52%,#062a26 100%) padding-box,linear-gradient(135deg,#6ff3d3,#14b892 42%,#0a6b5a 72%,#3fe0bb) border-box;
  box-shadow:0 20px 38px -22px rgba(6,60,52,.85)}
:root:root:root body #account-modal .web-plan-card[data-family=plus] .tj-plan__stat{background:rgba(255,255,255,.08);border-color:rgba(125,245,214,.22)}
:root:root:root body #account-modal .web-plan-card[data-family=plus] .tj-plan__stat dd{color:#fff}
:root:root:root body #account-modal .web-plan-card[data-family=plus] .web-plan-features li::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ff8e1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4 9-9'/%3E%3C/svg%3E") center/13px no-repeat,rgba(125,245,214,.16)}
:root:root:root body #account-modal .web-plan-card[data-family=plus] .web-plan-action{background:linear-gradient(135deg,#9ff8e1,#3fe6bd);color:#04302a;box-shadow:0 10px 24px -12px rgba(63,230,189,.7)}
/* plus is deep emerald in both themes: the «عبر التطبيق» chip and the terms line need light ink there */
:root:root:root:root body #account-modal .web-plan-card[data-family=plus] .tj-app-chip{background:rgba(125,245,214,.16)!important;color:#bff7e8!important;border-color:rgba(125,245,214,.28)!important}
:root:root:root:root body #account-modal .web-plan-card[data-family=plus] :is(.web-plan-terms,.web-plan-price>span,.web-plan-price del,.web-plan-equivalent,.tj-plan__stat dt){color:#b9ddd4!important}

/* dark theme */
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=faza]{box-shadow:0 14px 28px -22px rgba(0,0,0,.8)}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=faza]{background:linear-gradient(165deg,#173532 0%,#10272a 100%);border-color:#2b4c47}
  :root:not([data-theme=light]):root:root body #account-modal .tj-plan__stat{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.07)}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=faza] .web-plan-action{background:#effbf8;color:#0b2b27}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=home]{background:linear-gradient(160deg,#17594d 0%,#103a36 55%,#0e2c2c 100%) padding-box,linear-gradient(140deg,#2ff0c2,#0a7d68 52%,#14c9a0) border-box;box-shadow:0 18px 36px -22px rgba(47,240,194,.35)}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=home] :is(.web-plan-price>span,.web-plan-price del,.web-plan-equivalent,.tj-plan__stat dt){color:#b3d6ce}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=home] .tj-plan__stat{background:rgba(47,240,194,.08);border-color:rgba(47,240,194,.16)}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=home] .tj-plan__stat dd{color:#8ff0d6}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=home] .web-plan-features li::before{background-color:rgba(47,240,194,.16)}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=plus]{background:linear-gradient(160deg,#0d5a4e 0%,#083a34 52%,#04201d 100%) padding-box,linear-gradient(135deg,#6ff3d3,#14b892 42%,#0a6b5a 72%,#3fe0bb) border-box;box-shadow:0 18px 36px -22px rgba(63,230,189,.4)}
  :root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=plus] .tj-plan__stat{background:rgba(255,255,255,.08);border-color:rgba(125,245,214,.22)}
  :root:not([data-theme=light]) #account-modal #offer-periods>button[aria-pressed=true] .offer-discount{background:rgba(6,35,30,.88);color:#8ff0d6}
}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=faza]{box-shadow:0 14px 28px -22px rgba(0,0,0,.8)}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=faza]{background:linear-gradient(165deg,#173532 0%,#10272a 100%);border-color:#2b4c47}
:root[data-theme=dark]:root:root body #account-modal .tj-plan__stat{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.07)}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=faza] .web-plan-action{background:#effbf8;color:#0b2b27}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=home]{background:linear-gradient(160deg,#17594d 0%,#103a36 55%,#0e2c2c 100%) padding-box,linear-gradient(140deg,#2ff0c2,#0a7d68 52%,#14c9a0) border-box;box-shadow:0 18px 36px -22px rgba(47,240,194,.35)}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=home] :is(.web-plan-price>span,.web-plan-price del,.web-plan-equivalent,.tj-plan__stat dt){color:#b3d6ce}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=home] .tj-plan__stat{background:rgba(47,240,194,.08);border-color:rgba(47,240,194,.16)}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=home] .tj-plan__stat dd{color:#8ff0d6}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=home] .web-plan-features li::before{background-color:rgba(47,240,194,.16)}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=plus]{background:linear-gradient(160deg,#0d5a4e 0%,#083a34 52%,#04201d 100%) padding-box,linear-gradient(135deg,#6ff3d3,#14b892 42%,#0a6b5a 72%,#3fe0bb) border-box;box-shadow:0 18px 36px -22px rgba(63,230,189,.4)}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=plus] .tj-plan__stat{background:rgba(255,255,255,.08);border-color:rgba(125,245,214,.22)}
:root[data-theme=dark] #account-modal #offer-periods>button[aria-pressed=true] .offer-discount{background:rgba(6,35,30,.88);color:#8ff0d6}
/* Round 20 fix: in dark mode the فزعة stat tiles kept the light-theme white wash (rgba(255,255,255,.7)) under white numbers. */
@media (prefers-color-scheme:dark){:root:not([data-theme=light]):root:root body #account-modal .web-plan-card[data-family=faza] .tj-plan__stat{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)}}
:root[data-theme=dark]:root:root body #account-modal .web-plan-card[data-family=faza] .tj-plan__stat{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)}

/* ======== translation-actions.css: copy / save icons with a check state, Files intro card ======== */
#translator#translator #face-panel .tj-action{position:relative;color:#0a7d68;background:rgba(20,201,160,.08);border-color:rgba(10,125,104,.22);transition:background-color .2s ease,border-color .2s ease,color .2s ease}
#translator#translator #face-panel .tj-action:not(:disabled):hover{background:rgba(20,201,160,.14)}
#translator#translator #face-panel .tj-action svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
#translator#translator #face-panel .tj-action .tj-action-icon,#translator#translator #face-panel .tj-action .tj-action-done{display:grid;place-items:center;transition:opacity .2s ease,transform .25s cubic-bezier(.16,1,.3,1)}
#translator#translator #face-panel .tj-action .tj-action-done{position:absolute;inset:0;opacity:0;transform:scale(.55)}
#translator#translator #face-panel .tj-action .tj-action-done svg{stroke-width:2.4}
#translator#translator #face-panel .tj-action.is-done{color:#ffffff;background:linear-gradient(135deg,#14c9a0,#0a7d68);border-color:transparent}
#translator#translator #face-panel .tj-action.is-done .tj-action-icon{opacity:0;transform:scale(.55)}
#translator#translator #face-panel .tj-action.is-done .tj-action-done{opacity:1;transform:none}
#translator#translator #face-panel .tj-action:disabled{opacity:.45}
:root[data-theme=dark] #translator#translator #face-panel .tj-action{color:#2ff0c2;background:rgba(47,240,194,.08);border-color:rgba(47,240,194,.24)}
:root[data-theme=dark] #translator#translator #face-panel .tj-action:not(:disabled):hover{background:rgba(47,240,194,.14)}
:root[data-theme=dark] #translator#translator #face-panel .tj-action.is-done{color:#03140f;background:linear-gradient(135deg,#2ff0c2,#14c9a0)}
@media (prefers-reduced-motion:reduce){#translator#translator #face-panel .tj-action *{transition:none!important}}

/* Files tab: what Tarjawan does with your file. */
#documents .tj-docs-intro{display:flex;align-items:flex-start;gap:12px;margin:0 0 12px;padding:14px 16px;border-radius:18px;
  background:linear-gradient(135deg,rgba(20,201,160,.10),rgba(47,240,194,.04));border:1px solid rgba(10,125,104,.18)}
#documents .tj-docs-intro-icon{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#14c9a0,#0a7d68)}
#documents .tj-docs-intro-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#documents .tj-docs-intro p{margin:0;display:grid;gap:3px;font-size:14px;line-height:1.65;color:#4d655e}
#documents .tj-docs-intro strong{font-size:15.5px;color:#0a1714}
:root[data-theme=dark] #documents .tj-docs-intro{background:linear-gradient(135deg,rgba(47,240,194,.10),rgba(47,240,194,.03));border-color:rgba(160,255,225,.16)}
:root[data-theme=dark] #documents .tj-docs-intro p{color:#9fb8b1}
:root[data-theme=dark] #documents .tj-docs-intro strong{color:#e9f4f0}
:root[data-theme=dark] #documents .tj-docs-intro-icon{color:#03140f;background:linear-gradient(135deg,#2ff0c2,#14c9a0)}
/* tajdeed-translator.css pins color with !important on these two buttons; only the ✓ state overrides it. */
#translator#translator #face-panel .tj-action.is-done{color:#ffffff!important;background:linear-gradient(135deg,#14c9a0,#0a7d68)!important;border-color:transparent!important}
:root[data-theme=dark] #translator#translator #face-panel .tj-action.is-done{color:#03140f!important;background:linear-gradient(135deg,#2ff0c2,#14c9a0)!important}

/* ======== side menu: the panel clears the status bar / notch on phones (env() instead of the native offset) ======== */
@media (max-width:767px){html:root body #site-menu#site-menu{padding-block-start:calc(24px + env(safe-area-inset-top,0px));gap:12px}}

/* body ink of the mint-paper backdrop (brand-backdrop.css) */
html:root body{color:var(--bd-text)}

/* ======== desktop and tablet (>=768px): one centred app column, as the phone layout on a larger screen ======== */
@media (min-width:768px){
  html:root body .app-shell>main#main-content{max-inline-size:640px;margin-inline:auto;box-sizing:border-box}
  html:root body .app-shell>.bottom-nav{inline-size:min(100%,640px);max-inline-size:640px;margin-inline:auto;box-sizing:border-box}
  html:root body:not(#gs-x) .app-shell>.topbar{inline-size:min(100%,960px);max-inline-size:960px;margin-inline:auto;margin-block-start:8px;inset-block-start:8px}
  html:root body .app-shell .language-shortcuts,html:root body .app-shell .tw-get-app,html:root body .app-shell .seo-section,html:root body .app-shell .page-footer{max-inline-size:960px;margin-inline:auto;box-sizing:border-box}
  /* the «Ai» badge is anchored to the icon box: keep that box icon-sized so the badge stays on the mark in wider tab cells */
  html:root body .bottom-nav button[data-view=assistant]>span{inline-size:max-content!important;max-inline-size:max-content!important;margin-inline:auto!important;justify-self:center;align-self:center}
}
/* voice bar never covered by the translation cards on short screens (2026-11-29) */
html:root body #translator#translator .translator-card > .voice-panels{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:none;padding-bottom:4px!important}
html:root body #translator#translator .translator-card > .voice-panels::-webkit-scrollbar{display:none}
@media (max-height:760px){
html:root body #translator#translator .translator-card > .voice-panels > .conversation-bottom:has(#original-output){min-height:96px!important;height:auto!important}
html:root body #translator#translator .translator-card > .voice-panels > #face-panel.voice-result-card{min-height:96px!important;flex:1 1 0!important}
html:root body #translator#translator .translator-card > .voice-panels > #face-panel .voice-result{min-height:0!important;overflow-y:auto!important}
}
/* ======== desktop and laptop (>=1024px), 2026-11-29: a real web-app layout instead of the phone column ========
   Side rail (the bottom tabs, vertical) + wide header + a content area up to 1240px. Translator and «كتابي»: source and translation
   side by side with large type. Specificity: three :not(#id) give every rule (3,x,y) so the phone layers' doubled ids never win here. */
@media (min-width:1024px){
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) .app-shell{
    position:fixed!important;inset:0!important;inline-size:auto!important;max-inline-size:none!important;margin:0!important;
    display:grid!important;grid-template-columns:104px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;
    grid-template-areas:"rail top" "rail main"!important;column-gap:22px!important;row-gap:14px!important;padding:14px 22px 0!important;box-sizing:border-box!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) .app-shell>.topbar{grid-area:top!important;inline-size:100%!important;max-inline-size:1240px!important;margin:0 auto!important;inset:auto!important;position:relative!important;box-sizing:border-box!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) .app-shell>main#main-content{grid-area:main!important;inline-size:100%!important;max-inline-size:1240px!important;margin:0 auto!important;min-block-size:0!important;block-size:auto!important;overflow-y:auto!important;overflow-x:hidden!important;padding-block-end:28px!important;box-sizing:border-box!important}
  /* the tab bar becomes a vertical rail on the reading-start side */
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) .app-shell>.bottom-nav{grid-area:rail!important;position:relative!important;inset:auto!important;inline-size:104px!important;max-inline-size:104px!important;block-size:auto!important;align-self:start!important;
    margin:0 0 14px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:6px!important;padding:10px 8px!important;border-radius:26px!important;box-sizing:border-box!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) .app-shell>.bottom-nav>button{flex:0 0 auto!important;inline-size:100%!important;min-block-size:74px!important;block-size:auto!important;border-radius:18px!important;font-size:13.5px!important;padding:8px 4px!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) .app-shell>.bottom-nav>button svg{inline-size:24px!important;block-size:24px!important}

  /* ---- voice translator: languages on top, the two speakers side by side, controls in one wide row ---- */
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .translator-card{block-size:auto!important;max-block-size:none!important;min-block-size:0!important;overflow:visible!important;padding:18px 20px!important;display:flex!important;flex-direction:column!important;gap:14px!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .translator-card>.language-bar{max-inline-size:none!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .translator-card>.voice-panels{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:none!important;gap:16px!important;flex:0 0 auto!important;
    block-size:auto!important;min-block-size:340px!important;max-block-size:none!important;overflow:visible!important;padding:0!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .voice-panels>.conversation-bottom,
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .voice-panels>#face-panel{min-block-size:340px!important;block-size:auto!important;max-block-size:none!important;margin:0!important;flex:none!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator #original-output{min-block-size:300px!important;block-size:100%!important;font-size:24px!important;line-height:1.6!important;padding-block-start:46px!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator #face-panel .voice-result{font-size:26px!important;line-height:1.6!important;min-block-size:240px!important;overflow-y:auto!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .translator-card>.voice-options{max-inline-size:none!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .translator-card>.mic-controls{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;min-block-size:56px!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .translator-card>.mic-controls>*{min-block-size:56px!important;font-size:17px!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .language-shortcuts,
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #translator .tw-get-app{max-inline-size:none!important;inline-size:auto!important}

  /* ---- «كتابي»: editor | translation | keyboard card ---- */
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing.view.active{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 260px!important;grid-template-rows:auto auto 1fr!important;gap:16px 18px!important;align-items:start!important;max-inline-size:none!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing.view.active>.section-heading,
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing.view.active>.writing-intro{grid-column:1/-1!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing.view.active>#writing-card{grid-column:1!important;grid-row:3!important;inline-size:auto!important;max-inline-size:none!important;margin:0!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing.view.active>.writing-result-card{grid-column:2!important;grid-row:3!important;inline-size:auto!important;max-inline-size:none!important;margin:0!important;min-block-size:420px!important;position:relative!important;inset:auto!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing.view.active>.tj-kb-card{grid-column:3!important;grid-row:3!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing #writing-input{min-block-size:300px!important;font-size:22px!important;line-height:1.65!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #writing #writing-output{font-size:24px!important;line-height:1.65!important;min-block-size:300px!important}

  /* ---- files and photos: wider cards, the drop zone reads as one ---- */
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #documents.view.active,
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #photos.view.active,
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #assistant.view.active,
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #currency.view.active{max-inline-size:1100px!important;margin-inline:auto!important;inline-size:100%!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #documents .documents-panels{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:18px!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #documents .documents-file-bar{min-block-size:120px!important;align-items:center!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) #photos #photo-input-panel{max-inline-size:none!important}
  html:root body:not(#tjd1):not(#tjd2):not(#tjd3) .tj-drop-hint{display:block!important}
}
/* drop / paste hints are desktop-only; the keyboard card lives under «كتابي» on every size */
.tj-drop-hint{display:none;margin:8px 0 0;font-size:14px;font-weight:600;color:var(--bd-muted,#44635d);text-align:center}
.tj-drop-active{outline:2.5px dashed var(--brand,#14b892)!important;outline-offset:4px!important;background:rgba(20,184,146,.06)!important}
.tj-kb-card{display:grid;gap:10px;padding:18px;border-radius:22px;background:var(--bd-surface,#fff);border:1px solid var(--bd-line,rgba(10,80,66,.12));box-shadow:0 10px 30px rgba(6,40,34,.06)}
.tj-kb-card h3{margin:0;font-size:17px}
.tj-kb-card p{margin:0;font-size:14px;line-height:1.7;color:var(--bd-muted,#44635d)}
.tj-kb-card .tj-kb-badges{display:flex;flex-wrap:wrap;gap:8px}
.tj-kb-card .tj-kb-badges a{display:inline-flex}
.tj-kb-card .tj-kb-badges img{block-size:40px;inline-size:auto}
.tj-kb-card .tj-kb-more{font-size:14px;font-weight:700;color:var(--brand-deep,#0a7d68);text-decoration:none}
.tj-styles{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.tj-styles .tj-style{appearance:none;border:1px solid var(--bd-line,rgba(10,80,66,.16));background:var(--bd-surface,#fff);color:inherit;border-radius:999px;padding:8px 14px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;min-block-size:38px}
.tj-styles .tj-style[aria-pressed=true]{background:linear-gradient(135deg,#14b892,#0a7d68);color:#fff;border-color:transparent}
.tj-styles .tj-style-label{align-self:center;font-size:13px;font-weight:700;color:var(--bd-muted,#44635d);margin-inline-end:4px}
.tj-trial-note{margin:10px 0 0;padding:10px 14px;border-radius:14px;background:rgba(20,184,146,.1);border:1px solid rgba(20,184,146,.28);font-size:14px;font-weight:600;line-height:1.6}
.tj-trial-note a,.tj-trial-note button{font:inherit;font-weight:800;color:var(--brand-deep,#0a7d68);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline}
.tj-copy-flash{position:fixed;inset-block-end:28px;inset-inline:0;margin-inline:auto;inline-size:max-content;padding:10px 18px;border-radius:999px;background:#0a7d68;color:#fff;font-weight:800;z-index:2147483000;box-shadow:0 10px 30px rgba(0,0,0,.18)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .tj-kb-card,:root:not([data-theme=light]) .tj-styles .tj-style{background:#0e1f1b;border-color:rgba(190,240,225,.14)}}
:root[data-theme=dark] .tj-kb-card,:root[data-theme=dark] .tj-styles .tj-style{background:#0e1f1b;border-color:rgba(190,240,225,.14)}
/* zero locked buttons: buttons that wait for input keep their normal look; taps fall through to the hint (desktop-web.js) */
html:root body:not(#tjz1):not(#tjz2):not(#tjz3) :is(#translator,#writing,#assistant,#documents,#photos,#currency) :is(button:disabled,button[aria-disabled=true]){opacity:1!important;filter:none!important;cursor:default!important}
html:root body:not(#tjz1):not(#tjz2):not(#tjz3) :is(#translator,#writing,#assistant,#documents,#photos,#currency) button:disabled{pointer-events:none!important}
html:root body :is(#translator,#writing,#assistant,#documents,#photos,#currency) :has(>button:disabled){cursor:pointer}
/* phones and tablets: the five styles stay on one scrollable row so the translation stays close to the text */
@media (max-width:1023px){.tj-styles{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-block-end:2px}.tj-styles::-webkit-scrollbar{display:none}.tj-styles .tj-style{flex:0 0 auto;padding:6px 12px;min-block-size:34px;font-size:13px}.tj-styles .tj-style-label{flex:0 0 auto}}
/* Owner bug 2026-11-29: status toasts sit under the header, never over the mic / translate controls or the bottom bar; tap closes. */
:root:root body .toast{inset-block-end:auto!important;bottom:auto!important;inset-block-start:calc(env(safe-area-inset-top,0px) + 84px)!important;top:calc(env(safe-area-inset-top,0px) + 84px)!important;z-index:1200!important;max-width:min(92vw,460px)!important;cursor:pointer}
@media (min-width:1024px){:root:root body .toast{inset-block-start:96px!important;top:96px!important}}


/* Tajdeed fit layer (owner 2026-12-01, Galaxy Z Fold cover screen ~280-320dp + large system font).
   Loaded LAST. Always-on rules make controls grow instead of spilling; the html[data-tj-fit-*] levels are set by tajdeed-fit.js only
   when a label really does not fit (measured), so roomy screens keep the normal design. Selectors start with html[dir] to win
   over the earlier !important layers. */

/* ---------- always: controls grow with their text, never spill out ---------- */
html[dir] #translator#translator#translator #voice-open,html[dir] #translator#translator#translator #face-toggle{block-size:auto!important;max-block-size:none!important;min-block-size:40px;line-height:1.2;overflow:hidden}
html[dir] .language-picker-button>span{min-inline-size:0}
/* the source box shows its two-line placeholder in full when the line wraps (narrow + large font) */
html[dir] #original-output#original-output#original-output#original-output#original-output:placeholder-shown{min-block-size:calc(3.2em + 40px)!important;min-height:calc(3.2em + 40px)!important;min-block-size:calc(2lh + 40px)!important;min-height:calc(2lh + 40px)!important}
html[dir] .topbar .header-actions{min-inline-size:0}
html[dir] .topbar .header-actions>button{min-inline-size:40px;inline-size:auto!important;padding-inline:2px}
html[dir] .topbar .header-actions>button>span:not([data-launch-icon]){white-space:nowrap}

/* ---------- header ---------- */
html[data-tj-fit-head="1"][dir] .topbar .header-actions{gap:6px!important}
html[data-tj-fit-head="1"][dir] .topbar .header-actions>button>span:not([data-launch-icon]){font-size:11px!important;letter-spacing:0}
/* level 2: icons only (the visible text stays the accessible name through aria-label) */
html[data-tj-fit-head="2"][dir] .topbar .header-actions{gap:4px!important}
html[data-tj-fit-head="2"][dir] .topbar .header-actions>button>span:not([data-launch-icon]){position:absolute!important;inline-size:1px!important;block-size:1px!important;
  overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important}

/* ---------- bottom tabs ---------- */
html[data-tj-fit-nav][dir] nav.bottom-nav{padding-inline:4px!important;gap:0!important}
html[data-tj-fit-nav][dir] nav.bottom-nav>button{padding-inline:0!important;letter-spacing:0!important;min-inline-size:0}
html[data-tj-fit-nav="1"][dir] nav.bottom-nav>button{font-size:11px!important;line-height:1.15!important}
/* level 2: only the selected tab shows its name (Material "selected label" pattern); the others keep it as the accessible name */
html[data-tj-fit-nav="2"][dir] nav.bottom-nav>button{font-size:11px!important;line-height:1.15!important}
html[data-tj-fit-nav="2"][dir] nav.bottom-nav>button:not(.selected){font-size:0!important;color:inherit}
html[data-tj-fit-nav="2"][dir] nav.bottom-nav>button:not(.selected)>span{font-size:20px!important}
html[data-tj-fit-nav="2"][dir] nav.bottom-nav>button.selected{flex-grow:1.9!important}

/* ---------- language pickers ---------- */
html[data-tj-fit-lang][dir] .language-picker-button{gap:6px!important;padding-inline:8px!important}
html[data-tj-fit-lang][dir] #translator#translator#translator label.language-select>span,html[data-tj-fit-lang][dir] label.language-select>span{font-size:13px!important;line-height:1.3!important}
html[data-tj-fit-lang][dir] .language-picker-button::after{display:none!important}
html[data-tj-fit-lang][dir] .language-picker-button .country-flag{inline-size:22px!important;block-size:22px!important;flex:none}
html[data-tj-fit-lang][dir] .language-picker-button>span{font-size:14px!important;letter-spacing:0;text-overflow:clip!important}
html[data-tj-fit-lang="2"][dir] .language-picker-button .country-flag{display:none!important}
html[data-tj-fit-lang="2"][dir] .language-picker-button{justify-content:center!important;padding-inline:6px!important}

/* ---------- translator tools (three ids: beats #translator#translator in tajdeed-translator.css / web-refresh) ---------- */
html[data-tj-fit-tools][dir] #translator#translator#translator #voice-open,html[data-tj-fit-tools][dir] #translator#translator#translator #face-toggle{white-space:nowrap!important;font-size:13px!important;padding-inline:8px!important}
html[data-tj-fit-tools][dir] #translator#translator#translator #voice-open{inline-size:auto!important;max-inline-size:none!important;min-inline-size:0!important}
html[data-tj-fit-tools][dir] #translator#translator#translator #face-toggle{font-size:0!important}
html[data-tj-fit-tools][dir] #translator#translator#translator #face-toggle>span{font-size:13px!important}
/* «وجهاً لوجه» in the conversation row (ios35-ui builds #ios-face-shortcut; #face-toggle is the hidden original): one line, icon goes first */
html[dir] #ios-face-shortcut#ios-face-shortcut#ios-face-shortcut{block-size:auto!important;max-block-size:none!important;min-block-size:40px}
html[data-tj-fit-tools][dir] #ios-face-shortcut#ios-face-shortcut#ios-face-shortcut{white-space:nowrap!important;padding-inline:8px!important;gap:0!important}
html[data-tj-fit-tools][dir] #ios-face-shortcut#ios-face-shortcut#ios-face-shortcut>svg{display:none!important}
html[data-tj-fit-tools][dir] #ios-face-shortcut#ios-face-shortcut#ios-face-shortcut>span{font-size:13px!important;white-space:nowrap!important}
/* level 2: one row still; the word «السرعة» goes (the select keeps its accessible name «سرعة النطق»), «اختيار الصوت» gets the room */
html[data-tj-fit-tools="2"][dir] #translator#translator#translator .translator-card>.voice-options{grid-template-columns:minmax(0,1fr) auto 44px!important}
html[data-tj-fit-tools="2"][dir] #translator#translator#translator .translator-card>.voice-options>.speed-control{font-size:0!important;gap:0!important;min-inline-size:0!important;padding-inline:4px!important}
html[data-tj-fit-tools="2"][dir] #translator#translator#translator .translator-card>.voice-options>.speed-control>select{font-size:13px!important}

/* ---------- keyboard themes (preview strip + switch rows) ---------- */
html[dir] .kbt-kb .kbt-bar .kbt-lang{letter-spacing:0}
/* pills grow with the text instead of cutting the bottom of «ترجم / عكس» under a large system font */
html[dir] .kbt-kb .kbt-bar .kbt-pill,html[dir] .kbt-kb .kbt-bar .kbt-lang{block-size:auto;min-block-size:calc(var(--u) * 33px);line-height:1.25}
/* the screen title stays on one line and never runs under the preview */
html[dir] #keyboard-themes .kbt-head h2{white-space:nowrap;line-height:1.45;font-size:clamp(17px,5.6vw,21px)}
html[data-tj-fit-kbt][dir] .kbt-kb .kbt-bar{gap:calc(var(--u) * 4px)}
html[data-tj-fit-kbt][dir] .kbt-kb .kbt-bar .kbt-pill svg,html[data-tj-fit-kbt][dir] .kbt-kb .kbt-bar .kbt-pill .kbt-mark{display:none}
html[data-tj-fit-kbt][dir] .kbt-kb .kbt-bar .kbt-pill{padding-inline:calc(var(--u) * 3px)}
html[data-tj-fit-kbt][dir] .kbt-kb .kbt-bar .kbt-lang{flex:1 1 0}
html[data-tj-fit-kbt="2"][dir] .kbt-kb .kbt-bar .kbt-pill{font-size:calc(var(--u) * 13px)}
html[data-tj-fit-kbt="2"][dir] .kbt-kb .kbt-bar .kbt-lang{font-size:calc(var(--u) * 12px)}
@media (max-width:380px){
  html[dir] .kbt-kb .kbt-bar{gap:calc(var(--u) * 4px)}
  html[dir] .kbt-kb .kbt-pill{padding-inline:calc(var(--u) * 4px);gap:calc(var(--u) * 3px)}
  html[dir] .kbt-kb .kbt-lang{flex:1 1 0;letter-spacing:0}
  html[dir] :is(#keyboard-themes,#keyboard-setup) .kbt-switch-row{gap:10px;padding:10px 12px}
  html[dir] :is(#keyboard-themes,#keyboard-setup) .kbt-switch-text strong{font-size:14.5px;line-height:1.35}
}
@media (max-width:340px){
  /* the strip keeps every word: icons go first */
  html[dir] .kbt-kb .kbt-pill svg,html[dir] .kbt-kb .kbt-pill .kbt-mark{display:none}
  html[dir] .kbt-kb .kbt-pill>span{text-overflow:clip}
}
