﻿:root {
  --banner-width: 300px;
  --dock-width: 64px;
  --banner-bg: #0f172a;
  --banner-text: #e2e8f0;
  --banner-muted: #94a3b8;
  --accent: #38bdf8;
  --toggle-width: 40px;
  --toggle-height: 72px;
  --toggle-top: 50%;
  --help-top: 50%;
  --transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0b1220;
}

/* Web client full viewport — banner overlays by default */
.main {
  position: fixed;
  inset: 0;
  width: auto;
  height: 100vh;
  transition: right var(--transition);
}

.rdp-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.banner {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: var(--banner-width);
  min-width: 180px;
  max-width: min(600px, 50vw);
  height: 100vh;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.97) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: var(--banner-text);
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  border-right: 0;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transform: translateX(0);
  transition: transform var(--transition), width var(--transition), min-width var(--transition), max-width var(--transition), box-shadow var(--transition);
  z-index: 1000;
  pointer-events: auto;
  overflow: hidden;
}

.banner.slow-collapse {
  transition-duration: 700ms;
}

.banner.resizing {
  transition: none;
}

.banner.collapsed {
  transform: translateX(var(--banner-width));
  pointer-events: none;
}

/* Pinned full panel: sit beside webclient instead of overlay */
body.layout-pinned:not(.layout-dock):not(.banner-is-collapsed) .main {
  right: var(--banner-width);
}

body.layout-pinned:not(.layout-dock) .banner {
  box-shadow: none;
}

body.layout-pinned:not(.layout-dock) .banner.collapsed {
  /* Space already released via body.banner-is-collapsed */
}

/* Dock mode: narrow icon strip beside webclient (not overlay) */
body.layout-dock .main {
  right: var(--dock-width);
}

body.layout-dock .banner {
  width: var(--dock-width);
  min-width: var(--dock-width);
  max-width: var(--dock-width);
  transform: none;
  box-shadow: none;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

body.layout-dock .banner.collapsed {
  transform: none;
  pointer-events: auto;
}

body.layout-dock .banner-inner,
body.layout-dock .banner-resize,
body.layout-dock .banner-toggle {
  display: none !important;
}

body.layout-dock .banner-dock {
  display: flex !important;
}

body.layout-dock .banner-toggle {
  display: none !important;
}

.banner-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0.95rem 0.9rem 1.05rem;
  gap: 0.7rem;
  overflow: hidden;
}

.banner-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Thin, discreet scrollbars for dark panel */
.help-chat,
#banner-view-guest {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.help-chat::-webkit-scrollbar,
#banner-view-guest::-webkit-scrollbar {
  width: 6px;
}

.help-chat::-webkit-scrollbar-track,
#banner-view-guest::-webkit-scrollbar-track {
  background: transparent;
}

.help-chat::-webkit-scrollbar-thumb,
#banner-view-guest::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.help-chat::-webkit-scrollbar-thumb:hover,
#banner-view-guest::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.45);
}

.banner-dock {
  display: none;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.4rem 0.75rem;
}

.dock-expand {
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--banner-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}

.dock-expand:hover {
  background: rgba(148, 163, 184, 0.22);
}

.dock-expand svg {
  width: 18px;
  height: 18px;
}

.dock-apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  overflow: auto;
  width: 100%;
  flex: 1;
  min-height: 0;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.dock-app {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: rgba(148, 163, 184, 0.1);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dock-app:hover {
  background: rgba(148, 163, 184, 0.2);
}

.dock-app.is-active {
  box-shadow: 0 0 0 2px var(--accent);
}

.dock-app img,
.dock-app-fallback {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.dock-app-fallback {
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.dock-app-status {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
}

.banner-resize {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 12px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
  touch-action: none;
  background: transparent;
}

.banner-resize::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background:
    radial-gradient(circle, rgba(148, 163, 184, 0.75) 1.2px, transparent 1.3px) 0 0 / 4px 8px repeat-y;
  opacity: 0.85;
  pointer-events: none;
}

.banner-resize:hover {
  background: rgba(30, 41, 59, 0.55);
}

.banner-resize:hover::before {
  opacity: 1;
}

.banner-resize.dragging {
  background: rgba(51, 65, 85, 0.65);
}

.banner-resize:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.banner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.banner-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pin-btn.is-active {
  background: rgba(56, 189, 248, 0.22);
  color: var(--accent);
}

.pin-btn svg,
.dock-flik svg {
  width: 16px;
  height: 16px;
}

.banner-brand {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.banner-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #082f49;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.banner-logo[hidden],
.banner-logo-img[hidden] {
  display: none !important;
}

.banner-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.banner-brand h1 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.banner-brand p {
  margin: 0.1rem 0 0;
  color: var(--banner-muted);
  font-size: 0.75rem;
}

.banner-section h2 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--banner-muted);
}

.banner-section p,
.banner-section li {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--banner-text);
}

