/* ELVORA COLLECTION — Identity Vault Hub (account — hub cards + split portal) */

.page-account .page-main {
  background: var(--surface-0);
  overflow-x: clip;
}

.eiv-root {
  --eiv-inset: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(56px, 8vw, 88px);
}

/* Isolate from legacy store-chrome.css (dark sidebar / split-gate assumptions) */
.page-account .dash-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.page-account .dash-nav-link:hover,
.page-account .dash-nav-link.is-active {
  background: transparent;
}

.page-account .auth-split-tab {
  flex: unset;
  color: var(--text-secondary);
  background: transparent;
}

.page-account .auth-split-tab:hover {
  color: var(--vault);
  background: transparent;
}

.page-account .auth-split-tab.is-active {
  color: var(--on-dark);
  background: transparent;
}

.page-account .auth-split-panel {
  padding: 0;
  min-height: 0;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.page-account .profile-grid {
  margin-bottom: 0;
  text-align: left;
}

/* ══════════════════════════════════════
   BAND — compact header
   ══════════════════════════════════════ */
.eiv-band {
  position: relative;
  padding: clamp(28px, 4vw, 44px) var(--eiv-inset) clamp(20px, 3vw, 28px);
  overflow: hidden;
}

.eiv-band-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(212, 162, 76, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 100%, rgba(74, 28, 50, 0.08), transparent 50%),
    linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 100%);
}

.eiv-band-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.eiv-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.eiv-crumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.eiv-crumb a:hover { color: var(--vault); }
.eiv-crumb [aria-current] { color: var(--vault-deep); font-weight: 700; }

.eiv-kicker {
  margin: 0 0 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.eiv-band h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--vault-deep);
}

.eiv-accent {
  background: linear-gradient(120deg, var(--vault) 0%, var(--ochre-deep) 55%, var(--moss) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eivAccentFlow 8s ease-in-out infinite alternate;
}

@keyframes eivAccentFlow {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

.eiv-lede {
  margin: 0;
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Loading */
.eiv-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: clamp(12px, 2vw, 20px) auto 0;
  padding: clamp(48px, 8vw, 72px) var(--eiv-inset);
  border-radius: var(--radius-2xl);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.eiv-loading[hidden] {
  display: none !important;
}

.eiv-loading-orbit {
  position: relative;
  width: 64px;
  height: 64px;
}

.eiv-loading-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--ochre);
  animation: eivLoadSpin 1s linear infinite;
}

.eiv-loading-orbit span:nth-child(2) {
  inset: 8px;
  animation-direction: reverse;
  animation-duration: 1.4s;
  border-top-color: var(--vault);
}

.eiv-loading-orbit span:nth-child(3) {
  inset: 16px;
  animation-duration: 0.8s;
  border-top-color: var(--moss);
}

@keyframes eivLoadSpin {
  to { transform: rotate(360deg); }
}

.eiv-loading p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════
   MEMBER — identity + hub cards + stage
   ══════════════════════════════════════ */
.eiv-member {
  max-width: 1100px;
  margin: clamp(12px, 2vw, 20px) auto 0;
  padding: 0 var(--eiv-inset);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.eiv-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(135deg, rgba(74, 28, 50, 0.04) 0%, transparent 50%),
    var(--surface-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.eiv-identity::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(212, 162, 76, 0.08), transparent 70%);
  pointer-events: none;
}

.eiv-identity-medallion {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.eiv-identity-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(212, 162, 76, 0.45);
  animation: eivRingPulse 2.5s ease-out infinite;
}

.eiv-identity-ring-2 {
  animation-delay: 0.8s;
}

@keyframes eivRingPulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

.eiv-identity-medallion em {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--vault), var(--vault-deep));
  color: var(--ochre);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 28px rgba(74, 28, 50, 0.28);
}

.eiv-identity-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eiv-identity-label {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.eiv-identity-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--vault-deep);
  line-height: 1.15;
}

.eiv-identity-orbit {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.eiv-orbit-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--vault);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.eiv-orbit-chip:hover {
  transform: translateY(-2px);
  border-color: var(--ochre);
  box-shadow: var(--shadow-sm);
}

