@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600&display=swap");

/* Shared V-Fleet presentation tokens, derived from the supplied purple logo palette. */
:root {
  --et-accent: #c4a7f2;
  --et-accent-strong: #7047bc;
  --et-accent-hover: #ddc9f6;
  --et-accent-rgb: 196, 167, 242;
  --et-ink: #edf2f8;
  --et-muted: #a8b4c4;
  --et-surface: #21192d;
  --et-bg: #14101c;
  color-scheme: dark;
  accent-color: var(--et-accent);
}

:root[data-theme="light"] { color-scheme: light; }

@media (forced-colors: active) {
  :root, :root[data-theme="light"], :root[data-theme="dark"] {
    --et-accent: Highlight;
    --et-accent-strong: LinkText;
    --et-accent-hover: Highlight;
    --et-ink: CanvasText;
    --et-muted: GrayText;
    --et-surface: Canvas;
    --et-bg: Canvas;
  }
  button:focus-visible, a:focus-visible { outline: 2px solid Highlight; }
}

/* Manual refresh actions share a visible button across V-Fleet workspaces. */
body button.refresh-button,
body button.button.refresh-button,
body button.secondary-button.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--et-accent-rgb), .38);
  border-radius: 999px;
  background: rgba(var(--et-accent-rgb), .12);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  cursor: pointer;
}
body button.refresh-button:hover:not(:disabled) {
  background: rgba(var(--et-accent-rgb), .2);
  border-color: rgba(var(--et-accent-rgb), .65);
}
body button.refresh-button:focus-visible {
  outline: 2px solid var(--et-accent);
  outline-offset: 3px;
}
body button.refresh-button:disabled { opacity: .55; cursor: not-allowed; }

/* Original official monochrome vector; only its display colour is reversed on dark surfaces. */
.et-brand-logo {
  display: block;
  width: 164px;
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: .96;
}

/* Paired slots follow the supplied V emblem + FLEET wordmark order. */
:is(.wordmark, .auth-brand, .startup-brand, .tour-brand, .shell-brand, .et-native-brand) > :is(.et-brand-symbol, .startup-symbol, .tour-brand-symbol, .et-native-brand-symbol) { order: -1; }

/* Optional English / Arabic language switch */
.language-toggle,.language-button{font:inherit;cursor:pointer}
.language-glyph{display:inline-grid;place-items:center;min-width:1.6rem;height:1.6rem;border:1px solid rgba(87,169,255,.48);border-radius:999px;color:#8ec7ff;font-weight:700;line-height:1}
.language-button{display:inline-flex;align-items:center;gap:.5rem;border:1px solid rgba(87,169,255,.24);background:rgba(12,31,49,.55);color:#dcecff;border-radius:999px;padding:.5rem .75rem}
.language-button:hover,.language-toggle:hover{border-color:rgba(87,169,255,.62)}
html[dir="rtl"] body{font-family:inherit}
html[dir="rtl"] .introduction,html[dir="rtl"] .conversation,html[dir="rtl"] .page-footer,html[dir="rtl"] .scene-heading{text-align:right}
html[dir="rtl"] textarea,html[dir="rtl"] input,html[dir="rtl"] select{direction:rtl;text-align:right}
html[dir="rtl"] .account-arrow,html[dir="rtl"] .quiet-link span,html[dir="rtl"] .question-chips button span{display:inline-block;transform:scaleX(-1)}

/* Stable Arabic presentation: one webfont, no observer or runtime font swapping. */
:root{--et-arabic-font:"Alexandria",Tahoma,Arial,sans-serif}
html[lang="ar"] body,html[lang="ar"] button,html[lang="ar"] input,html[lang="ar"] textarea,html[lang="ar"] select,
html[lang="ar"] a,html[lang="ar"] p,html[lang="ar"] span,html[lang="ar"] label,html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,
html[lang="ar"] h4,html[lang="ar"] h5,html[lang="ar"] h6{font-family:var(--et-arabic-font)!important;letter-spacing:0!important;font-synthesis:none!important}
html[dir="rtl"] body{direction:rtl}
html[dir="rtl"] .introduction,html[dir="rtl"] .conversation,html[dir="rtl"] .page-footer,html[dir="rtl"] .scene-heading{text-align:right}
html[dir="rtl"] .message,html[dir="rtl"] .question-chips button,html[dir="rtl"] textarea{text-align:right!important}
html[dir="rtl"] .introduction h1{font-size:clamp(44px,4vw,66px)!important;line-height:1.25!important;font-weight:400!important;letter-spacing:0!important}
html[dir="rtl"] .hero-line{font-weight:400!important;line-height:1.6!important}
html[dir="rtl"] .eyebrow,html[dir="rtl"] .portrait-caption,html[dir="rtl"] .conversation-heading,html[dir="rtl"] .message-label,html[dir="rtl"] .service-strip>span{text-transform:none!important;letter-spacing:0!important}
html[dir="rtl"] .question-chips button{flex-direction:row-reverse}
html[dir="rtl"] .text-button{margin-left:0;margin-right:auto}
html[dir="rtl"] .account-arrow{margin-left:0;margin-right:15px}
html[dir="rtl"] .quiet-link span{padding-left:0;padding-right:28px}