.banner-section + .banner-section {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.banner-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#banner-view-guest {
  overflow: auto;
}

.banner-view[hidden] {
  display: none !important;
}

.banner-muted,
#session-resources-empty {
  color: var(--banner-muted);
  font-size: 0.76rem;
}

.session-user {
  margin-top: 0.35rem !important;
  color: var(--accent);
  font-weight: 500;
}

#mfa-setup-banner-wrap:not([hidden]) {
  margin-top: 0.85rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.session-resources {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.session-resources li {
  padding: 0;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.08);
  font-size: 0.78rem;
  overflow: hidden;
}

.session-resources .resource-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--banner-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.session-resources .resource-btn:hover {
  background: rgba(148, 163, 184, 0.14);
}

.session-resources .resource-icon,
.session-resources .resource-icon-fallback {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
}

.session-resources .resource-icon-fallback {
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.session-resources .resource-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.55);
  flex-shrink: 0;
}

.session-resources .resource-btn.is-running .resource-status {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.session-resources .resource-btn.is-active {
  background: rgba(56, 189, 248, 0.16);
  box-shadow: inset 3px 0 0 var(--accent);
}

.session-resources .resource-btn.is-active .resource-status {
  background: #22c55e;
}

.help-section {
  margin-top: 0.1rem;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#banner-view-session > .banner-section:not(.help-section) {
  flex-shrink: 0;
}

.help-app-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--banner-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.help-app-select,
.help-input,
.help-send {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  color: var(--banner-text);
  font: inherit;
  font-size: 0.8rem;
}

.help-app-select {
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.help-chat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 72px;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.15rem 0.2rem 0;
}

.help-msg {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.help-msg.user {
  background: rgba(56, 189, 248, 0.14);
}

.help-msg.assistant {
  background: rgba(148, 163, 184, 0.1);
}

.help-msg.error {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.help-msg.thinking {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--banner-muted);
  font-style: italic;
}

.help-thinking-dots {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
}

.help-thinking-dots i {
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: help-thinking-pulse 1.1s infinite ease-in-out;
}

.help-thinking-dots i:nth-child(2) {
  animation-delay: 0.18s;
}

.help-thinking-dots i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes help-thinking-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.help-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.help-input {
  padding: 0.4rem 0.5rem;
  resize: vertical;
  min-height: 56px;
}

.help-send {
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

.help-send:hover {
  background: rgba(56, 189, 248, 0.3);
}

.help-send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.help-footnote {
  margin: 0.4rem 0 0;
  color: var(--banner-muted);
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: center;
  flex-shrink: 0;
}

.help-footnote a {
  color: var(--accent);
  text-decoration: none;
}

.help-footnote a:hover {
  text-decoration: underline;
}

.banner-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.banner-section a {
  color: var(--accent);
  text-decoration: none;
}

.banner-section a:hover {
  text-decoration: underline;
}

.pref-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--banner-text);
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}

.hide-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--banner-text);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}

.hide-switch--footer {
  margin-left: auto;
}

.hide-switch-label {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hide-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hide-switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  transition: background 160ms ease;
  flex-shrink: 0;
}

.hide-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease;
}

.hide-switch-input:checked + .hide-switch-track {
  background: rgba(56, 189, 248, 0.75);
}

.hide-switch-input:checked + .hide-switch-track::after {
  transform: translateX(14px);
}

.hide-switch-input:focus-visible + .hide-switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hide-switch:hover {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.16);
}

.help-trigger {
  position: fixed;
  right: 1rem;
  bottom: auto;
  top: var(--help-top);
  transform: translateY(-50%);
  z-index: 1002;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #f1f5f9;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  transition: background 150ms ease, border-color 150ms ease, top 80ms ease;
}

.help-trigger.dragging {
  cursor: grabbing;
  transition: background 150ms ease, border-color 150ms ease;
}