.eiv-orbit-muted { color: var(--text-secondary); }

.eiv-orbit-out {
  border-color: rgba(196, 64, 64, 0.3);
  color: #a03030;
}

.eiv-orbit-out:hover {
  background: rgba(196, 64, 64, 0.06);
  border-color: #c44040;
}

/* Hub cards — horizontal deck (not sidebar) */
.eiv-hub {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 6px;
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
}

.eiv-hub-glow {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--vault), var(--vault-deep));
  box-shadow: 0 8px 24px rgba(74, 28, 50, 0.25);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
  z-index: 0;
}

.eiv-hub-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s;
}

.eiv-hub-card.is-active {
  color: var(--on-dark);
}

.eiv-hub-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(74, 28, 50, 0.06);
  font-size: 1rem;
  color: var(--vault);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.eiv-hub-card.is-active .eiv-hub-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--ochre);
  transform: scale(1.05);
}

.eiv-hub-copy strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--vault-deep);
  transition: color 0.3s;
}

.eiv-hub-copy small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s;
}

.eiv-hub-card.is-active .eiv-hub-copy strong,
.eiv-hub-card.is-active .eiv-hub-copy small {
  color: var(--on-dark);
}

.eiv-hub-card:not(.is-active):hover .eiv-hub-icon {
  transform: scale(1.06);
  border-color: var(--ochre);
}

/* Stage panels */
.eiv-stage {
  position: relative;
  min-height: 280px;
}

.eiv-panel {
  display: none;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-2xl);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  animation: eivPanelIn 0.4s var(--ease-out);
}

.eiv-panel.is-active {
  display: block;
}

@keyframes eivPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.eiv-panel-head {
  margin-bottom: 22px;
}

.eiv-panel-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.eiv-panel-head h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--vault-deep);
}

.eiv-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.eiv-text-link {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vault);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.eiv-text-link:hover {
  color: var(--ochre-deep);
  transform: translateX(4px);
}

/* Credential chips */
.eiv-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.eiv-credentials .profile-item,
.profile-grid .profile-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.eiv-credentials .profile-item:hover,
.profile-grid .profile-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(212, 162, 76, 0.35);
}

.eiv-credentials .profile-item .k,
.profile-grid .profile-item .k {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eiv-credentials .profile-item .v,
.profile-grid .profile-item .v {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--vault-deep);
  word-break: break-word;
}

.eiv-credentials .profile-item .v.mono,
.profile-grid .profile-item .v.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Order stream cards */
.eiv-stream .order-row,
.order-list .order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.eiv-stream .order-row:hover,
.order-list .order-row:hover {
  transform: translateX(6px);
  border-color: var(--ochre);
  box-shadow: var(--shadow-sm);
}

.eiv-stream .order-row strong,
.order-list .order-row strong {
  font-size: 0.95rem;
  color: var(--vault-deep);
}

.eiv-stream .mini-copy,
.order-list .mini-copy {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.eiv-stream .btn-soft,
.order-list .btn-soft {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--vault);
  color: var(--on-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.eiv-stream .btn-soft:hover,
.order-list .btn-soft:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(74, 28, 50, 0.25);
}

/* Notices */
.eiv-stage .notice,
#profileVerifyNotice.notice {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.eiv-stage .notice.success,
#profileVerifyNotice.notice.success {
  background: rgba(45, 80, 22, 0.08);
  border-color: rgba(45, 80, 22, 0.2);
  color: var(--moss);
}

.eiv-stage .notice.warning,
#profileVerifyNotice.notice.warning {
  background: rgba(212, 162, 76, 0.12);
  border-color: rgba(212, 162, 76, 0.35);
  color: var(--ochre-deep);
}

/* Forms */
.eiv-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}

.eiv-field {
  position: relative;
}

.eiv-field input {
  width: 100%;
  padding: 20px 16px 10px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-1);
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.25s;
}

.eiv-field input:focus {
  outline: none;
  background: var(--surface-0);
}

.eiv-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.eiv-field input:focus + label,
.eiv-field input:not(:placeholder-shown) + label {
  top: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vault);
}

