/* Explicit opt-in for the three Owner entry documents; authority stays in their existing controllers. */
body.owner-entry {
  --rst-accent:var(--r-primary); --rst-accent-hover:var(--r-primary-hover); --rst-ink:var(--r-text);
  --rst-muted:var(--r-text-2); --rst-line:var(--r-border); --rst-bg:var(--r-bg); --rst-surface:var(--r-surface);
  --identity-bg:var(--r-bg); --identity-surface:var(--r-surface); --identity-text:var(--r-text);
  --identity-muted:var(--r-text-2); --identity-border:var(--r-border); --identity-accent:var(--r-primary);
  --identity-danger:var(--r-danger); --identity-success:var(--r-success); --identity-attention:var(--r-warning); --identity-focus:var(--r-primary);
  background:var(--r-bg); color:var(--r-text); font-family:var(--r-font); line-height:1.8; color-scheme:light;
}
body.owner-entry *, body.owner-entry *::before, body.owner-entry *::after { box-sizing:border-box; }
body.owner-entry :is(button,input,select,textarea) { font-family:inherit; }
body.owner-entry :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline:2px solid var(--r-primary); outline-offset:3px; }
body.owner-entry :is(button,input:not([type="checkbox"]):not([type="radio"]),select,summary) { min-block-size:44px; }
body.owner-entry :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { color:var(--r-text); background-color:var(--r-surface); border-color:var(--r-border-strong); border-radius:var(--r-radius-ctl); }
body.owner-entry :is(button,.primary) { border-radius:var(--r-radius-ctl); }
body.owner-entry button:disabled { cursor:default; }
body.owner-entry :is(h1,h2,h3,p,label,a) { overflow-wrap:anywhere; }
body.owner-entry .owner-entry-brand { display:inline-flex; align-items:center; gap:12px; color:var(--r-text); text-decoration:none; font-weight:800; }
body.owner-entry .owner-entry-brand img { display:block; inline-size:48px; block-size:48px; object-fit:contain; flex:none; }
body.owner-entry .owner-entry-brand > span { display:grid; gap:0; }
body.owner-entry .identity-product { font-size:13px; font-weight:400; color:var(--r-text-2); }
body.owner-entry .identity-header { padding:16px max(16px,calc((100vw - 1040px)/2)); align-items:center; gap:16px; }
body.owner-entry .identity-main { inline-size:min(calc(100% - 32px),560px); padding-block:32px; }
body.owner-entry .identity-card { border-radius:var(--r-radius-card); box-shadow:none; padding:28px; }
body.owner-entry .identity-card h1 { font-size:28px; line-height:1.6; }
body.owner-entry .identity-progress { margin:-28px -28px 24px; }
body.owner-entry .identity-password-toggle { min-block-size:44px; inset-block:2px; }
body.owner-entry .identity-field input { min-block-size:50px; }
body.owner-entry .identity-field label { font-size:14px; }
body.owner-entry .identity-factor { border-radius:var(--r-radius-ctl); }
body.owner-entry .identity-privacy { color:var(--r-text-3); font-size:12px; }
body.owner-entry .owner-single-business { border:1px solid var(--r-border); border-radius:var(--r-radius-ctl); padding:12px 16px; margin:0; background:var(--r-primary-soft); font-weight:700; }
body.owner-entry #baseline { max-inline-size:560px; margin:32px auto; padding:28px; border-color:var(--r-border); border-radius:var(--r-radius-card); box-shadow:none; }
body.owner-entry #baseline h1 { font-size:28px; line-height:1.6; }
body.owner-entry #baseline :is(#begin,#password-form button[type="submit"],#next) { background:var(--r-primary); border-color:var(--r-primary); color:var(--r-surface); }
body.owner-entry #baseline #password-form { display:grid; gap:12px; }
body.owner-entry #baseline #password-form label { margin:0; }
body.owner-entry #baseline #password-help { margin:0; color:var(--r-text-2); font-size:13px; }
body.owner-entry .owner-entry-help { display:block; min-block-size:2.75rem; padding-block:.7rem; font-size:13px; color:var(--r-primary-text); }
html[lang^="fa"] .owner-entry-help [lang="en"],html[lang^="en"] .owner-entry-help [lang="fa"] { display:none; }
body.owner-entry #account-section { max-inline-size:560px; margin-inline:auto; border-radius:var(--r-radius-card); border-color:var(--r-border); }
body.owner-entry #terms-row label { min-block-size:44px; align-items:center; }
/* A native single input keeps paste/autofill/selection. The six visual cells carry no duplicate secret or focus targets. */
body.owner-entry :is(#account-code,#identity-sms-code) {
  --otp-cell:clamp(32px,calc((100vw - 112px)/6),48px);
  direction:ltr; unicode-bidi:isolate; inline-size:calc(var(--otp-cell)*6); max-inline-size:100%; block-size:56px;
  border:0; border-radius:var(--r-radius-ctl); box-shadow:inset 0 0 0 1px var(--r-border-strong);
  background:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--otp-cell) - 1px),var(--r-border-strong) calc(var(--otp-cell) - 1px),var(--r-border-strong) var(--otp-cell)) var(--r-surface);
  font:24px/1.4 ui-monospace,monospace; letter-spacing:calc(var(--otp-cell) - 1ch);
  padding:8px 0; text-align:left; caret-color:var(--r-primary);
  color:transparent; text-shadow:calc((var(--otp-cell) - 1ch)/2) 0 var(--r-text);
}
@media(max-width:767px) {
  body.owner-entry .identity-card,body.owner-entry #baseline { padding:20px; }
  body.owner-entry .identity-progress { margin:-20px -20px 20px; }
  body.owner-entry #baseline { inline-size:calc(100% - 32px); margin:24px auto; }
  body.owner-entry :is(.identity-card h1,#baseline h1) { font-size:24px; }
  body.owner-entry .identity-header { padding:12px 16px; }
}
@media(forced-colors:active) { body.owner-entry :is(#account-code,#identity-sms-code) { background:Canvas; color:CanvasText; text-shadow:none; letter-spacing:.2em; text-align:center; border:1px solid CanvasText; box-shadow:none; } }

body.owner-entry :is(input[type="tel"],input[type="email"],input[type="password"],#identity-email) { direction:ltr; unicode-bidi:isolate; text-align:start; }

/* The field and its reveal button share one stable LTR geometry in both locales. */
body.owner-entry .identity-password-wrap { direction:ltr; }
body.owner-entry #identity-password { direction:ltr; padding-inline-start:12px; padding-inline-end:calc(8rem + 8px); }
body.owner-entry .identity-password-toggle { inline-size:8rem; font-size:14px; }