.help-trigger[hidden] {
  display: none !important;
}

.help-trigger:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(30, 41, 59, 0.96);
}

.help-trigger-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.banner-footer {
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--banner-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  font-size: 0.72rem;
}

.icon-btn,
.banner-toggle {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.12);
  color: var(--banner-text);
}

.banner-toggle {
  position: fixed;
  right: 0;
  left: auto;
  top: var(--toggle-top);
  transform: translateY(-50%);
  width: var(--toggle-width);
  height: var(--toggle-height);
  border-radius: 10px 0 0 10px;
  z-index: 1001;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
  color: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.9);
  border-right: 0;
  box-shadow:
    -3px 0 14px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  transition: background 150ms ease, top 80ms ease, box-shadow 150ms ease;
}

.banner-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  opacity: 0.85;
}

.banner-toggle.dragging {
  cursor: grabbing;
  transition: background 150ms ease;
}

.icon-btn:hover {
  background: rgba(148, 163, 184, 0.22);
}

.banner-toggle:hover {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
  box-shadow:
    -4px 0 18px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 0, 0, 0.16);
}

.icon-btn svg,
.banner-toggle svg {
  width: 18px;
  height: 18px;
}

.chevron-left {
  transform: rotate(180deg);
}

.banner-toggle .chevron {
  transition: transform var(--transition);
}

.banner-toggle[data-state="open"] .chevron {
  transform: rotate(0deg);
}

.banner-toggle[data-state="collapsed"] .chevron {
  transform: rotate(180deg);
}

.banner-toggle[hidden],
.banner-toggle.is-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  :root {
    --banner-width: 260px;
  }
}

body.is-resizing,
body.is-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

#resize-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  cursor: col-resize;
  display: none;
}

#resize-overlay.active {
  display: block;
}

/* MFA approval wait – slides down while gateway waits for Authenticator */
.mfa-wait-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2500;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(-110%);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mfa-wait-bar.is-visible {
  transform: translateY(0);
}

.mfa-wait-bar[hidden] {
  display: none !important;
}

.mfa-wait-bar-inner {
  margin: 12px 16px 0;
  max-width: min(560px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
  color: #e2e8f0;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.35;
  pointer-events: auto;
}

.mfa-wait-bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  flex-shrink: 0;
  animation: mfa-wait-pulse 1.2s ease-in-out infinite;
}

@keyframes mfa-wait-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* MFA setup prompt (centered over webclient) */
.mfa-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mfa-modal[hidden] {
  display: none !important;
}

.mfa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.55);
}

.mfa-modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: var(--banner-text);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

.mfa-modal-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mfa-modal-card p {
  margin: 0 0 22px;
  color: var(--banner-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.mfa-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mfa-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mfa-step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1220;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mfa-step-body {
  flex: 1 1 auto;
  min-width: 0;
}

.mfa-step-body h3 {
  margin: 3px 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--banner-text);
}

.mfa-step-body p {
  margin: 0 0 10px;
  color: var(--banner-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.mfa-step-body .mfa-account {
  margin-bottom: 4px;
}

.mfa-account-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}

.mfa-account-upn {
  margin: 0 !important;
  flex: 0 1 auto;
  min-width: 0;
}

.mfa-account-upn span {
  display: inline-block;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--banner-text);
  font-weight: 600;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.mfa-copy-btn {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--banner-muted);
  cursor: pointer;
}

.mfa-copy-btn:hover {
  color: var(--banner-text);
  background: rgba(148, 163, 184, 0.16);
}

.mfa-copy-btn svg {
  width: 18px;
  height: 18px;
}

.mfa-copy-btn .mfa-copy-icon {
  display: block;
}

.mfa-copy-btn .mfa-copy-check {
  display: none;
}

.mfa-copy-btn.is-copied {
  color: var(--accent);
}

.mfa-copy-btn.is-copied .mfa-copy-icon {
  display: none;
}

.mfa-copy-btn.is-copied .mfa-copy-check {
  display: block;
}

.mfa-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.mfa-btn-primary {
  background: var(--accent);
  color: #0b1220;
}

.mfa-btn-primary:hover {
  filter: brightness(1.06);
}

.mfa-btn-secondary {
  background: rgba(148, 163, 184, 0.16);
  color: var(--banner-text);
}

.mfa-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.28);
}


