/* Tarjawan auth-polish v2 (2026-11-21): injected after app-polish at "/".
 * The first-visit welcome overlay is withdrawn (the app opens directly), so .launch-welcome is only defensively hidden.
 * The sign-in card still lives in the app: signin-sheet.js moves [data-auth-root] into #account-modal > #account-signin,
 * so these rules polish that sheet only. Tokens (--p-*) come from app-polish.css (scoped on dialogs).
 * DELIBERATELY AVOIDED: #translator and anything named conversation/mic/voice/live/record/audio/speech; [hidden] behaviour
 * (the .tw-form-status[hidden] rule is restated); .launch-welcome layout; fonts, @import, external URLs; box sizes of controls
 * beyond the 44px+ touch minimum; transitions other than opacity/transform on :active (disabled under reduced motion). */
html #launch-welcome.launch-welcome{display:none!important}

:root:root body #account-signin{--s-grad:var(--p-grad,linear-gradient(135deg,#46f0cc,#14c9a0));--s-ink:var(--p-ink,#0b2b27)}
:root:root body #account-signin .tw-auth{color:var(--p-ink,#0b2b27);background:none;line-height:1.6}
:root:root body #account-signin .tw-auth-card{background:none;border:0;box-shadow:none;padding:0;gap:12px}
:root:root body #account-signin .tw-intro h1{color:var(--p-ink,#0b2b27);line-height:1.35;text-wrap:balance}
:root:root body #account-signin .tw-intro p{color:var(--p-mute,#44635d)}

/* provider + email buttons */
:root:root body #account-signin :is(.tw-google,.signin-sheet-email){min-block-size:52px;border-radius:var(--r2,16px);font-weight:600;font-size:16px;
  background:var(--p-surface2,#f1f8f5);color:var(--p-ink,#0b2b27);border:1px solid var(--p-line2,#b9d3ca);box-shadow:none}
:root:root body #account-signin .tw-google:not(.tw-apple){background:var(--p-surface,#fff)}
:root:root body #account-signin .tw-google.tw-apple{background:#06110e;color:#fff;border-color:#06110e}
:root:root[data-theme=dark] body #account-signin .tw-google.tw-apple{background:#effbf8;color:#06110e;border-color:#effbf8}
:root:root body #account-signin .tw-google svg{flex:none}

/* email form (revealed by .show-email) */
:root:root body #account-signin .tw-tabs{padding:4px;border-radius:999px;background:var(--p-field,#f4f9f7);border:1px solid var(--p-line,#d8e8e2)}
:root:root body #account-signin .tw-tabs button{min-block-size:44px;border-radius:999px;color:var(--p-mute,#44635d);background:transparent;font-weight:600}
:root:root body #account-signin .tw-tabs button[aria-selected=true]{background:var(--s-grad);color:var(--p-on,#06110e);box-shadow:var(--p-btn-shadow,none)}
:root:root body #account-signin .tw-methods button{min-block-size:44px;border-radius:var(--r2,16px);background:var(--p-field,#f4f9f7);color:var(--p-ink,#0b2b27);border:1px solid var(--p-line2,#b9d3ca)}
:root:root body #account-signin .tw-methods button.is-active{background:var(--p-tint,rgba(10,125,104,.11));color:var(--p-brand,#0a7d68);border-color:var(--p-brand,#0a7d68)}
:root:root body #account-signin .tw-login-form>label{color:var(--p-mute,#44635d);font-weight:600}
:root:root body #account-signin input:not([type=checkbox],[type=hidden]){min-block-size:52px;border-radius:var(--r2,16px);background:var(--p-field,#f4f9f7);color:var(--p-ink,#0b2b27);border:1px solid var(--p-edge,#6f9488);font-size:16px}
:root:root body #account-signin input::placeholder{color:var(--p-mute,#44635d);opacity:1}
:root:root body #account-signin input:focus{border-color:var(--p-brand,#0a7d68);box-shadow:0 0 0 3px var(--p-ring,rgba(20,201,160,.42));outline:none}
:root:root body #account-signin .tw-password button{min-inline-size:44px;min-block-size:44px;border-radius:var(--r1,12px);color:var(--p-brand,#0a7d68)}
:root:root body #account-signin .tw-text-button{min-block-size:44px;color:var(--p-brand,#0a7d68);font-weight:600;text-underline-offset:4px}
:root:root body #account-signin .tw-submit{min-block-size:52px;border-radius:var(--r2,16px);background:var(--s-grad)!important;background-image:var(--s-grad)!important;
  color:var(--p-on,#06110e)!important;-webkit-text-fill-color:var(--p-on,#06110e);border:1px solid transparent;box-shadow:var(--p-btn-shadow,none);font-weight:700;opacity:1}
:root:root body #account-signin .tw-submit:disabled{opacity:.6}
:root:root body #account-signin .tw-divider{color:var(--p-mute,#44635d)}
:root:root body #account-signin .tw-consent{color:var(--p-mute,#44635d);line-height:1.7}
:root:root body #account-signin .tw-consent a{color:var(--p-brand,#0a7d68);text-decoration:underline;text-underline-offset:3px}
:root:root body #account-signin .tw-explore{color:var(--p-brand,#0a7d68);min-block-size:44px}
:root:root body #account-signin .tw-form-status{border-radius:var(--r2,16px);padding:12px 14px;background:var(--p-field,#f4f9f7);color:var(--p-err,#b3261e);border:1px solid var(--p-err,#b3261e);font-weight:500}
:root:root body #account-signin .tw-form-status[hidden]{display:none}
:root:root body #account-signin :is(button,a,input):focus-visible{outline:2px solid var(--p-brand,#0a7d68);outline-offset:2px}
:root:root body #account-signin .tw-footer a{color:var(--p-brand,#0a7d68)}
@media (prefers-reduced-motion:no-preference){
  :root:root body #account-signin :is(.tw-google,.signin-sheet-email,.tw-submit):active{transform:scale(.98)}
  :root:root body #account-signin :is(.tw-google,.signin-sheet-email,.tw-submit){transition:transform .12s ease-out,opacity .12s ease-out}}

/* Owner 2026-11-28: account sheet email form.
   1) The «تسجيل الدخول | إنشاء حساب جديد» tabs were hidden: the hide rule's :is(...#tw-auth-panel) carries id specificity (2,0,0)
      and beat `#account-signin.show-email .tw-tabs` (1,2,0). Doubled id restores them when the email form is open.
   2) Email and password fields share one alignment: placeholders sit on the reading side, typed values are LTR; the eye stays on the left.
   3) The plan-family line reads as a quiet subtitle, not an empty button. */
#account-signin#account-signin.show-email .tw-tabs{display:grid!important;margin:2px 0 12px}
#account-signin :is(input[type=email],#tw-password){direction:ltr;text-align:left;unicode-bidi:plaintext}
#account-signin :is(input[type=email],#tw-password):placeholder-shown{direction:rtl;text-align:right}
#account-signin .tw-password{direction:ltr}
#account-signin .tw-password input{padding-inline-start:48px!important;padding-inline-end:14px!important}
#account-signin .tw-password button{inset-inline-start:3px;inset-inline-end:auto}
#account-modal .growth-context{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;margin:0 2px 8px!important;font-size:14px;font-weight:600;line-height:1.5;color:var(--u-mute,var(--muted,#44635d))}
#account-modal .tj-plan__stat{padding:10px 3px 9px!important}
#account-modal .tj-plan__stat dt{white-space:nowrap;font-size:11px!important;letter-spacing:-.1px;unicode-bidi:isolate;text-align:center;max-inline-size:100%}