.eiv-field-glow {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--vault), var(--ochre));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.eiv-field input:focus ~ .eiv-field-glow {
  transform: scaleX(1);
}

.eiv-submit {
  align-self: flex-start;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--ochre), #f0c96a);
  color: var(--vault-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 162, 76, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.eiv-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212, 162, 76, 0.45);
}

.eiv-submit-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--vault);
  box-shadow: none;
}

.eiv-submit-ghost:hover {
  border-color: var(--vault);
  box-shadow: var(--shadow-sm);
}

.eiv-forgot {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.eiv-forgot summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vault);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════
   PORTAL — logged out split pane
   ══════════════════════════════════════ */
.eiv-portal {
  max-width: 1100px;
  margin: clamp(12px, 2vw, 20px) auto 0;
  padding: 0 var(--eiv-inset);
}

.eiv-portal-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: stretch;
}

.eiv-constellation {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(160deg, rgba(74, 28, 50, 0.05) 0%, transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.eiv-constellation-label {
  margin: 0 0 20px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.eiv-constellation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eiv-constellation-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  animation: eivStarIn 0.5s var(--ease-out) both;
  animation-delay: calc(var(--star-i) * 80ms);
  transition: transform 0.3s, box-shadow 0.3s;
}

@keyframes eivStarIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.eiv-constellation-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.eiv-star-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--vault), var(--vault-deep));
  color: var(--ochre);
  font-size: 0.95rem;
}

.eiv-constellation-list p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.eiv-auth-portal {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-2xl);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.eiv-auth-portal::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(212, 162, 76, 0.1), transparent 60%);
  pointer-events: none;
}

.eiv-auth-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.eiv-auth-seal {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ochre), var(--ochre-deep));
  color: var(--vault-deep);
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(212, 162, 76, 0.35);
}

.eiv-auth-head h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--vault-deep);
}

.eiv-auth-head p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.eiv-auth-switch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
}

.eiv-auth-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--vault), var(--vault-deep));
  box-shadow: 0 4px 16px rgba(74, 28, 50, 0.22);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

.eiv-auth-switch .auth-split-tab {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s;
}

.eiv-auth-switch .auth-split-tab.is-active {
  color: var(--on-dark);
}

.eiv-auth-panel {
  position: relative;
  z-index: 1;
  animation: eivPanelIn 0.35s var(--ease-out);
}

.auth-split-panel[hidden] {
  display: none !important;
}

/* Toast — override store-chrome opacity / corner positioning */
.eiv-root .toast,
.page-account .toast {
  position: fixed;
  bottom: clamp(80px, 12vw, 104px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(120%);
  z-index: 120;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 14px 20px;
  border-radius: var(--radius-full);
  background: var(--vault-deep);
  color: var(--on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.35s ease;
}

.eiv-root .toast.visible,
.page-account .toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.eiv-root .toast.success,
.page-account .toast.success {
  background: linear-gradient(135deg, #2d5016, #3d6b22);
}

.eiv-root .toast.error,
.page-account .toast.error {
  background: linear-gradient(135deg, #6b1a1a, #8b2e2e);
}

.eiv-root .toast.warning,
.page-account .toast.warning {
  background: linear-gradient(135deg, #8a5a12, var(--ochre-deep));
  color: var(--vault-deep);
}

.eiv-root .toast.info,
.page-account .toast.info {
  background: var(--vault-deep);
  color: var(--on-dark);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .eiv-identity {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .eiv-identity-orbit {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .eiv-hub {
    grid-template-columns: 1fr;
  }

  .eiv-hub-glow {
    display: none;
  }

  .eiv-hub-card.is-active {
    background: linear-gradient(135deg, var(--vault), var(--vault-deep));
    border-radius: var(--radius-lg);
  }

  .eiv-portal-split {
    grid-template-columns: 1fr;
  }

  .eiv-stream .order-row,
  .order-list .order-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .eiv-credentials {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eiv-accent,
  .eiv-identity-ring,
  .eiv-loading-orbit span,
  .eiv-constellation-list li,
  .eiv-panel {
    animation: none !important;
  }
}
