:root {
  font-family: Cairo, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0A1628;
  background: #eeefec;
  --navy: #0A1628;
  --gold: #D4AF37;
  --pearl: #FAFAF9;
  --muted: #566170;
  --line: #d7dcdF;
  --error: #a32b35;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, input { border-radius: 6px; }
:focus-visible { outline: 3px solid #8b6b0c; outline-offset: 4px; }
[hidden] { display: none !important; }
.top-bar { max-width: 1280px; margin: auto; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 700; white-space: nowrap; direction: ltr; }
.brand svg { color: #8b6b0c; }
.brand b { font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.header-actions a { text-decoration: none; }
#lang-toggle { min-height: 44px; padding: 5px 16px; border: 1px solid #bcc4ca; background: transparent; font-weight: 700; }
.gateway { max-width: 1200px; margin: 12px auto 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid #d7dcdf; border-radius: 12px; overflow: clip; background: var(--pearl); }
.login-shell { padding: 44px 56px 36px; min-width: 0; }
.form-inner { max-width: 460px; margin-inline: auto; }
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
h1 { margin: 0; font-size: 28px; line-height: 1.45; letter-spacing: -.035em; }
[dir="rtl"] h1 { letter-spacing: 0; }
.intro { margin: 10px 0 28px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.field-label, .form-field > label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.portal-choice { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; text-align: start; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.portal-choice::before { content: ''; width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid #84909b; border-radius: 50%; }
.portal-choice[aria-checked="true"] { border-color: var(--navy); background: #e9edf0; }
.portal-choice[aria-checked="true"]::before { border: 4px solid var(--navy); background: var(--gold); }
.portal-choice:hover:not(:disabled) { background: #e9edf0; }
.portal-wide { grid-column: 1 / -1; }
summary { min-height: 44px; padding-block: 10px; font-size: 13px; font-weight: 700; }
.more-workspaces { margin-top: 2px; }
.more-workspaces summary { color: var(--muted); font-size: 12px; font-weight: 500; }
.hint { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 8px 0 20px; }
.form-field { margin-top: 16px; }
.form-field input { width: 100%; min-height: 50px; border: 1px solid #84909b; background: #fdfdfa; color: var(--navy); padding: 10px 14px; font-size: 16px; }
.form-field input:focus { border-color: var(--navy); }
.form-field input[aria-invalid="true"] { border-color: var(--error); }
.password-field { position: relative; }
.password-field input { padding-inline-end: 80px; }
#pwd-toggle { position: absolute; inset-inline-end: 5px; top: 3px; bottom: 3px; min-width: 65px; border: 0; background: transparent; font-size: 12px; font-weight: 700; }
.field-error { margin: 5px 0 0; color: var(--error); font-size: 12px; line-height: 1.7; }
.field-error:empty { display: none; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
.remember { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.form-options a { padding-block: 10px; }
.form-status { margin: 10px 0; font-size: 13px; line-height: 1.8; }
.form-status:empty { margin: 0; }
.form-status.is-error { color: var(--error); }
#login-btn { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 52px; margin-top: 10px; padding: 12px; border: 1px solid #b8941f; background: var(--gold); color: var(--navy); font-size: 15px; font-weight: 800; }
#login-btn:hover:not(:disabled) { background: #c8a32d; }
.submit-arrow { font-size: 22px; line-height: 1; }
[dir="rtl"] .submit-arrow { transform: scaleX(-1); }
button:disabled, input:disabled { opacity: .65; cursor: wait; }
.signup-prompt { text-align: center; font-size: 12px; color: var(--muted); margin: 20px 0 28px; }
.signup-prompt a { color: var(--navy); font-weight: 700; }
.demo-details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 6px; }
.demo-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.demo-tools code { display: inline-block; font-size: 13px; }
#copy-all { min-height: 44px; padding: 6px 12px; background: transparent; border: 1px solid #b8c1c8; font-size: 12px; font-weight: 700; }
.cast-list { list-style: none; margin: 14px 0 0; padding: 0; }
.cast-list li + li { border-top: 1px solid var(--line); }
.cast-row { width: 100%; display: grid; gap: 3px; padding: 14px 4px; border: 0; background: transparent; text-align: start; }
.cast-row:hover:not(:disabled) { background: #e9edf0; }
.cr-role { font-size: 13px; font-weight: 700; }
.cr-email { font-size: 12px; overflow-wrap: anywhere; direction: ltr; text-align: start; }
.cr-destination { color: var(--muted); font-size: 11px; }
.workspace-guide { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 56px 44px 0; background: var(--navy); color: var(--pearl); }
.workspace-guide .eyebrow { color: #c7cfda; }
.guide-workspace { color: var(--gold); font-size: 13px; font-weight: 700; margin: 56px 0 14px; }
.workspace-guide h2 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; text-wrap: balance; }
[dir="rtl"] .workspace-guide h2 { letter-spacing: 0; }
#guide-description { color: #c7cfda; font-size: 14px; line-height: 1.9; margin-top: 20px; }
.guide-tasks { list-style: none; padding: 0; margin: 32px 0; }
.guide-tasks li { border-top: 1px solid #2d3e5f; padding-block: 14px; font-size: 13px; display: flex; align-items: baseline; gap: 12px; }
.guide-tasks li::before { content: '+'; color: var(--gold); }
.guide-note { color: #b1bdcc; font-size: 12px; line-height: 1.9; max-width: 35ch; margin: 40px 0 20px; }
.architecture { width: calc(100% + 40px); margin-inline: -20px; margin-top: 24px; color: #64738b; opacity: .5; flex-shrink: 0; }
.site-foot { max-width: 1200px; margin: auto; padding: 24px 0 30px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.skip-link { position: fixed; top: -100px; inset-inline-start: 16px; padding: 12px; background: var(--gold); z-index: 10; }
.skip-link:focus { top: 10px; }
#toast { display: none; position: fixed; inset-inline: 20px; bottom: 20px; margin: auto; width: fit-content; max-width: min(480px, calc(100% - 40px)); background: var(--navy); color: var(--pearl); border: 1px solid #64738b; border-radius: 8px; padding: 16px 22px; box-shadow: 0 8px 30px #0a162826; font-size: 13px; z-index: 20; }
#toast.is-visible { display: block; }
.noscript { position: fixed; inset: 0; margin: 0; background: var(--pearl); padding: 15vh 24px; z-index: 30; text-align: center; }
@media (max-width: 1240px) { .gateway { margin-inline: 24px; } .site-foot { padding-inline: 24px; } }
@media (max-width: 900px) { .login-shell { padding: 36px 28px; } .workspace-guide { padding: 44px 28px 0; } .workspace-guide h2 { font-size: 27px; } }
@media (max-width: 700px) {
  .top-bar { padding: 16px 20px; gap: 12px; flex-wrap: wrap; } .brand { font-size: 18px; gap: 8px; } .brand svg { width: 26px; }
  .header-actions { gap: 12px; } .header-actions > a { display: none; }
  .gateway { display: flex; flex-direction: column; margin: 0 12px; border-radius: 8px; }
  .login-shell { padding: 28px 22px; } h1 { font-size: 25px; }
  .workspace-guide { padding: 28px; } .guide-workspace { margin-top: 24px; } .workspace-guide h2 { font-size: 25px; }
  .guide-tasks { margin-block: 20px; } .guide-note { max-width: 50ch; margin-top: 20px; } .architecture { display: none; }
  .site-foot { flex-wrap: wrap; padding: 20px; } .intro { margin-bottom: 24px; }
}
@media (max-width: 360px) { .login-shell { padding-inline: 16px; } .portal-grid { grid-template-columns: 1fr; } }
