/**
 * URUS R67 Unified Enterprise Design DNA
 * Scoped exclusively to data-experience-theme="enterprise".
 * Legacy remains untouched when the attribute is "legacy".
 */

:root {
  --r67-navy-950:#050914;
  --r67-navy-900:#091225;
  --r67-navy-800:#10203b;
  --r67-blue-600:#2563eb;
  --r67-violet-600:#7c3aed;
  --r67-gold-500:#c89b2d;
  --r67-emerald-500:#10b981;
  --r67-canvas:#f4f7fb;
  --r67-surface:#ffffff;
  --r67-text:#122033;
  --r67-muted:#607089;
  --r67-border:#dbe3ef;
  --r67-radius-sm:10px;
  --r67-radius-md:14px;
  --r67-radius-lg:20px;
  --r67-radius-xl:28px;
  --r67-shadow-sm:0 8px 22px rgba(15,23,42,.06);
  --r67-shadow-md:0 18px 48px rgba(15,23,42,.10);
}

[data-experience-theme="enterprise"] {
  color-scheme:light;
  font-family:"Plus Jakarta Sans","Inter",system-ui,sans-serif;
}

html[data-urus-surface="auth"][data-experience-theme="enterprise"] {
  color-scheme:dark;
  background:
    radial-gradient(circle at 12% 12%,rgba(37,99,235,.19),transparent 32rem),
    radial-gradient(circle at 88% 82%,rgba(124,58,237,.14),transparent 34rem),
    var(--r67-navy-950);
}

html[data-urus-surface="auth"][data-experience-theme="enterprise"] body {
  background:transparent!important;
  font-size:15px;
}

html[data-urus-surface="auth"][data-experience-theme="enterprise"] h1 {
  max-width:12ch;
  font-size:clamp(2.65rem,4.5vw,4.7rem)!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
}

html[data-urus-surface="auth"][data-experience-theme="enterprise"] h2 {
  font-size:clamp(1.65rem,2.2vw,2.15rem)!important;
  letter-spacing:-.025em!important;
}

html[data-urus-surface="auth"][data-experience-theme="enterprise"] .auth-shell {
  border-color:rgba(148,163,184,.24)!important;
  background:linear-gradient(145deg,rgba(15,28,51,.95),rgba(8,16,31,.94))!important;
  box-shadow:0 38px 90px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.05)!important;
}

html[data-urus-surface="auth"][data-experience-theme="enterprise"] input,
html[data-urus-surface="auth"][data-experience-theme="enterprise"] select {
  min-height:52px;
  border-radius:var(--r67-radius-md)!important;
  font-size:14px!important;
}

html[data-urus-surface="auth"][data-experience-theme="enterprise"] button[type="submit"] {
  min-height:52px;
  border-radius:var(--r67-radius-md)!important;
  font-size:14px!important;
  box-shadow:0 14px 34px rgba(37,99,235,.26);
}

[data-experience-theme="enterprise"] body {
  background:var(--r67-canvas);
  color:var(--r67-text);
}

[data-experience-theme="enterprise"] .sidebar {
  background:linear-gradient(180deg,#071124,#0b1830 58%,#0a1426);
  border-right:1px solid rgba(148,163,184,.12);
  box-shadow:14px 0 44px rgba(15,23,42,.10);
}

[data-experience-theme="enterprise"] .sidebar-brand {
  min-height:92px;
}

[data-experience-theme="enterprise"] .menu-section-title {
  color:#8ea0bb;
  font-size:10px;
  letter-spacing:.16em;
}

[data-experience-theme="enterprise"] .nav-list a {
  min-height:44px;
  border-radius:12px;
  font-size:13px;
}

[data-experience-theme="enterprise"] .nav-list a:hover {
  background:rgba(255,255,255,.065);
}

[data-experience-theme="enterprise"] .nav-list a.active,
[data-experience-theme="enterprise"] .nav-list a[aria-current="page"] {
  background:linear-gradient(135deg,rgba(37,99,235,.96),rgba(79,70,229,.90));
  box-shadow:0 10px 28px rgba(37,99,235,.24);
}

[data-experience-theme="enterprise"] .main-content {
  background:var(--r67-canvas);
}

[data-experience-theme="enterprise"] .exec-dashboard {
  max-width:1600px;
  margin-inline:auto;
  padding:28px clamp(20px,2.4vw,38px) 52px;
}

[data-experience-theme="enterprise"] .exec-hero {
  min-height:190px;
  padding:34px 38px;
  border:1px solid rgba(148,163,184,.16);
  border-radius:var(--r67-radius-xl);
  background:
    radial-gradient(circle at 82% 18%,rgba(96,165,250,.18),transparent 24rem),
    linear-gradient(135deg,#09152a,#0c1d38 70%,#11284a);
  box-shadow:0 28px 72px rgba(15,23,42,.18);
}

[data-experience-theme="enterprise"] .exec-hero h1 {
  font-size:clamp(2rem,3vw,3rem);
  line-height:1.08;
  letter-spacing:-.035em;
}

[data-experience-theme="enterprise"] .exec-hero p {
  max-width:68ch;
  font-size:14px;
  line-height:1.7;
  color:#b5c1d4;
}

[data-experience-theme="enterprise"] .exec-kpis {
  gap:16px;
}

[data-experience-theme="enterprise"] .glass-kpi-card,
[data-experience-theme="enterprise"] .exec-card,
[data-experience-theme="enterprise"] .workspace-readiness-card {
  border:1px solid var(--r67-border);
  border-radius:var(--r67-radius-lg);
  background:var(--r67-surface);
  box-shadow:var(--r67-shadow-sm);
}

[data-experience-theme="enterprise"] .glass-kpi-card {
  min-height:150px;
  padding:24px;
}

[data-experience-theme="enterprise"] .glass-kpi-card span {
  color:#52637b;
  font-size:12px;
  font-weight:700;
}

[data-experience-theme="enterprise"] .glass-kpi-card strong {
  margin-top:12px;
  color:var(--r67-text);
  font-size:clamp(1.75rem,2.5vw,2.35rem);
  line-height:1;
  letter-spacing:-.035em;
}

[data-experience-theme="enterprise"] .glass-kpi-card small,
[data-experience-theme="enterprise"] .exec-card p,
[data-experience-theme="enterprise"] .exec-card small {
  color:var(--r67-muted);
  font-size:12px;
  line-height:1.6;
}

[data-experience-theme="enterprise"] .exec-card {
  padding:24px;
}

[data-experience-theme="enterprise"] .exec-card h2 {
  color:var(--r67-text);
  font-size:18px;
  letter-spacing:-.02em;
}

[data-experience-theme="enterprise"] .exec-quick-links a {
  border:1px solid var(--r67-border);
  border-radius:var(--r67-radius-md);
  background:#f8fafc;
}

[data-experience-theme="enterprise"] .exec-quick-links a:hover {
  border-color:#b9c7db;
  background:#fff;
  box-shadow:var(--r67-shadow-sm);
  transform:translateY(-2px);
}

[data-experience-theme="enterprise"] .exec-button-primary {
  border:0;
  background:linear-gradient(135deg,var(--r67-blue-600),var(--r67-violet-600));
  box-shadow:0 12px 30px rgba(37,99,235,.22);
}

[data-experience-theme="enterprise"] :focus-visible {
  outline:3px solid rgba(59,130,246,.5);
  outline-offset:3px;
}

.experience-theme-control {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:14px;
  background:rgba(255,255,255,.045);
}

.experience-theme-control__label {
  color:#93a4bc;
  font-size:10px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.experience-theme-control__button {
  min-height:34px;
  padding:0 12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#e5edf8;
  font:700 11px/1 "Plus Jakarta Sans",sans-serif;
  cursor:pointer;
}

.experience-theme-control__button:hover {
  background:rgba(255,255,255,.11);
}

.auth-experience-switcher {
  position:fixed;
  right:18px;
  top:18px;
  z-index:60;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:14px;
  background:rgba(7,15,29,.76);
  backdrop-filter:blur(18px);
  box-shadow:0 12px 34px rgba(0,0,0,.22);
}

.auth-experience-switcher form { margin:0; }
.auth-experience-switcher button {
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid rgba(148,163,184,.2)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.06)!important;
  color:#dbe7f7!important;
  font-size:11px!important;
  font-weight:750!important;
  cursor:pointer;
}
.auth-experience-switcher button[aria-pressed="true"] {
  border-color:rgba(96,165,250,.48)!important;
  background:linear-gradient(135deg,rgba(37,99,235,.94),rgba(124,58,237,.86))!important;
  color:#fff!important;
}

@media (max-width:980px) {
  [data-experience-theme="enterprise"] .exec-dashboard { padding:18px 14px 38px; }
  [data-experience-theme="enterprise"] .exec-hero { min-height:auto; padding:24px; border-radius:20px; }
  .auth-experience-switcher { position:static; width:max-content; margin:12px auto 0; }
}

@media (prefers-reduced-motion:reduce) {
  [data-experience-theme="enterprise"] *,
  [data-experience-theme="enterprise"] *::before,
  [data-experience-theme="enterprise"] *::after {
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}
