/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; background: #f8fafc; color: #1e293b; min-height: 100vh; font-size: 14px; }
a { color: #1a6dff; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.admin-panel.hidden { display: none !important; }
.admin-panel.visible { display: block !important; }
.muted { color: #8896a7; }
.caret { font-size: 10px; }

/* === Top Nav === */
.topnav { position: fixed; top: 0; left: 0; right: 0; height: 48px; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 10px; z-index: 100; }
.topnav-left { display: flex; align-items: center; gap: 10px; }
.topnav-right { display: flex; align-items: center; gap: 0; }
.hamburger { background: none; border: none; color: #475569; cursor: pointer; padding: 8px 10px; display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 7px; }
.logo-icon { flex-shrink: 0; }
.netapp-brand-icon {
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text { color: #1e293b; font-weight: 700; font-size: 15px; }
.logo-console { color: #64748b; font-weight: 400; font-size: 15px; margin-left: 2px; }
.ctx-selector { display: flex; align-items: center; gap: 0; margin-right: 16px; }
.ctx-item { text-align: left; cursor: pointer; line-height: 1.35; padding: 0 16px; }
.ctx-sep { width: 1px; height: 28px; background: #e2e8f0; flex-shrink: 0; }
.ctx-label { display: block; color: #1e293b; font-size: 12px; font-weight: 500; }
.ctx-value { display: block; color: #64748b; font-size: 11px; font-weight: 400; }
.caret { font-size: 9px; margin-left: 2px; color: #64748b; }
.topnav-icons { display: flex; align-items: center; gap: 2px; }
.icon-btn { background: none; border: none; color: #475569; cursor: pointer; position: relative; padding: 6px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; }
.icon-btn:hover { color: #1e293b; background: #f1f5f9; }
.icon-btn-circle { }
.notif-dot { display: none; }
.notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; background: #84cc16; color: #1e293b; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; padding: 0 3px; }
.avatar-btn { display: none; }

/* === Sidebar === */
.sidebar { position: fixed; top: 48px; left: 0; width: 180px; height: calc(100vh - 48px); background: #fff; border-right: 1px solid #e8ecf1; overflow-y: auto; z-index: 90; transition: transform 0.2s; padding-top: 0; box-shadow: 2px 0 12px rgba(0,0,0,0.08); }
.sidebar.collapsed { transform: translateX(-180px); box-shadow: none; }
.sidebar-favorites { padding: 12px 16px 4px; font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13.5px; color: #475569; cursor: pointer; border-left: 3px solid transparent; transition: background 0.15s; }
.sidebar-link:hover { background: #f1f5f9; text-decoration: none; }
.sidebar-link.active { color: #3b82f6; border-left-color: #3b82f6; background: transparent; font-weight: 600; }
.sidebar-svg { flex-shrink: 0; color: inherit; }
.sidebar-chevron { margin-left: auto; font-size: 14px; color: #94a3b8; transition: transform 0.2s; }
.sidebar-chevron.open { transform: rotate(90deg); }
.sidebar-divider { height: 1px; background: #e2e8f0; margin: 8px 16px; }

/* === Context Sidebar (Identity & Access) === */
.context-sidebar { position: fixed; top: 48px; left: 0; width: 160px; height: calc(100vh - 48px); background: #fff; border-right: 1px solid #e8ecf1; overflow-y: auto; z-index: 88; padding: 16px 0; }
.context-sidebar.hidden { display: none !important; }
.context-sidebar.visible { display: block !important; }
.ctx-sidebar-label { padding: 0 16px 12px; font-size: 11px; color: #94a3b8; }
.ctx-sidebar-link { display: block; padding: 8px 16px; font-size: 13px; color: #475569; cursor: pointer; border-left: 3px solid transparent; }
.ctx-sidebar-link:hover { background: #f1f5f9; text-decoration: none; }
.ctx-sidebar-link.active { color: #3b82f6; font-weight: 600; border-left-color: #3b82f6; }
.main-content.with-context { margin-left: 160px; }

/* === Admin Secondary Panel === */
.admin-panel { position: fixed; top: 48px; left: 180px; width: 220px; height: calc(100vh - 48px); background: #fff; border-right: 1px solid #e8ecf1; overflow-y: auto; z-index: 89; padding: 12px 0; transition: left 0.2s; }
.sidebar.collapsed ~ .admin-panel { left: 0; }
.admin-panel-item { display: block; padding: 10px 18px; cursor: pointer; transition: background 0.12s; }
.admin-panel-item:hover { background: #f1f5f9; text-decoration: none; }
.admin-panel-item.active .admin-panel-title { color: #3b82f6; }
.admin-panel-title { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 2px; }
.admin-panel-desc { font-size: 11.5px; color: #64748b; line-height: 1.4; }
.admin-panel-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; padding: 6px 18px 10px; }

/* === Storage landing pages (Management / Dashboards) === */
.storage-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.storage-card { background: #fff; border: 1px solid #e8ecf1; border-radius: 8px; padding: 18px; transition: box-shadow 0.12s, border-color 0.12s; cursor: pointer; }
.storage-card:hover { border-color: #cbd5e1; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.storage-card-icon { width: 40px; height: 40px; border-radius: 8px; background: #dbeafe; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.storage-card-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.storage-card-desc { font-size: 12px; color: #64748b; line-height: 1.45; }
.storage-tbl-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #e8ecf1; }
.storage-tbl-toolbar-icons { display: flex; gap: 4px; }
.storage-tbl-head, .storage-tbl-row { display: grid; grid-template-columns: 1fr 160px; gap: 12px; padding: 12px 16px; }
.storage-tbl-head { background: #f8fafc; border-bottom: 1px solid #e8ecf1; font-size: 12px; font-weight: 700; color: #475569; }
.storage-tbl-row { border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #1e293b; }
.storage-tbl-row:hover { background: #f8fafc; }
.storage-tbl-cell { overflow: hidden; text-overflow: ellipsis; }

/* Main content shifts when admin panel is open */
.main-content.admin-open { margin-left: 400px; }

/* === Main Content === */
.main-content { margin-left: 0; margin-top: 48px; padding: 28px 48px; min-height: calc(100vh - 48px); max-height: calc(100vh - 48px); overflow-y: auto; transition: margin-left 0.2s; }
.main-content.with-sidebar { margin-left: 180px; }
.main-content.full-width { margin-left: 0; }

/* === Page Header === */
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 600; }
.breadcrumb { font-size: 13px; color: #1a6dff; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.breadcrumb:hover { text-decoration: underline; }
.page-subtitle { font-size: 14px; color: #8896a7; margin: 4px 0 0; }

/* === Cards === */
.card { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 24px; margin-bottom: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 600; }

/* === Stats Row === */
.stats-row { display: flex; gap: 16px; margin-bottom: 24px; }
.stat-card { flex: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; text-align: center; }
.stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-value.blue { color: #1a6dff; }
.stat-value.green { color: #22c55e; }
.stat-value.purple { color: #8b5cf6; }
.stat-value.red { color: #ef4444; }
.stat-value.orange { color: #f97316; }
.stat-label { font-size: 12px; color: #8896a7; margin-top: 4px; }

/* === Toggle Card (Settings) === */
.toggle-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.toggle-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px; transition: border-color 0.2s; }
.toggle-card.active { border-color: #1a6dff; }
.toggle-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toggle-card-icon { font-size: 20px; color: #8896a7; }
.toggle-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.toggle-card p { font-size: 13px; color: #5a6b7d; line-height: 1.5; }
.toggle-card-footer { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.green { background: #22c55e; }
.status-dot.gray { background: #8896a7; }
.btn-configure { display: block; width: 100%; margin-top: 12px; padding: 10px; background: #1a6dff; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.btn-configure:hover { background: #1557d4; }

/* === Toggle Switch === */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #cbd5e0; border-radius: 24px; transition: 0.3s; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .slider { background: #1a6dff; }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* === Section Headings === */
.section-heading { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.section-sub { font-size: 13px; color: #8896a7; margin-bottom: 20px; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: background 0.15s; }
.btn-primary { background: #1a6dff; color: #fff; }
.btn-primary:hover { background: #1557d4; }
.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger { padding: 8px 20px; font-size: 14px; font-weight: 600; color: #fff; background: #ef4444; border: none; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.btn-danger:hover { background: #dc2626; }
.btn-danger:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-outline { background: #fff; color: #3b4a5a; border: 1px solid #e2e8f0; }
.btn-outline:hover { background: #f0f4f8; }
.btn-ghost { background: none; color: #8896a7; border: none; cursor: pointer; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-save { display: block; margin: 24px auto 0; padding: 12px 32px; background: #1a6dff; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }

/* === Org Info Row === */
.org-info-row { display: flex; gap: 12px; align-items: stretch; }
.org-info-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; flex: 1.5; position: relative; }
.oic-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oic-icon.blue { background: #3b82f6; }
.oic-icon.purple { background: #8b5cf6; }
.oic-value { font-size: 14px; font-weight: 700; color: #1e293b; }
.oic-label { font-size: 11px; color: #94a3b8; }
.oic-copy { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 14px; }
.org-info-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 20px; flex: 1; text-align: center; }
.org-info-stat.cyan { border-left: 3px solid #06b6d4; }
.org-info-stat.yellow { border-left: 3px solid #f59e0b; }
.org-info-stat.pink { border-left: 3px solid #ec4899; }
.org-info-stat.green { border-left: 3px solid #22c55e; }
.ois-val { font-size: 20px; font-weight: 700; color: #1e293b; }
.ois-label { font-size: 11px; color: #94a3b8; }

/* === Org Table === */
.org-table { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.org-table-header { display: flex; align-items: center; padding: 10px 16px; background: #eff6ff; font-size: 13px; font-weight: 600; color: #3b82f6; border-bottom: 1px solid #e2e8f0; }
.org-table-body { }
.ot-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; font-size: 13px; cursor: pointer; }
.ot-row:hover { background: #eff6ff; }
.ot-row-mav { background: #eff6ff; }
.ot-row-mav:hover { background: #dbeafe; }
.org-table-body .ot-row:last-child { border-bottom: none; }
.ot-chevron { font-size: 18px; color: #94a3b8; display: inline-block; transition: transform 0.15s; }
.ot-chevron.open { transform: rotate(90deg); }
.ot-name { font-weight: 500; color: #1e293b; }
.ot-menu-wrap { margin-left: auto; position: relative; }
.ot-dots { background: none; border: none; font-size: 16px; cursor: pointer; color: #94a3b8; padding: 2px 6px; }
.ot-dots:hover { color: #475569; }
.ot-menu { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); min-width: 230px; z-index: 60; padding: 6px 0; }
.ot-menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 14px; color: #1e293b; cursor: pointer; }
.ot-menu-item:hover { background: #f1f5f9; }
.ot-menu-mav { color: #475569; }
.ot-menu-mav svg { flex-shrink: 0; }
.ot-menu-delete { color: #94a3b8; }
.mav-badge { display: inline-flex; align-items: center; gap: 4px; background: #dbeafe; color: #3b82f6; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-left: 8px; position: relative; cursor: default; }
.mav-badge svg { flex-shrink: 0; }
.mav-tooltip { display: none; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); background: #1e293b; color: #fff; border-radius: 10px; padding: 12px 16px; min-width: 220px; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,0.18); pointer-events: none; }
.mav-tooltip::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #1e293b; }
.mav-badge:hover .mav-tooltip { display: block; }
.mav-tip-cmd { font-size: 12px; font-weight: 600; color: #f1f5f9; white-space: nowrap; }
.mav-tip-svc { font-size: 11px; color: #94a3b8; margin-bottom: 8px; white-space: nowrap; }
.mav-tip-svc:last-child { margin-bottom: 0; }

/* === MAV Commands List === */
.cmd-list { margin-top: 16px; }
.cmd-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 12px; }
.cmd-name { font-size: 15px; font-weight: 700; color: #1a2332; }
.cmd-service { font-size: 12px; color: #8896a7; margin-left: 8px; }
.cmd-ops { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cmd-ops .badge { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.badge-op { background: #f0f4f8; color: #3b4a5a; }
.cmd-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #5a6b7d; align-items: center; }
.cmd-meta .approver { color: #8b5cf6; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.cmd-meta .group { color: #ef4444; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.cmd-meta .channel { color: #22c55e; font-weight: 600; }
.cmd-meta svg { flex-shrink: 0; vertical-align: middle; }
.cmd-actions { display: flex; gap: 10px; margin-left: auto; }
.cmd-actions button { background: none; border: none; cursor: pointer; padding: 4px; display: flex; align-items: center; border-radius: 6px; }
.cmd-actions button:hover { background: #f1f5f9; }
.cmd-actions .delete:hover { background: #fef2f2; }

/* === Modal === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: #fff; border-radius: 16px; width: 560px; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.modal-header h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.modal-header .icon { color: #1a6dff; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; gap: 12px; }

/* === Token Modal === */
.token-code-wrapper { position: relative; margin-top: 12px; }
.token-code-block { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-radius: 10px; padding: 20px; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace; font-size: 12.5px; line-height: 1.7; overflow: auto; max-height: 400px; white-space: pre; tab-size: 2; }
.token-copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #94a3b8; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.token-copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.token-federated-msg { font-size: 13px; color: #475569; line-height: 1.5; margin-bottom: 4px; }

/* === Form === */
.form-group { margin-bottom: 20px; }
.form-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }
.form-hint { font-size: 12px; color: #1a6dff; margin-top: 4px; }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.form-input:focus { outline: none; border-color: #1a6dff; box-shadow: 0 0 0 3px rgba(26,109,255,0.1); }

/* === Accordion === */
.accordion { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-size: 14px; font-weight: 600; background: #f8fafc; }
.accordion-header:hover { background: #f0f4f8; }
.accordion-header .count-badge { background: #22c55e; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.accordion-header .tag { background: #eff6ff; color: #1a6dff; font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.accordion-body { padding: 16px 18px; border-top: 1px solid #e2e8f0; }
.accordion-chevron { transition: transform 0.2s; }
.accordion-chevron.open { transform: rotate(90deg); }

/* === Service Tree (Select Operations) === */
.svc-tree-list { border: 1px solid #e2e8f0; border-radius: 10px; overflow-x: hidden; overflow-y: auto; max-height: 600px; }
.svc-tree-item { border-bottom: 1px solid #f1f5f9; }
.svc-tree-item:last-child { border-bottom: none; }
.svc-tree-row { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; transition: background 0.15s; }
.svc-tree-row:hover { background: #f8fafc; }
.svc-tree-chevron { flex-shrink: 0; transition: transform 0.2s; }
.svc-tree-chevron.open { transform: rotate(90deg); }
.svc-tree-icon { display: flex; align-items: center; flex-shrink: 0; }
.svc-tree-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.svc-tree-count { margin-left: auto; font-size: 13px; color: #94a3b8; font-weight: 400; }
.svc-tree-ops { background: #fafbfc; border-top: 1px solid #f1f5f9; }
.svc-tree-op { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 46px; cursor: pointer; transition: background 0.15s; }
.svc-tree-op:hover { background: #f0f4f8; }
.svc-tree-op .op-checkbox { width: 18px; height: 18px; border-radius: 4px; accent-color: #1a6dff; cursor: pointer; flex-shrink: 0; }
.svc-tree-op .op-name { font-size: 14px; font-weight: 500; color: #1e293b; white-space: nowrap; }
.svc-tree-op .severity-badge { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 6px; white-space: nowrap; }
.svc-tree-op .severity-critical { background: #fef2f2; color: #ef4444; }
.svc-tree-op .severity-high { background: #fff7ed; color: #f97316; }
.svc-tree-op .op-desc { margin-left: auto; font-size: 13px; color: #94a3b8; white-space: nowrap; text-align: right; }
.svc-sel-badge { margin-left: 0; }
.edit-ops-summary { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.edit-ops-summary-text { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.edit-ops-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-op-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; background: #eff6ff; color: #2563eb; font-size: 13px; font-weight: 500; }
.edit-op-pill-x { cursor: pointer; font-size: 15px; line-height: 1; color: #93c5fd; font-weight: 700; }
.edit-op-pill-x:hover { color: #2563eb; }

/* === Legacy Operation List (for expanded commands) === */
.op-filter { width: 100%; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.service-group { margin-bottom: 8px; }
.service-header { display: flex; align-items: center; gap: 8px; padding: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.service-header .svc-icon { font-size: 18px; }
.service-header .ops-count { margin-left: auto; font-size: 12px; color: #8896a7; font-weight: 400; }
.service-header .selected-badge { background: #22c55e; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.op-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 36px; cursor: pointer; border-radius: 6px; }
.op-row:hover { background: #f8fafc; }
.severity-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.severity-critical { background: #fef2f2; color: #ef4444; }
.severity-high { background: #fff7ed; color: #f97316; }
.op-desc { margin-left: auto; font-size: 12px; color: #8896a7; }
.selected-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 12px; }
.selected-ops .chip { background: #eff6ff; color: #1a6dff; padding: 4px 10px; border-radius: 6px; display: flex; align-items: center; gap: 4px; }
.selected-ops .chip button { background: none; border: none; color: #1a6dff; cursor: pointer; font-size: 14px; }

/* === Approver List === */
.approver-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid #e2e8f0; }
.approver-tab { padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; display: flex; align-items: center; gap: 6px; color: #64748b; transition: color 0.15s; }
.approver-tab.active { color: #8b5cf6; border-bottom-color: #8b5cf6; }
.approver-tab .count { background: #f3e8ff; color: #8b5cf6; font-size: 11px; padding: 1px 6px; border-radius: 8px; }
#addApproverUsers, #addApproverGroups, #editApproverUsers, #editApproverGroups { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.approver-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f1f5f9; }
.approver-row:last-child { border-bottom: none; }
.approver-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.approver-name { font-weight: 600; font-size: 14px; color: #1e293b; }
.approver-email { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.required-row { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: #1e293b; }
.required-row select { padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: #fff; }

/* === Channel Pills === */
.channel-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.channel-pill { padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.15s; }
.channel-pill.locked { background: #1a6dff; color: #fff; border-color: #1a6dff; cursor: default; }
.channel-pill.locked.green { background: #22c55e; border-color: #22c55e; }
.channel-pill.selected { background: #eff6ff; color: #1a6dff; border-color: #1a6dff; }
.channel-pill:not(.locked):hover { border-color: #1a6dff; }
.lock-icon { font-size: 12px; }

/* === Approval Center === */
.approval-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; border-left: 3px solid #f97316; overflow: hidden; transition: all 0.2s; }
.approval-item.approved { border-left-color: #22c55e; }
.approval-item.rejected { border-left-color: #ef4444; }
.approval-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px; cursor: pointer; }
.approval-chevron { font-size: 18px; color: #94a3b8; transition: transform 0.2s; display: inline-block; line-height: 1; }
.approval-chevron.open { transform: rotate(90deg); }
.appr-status-icon { display: flex; align-items: center; flex-shrink: 0; }
.badge { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge-pending { background: #fff7ed; color: #f97316; }
.badge-approved { background: #f0fdf4; color: #22c55e; }
.badge-rejected { background: #fef2f2; color: #ef4444; }
.badge-service { background: #fef3c7; color: #d97706; }
.badge-operation { background: #eff6ff; color: #1a6dff; }
.req-id { font-size: 12px; color: #94a3b8; }
.signals-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #f97316; }
.signals-badge svg { flex-shrink: 0; }
.signals-badge-critical { color: #ef4444; background: #fef2f2; padding: 2px 10px; border-radius: 12px; }
.approval-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.approval-status { color: #22c55e; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.view-btn { background: none; border: none; color: #94a3b8; cursor: pointer; padding: 4px; display: flex; align-items: center; border-radius: 6px; }
.view-btn:hover { background: #f1f5f9; color: #475569; }
.approval-desc { padding: 0 16px 4px; font-size: 14px; font-weight: 600; color: #1e293b; }

/* === Risk Assessment Banner === */
.risk-banner { border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.risk-banner.risk-critical { background: #fef2f2; border: 1px solid #fecaca; }
.risk-banner.risk-high { background: #fff7ed; border: 1px solid #fed7aa; }
.risk-banner-header { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.risk-critical .risk-banner-header { color: #dc2626; }
.risk-high .risk-banner-header { color: #ea580c; }
.risk-reasons { margin: 0; padding-left: 28px; }
.risk-reasons li { font-size: 13px; color: #475569; line-height: 1.6; margin-bottom: 4px; }
.risk-critical .risk-reasons li { color: #7f1d1d; }

/* === Approval Detail (Expanded) === */
.approval-detail { padding: 0 16px 16px; border-top: 1px solid #f1f5f9; margin-top: 8px; }
.detail-desc { font-size: 13px; color: #64748b; margin: 12px 0 16px; line-height: 1.5; }
.harvest-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.harvest-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; font-size: 14px; color: #1e293b; }
.harvest-header svg { flex-shrink: 0; }
.harvest-header .signal-count { background: #f0fdf4; color: #22c55e; font-size: 11px; padding: 2px 8px; border-radius: 10px; display: inline-flex; align-items: center; gap: 4px; }
.signals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signal-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; }
.signal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.signal-dot.green { background: #22c55e; }
.signal-dot.amber { background: #f59e0b; }
.signal-dot.red { background: #ef4444; }
.detail-meta { display: flex; gap: 20px; font-size: 12px; color: #94a3b8; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-meta svg { flex-shrink: 0; }

/* === Rejection Flow === */
.approval-status-rejected { color: #ef4444; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; }

.reject-modal-summary { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 14px 16px; }
.reject-modal-id { font-size: 11px; color: #94a3b8; font-weight: 600; margin-bottom: 4px; }
.reject-modal-title { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.reject-modal-who { font-size: 12px; color: #64748b; }
.reject-textarea { resize: vertical; min-height: 80px; font-family: inherit; line-height: 1.5; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 6px; }
.form-error.hidden { display: none; }
.input-error { border-color: #ef4444 !important; }

.rejection-reason-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.rejection-reason-header { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #dc2626; margin-bottom: 8px; }
.rejection-reason-text { font-size: 13px; color: #7f1d1d; line-height: 1.5; margin-bottom: 8px; padding-left: 24px; }
.rejection-reason-meta { font-size: 11px; color: #94a3b8; padding-left: 24px; }
.auto-reject-tag { background: #fff7ed; color: #ea580c; padding: 1px 8px; border-radius: 4px; font-weight: 600; font-size: 10px; }

.rejection-notification { display: flex; align-items: flex-start; gap: 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; animation: slideDown 0.3s; }
.rejection-notification.hidden { display: none; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rejection-notif-icon { flex-shrink: 0; margin-top: 2px; }
.rejection-notif-body { flex: 1; }
.rejection-notif-title { font-size: 14px; font-weight: 600; color: #dc2626; margin-bottom: 4px; }
.rejection-notif-detail { font-size: 13px; color: #7f1d1d; line-height: 1.5; }
.rejection-notif-meta { font-size: 11px; color: #94a3b8; margin-top: 6px; }
.rejection-notif-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #dc2626; padding: 0 4px; flex-shrink: 0; }

.auto-reject-banner { display: flex; align-items: center; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; color: #92400e; }

/* === Auto-Reject Config Panel === */
.auto-reject-config { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; margin-top: 12px; }
.auto-reject-row { display: flex; align-items: center; gap: 10px; }
.auto-reject-row + .auto-reject-row { margin-top: 10px; }
.auto-reject-label { font-size: 13px; font-weight: 600; color: #1e293b; }
.auto-reject-sublabel { font-size: 12px; color: #64748b; }
.auto-reject-select { padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; background: #fff; color: #1e293b; cursor: pointer; }
.auto-reject-select:disabled { opacity: 0.5; cursor: not-allowed; }
.auto-reject-select:focus { outline: none; border-color: #1a6dff; box-shadow: 0 0 0 3px rgba(26,109,255,0.1); }
.auto-reject-help { font-size: 11.5px; color: #94a3b8; line-height: 1.5; margin: 10px 0 0; }
.toggle.toggle-sm { width: 36px; height: 20px; }
.toggle.toggle-sm .slider::before { height: 14px; width: 14px; }
.toggle.toggle-sm input:checked + .slider::before { transform: translateX(16px); }

/* === User Panel === */
.user-panel { position: fixed; top: 48px; right: 0; width: 320px; height: calc(100vh - 48px); background: #fff; border-left: 1px solid #e2e8f0; box-shadow: -4px 0 20px rgba(0,0,0,0.08); z-index: 110; overflow-y: auto; }
.user-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.user-panel-header h3 { font-size: 16px; }
.close-btn { background: none; border: none; font-size: 22px; cursor: pointer; color: #8896a7; }
.user-panel-body { padding: 20px; }
.user-info { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar-lg { width: 48px; height: 48px; border-radius: 50%; background: #1a6dff; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.user-name { font-weight: 700; font-size: 16px; color: #1e293b; }
.user-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.user-email { font-size: 12px; color: #8896a7; }
/* Verified-user pill rendered inline next to the name in User Settings.
   Styled to match Console badge conventions: small, rounded, low-key
   blue. The "--strong" modifier kicks in when MFA is configured to
   visually escalate the trust signal. No close button or × — this is
   a status indicator, not a chip. */
.user-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  cursor: default;
}
.user-verified-badge[hidden] { display: none; }
.user-verified-badge .user-verified-icon { color: #2563eb; flex-shrink: 0; }
.user-verified-badge--strong {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.user-verified-badge--strong .user-verified-icon { color: #047857; }
.user-meta { margin-bottom: 16px; }
.meta-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.meta-row-sub { font-size: 12px; color: #8896a7; padding: 2px 0 6px; }
.mav-status-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #e2e8f0; margin-top: 8px; }
.mav-status-left { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.mav-icon-sm { color: #1a6dff; }
.badge-enabled { background: #22c55e; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.badge-beta { background: #f0f4f8; color: #8896a7; font-size: 10px; padding: 1px 6px; border-radius: 8px; }
.pending-approvals-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff7ed; border-radius: 8px; cursor: pointer; margin: 8px 0 16px; font-weight: 600; font-size: 14px; }
.pending-count { color: #d97706; }
.chevron { color: #d97706; font-size: 20px; }
.btn-logout { width: 100%; padding: 12px; background: #1a6dff; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 16px; }

/* === Home Hero === */
.home-hero { padding: 32px 0 24px; border-bottom: 1px solid #e8ecf1; margin: -28px -40px 0; padding: 32px 48px 28px; background: #fff; }
.home-hero-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.home-hero-brand { font-size: 18px; font-weight: 700; color: #1e293b; }
.home-hero-console { font-size: 18px; font-weight: 400; color: #64748b; margin-left: -4px; }
.home-hero-text p { font-size: 15px; color: #475569; line-height: 1.6; max-width: 540px; }

/* === Home Sections === */
.home-section { margin-top: 32px; }
.home-section-title { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 16px; }

/* === Home Video Cards === */
.home-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-video-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; display: flex; overflow: hidden; min-height: 168px; transition: box-shadow 0.15s, transform 0.15s; }
.home-video-card:hover { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
.hvc-body { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.hvc-body h3 { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 12px; }
.hvc-body a { display: block; font-size: 13px; color: #3b82f6; padding: 3px 0; cursor: pointer; }
.hvc-body a:hover { text-decoration: underline; }
.hvc-thumb { width: 240px; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-color: #e2e8f0; }
.hvc-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.10) 0%, rgba(15,23,42,0.32) 100%); pointer-events: none; }
.hvc-thumb.blue { background-color: #c7d2fe; }
.hvc-thumb.teal { background-color: #a7f3d0; }
.hvc-thumb.purple { background-color: #e9d5ff; }
.hvc-thumb.dark { background-color: #1e293b; }
.hvc-play { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18); transition: transform 0.15s; }
.home-video-card:hover .hvc-play { transform: scale(1.06); }
.hvc-play svg { margin-left: 2px; }

/* === Home News Row === */
.home-news-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-news-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.news-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.news-title { font-size: 13px; font-weight: 700; color: #1e293b; flex: 1; }
.news-link { font-size: 12px; color: #3b82f6; font-weight: 600; white-space: nowrap; }
.home-news-card p { font-size: 12px; color: #64748b; line-height: 1.5; }

/* === Approval Center Header === */
.approval-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.approval-header-left { display: flex; align-items: center; gap: 10px; }
.approval-title { font-size: 20px; font-weight: 600; color: #1e293b; margin: 0; }
.approval-close { background: none; border: none; font-size: 28px; color: #94a3b8; cursor: pointer; padding: 4px 8px; line-height: 1; }
.approval-close:hover { color: #475569; }

/* === Members Page === */
.members-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.mstat-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px 16px; }
.mstat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mstat-icon.blue { background: #3b82f6; }
.mstat-icon.teal { background: #0ea5e9; }
.mstat-icon.green { background: #22c55e; }
.mstat-icon.navy { background: #1e40af; }
.mstat-val { font-size: 22px; font-weight: 700; color: #1e293b; }
.mstat-label { font-size: 12px; color: #94a3b8; }

.members-filter { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 18px; margin-bottom: 16px; font-size: 13px; color: #475569; cursor: pointer; }
.members-filter:hover { background: #f8fafc; }
.mf-left { display: flex; align-items: center; gap: 8px; }
.mf-icon { color: #3b82f6; font-size: 10px; }
.mf-selected { color: #94a3b8; }
.mf-chevron { font-size: 18px; color: #94a3b8; }

.members-tabs { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 4px; }
.mtab { padding: 10px 20px; font-size: 13px; font-weight: 500; color: #94a3b8; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.mtab.active { color: #3b82f6; border-bottom-color: #3b82f6; font-weight: 600; }
.mtab:hover { color: #1e293b; }

.members-table { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.mt-header { display: flex; align-items: center; padding: 10px 16px; background: #eff6ff; border-bottom: 1px solid #e2e8f0; }
.mt-header .mt-col { font-size: 12px; font-weight: 700; color: #3b82f6; text-transform: capitalize; }
.mt-sort { font-size: 11px; color: #94a3b8; margin-left: 4px; }
.mt-row { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-size: 13px; }
.mt-row:hover { background: #eff6ff; }
.members-table .mt-row:last-child { border-bottom: none; }

/* WIF providers list — grid rows with stacked trust/rules column */
.wif-providers-table .mt-header,
.wif-providers-table .mt-row {
  display: grid !important;
  align-items: start;
  column-gap: 14px;
}
.wif-providers-table .mt-header .mt-col,
.wif-providers-table .mt-row .mt-col {
  min-width: 0;
  text-transform: none;
  line-height: 1.4;
}
.wif-providers-table .mt-row {
  padding-top: 14px;
  padding-bottom: 14px;
}
.wif-providers-table .mt-header .mt-col {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.mt-col-name { flex: 1.5; font-weight: 500; color: #1e293b; }
.mt-col-email { flex: 2; color: #475569; }
.mt-col-active { flex: 1.2; color: #64748b; }
.mt-col-partner { flex: 1; color: #64748b; }
.mt-col-action { width: 40px; text-align: right; }
.svc-auth-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 500; }

/* === Federated Groups Tab Header === */
.fed-tab-header { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; }
.fed-tab-title { display: flex; align-items: baseline; gap: 10px; }
.fed-tab-count { font-size: 14px; font-weight: 600; color: #1e293b; }
.fed-tab-subtitle { font-size: 12px; color: #94a3b8; font-weight: 400; }
.fed-tab-actions { display: flex; gap: 10px; align-items: center; }

/* === Federated Groups Search === */
.fed-search-wrap { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 10px; min-width: 220px; transition: border-color 0.15s; }
.fed-search-wrap:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.fed-search-input { border: none; outline: none; font-size: 13px; flex: 1; background: transparent; color: #1e293b; }
.fed-search-input::placeholder { color: #94a3b8; }
.fed-search-close { background: none; border: none; font-size: 18px; color: #94a3b8; cursor: pointer; padding: 0 2px; line-height: 1; }
.fed-search-close:hover { color: #475569; }

/* === Federated Groups Table === */
.fed-col-name { flex: 1.3; font-weight: 500; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fed-col-provider { flex: 0.7; }
.fed-col-federation { flex: 2.2; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; }
.fed-col-members { flex: 0.5; text-align: center; color: #1e293b; font-weight: 600; }
.fed-col-status { flex: 0.4; text-align: center; }
.fed-col-synced { flex: 0.8; color: #64748b; font-size: 12px; }
.fed-col-divider { width: 1px; align-self: stretch; background: #e2e8f0; margin: 0 6px; flex-shrink: 0; }
.fed-groups-table .mt-header .fed-col-divider { background: #bfdbfe; }
.fed-groups-table .mt-header .mt-col { font-size: 11px; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: 0.3px; }
.fed-groups-table .mt-row { transition: background 0.1s; }
.fed-groups-table .mt-row:hover { background: #eff6ff; }
.fed-groups-table .mt-row:last-child { border-bottom: none; }

/* === Federated Provider Badges === */
.fed-provider-badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* === Federated Status Dots === */
.fed-groups-table .fed-status-dot { font-size: 14px; }
.fed-groups-table .fed-status-dot.green { color: #22c55e; }
.fed-groups-table .fed-status-dot.gray { color: #94a3b8; }
.fed-groups-table .fed-status-dot.amber { color: #f59e0b; }

/* === Federated Action Menu === */
.fed-action-menu { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); min-width: 180px; z-index: 60; padding: 4px 0; }
.fed-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: #1e293b; cursor: pointer; transition: background 0.1s; }
.fed-menu-item:hover { background: #f1f5f9; }
.fed-menu-item svg { flex-shrink: 0; color: #64748b; }
.fed-menu-danger { color: #ef4444; }
.fed-menu-danger svg { color: #ef4444; }
.fed-menu-danger:hover { background: #fef2f2; }
.fed-menu-divider { height: 1px; background: #e2e8f0; margin: 4px 0; }
.federations-table { overflow: visible; }
.federations-table .mt-row { position: relative; }

/* === Federation Stats === */
.fed-stats { display: flex; gap: 12px; margin-bottom: 20px; }
.fed-stat-group { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 20px; flex: 1; }
.fed-stat-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fed-stat-icon.blue { background: #3b82f6; }
.fed-stat-icon.amber { background: #f59e0b; }
.fed-stat-icon.teal { background: #0ea5e9; }
.fed-stat-item { text-align: center; }
.fed-stat-val { display: block; font-size: 20px; font-weight: 700; color: #1e293b; }
.fed-stat-lbl { display: block; font-size: 11px; color: #94a3b8; }
.fed-status-dot { font-size: 13px; margin-right: 4px; }
.fed-status-dot.green { color: #22c55e; }
.fed-status-dot.gray { color: #94a3b8; }
.fed-status-dot.amber { color: #f59e0b; }
.fed-conn-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.fed-conn-status.enabled { color: #059669; }
.fed-conn-status.disabled { color: #64748b; }
.fed-conn-status.draft { color: #b45309; }
.fed-conn-status .fed-status-ic { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; }

/* === MAV Assign Modal === */
.mav-assign-table-header { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.mav-assign-cb { width: 18px; height: 18px; accent-color: #3b82f6; cursor: pointer; flex-shrink: 0; }
.mav-assign-col-name { font-size: 11px; }
.mav-assign-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; cursor: pointer; border-left: 3px solid transparent; padding-left: 0; transition: background 0.1s; }
.mav-assign-row:hover { background: #f8fafc; }
.mav-assign-row.selected { border-left-color: #3b82f6; background: #eff6ff; }
.mav-assign-name { font-size: 14px; font-weight: 600; color: #1e293b; }

/* === Tab Filters === */
.tab-filters { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; }
.tab-filter { padding: 10px 20px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 500; color: #8896a7; }
.tab-filter.active { color: #1a2332; border-bottom-color: #1a6dff; font-weight: 600; }
.tab-filter:hover { color: #1a2332; }

/* === Toast === */
.toast { position: fixed; bottom: 24px; right: 24px; background: #0d2137; color: #fff; padding: 16px 20px; border-radius: 12px; display: flex; align-items: flex-start; gap: 12px; z-index: 300; box-shadow: 0 8px 32px rgba(0,0,0,0.3); min-width: 360px; animation: slideUp 0.3s; }
.toast.hidden { display: none; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast-icon { font-size: 24px; }
.toast-title { font-weight: 600; font-size: 14px; }
.toast-msg { font-size: 12px; color: #8896a7; margin-top: 4px; }
.toast-close { background: none; border: none; color: #8896a7; font-size: 18px; cursor: pointer; margin-left: 12px; }

/* === Token Modal === */
.token-code-wrapper { position: relative; margin-top: 12px; }
.token-code-block { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-radius: 10px; padding: 20px; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace; font-size: 12.5px; line-height: 1.7; overflow: auto; max-height: 420px; white-space: pre; tab-size: 2; }
.token-copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #94a3b8; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.token-copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.token-copy-btn.copied { background: #22c55e; border-color: #22c55e; color: #fff; }
.token-fed-msg { font-size: 13px; color: #475569; line-height: 1.5; }
.token-fed-msg strong { color: #1e293b; font-weight: 600; }

/* === Token Modal === */
.token-code-block { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-radius: 10px; padding: 20px; font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 12px; line-height: 1.7; overflow: auto; max-height: 400px; white-space: pre; margin: 0; }
.token-copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; color: #94a3b8; cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; z-index: 1; transition: background 0.15s, color 0.15s; }
.token-copy-btn:hover { background: rgba(255,255,255,0.2); color: #e2e8f0; }

/* === Protection Panel (reuses admin-panel, override only active state) === */
.prot-title { color: #1e293b; }
.admin-panel-item:hover .prot-title { color: #3b82f6; }

/* === Protection Hero Banner === */
.prot-hero { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 40%, #f8fafc 100%); border-radius: 12px; padding: 32px 40px; margin-bottom: 28px; min-height: 180px; }
.prot-hero-text { flex: 1; max-width: 620px; }
.prot-hero-title { font-size: 20px; font-weight: 700; color: #1e293b; margin-bottom: 12px; }
.prot-hero-body { font-size: 13px; color: #475569; line-height: 1.65; margin-bottom: 8px; }
.prot-hero-sub { font-size: 12px; color: #64748b; line-height: 1.5; }
.prot-hero-illustration { flex-shrink: 0; margin-left: 32px; }

/* === Protection Sections === */
.prot-section { margin-bottom: 32px; }
.prot-section-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 16px; }

/* === Workloads Grid === */
.workloads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.workload-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px 16px; text-align: center; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; position: relative; }
.workload-card:hover { border-color: #93c5fd; box-shadow: 0 2px 12px rgba(59,130,246,0.08); }
.workload-icon { margin-bottom: 10px; display: flex; justify-content: center; }
.workload-label { font-size: 13px; font-weight: 600; color: #1e293b; }

/* === Preview Badge === */
.preview-badge { display: inline-block; background: #3b82f6; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); }

/* === What's New Section === */
.whats-new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.whats-new-item { display: flex; gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; }
.wn-icon-wrap { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wn-icon-wrap.blue { background: #eff6ff; }
.wn-icon-wrap.amber { background: #fffbeb; }
.wn-text h3 { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.wn-text p { font-size: 12px; color: #64748b; line-height: 1.5; }
.whats-new-enhancements { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; }
.whats-new-enhancements h4 { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.whats-new-enhancements ul { padding-left: 20px; margin: 0; }
.whats-new-enhancements li { font-size: 12px; color: #64748b; line-height: 1.6; margin-bottom: 6px; }

/* === Protection Placeholder (empty state for DR, Replication, Ransomware) === */
.prot-placeholder { text-align: center; padding: 60px 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.prot-placeholder-icon { margin-bottom: 16px; }
.prot-placeholder h3 { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.prot-placeholder p { font-size: 13px; color: #64748b; max-width: 400px; margin: 0 auto; line-height: 1.5; }

/* === BnR Toolbar === */
.bnr-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bnr-toolbar-left { display: flex; align-items: center; gap: 12px; }
.bnr-toolbar-right { display: flex; align-items: center; gap: 12px; }
.bnr-select { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 500; color: #1e293b; background: #fff; cursor: pointer; }
.bnr-select:hover { border-color: #93c5fd; }
.bnr-updated { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }

/* === BnR Dashboard Grid === */
.bnr-dashboard { margin-bottom: 20px; }
.bnr-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.bnr-row-1 { margin-bottom: 16px; }
.bnr-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px 20px; }
.bnr-card-title { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 14px; }
.bnr-card-body { }

/* === Donut Chart === */
.donut-chart { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 6px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #475569; }
.legend-row strong { margin-left: auto; min-width: 16px; text-align: right; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* === Capacity Stats === */
.capacity-stat { display: flex; align-items: center; gap: 12px; }
.cap-val { font-size: 24px; font-weight: 700; color: #1e293b; }
.cap-unit { font-size: 14px; font-weight: 400; color: #64748b; }
.cap-label { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }

/* === Protected Volumes Distribution === */
.pvd-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #1e293b; }
.pvd-row:last-child { border-bottom: none; }
.pvd-label { flex: 1; font-weight: 500; }
.pvd-val { color: #64748b; font-size: 12px; min-width: 70px; text-align: right; }
.pvd-size { color: #94a3b8; font-size: 12px; min-width: 50px; text-align: right; }

/* === Volume Protection Status === */
.vps-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1e293b; }
.vps-item strong { font-size: 20px; font-weight: 700; }
.vps-label { font-size: 12px; color: #64748b; }
.vps-dot { width: 10px; height: 10px; border-radius: 50%; }
.vps-dot.green { background: #22c55e; }
.vps-dot.blue { background: #3b82f6; }
.vps-dot.amber { background: #f59e0b; }
.vps-dot.red { background: #ef4444; }

/* === BnR Filter Bar === */
.bnr-filter-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; cursor: pointer; }
.bnr-filter-bar:hover { background: #f8fafc; }
.bnr-filter-label { font-size: 13px; font-weight: 600; color: #1e293b; }
.bnr-filter-hint { font-size: 12px; color: #94a3b8; flex: 1; }
.bnr-filter-chevron { color: #94a3b8; font-size: 12px; }

/* === BnR Table === */
.bnr-table-section { }
.bnr-table-header-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bnr-table-header-bar h3 { font-size: 14px; font-weight: 600; color: #1e293b; }
.bnr-table-actions { display: flex; align-items: center; gap: 12px; }
.bnr-add-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.bnr-checkbox-label { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bnr-table { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: visible; }
.bnr-table-head { display: flex; align-items: center; padding: 10px 14px; background: #eff6ff; border-bottom: 1px solid #e2e8f0; border-radius: 10px 10px 0 0; }
.bnr-th { font-size: 11px; font-weight: 700; color: #3b82f6; text-transform: capitalize; display: flex; align-items: center; gap: 4px; }
.bnr-sort { font-size: 10px; color: #94a3b8; }
.bnr-th-cb { width: 36px; flex-shrink: 0; }
.bnr-th-name { flex: 1.8; }
.bnr-th-system { flex: 1.2; }
.bnr-th-prot { flex: 1.1; }
.bnr-th-index { flex: 0.9; }
.bnr-th-health { flex: 0.9; }
.bnr-th-svm { flex: 1.5; }
.bnr-th-tags { flex: 0.5; }
.bnr-th-type { flex: 0.4; }
.bnr-th-action { width: 36px; flex-shrink: 0; }
.bnr-table-row { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; font-size: 13px; position: relative; }
.bnr-table-row:last-child { border-bottom: none; }
.bnr-table-row:hover { background: #f8fafc; }
.bnr-td { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnr-td.bnr-th-action { overflow: visible; }
.vol-name { font-weight: 500; color: #1e293b; font-size: 13px; }
.vol-status { font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.vol-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.vol-status-dot.green { background: #22c55e; }
.vol-status-dot.gray { background: #94a3b8; }
.prot-icon-group { display: flex; gap: 8px; align-items: center; }
.prot-icon-wrap { position: relative; display: flex; align-items: center; cursor: default; }
.prot-popover { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 60; min-width: 320px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); margin-top: 8px; padding: 0; overflow: hidden; }
.prot-icon-wrap:hover .prot-popover { display: block; }
.prot-popover-title { font-size: 13px; font-weight: 600; color: #1e293b; padding: 14px 16px 12px; margin: 0; }
.prot-popover-hr { border: none; border-top: 1px solid #e2e8f0; margin: 0; }
.prot-popover-link { font-size: 13px; color: #475569; padding: 12px 16px 14px; margin: 0; }
.prot-popover-a { color: #3b82f6; font-weight: 500; cursor: pointer; text-decoration: none; }
.prot-popover-a:hover { text-decoration: underline; }
.health-ok { display: flex; align-items: center; gap: 6px; color: #1e293b; font-weight: 500; }
.idx-status { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 6px; }
.bnr-row-menu { background: none; border: 1.5px solid #e2e8f0; cursor: pointer; color: #94a3b8; padding: 4px 8px; border-radius: 20px; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s; }
.bnr-row-menu:hover { border-color: #3b82f6; background: #f8fafc; }
.vol-action-wrap { position: relative; }
.vol-action-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.12); min-width: 240px; z-index: 60; padding: 8px 0; }
.vol-menu-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 14px; color: #1e293b; cursor: pointer; transition: background 0.1s; }
.vol-menu-item:hover { background: #f1f5f9; text-decoration: none; }
.vol-menu-item.vol-menu-disabled { color: #cbd5e1; cursor: default; pointer-events: none; }
.vol-menu-chevron { font-size: 18px; color: #94a3b8; margin-left: 12px; }
.vol-menu-disabled .vol-menu-chevron { color: #e2e8f0; }

/* === Backup Strategy Wizard === */
.bsw-page { display: flex; flex-direction: column; min-height: calc(100vh - 48px); }
.bsw-header { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 48px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.bsw-header-left { display: flex; align-items: center; gap: 8px; }
.bsw-header-label { font-size: 13px; font-weight: 600; color: #1e293b; }
.bsw-stepper { display: flex; align-items: center; gap: 12px; }
.bsw-step { display: flex; align-items: center; gap: 8px; }
.bsw-step-num { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #94a3b8; }
.bsw-step-num.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.bsw-step-text { font-size: 13px; color: #475569; font-weight: 500; }
.bsw-step.active .bsw-step-text { color: #1e293b; font-weight: 600; }
.bsw-step-line { width: 40px; height: 2px; background: #e2e8f0; }
.bsw-close { background: none; border: none; font-size: 24px; color: #94a3b8; cursor: pointer; padding: 4px 8px; line-height: 1; }
.bsw-close:hover { color: #475569; }

.bsw-body { flex: 1; display: flex; flex-direction: column; background: #f8fafc; overflow-y: auto; }
.bsw-content { max-width: 100%; margin: 0; padding: 32px 40px 24px; width: 100%; box-sizing: border-box; }
.bsw-heading { font-size: 18px; font-weight: 700; color: #1e293b; text-align: center; margin-bottom: 6px; }
.bsw-sub { font-size: 13px; color: #64748b; text-align: center; margin-bottom: 4px; }
.bsw-sub strong { color: #1e293b; }
.bsw-desc { font-size: 12px; color: #94a3b8; text-align: center; margin-bottom: 28px; }

/* Protection option cards */
.bsw-options { display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; }
.bsw-option-card { position: relative; width: 160px; height: 110px; border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px 16px 16px; text-align: center; cursor: pointer; transition: border-color 0.15s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.bsw-option-card.selected { border-color: #3b82f6; }
.bsw-option-card:hover { border-color: #93c5fd; }
.bsw-option-check { position: absolute; top: 8px; right: 8px; }
.bsw-option-icon { margin: 0 auto 10px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bsw-option-icon.blue { background: #eff6ff; }
.bsw-option-label { font-size: 12px; font-weight: 600; color: #1e293b; }

/* Wizard sections */
.bsw-section { border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 20px; }
.bsw-section-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 12px; }
.bsw-field-row { display: flex; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: background 0.1s; }
.bsw-field-row:hover { background: #f8fafc; }
.bsw-field-row.disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.bsw-field-label { flex: 1; font-size: 13px; color: #1e293b; min-width: 180px; }
.bsw-field-label strong { font-weight: 600; }
.bsw-field-row.disabled .bsw-field-label { color: #94a3b8; }
.bsw-field-value { font-size: 13px; color: #475569; flex: 2; text-align: left; }
.bsw-field-value.muted { color: #94a3b8; }
.bsw-field-chevron { color: #94a3b8; font-size: 18px; margin-left: 16px; flex-shrink: 0; line-height: 1; }
.bsw-action-required { display: flex; align-items: center; gap: 6px; color: #3b82f6; font-weight: 500; }
.bsw-labels-badge { display: inline-block; padding: 2px 10px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 11px; color: #475569; margin-left: 8px; }

/* Expandable panels */
.bsw-expand { padding: 16px 0; }
.bsw-expand.hidden { display: none; }
.bsw-expand-sub { font-size: 13px; color: #64748b; margin-bottom: 16px; padding-left: 16px; }
.bsw-field-chevron svg { transition: transform 0.2s; }

/* Architecture data flow cards */
.bsw-dataflow-cards { display: flex; gap: 20px; }
.bsw-dataflow-card { flex: 1; border: 2px solid #e2e8f0; border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: border-color 0.15s; background: #fff; }
.bsw-dataflow-card.selected { border-color: #3b82f6; background: #f0f7ff; }
.bsw-dataflow-card:hover { border-color: #93c5fd; }
.bsw-dataflow-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bsw-dataflow-title { font-size: 13px; font-weight: 600; color: #1e293b; }
.bsw-dataflow-diagram { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 140px; }

/* Fanout diagram */
.bsw-df-row { display: flex; justify-content: center; gap: 40px; align-items: center; }
.bsw-df-label-sm { font-size: 10px; color: #64748b; font-weight: 500; }
.bsw-df-connectors { gap: 12px; }
.bsw-df-vline { width: 1px; height: 30px; background: #94a3b8; }
.bsw-df-center { display: flex; flex-direction: column; align-items: center; }
.bsw-df-bottom { gap: 32px; margin-top: 4px; }
.bsw-df-node { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bsw-df-label { font-size: 10px; color: #475569; text-align: center; line-height: 1.3; }

/* Cascading diagram */
.bsw-df-cascade { align-items: flex-start; }
.bsw-df-cascade-row { display: flex; align-items: center; gap: 8px; justify-content: center; width: 100%; padding: 16px 0; }
.bsw-df-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bsw-df-arrow-label { font-size: 10px; color: #3b82f6; font-weight: 500; }

/* Snapshot policy layout */
.bsw-snapshot-layout { display: flex; gap: 0; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; overflow: hidden; }
.bsw-snapshot-left { flex: 1; border-right: 1px solid #e2e8f0; }
.bsw-snapshot-right { flex: 1.4; padding: 16px 20px; display: flex; flex-direction: column; }
.bsw-policy-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bsw-policy-table th { text-align: left; padding: 10px 16px; font-weight: 600; color: #475569; border-bottom: 1px solid #e2e8f0; font-size: 12px; }
.bsw-policy-table td { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.bsw-policy-table tr { cursor: pointer; transition: background 0.1s; }
.bsw-policy-table tbody tr:hover { background: #f8fafc; }
.bsw-policy-table tbody tr.selected { background: #eff6ff; }
.bsw-policy-table td:first-child { display: flex; align-items: center; gap: 8px; }
.bsw-radio { flex-shrink: 0; }
.bsw-default-badge { display: inline-block; padding: 1px 8px; background: #3b82f6; color: #fff; border-radius: 4px; font-size: 11px; font-weight: 600; margin-left: 4px; }
.bsw-label-detail { flex: 1; }
.bsw-label-item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.bsw-label-item:last-child { border-bottom: none; }
.bsw-label-item p { font-size: 12px; color: #475569; margin: 2px 0; }
.bsw-label-item p strong { color: #1e293b; }
.bsw-create-policy-btn { font-size: 12px; padding: 6px 16px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #1e293b; cursor: pointer; font-weight: 500; flex-shrink: 0; }
.bsw-create-policy-btn:hover { background: #f8fafc; border-color: #94a3b8; }

/* Expand header row (subtitle + button) */
.bsw-expand-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; }
.bsw-expand-header .bsw-expand-sub { margin: 0; padding: 0; }

/* Full-width policy table */
.bsw-policy-table-full { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }

/* Labels hover popover */
.bsw-labels-hover-wrap { position: relative; display: inline-block; }
.bsw-labels-popover { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 340px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 8px 16px; margin-top: 6px; }
.bsw-labels-hover-wrap:hover .bsw-labels-popover { display: block; }

/* Replication form */
.bsw-repl-form { padding: 0 16px; }
.bsw-repl-heading { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 12px; }
.bsw-repl-dropdowns { display: flex; gap: 16px; margin-bottom: 16px; }
.bsw-repl-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bsw-repl-label { font-size: 11px; font-weight: 500; color: #64748b; }
.bsw-select { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; color: #1e293b; background: #fff; cursor: pointer; appearance: auto; }
.bsw-select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
.bsw-select-placeholder { color: #94a3b8; }
.bsw-advanced-toggle { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #475569; cursor: pointer; padding: 4px 0; margin-bottom: 4px; }
.bsw-advanced-toggle:hover { color: #1e293b; }
.bsw-advanced-toggle svg { transition: transform 0.2s; }
.bsw-advanced-toggle.open svg { transform: rotate(180deg); }
.bsw-repl-policy-list { max-height: 420px; overflow-y: auto; }

/* Inline radio options (backup destination) */
.bsw-radio-row { display: flex; align-items: center; gap: 24px; padding: 8px 16px; }
.bsw-radio-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #475569; }
.bsw-radio-option.selected { color: #1e293b; font-weight: 500; }

.bsw-footer { padding: 16px 24px; border-top: 1px solid #e2e8f0; background: #fff; display: flex; justify-content: center; flex-shrink: 0; }
.bsw-footer .btn { min-width: 140px; justify-content: center; }
.bsw-footer-review { gap: 12px; }

/* Stepper completed state */
.bsw-step-check { display: flex; align-items: center; justify-content: center; }
.bsw-step-line-done { background: #22c55e; }

/* Review page */
.bsw-review-content { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 32px 40px; }
.bsw-review-content .bsw-heading { margin-bottom: 28px; }

/* Topology diagram */
.bsw-topology { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; max-width: 680px; }
.bsw-topo-primary { display: flex; justify-content: center; }
.bsw-topo-card { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden; }
.bsw-topo-card-primary { min-width: 320px; }
.bsw-topo-card-header { display: flex; align-items: center; gap: 12px; padding: 16px; }
.bsw-topo-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bsw-topo-icon.blue { background: #eff6ff; }
.bsw-topo-card-info { display: flex; align-items: center; flex: 1; gap: 16px; }
.bsw-topo-card-left { display: flex; flex-direction: column; }
.bsw-topo-card-right { border-left: 1px solid #e2e8f0; padding-left: 16px; display: flex; flex-direction: column; align-items: center; }
.bsw-topo-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.bsw-topo-role { font-size: 11px; color: #64748b; }
.bsw-topo-vol-count { font-size: 20px; font-weight: 700; color: #1e293b; line-height: 1; }
.bsw-topo-vol-label { font-size: 11px; color: #64748b; }
.bsw-topo-snapshot { padding: 10px 16px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.bsw-topo-snap-name { font-size: 12px; font-weight: 600; color: #1e293b; display: block; }
.bsw-topo-snap-label { font-size: 11px; color: #64748b; }

/* Arrows */
.bsw-topo-arrows { display: flex; justify-content: center; gap: 200px; padding: 4px 0; }
.bsw-topo-arrow-left, .bsw-topo-arrow-right { display: flex; align-items: center; }

/* Target cards row */
.bsw-topo-targets { display: flex; gap: 24px; justify-content: center; width: 100%; }
.bsw-topo-card-secondary, .bsw-topo-card-backup { flex: 1; max-width: 320px; }
.bsw-topo-card-header > div { display: flex; flex-direction: column; }
.bsw-topo-policy { padding: 10px 16px; border-top: 1px solid #e2e8f0; background: #f8fafc; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bsw-topo-policy-name { font-size: 12px; font-weight: 600; color: #1e293b; }
.bsw-topo-policy-type { font-size: 11px; color: #64748b; width: 100%; }

/* Checkbox */
.bsw-review-checkbox { margin-top: 32px; }
.bsw-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; cursor: pointer; }
.bsw-checkbox { width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer; }

/* Outline button for Previous */
.btn-outline { background: #fff; color: #1e293b; border: 1px solid #e2e8f0; padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; }
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }

/* === MAV Approval Request Modal === */
.mav-approval-modal { background: #fff; border-radius: 12px; width: 520px; max-width: 95vw; box-shadow: 0 20px 60px rgba(0,0,0,.18); overflow: hidden; animation: modalFadeIn .2s ease; }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.mav-approval-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #e2e8f0; background: #fffbeb; }
.mav-approval-modal-title { font-size: 15px; font-weight: 600; color: #92400e; }
.mav-approval-modal-close { background: none; border: none; font-size: 22px; color: #94a3b8; cursor: pointer; line-height: 1; padding: 0 2px; }
.mav-approval-modal-close:hover { color: #475569; }
.mav-approval-modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.mav-approval-info-banner { display: flex; align-items: flex-start; gap: 10px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #1e40af; line-height: 1.5; }
.mav-approval-info-banner svg { flex-shrink: 0; margin-top: 1px; }
.mav-approval-field { display: flex; flex-direction: column; gap: 4px; }
.mav-approval-field label { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .3px; }
.mav-approval-value { font-size: 14px; color: #1e293b; padding: 8px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.mav-approval-textarea { font-size: 13px; color: #1e293b; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 6px; resize: vertical; font-family: inherit; outline: none; transition: border-color .15s; }
.mav-approval-textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.mav-approval-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #e2e8f0; background: #f8fafc; }

/* MAV Toast notification */
.mav-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #fff; border: 1px solid #d1fae5; border-left: 4px solid #22c55e; border-radius: 8px; padding: 14px 20px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #1e293b; box-shadow: 0 8px 30px rgba(0,0,0,.12); opacity: 0; transition: opacity .3s, transform .3s; z-index: 10000; max-width: 600px; }
.mav-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === Responsive === */
/* === Org Switcher & Watchlist Panels === */
.org-switcher-panel { position: fixed; top: 48px; right: 260px; width: 340px; max-height: calc(100vh - 60px); background: #fff; border: 1px solid #e2e8f0; border-radius: 0 0 12px 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); z-index: 120; overflow-y: auto; }
.org-switcher-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; }
.org-switcher-header h3 { font-size: 14px; font-weight: 700; }
.org-switcher-body { padding: 8px 0; max-height: 400px; overflow-y: auto; }
.org-switcher-footer { padding: 10px 18px; border-top: 1px solid #e2e8f0; text-align: center; }
.org-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; cursor: pointer; transition: background 0.1s; }
.org-row:hover { background: #f1f5f9; }
.org-row.active { background: #eff6ff; border-left: 3px solid #0067c5; }
.org-row-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.org-row-info { flex: 1; min-width: 0; }
.org-row-name { font-size: 13px; font-weight: 600; color: #1e293b; display: flex; align-items: center; gap: 6px; }
.org-row-meta { font-size: 11px; color: #94a3b8; }
.org-badge-csm { background: #0e7a90; color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.org-badge-invited { background: #d97706; color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.org-badge-verified { background: #059669; color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.org-badge-unverified { background: #94a3b8; color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }

.wl-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; cursor: pointer; transition: background 0.1s; }
.wl-row:hover { background: #f1f5f9; }
.wl-row.active { background: #f0fdfa; border-left: 3px solid #0e7a90; }
.wl-section-label { padding: 8px 18px 4px; font-size: 10px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* === MFA Setup Wizard === */
.mfa-stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto 8px; }
.mfa-step { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border: 2px solid #cbd5e1; color: #94a3b8; background: #fff; }
.mfa-step.active { border-color: #0067C5; background: #0067C5; color: #fff; }
.mfa-step.done { border-color: #0067C5; background: #fff; color: #0067C5; }
.mfa-step-line { width: 60px; height: 2px; background: #cbd5e1; }
.mfa-step-line.done { background: #0067C5; }

.mfa-input { width: 100%; padding: 10px 14px; font-size: 15px; border: 2px solid #cbd5e1; border-radius: 6px; outline: none; box-sizing: border-box; color: #1e293b; background: #fff; transition: border-color 0.15s; }
.mfa-input:focus { border-color: #0067C5; }
.mfa-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; color: #dc2626; }

.mfa-qr-container { display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; min-height: 180px; }
.mfa-qr-loading { font-size: 13px; color: #94a3b8; }

.mfa-recovery-banner { display: flex; gap: 10px; padding: 12px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; margin-bottom: 16px; font-size: 13px; color: #1e293b; line-height: 1.5; }
.mfa-recovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding: 16px 20px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.mfa-recovery-grid ul { list-style: disc; padding-left: 18px; margin: 0; }
.mfa-recovery-grid li { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 14px; font-weight: 600; color: #1e293b; padding: 3px 0; }

.mfa-badge-enabled { background: #dcfce7; color: #16a34a; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 10px; }

.mfa-actions-wrapper { position: relative; display: inline-block; }
.mfa-dots-btn { background: none; border: 1px solid #cbd5e1; border-radius: 14px; padding: 2px 10px; font-size: 16px; color: #475569; cursor: pointer; line-height: 1; letter-spacing: 1px; transition: background 0.15s; }
.mfa-dots-btn:hover { background: #f1f5f9; }
.mfa-actions-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.10); min-width: 200px; z-index: 100; padding: 4px 0; }
.mfa-actions-menu.hidden { display: none; }
.mfa-actions-menu a { display: block; padding: 9px 16px; font-size: 13px; color: #334155; text-decoration: none; transition: background 0.12s; }
.mfa-actions-menu a:hover { background: #f1f5f9; }
.mfa-actions-menu a.mfa-action-danger { color: #dc2626; }
.mfa-actions-menu a.mfa-action-danger:hover { background: #fef2f2; }

.mfa-option-card { flex: 1; border: 2px solid #e2e8f0; border-radius: 8px; padding: 20px; cursor: pointer; position: relative; transition: border-color 0.15s, box-shadow 0.15s; text-align: center; }
.mfa-option-card:hover { border-color: #94a3b8; }
.mfa-option-selected { border-color: #0067C5; box-shadow: 0 0 0 1px #0067C5; }
.mfa-option-check { position: absolute; top: 10px; right: 10px; }

.mfa-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; z-index: 9999; box-shadow: 0 4px 16px rgba(0,0,0,.15); animation: mfaToastIn 0.3s ease; }
@keyframes mfaToastIn { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.btn-primary { padding: 8px 20px; font-size: 14px; font-weight: 600; color: #fff; background: #0067C5; border: none; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.btn-primary:hover { background: #0055a3; }
.btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-secondary { padding: 8px 20px; font-size: 14px; font-weight: 500; color: #0067C5; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.btn-secondary:hover { background: #f1f5f9; }
.btn-success { padding: 8px 20px; font-size: 14px; font-weight: 600; color: #fff; background: #16a34a; border: none; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.btn-success:hover { background: #15803d; }
.btn-download { display: inline-flex; align-items: center; padding: 6px 16px; font-size: 13px; font-weight: 600; color: #1e293b; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.btn-download:hover { background: #e2e8f0; }

/* Mail settings */
.mail-providers { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:24px; }
.mail-provider { cursor:pointer; }
.mail-provider.selected, .mail-provider.active { border-color:#1a6dff; }
.mail-form-row { display:flex; gap:16px; }
.ses-region-btn { padding:6px 14px; font-size:12px; font-weight:500; color:#475569; background:#f1f5f9; border:1px solid #e2e8f0; border-radius:8px; cursor:pointer; transition:all 0.15s; }
.ses-region-btn:hover { background:#e2e8f0; }
.ses-region-btn.active { background:#1a6dff; color:#fff; border-color:#1a6dff; }

.mail-how-it-works { margin-top:24px; border:1px solid #e2e8f0; border-left:4px solid #1a6dff; border-radius:8px; background:#f8fafc; }
.mail-how-it-works summary { padding:14px 18px; font-size:14px; font-weight:600; color:#1e293b; cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px; }
.mail-how-it-works summary::-webkit-details-marker { display:none; }
.mail-how-it-works summary::before { content:''; display:inline-block; width:6px; height:6px; border-right:2px solid #475569; border-bottom:2px solid #475569; transform:rotate(-45deg); transition:transform 0.2s ease; flex-shrink:0; }
.mail-how-it-works[open] summary::before { transform:rotate(45deg); }
.mail-how-it-works ul { margin:0 18px 14px; padding-left:18px; font-size:13px; color:#5a6b7d; line-height:1.8; }

/* === Service account credentials modal === */
.svc-creds-modal .svc-creds-summary { font-size: 13.5px; color: #334155; line-height: 1.55; margin-bottom: 18px; }
.svc-creds-modal .svc-creds-summary p { margin: 0 0 6px; }
.svc-creds-modal .svc-creds-summary strong { color: #0f172a; font-weight: 700; }
.svc-creds-row { display: flex; align-items: stretch; gap: 8px; margin-top: 6px; }
.svc-creds-row .mfa-input { flex: 1; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12.5px; background: #f8fafc; color: #0f172a; }
.svc-creds-iconbtn { width: 38px; height: 38px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.12s, border-color 0.12s; }
.svc-creds-iconbtn:hover { background: #f1f5f9; border-color: #94a3b8; }
.svc-creds-iconbtn:active { background: #e2e8f0; }
.svc-creds-token-block { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.svc-creds-token-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.svc-creds-curl { background: #0f172a; color: #e2e8f0; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; padding: 12px 14px; border-radius: 8px; overflow-x: auto; line-height: 1.55; margin: 0; white-space: pre; }
.svc-creds-test-result { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f1f5f9; border: 1px solid #cbd5e1; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; color: #0f172a; white-space: pre-wrap; word-break: break-all; }

/* === NCL break-glass user (Members) === */
.bg-banner { display: flex; align-items: flex-start; gap: 14px; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid transparent; }
.bg-banner-inactive { background: #fffbeb; border-color: #fde68a; }
.bg-banner-active { background: #ecfdf5; border-color: #a7f3d0; }
.bg-banner-icon { font-size: 20px; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.bg-banner-body { flex: 1; min-width: 0; }
.bg-banner-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.bg-banner-text { font-size: 13px; color: #475569; line-height: 1.55; }
.bg-banner-btn { flex-shrink: 0; align-self: center; }
.bg-banner-note { font-size: 12px; color: #92400e; align-self: center; white-space: nowrap; }
.bg-pinned-row { background: #fafbff; border-left: 3px solid #1a6dff; }
.bg-pinned-row:hover td, .bg-pinned-row:hover .mt-col { background: #f1f5ff !important; }
.bg-user-name { font-weight: 600; color: #0f172a; margin-right: 8px; }
.bg-built-in-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 9999px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; vertical-align: middle; }
.bg-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #334155; margin-right: 8px; }
.bg-auth-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.bg-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 9999px; }
.bg-status-inactive { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.bg-status-active { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.bg-modal { width: 520px; max-width: 95vw; }
.bg-info-callout { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 3px solid #1a6dff; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #1e3a5f; line-height: 1.55; margin-bottom: 16px; }
.bg-info-warn { background: #fffbeb; border-color: #fde68a; border-left-color: #d97706; color: #78350f; }
.bg-field { margin-bottom: 14px; }
.bg-field label { display: block; font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.bg-field .input { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.bg-field .input:focus { outline: none; border-color: #1a6dff; box-shadow: 0 0 0 3px rgba(26,109,255,.12); }
.bg-hint { font-size: 11.5px; color: #64748b; margin-top: 5px; }
.bg-check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: #475569; line-height: 1.5; margin-top: 6px; cursor: pointer; }
.bg-check input { margin-top: 3px; accent-color: #1a6dff; flex-shrink: 0; }
.bg-error { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px; }
.bg-error.hidden { display: none; }
.bg-details { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 13px; }
.bg-details dt { font-weight: 600; color: #64748b; }
.bg-details dd { color: #1e293b; margin: 0; }
.bg-details code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 900px) {
  .toggle-cards { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .signals-grid { grid-template-columns: 1fr; }
  .workloads-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .whats-new-grid { grid-template-columns: 1fr; }
  .prot-hero { flex-direction: column; }
  .prot-hero-illustration { margin-left: 0; margin-top: 20px; }
}

/* =========================================================
   Storage > Management — shared page layout
   ========================================================= */

/* Page header with titles + actions split */
.ph-titles h1 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.ph-titles .subtitle { font-size: 13px; color: #64748b; margin: 0; max-width: 640px; }
.ph-actions { display: flex; gap: 8px; flex-shrink: 0; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

/* Canonical section: standard header + table wrapper */
.canonical-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.canonical-section-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e8ecf1; }
.canonical-section-head h3 { font-size: 13px; font-weight: 600; margin: 0; }
.canonical-section-head-actions { display: flex; align-items: center; gap: 6px; }

/* icon-btn-sm — small square icon button (search, download, columns) */
.icon-btn-sm { width: 30px; height: 30px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #475569; flex-shrink: 0; }
.icon-btn-sm:hover { background: #f1f5f9; color: #1e293b; }

/* Inline search widget (reused across fleets / classes / policies) */
.cs-search-wrap { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 2px 6px; background: #fff; }
.cs-search-input { border: none; outline: none; font-size: 13px; width: 200px; background: transparent; color: #1e293b; }
.cs-search-clear { background: none; border: none; cursor: pointer; color: #94a3b8; padding: 0; display: flex; align-items: center; }
.cs-search-clear:hover { color: #475569; }

/* Canonical table */
.canonical-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.canonical-table thead tr { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.canonical-table th { padding: 9px 14px; font-size: 12px; font-weight: 600; color: #64748b; text-align: left; white-space: nowrap; }
.canonical-table th.sortable { cursor: pointer; user-select: none; }
.canonical-table th.sortable:hover { color: #1e293b; }
.canonical-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.canonical-table tbody tr:last-child { border-bottom: none; }
.canonical-table tbody tr:hover { background: #f8fafc; }
.canonical-table td { padding: 10px 14px; color: #1e293b; vertical-align: middle; }
.canonical-table .kebab-col { width: 40px; text-align: center; }
.canonical-table .col-config-col { width: 36px; text-align: center; padding: 0 8px; }
.hdr-with-funnel { white-space: nowrap; }
.hdr-sort { opacity: 0.45; margin-left: 2px; vertical-align: middle; }
.th-cell { display: inline-flex; align-items: center; gap: 4px; }
.th-label { display: inline; }
.th-sort { display: inline-flex; flex-direction: column; gap: 1px; margin-left: 2px; }
.sort-tri { fill: #94a3b8; }
.sort-tri.on { fill: #1e293b; }
.cell-link { color: #1a6dff; cursor: pointer; text-decoration: none; font-size: 13px; }
.cell-link:hover { text-decoration: underline; }

/* btn-secondary */
.btn-secondary { background: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }

/* kebab row button + popover */
.kebab-btn { background: none; border: none; cursor: pointer; color: #94a3b8; padding: 4px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.kebab-btn:hover { color: #1e293b; background: #f1f5f9; }
.kebab-popover { position: fixed; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); padding: 4px 0; min-width: 200px; z-index: 300; }
.kebab-popover-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px; font-size: 13px; background: none; border: none; cursor: pointer; color: #1e293b; text-align: left; }
.kebab-popover-item:hover { background: #f8fafc; }
.kebab-popover-item.is-danger { color: #dc2626; }
.kebab-popover-item.is-disabled { color: #94a3b8; cursor: not-allowed; }
.kebab-popover-sep { margin: 4px 0; border: none; border-top: 1px solid #f1f5f9; }
.kebab-popover-tip { font-size: 11.5px; color: #64748b; padding: 4px 14px 8px; line-height: 1.5; }

/* empty-state for tables */
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; color: #94a3b8; text-align: center; }
.empty-state h4 { font-size: 14px; font-weight: 600; color: #475569; margin: 10px 0 4px; }
.empty-state p { font-size: 12px; color: #94a3b8; margin: 0; }

/* =========================================================
   Systems — gallery view
   ========================================================= */
.sys-gallery { display: flex; flex-direction: column; height: 100%; }
.sys-filter-strip { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sys-scope-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.sys-scope-label { color: #64748b; }
.sys-scope-val { color: #1e293b; font-size: 13px; }
.sys-view-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

.sys-gallery-layout { display: flex; gap: 16px; align-items: flex-start; flex: 1; }
.sys-canvas { flex: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; min-height: 360px; position: relative; overflow: hidden; }
.sys-canvas-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.sys-canvas-content { display: flex; flex-wrap: wrap; gap: 16px; }

.sys-cloud-card { width: 205px; background: #fff; border: 1px solid #d1e3ff; border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 1px 6px rgba(84,152,224,0.12); cursor: pointer; transition: box-shadow 0.15s, transform 0.1s; position: relative; }
.sys-cloud-card:hover { box-shadow: 0 4px 16px rgba(84,152,224,0.22); transform: translateY(-1px); }
.sys-cloud-inner { display: flex; flex-direction: column; gap: 6px; }
.sys-cloud-name { font-size: 12.5px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-cloud-type { font-size: 11px; color: #64748b; }
.sys-cloud-stat { margin-top: 8px; }
.sys-cloud-stat-val { font-size: 14px; font-weight: 600; color: #1e293b; }
.sys-cloud-stat-sub { font-size: 11px; color: #94a3b8; }
.sys-cloud-provider-icon { position: absolute; bottom: 10px; right: 10px; }

.sys-zoom-controls { position: absolute; bottom: 14px; left: 14px; display: flex; flex-direction: column; gap: 2px; }
.sys-zoom-btn { width: 26px; height: 26px; border: 1px solid #e2e8f0; border-radius: 4px; background: #fff; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: #475569; }
.sys-zoom-btn:hover { background: #f1f5f9; }

.sys-summary { width: 210px; flex-shrink: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.sys-summary-header { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.sys-summary-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sys-summary-count { font-size: 28px; font-weight: 700; color: #1e293b; line-height: 1; }
.sys-summary-label { font-size: 11px; color: #64748b; margin-top: 4px; }
.sys-summary-cap { text-align: right; }
.sys-summary-cap-val { font-size: 18px; font-weight: 700; color: #1e293b; }
.sys-summary-cap-unit { font-size: 12px; color: #64748b; margin-left: 2px; }
.sys-summary-cap-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* =========================================================
   Add Fleet — full-page wizard
   ========================================================= */
.addfleet-page { display: flex; flex-direction: column; height: calc(100vh - 48px); background: #f8fafc; }
.addfleet-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.addfleet-title { font-size: 16px; font-weight: 600; color: #1e293b; }
.addfleet-close { width: 34px; height: 34px; }
.addfleet-body { flex: 1; overflow-y: auto; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.addfleet-footer { display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: #fff; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
.addfleet-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; }
.addfleet-section-label { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 16px; }
.addfleet-field-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.addfleet-field-label { font-size: 13px; font-weight: 500; color: #475569; width: 100px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.addfleet-folder-wrap { display: flex; align-items: center; gap: 0; flex: 1; position: relative; }
.addfleet-input { font-size: 13px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%; }
.input:focus { outline: 2px solid #3b82f6; outline-offset: -1px; border-color: #3b82f6; }
.addfleet-input-clear, .addfleet-input-chev { position: absolute; right: 28px; background: none; border: none; cursor: pointer; color: #94a3b8; padding: 0 2px; display: flex; align-items: center; }
.addfleet-input-chev { right: 8px; pointer-events: none; }
.addfleet-name-desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.addfleet-field { display: flex; flex-direction: column; gap: 6px; }
.addfleet-field-label-row { display: flex; align-items: center; justify-content: space-between; }
.addfleet-textarea { resize: vertical; min-height: 68px; font-size: 13px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%; font-family: inherit; }
.addfleet-counter { font-size: 11px; color: #94a3b8; text-align: right; margin-top: 4px; }
.optional-label { font-size: 11px; color: #94a3b8; }
.addfleet-systems-table td { padding: 8px 14px; }
.addfleet-cb-col { width: 40px; }
.addfleet-cb-cell { display: flex; align-items: center; gap: 2px; }
.addfleet-select-menu { background: none; border: none; cursor: pointer; color: #94a3b8; padding: 0; display: flex; align-items: center; }

/* =========================================================
   Storage Classes — kebab popover (inline, relative)
   ========================================================= */
.sc-kebab-wrap { position: relative; display: inline-flex; }
.sc-kebab-popover { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 4px 0; min-width: 140px; z-index: 200; }
.sc-kebab-item { display: block; width: 100%; padding: 8px 14px; font-size: 13px; background: none; border: none; cursor: pointer; color: #1e293b; text-align: left; }
.sc-kebab-item:hover { background: #f8fafc; }
.sc-kebab-item-danger { color: #dc2626; }

/* =========================================================
   Storage Policies — tab strip
   ========================================================= */
.sc-detail-tabs.sp-tabs { display: flex; gap: 0; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; }
.sc-tab { padding: 10px 18px; font-size: 13px; font-weight: 500; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; color: #64748b; margin-bottom: -1px; }
.sc-tab:hover { color: #1e293b; }
.sc-tab.active { color: #1a6dff; border-bottom-color: #1a6dff; font-weight: 600; }
.sc-detail-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 20px; color: #94a3b8; }

/* =========================================================
   Add Storage Class — wizard
   ========================================================= */
.wizard-page { display: flex; flex-direction: column; height: calc(100vh - 48px); background: #f8fafc; }
.wizard-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.wizard-header-title { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0; }
.wizard-header-close { background: none; border: none; cursor: pointer; color: #64748b; padding: 4px; border-radius: 4px; display: flex; align-items: center; }
.wizard-header-close:hover { color: #1e293b; background: #f1f5f9; }
.wizard-body { flex: 1; overflow-y: auto; padding: 32px; }
.wizard-body-inner { max-width: 640px; margin: 0 auto; }
.wizard-footer { display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: #fff; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
.av-assistant-card { display: flex; align-items: flex-start; gap: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.av-assistant-icon { flex-shrink: 0; }
.av-assistant-desc { font-size: 13px; color: #475569; margin: 0; line-height: 1.6; }
.addsc-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; }
.addsc-section-label { font-size: 13px; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.addsc-row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.addsc-label { font-size: 13px; color: #475569; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.addsc-input, .addsc-select { font-size: 13px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%; font-family: inherit; background: #fff; }

/* =========================================================
   Systems page — matches live NCL layout
   ========================================================= */
.sys-page { display: flex; flex-direction: column; height: 100%; }

/* =========================================================
   Federation configure wizard (identity-access/federation/new)
   ========================================================= */
.fed-wiz-page { display: flex; flex-direction: column; height: calc(100vh - 48px); background: #f8fafc; margin: -24px -28px; }
.fed-wiz-header { display: flex; align-items: center; padding: 0 32px; height: 56px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; position: relative; }
.fed-wiz-header-inner { display: flex; align-items: center; flex: 1; overflow: hidden; gap: 4px; }
.fed-wiz-nav-chev { background: none; border: none; color: #64748b; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.fed-wiz-close { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #64748b; font-size: 18px; width: 30px; height: 30px; border-radius: 6px; }
.fed-wiz-close:hover { background: #f1f5f9; color: #0f172a; }
.fed-wiz-progress { height: 3px; background: #e2e8f0; flex-shrink: 0; }
.fed-wiz-progress-fill { height: 100%; background: #1a6dff; transition: width .25s; width: 16.66%; }
.fed-wiz-stepper { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; }
.fed-wiz-stepper::-webkit-scrollbar { display: none; }
.fed-wiz-step-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #64748b; white-space: nowrap; padding: 0 12px; cursor: pointer; }
.fed-wiz-s-num { width: 22px; height: 22px; border-radius: 9999px; border: 2px solid #cbd5e1; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.fed-wiz-step-item.done { color: #004a8f; }
.fed-wiz-step-item.done .fed-wiz-s-num { background: #1a6dff; border-color: #1a6dff; color: #fff; font-size: 0; }
.fed-wiz-step-item.done .fed-wiz-s-num::after { content: '✓'; font-size: 12px; }
.fed-wiz-step-item.current { color: #004a8f; font-weight: 600; }
.fed-wiz-step-item.current .fed-wiz-s-num { background: #004a8f; border-color: #004a8f; color: #fff; }
.fed-wiz-step-sep { width: 28px; height: 2px; background: #cbd5e1; flex-shrink: 0; }
.fed-wiz-step-sep.done { background: #1a6dff; }
.fed-wiz-body { flex: 1; overflow-y: auto; padding: 36px 20px 120px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.fed-wiz-step { display: none; width: 100%; flex-direction: column; align-items: center; }
.fed-wiz-step.active { display: flex; }
.fed-wiz-title { font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 6px; text-align: center; width: 100%; }
.fed-wiz-sub { font-size: 13px; color: #64748b; margin-bottom: 26px; text-align: center; line-height: 1.55; max-width: 520px; width: 100%; }
.fed-wiz-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; width: 100%; max-width: 560px; overflow: hidden; }
.fed-wiz-card.wide { max-width: 720px; }
.fed-wiz-card-body { padding: 24px 28px; }
.fed-wiz-field { margin-bottom: 18px; }
.fed-wiz-field label { display: block; font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.fed-wiz-req { color: #dc2626; }
.fed-wiz-input,
.fed-wiz-page .fed-wiz-input.input,
.fed-wiz-page select.fed-wiz-input,
.fed-wiz-page textarea.fed-wiz-input {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
.fed-wiz-page textarea.fed-wiz-input { resize: vertical; min-height: 76px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.fed-wiz-page select.fed-wiz-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.fed-wiz-input:focus,
.fed-wiz-page .fed-wiz-input.input:focus,
.fed-wiz-page select.fed-wiz-input:focus,
.fed-wiz-page textarea.fed-wiz-input:focus {
  outline: none;
  border-color: #1a6dff;
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.12);
}
.fed-wiz-hint { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }
.fed-wiz-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; margin-top: 14px; }
.fed-wiz-callout.warn { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.fed-wiz-callout.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.fed-wiz-domain-wrap { position: relative; }
.fed-wiz-domain-select { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 6px 32px 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; cursor: pointer; background: #fff; position: relative; }
.fed-wiz-ds-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.fed-wiz-chip { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 3px 8px; font-size: 12px; }
.fed-wiz-chip.login { background: #eef5ff; border-color: #bfdbfe; }
.fed-wiz-badge-login { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; background: #1a6dff; color: #fff; border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.fed-wiz-chip-x { cursor: pointer; color: #94a3b8; margin-left: 2px; }
.fed-wiz-domain-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 50; max-height: 280px; overflow-y: auto; }
.fed-wiz-domain-wrap.open .fed-wiz-domain-dropdown { display: block; }
.fed-wiz-dd-search { padding: 10px; border-bottom: 1px solid #f1f5f9; }
.fed-wiz-dd-search input { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; padding: 7px 10px; font-size: 12.5px; }
.fed-wiz-dd-section { font-size: 10.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; padding: 8px 12px 4px; }
.fed-wiz-dd-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; }
.fed-wiz-dd-row:hover { background: #f8fafc; }
.fed-wiz-dd-name { flex: 1; }
.fed-wiz-dd-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.fed-wiz-dd-badge.login { background: #eef5ff; color: #1a6dff; }
.fed-wiz-dd-badge.verified { background: #f1f5f9; color: #64748b; }
.fed-wiz-dd-verify { padding: 10px 12px; font-size: 12.5px; color: #1a6dff; font-weight: 600; border-top: 1px solid #f1f5f9; cursor: pointer; }
.fed-wiz-domain-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 11.5px; color: #64748b; }
.fed-wiz-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.fed-wiz-sw.login { background: #1a6dff; }
.fed-wiz-sw.custom { background: #94a3b8; }
.fed-wiz-method-bar { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fed-wiz-method-lbl { position: absolute; left: 0; font-size: 12.5px; font-weight: 600; color: #334155; }
.fed-wiz-seg { display: inline-flex; background: #f1f5f9; border-radius: 8px; padding: 3px; }
.fed-wiz-seg button { border: none; background: transparent; padding: 6px 16px; font-size: 12.5px; font-weight: 600; color: #64748b; border-radius: 6px; cursor: pointer; }
.fed-wiz-seg button.active { background: #fff; color: #004a8f; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.fed-wiz-method-card { display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.fed-wiz-method-card:hover { border-color: #bfdbfe; background: #f8fafc; }
.fed-wiz-method-card.selected { border-color: #1a6dff; background: #eef5ff; }
.fed-wiz-radio { width: 18px; height: 18px; border-radius: 9999px; border: 2px solid #cbd5e1; flex-shrink: 0; margin-top: 2px; }
.fed-wiz-method-card.selected .fed-wiz-radio { border-color: #1a6dff; box-shadow: inset 0 0 0 4px #1a6dff; }
.fed-wiz-mc-title { font-size: 13.5px; font-weight: 600; color: #0f172a; }
.fed-wiz-mc-desc { font-size: 12px; color: #64748b; margin-top: 3px; line-height: 1.45; }
.fed-wiz-step-config {
  position: relative;
  max-width: 720px;
  width: 100%;
  padding-top: 36px;
}
.fed-wiz-layout-corner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
}
.fed-wiz-layout-lbl { font-weight: 500; white-space: nowrap; }
.fed-wiz-layout-seg { flex-shrink: 0; background: #f1f5f9; border-radius: 8px; padding: 3px; }
.fed-wiz-layout-seg button { padding: 5px 12px; font-size: 11.5px; font-weight: 600; }
.fed-wiz-step-config .fed-wiz-sub { max-width: 720px; }
.fed-wiz-zone-label { font-size: 12px; font-weight: 700; color: #004a8f; margin-bottom: 14px; }
.fed-wiz-copy-row { margin-bottom: 12px; }
.fed-wiz-cr-label { font-size: 11.5px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.fed-wiz-cr-val-wrap { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.fed-wiz-cr-val { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: #334155; word-break: break-all; }
.fed-wiz-copy-btn { border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 11.5px; font-weight: 600; cursor: pointer; color: #1a6dff; flex-shrink: 0; }
.fed-wiz-code-block { background: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 14px; font-size: 11px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.fed-wiz-dl-zone { background: #eef5ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 18px 20px; }
.fed-wiz-dl-head { font-size: 14px; font-weight: 700; color: #0c3e6b; margin-bottom: 6px; }
.fed-wiz-dl-sub { font-size: 12px; color: #334155; line-height: 1.5; margin-bottom: 14px; }
.fed-wiz-dl-grid { display: grid; gap: 10px; }
.fed-wiz-dl-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 14px; }
.fed-wiz-dl-card.primary { border-color: #1a6dff; }
.fed-wiz-dl-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.fed-wiz-dl-meta { font-size: 11.5px; color: #64748b; margin-top: 2px; }
.fed-wiz-rec-badge { font-size: 9.5px; text-transform: uppercase; background: #1a6dff; color: #fff; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.fed-wiz-dl-link { border: 1.5px solid #1a6dff; background: #fff; color: #1a6dff; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fed-wiz-info-i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 9999px; background: #e2e8f0; color: #64748b; font-size: 10px; font-weight: 700; cursor: help; position: relative; font-style: normal; }
.fed-wiz-info-i .fed-wiz-tt { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; font-size: 11px; font-weight: 500; padding: 6px 10px; border-radius: 6px; white-space: normal; width: 220px; z-index: 30; }
.fed-wiz-info-i:hover .fed-wiz-tt { display: block; }
.fed-wiz-config-tab-bar { display: flex; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.fed-wiz-config-tab { flex: 1; padding: 14px; font-size: 12.5px; font-weight: 600; color: #64748b; cursor: pointer; text-align: center; border-bottom: 2px solid transparent; }
.fed-wiz-config-tab.active { color: #004a8f; border-bottom-color: #1a6dff; background: #fff; }
.fed-wiz-config-panel { display: none; padding: 24px 28px; }
.fed-wiz-config-panel.active { display: block; }
.fed-wiz-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.fed-wiz-mode-opt { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 14px; cursor: pointer; }
.fed-wiz-mode-opt.selected { border-color: #1a6dff; background: #eef5ff; }
.fed-wiz-mo-title { font-size: 13px; font-weight: 600; }
.fed-wiz-mo-desc { font-size: 12px; color: #64748b; margin-top: 4px; }
.fed-wiz-rec { font-size: 9px; text-transform: uppercase; background: #1a6dff; color: #fff; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.fed-wiz-upload-row { display: flex; gap: 8px; align-items: center; }
.fed-wiz-btn-upload { border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fed-wiz-divider-or { text-align: center; font-size: 11.5px; color: #94a3b8; margin: 14px 0; }
.fed-wiz-dropzone { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 28px; text-align: center; font-size: 13px; color: #64748b; cursor: pointer; }
.fed-wiz-dz-ic { font-size: 28px; margin-bottom: 8px; }
.fed-wiz-parsed-summary { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 14px 16px; margin-top: 14px; font-size: 12.5px; }
.fed-wiz-ps-head { font-weight: 700; color: #065f46; margin-bottom: 10px; }
.fed-wiz-ps-row { display: flex; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.fed-wiz-ps-row span:first-child { font-weight: 600; color: #64748b; min-width: 130px; }
.fed-wiz-ps-row span:last-child { font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
.fed-wiz-fake-file { flex: 1; font-size: 13px; color: #94a3b8; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; }
.fed-wiz-fake-file.has-file { color: #0f172a; }
.fed-wiz-test-steps { margin: 0 0 16px 18px; font-size: 13px; color: #334155; line-height: 1.7; }
.fed-wiz-btn-test { background: #1a6dff; color: #fff; border: none; border-radius: 8px; padding: 10px 24px; font-size: 13px; font-weight: 600; cursor: pointer; }
.fed-wiz-test-result { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; }
.fed-wiz-test-result.show { display: block; }
.fed-wiz-test-result.pass { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.fed-wiz-test-result.fail { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.fed-wiz-tr-head { font-weight: 700; margin-bottom: 6px; }
.fed-wiz-secondary-dl { margin-top: 14px; font-size: 12px; color: #64748b; }
.fed-wiz-secondary-dl a { color: #1a6dff; cursor: pointer; font-weight: 600; text-decoration: none; }
.fed-wiz-note-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: #475569; line-height: 1.55; }
.fed-wiz-details-toggle { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; cursor: pointer; font-size: 14px; font-weight: 600; }
.fed-wiz-details-toggle.open .fed-wiz-chevron { transform: rotate(180deg); }
.fed-wiz-chevron { transition: transform .2s; color: #94a3b8; }
.fed-wiz-details-body { display: none; border-top: 1px solid #e2e8f0; padding: 18px 24px; }
.fed-wiz-details-body.open { display: block; }
.fed-wiz-fd-row { display: flex; gap: 10px; margin-bottom: 10px; font-size: 12.5px; }
.fed-wiz-fd-row span:first-child { font-weight: 600; color: #64748b; min-width: 150px; }
.fed-wiz-fd-row span:last-child { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* Microsoft Entra ID — Step 3 configuration instructions */
.fed-wiz-step-config-entra .fed-wiz-title { margin-bottom: 22px; }
.fed-wiz-step-config-provider .fed-wiz-title { margin-bottom: 8px; }
.fed-wiz-step3-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  width: 100%; max-width: 720px; margin-bottom: 22px;
}
.fed-wiz-step3-headings { flex: 1; min-width: 0; }
.fed-wiz-sub-left { text-align: left; max-width: none; margin-bottom: 0; }

/* AD FS Step 3 — single-line header + collapsed accordions by default */
.fed-wiz-step-config-adfs .fed-wiz-step3-header-adfs {
  position: relative;
  max-width: 960px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.fed-wiz-step-config-adfs .fed-wiz-step3-header-adfs .fed-wiz-step3-headings {
  width: 100%;
  min-width: 0;
  text-align: center;
}
.fed-wiz-step-config-adfs .fed-wiz-step3-header-adfs .fed-wiz-title {
  white-space: nowrap;
  text-align: center;
  margin-bottom: 8px;
}
.fed-wiz-step-config-adfs .fed-wiz-step3-header-adfs .fed-wiz-sub-left {
  white-space: nowrap;
  text-align: center;
  margin-bottom: 0;
}
.fed-wiz-learn-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: #1a6dff; text-decoration: none; white-space: nowrap; padding-top: 4px;
}
.fed-wiz-learn-more:hover { text-decoration: underline; }

/* AD FS configuration instructions */
.fed-wiz-adfs-config .fed-wiz-card-body { padding: 28px 32px 32px; }
.fed-wiz-adfs-callout {
  background: #f0f7ff; border: 1px solid #dbeafe; border-radius: 8px; padding: 18px 20px; margin-bottom: 24px;
}
.fed-wiz-adfs-callout-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
}
.fed-wiz-adfs-callout-head .fed-wiz-adfs-intro { flex: 1; min-width: 0; }
.fed-wiz-adfs-callout-learn { flex-shrink: 0; padding-top: 2px; white-space: nowrap; }
.fed-wiz-adfs-intro { font-size: 14px; color: #334155; line-height: 1.6; margin: 0; }
.fed-wiz-adfs-meta-block { margin-bottom: 0; margin-top: 4px; }
.fed-wiz-adfs-meta-label { font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.fed-wiz-adfs-meta-row {
  display: flex; align-items: center; gap: 10px; background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 12px 14px;
}
.fed-wiz-adfs-meta-val { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: #0f172a; word-break: break-all; }
.fed-wiz-adfs-upload-note { font-size: 13px; color: #64748b; margin: 10px 0 0; }
.fed-wiz-accordion { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.fed-wiz-accordion-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: #f8fafc; border: none; cursor: pointer; font-size: 14px; font-weight: 600; color: #0f172a; text-align: left;
}
.fed-wiz-accordion-chev { color: #64748b; transition: transform 0.2s; }
.fed-wiz-accordion.open .fed-wiz-accordion-chev { transform: rotate(180deg); }
.fed-wiz-accordion-body { display: none; padding: 0 16px 16px; background: #fff; }
.fed-wiz-accordion.open .fed-wiz-accordion-body { display: block; }
.fed-wiz-adfs-view-link { font-size: 13px; margin: 12px 0 8px; }
.fed-wiz-adfs-view-link a { color: #1a6dff; font-weight: 600; text-decoration: none; }
.fed-wiz-adfs-view-link a:hover { text-decoration: underline; }
.fed-wiz-adfs-skip-note { color: #64748b; font-weight: 400; }
.fed-wiz-adfs-script-label { font-size: 13px; color: #334155; margin: 0 0 8px; }
.fed-wiz-ps-block-wrap { position: relative; }
.fed-wiz-ps-block {
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 44px 14px 14px;
  font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.55; color: #0f172a;
  white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 180px; overflow: auto;
}
.fed-wiz-ps-copy { position: absolute; top: 10px; right: 10px; }
.fed-wiz-code-copy-btn { flex-shrink: 0; }
.fed-wiz-adfs-manual-list { margin: 12px 0 0 18px; font-size: 13px; color: #334155; line-height: 1.65; }
.fed-wiz-adfs-manual-list li { margin-bottom: 8px; }

.fed-wiz-entra-config .fed-wiz-card-body { padding: 28px 32px 32px; }
.fed-wiz-entra-card-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 24px; }
.fed-wiz-config-step { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.fed-wiz-config-step:last-of-type { margin-bottom: 8px; }
.fed-wiz-config-step-num {
  width: 28px; height: 28px; border-radius: 9999px; background: #004a8f; color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.fed-wiz-config-step-body { flex: 1; min-width: 0; }
.fed-wiz-config-step-lead { font-size: 14px; color: #334155; line-height: 1.6; margin: 0 0 12px; }
.fed-wiz-config-step-body > .fed-wiz-config-step-lead:last-child { margin-bottom: 0; }
.fed-wiz-entra-url-block { margin-bottom: 12px; }
.fed-wiz-entra-url-block:last-child { margin-bottom: 0; }
.fed-wiz-entra-url-label { font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.fed-wiz-entra-url-row {
  display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 10px 12px;
}
.fed-wiz-entra-url-val { flex: 1; font-size: 13px; color: #0f172a; word-break: break-all; line-height: 1.45; }
.fed-wiz-entra-copy-btn {
  background: none; border: none; color: #64748b; cursor: pointer; padding: 4px; border-radius: 4px; flex-shrink: 0;
}
.fed-wiz-entra-copy-btn:hover { color: #1a6dff; background: #eef5ff; }
.fed-wiz-entra-support { margin-top: 28px; font-size: 13px; color: #64748b; line-height: 1.55; }
.fed-wiz-entra-support a { color: #1a6dff; font-weight: 600; text-decoration: none; }
.fed-wiz-entra-support a:hover { text-decoration: underline; }

/* Microsoft Entra ID — Step 4 create connection */
.fed-wiz-summary-card { margin-bottom: 16px; }
.fed-wiz-summary-body { padding: 20px 28px; }
.fed-wiz-summary-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 14px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px;
}
.fed-wiz-summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.fed-wiz-summary-row:first-child { padding-top: 0; }
.fed-wiz-summary-label { color: #64748b; font-weight: 500; flex-shrink: 0; }
.fed-wiz-summary-val { color: #0f172a; font-weight: 600; text-align: right; word-break: break-word; }
.fed-wiz-entra-conn-card .fed-wiz-card-body { padding: 28px 32px 24px; }
.fed-wiz-field-label-row { display: inline-flex; align-items: center; gap: 6px; }
.fed-wiz-info-i-sm { font-size: 11px; width: 16px; height: 16px; line-height: 16px; }
.fed-wiz-secret-wrap { position: relative; }
.fed-wiz-secret-wrap .fed-wiz-input { padding-right: 42px; }
.fed-wiz-secret-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #64748b; cursor: pointer; padding: 4px; border-radius: 4px;
}
.fed-wiz-secret-toggle:hover { color: #1a6dff; background: #f1f5f9; }
.fed-wiz-entra-conn-actions { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 8px; }
.fed-wiz-btn-create-conn {
  padding: 10px 24px; font-size: 14px; font-weight: 600; color: #1a6dff; background: #fff;
  border: 1.5px solid #1a6dff; border-radius: 8px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.fed-wiz-btn-create-conn:hover { background: #eef5ff; }
.fed-wiz-action { padding: 20px 24px; border-top: 1px solid #e2e8f0; text-align: center; }
.fed-wiz-action-note { font-size: 12.5px; color: #64748b; margin-top: 12px; line-height: 1.55; }
.fed-wiz-btn-enable { border: 1.5px solid #1a6dff; border-radius: 8px; padding: 9px 28px; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff; color: #1a6dff; }
.fed-wiz-btn-enable:disabled { border-color: #cbd5e1; color: #cbd5e1; cursor: not-allowed; }
.fed-wiz-tooltip-wrap { display: inline-block; position: relative; }
.fed-wiz-tooltip-wrap .fed-wiz-tooltip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; font-size: 11.5px; white-space: nowrap; padding: 6px 10px; border-radius: 7px; }
.fed-wiz-tooltip-wrap:hover .fed-wiz-tooltip { display: block; }
.fed-wiz-enabled-badge { display: inline-flex; align-items: center; gap: 7px; background: #ecfdf5; border: 1.5px solid #a7f3d0; border-radius: 9999px; padding: 5px 14px; font-size: 13px; font-weight: 600; color: #059669; }
.fed-wiz-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: #fff; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
.fed-wiz-footer-hint { font-size: 12px; color: #64748b; }
.fed-wiz-footer-btns { display: flex; gap: 10px; margin-left: auto; }

/* Filter bar */
.sys-filter-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.sys-filter-left { display: flex; align-items: center; gap: 10px; }
.sys-filter-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; font-size: 12.5px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; cursor: pointer; color: #475569; }
.sys-filter-btn:hover { background: #f8fafc; }
.sys-agent-dropdown { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: 12.5px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #475569; cursor: pointer; }
.sys-agent-caret { font-size: 11px; color: #94a3b8; margin-left: 2px; }
.sys-tableview-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; font-size: 12.5px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; cursor: pointer; color: #475569; }
.sys-tableview-btn:hover { background: #f8fafc; }

/* Canvas + summary */
.sys-gallery-layout { display: flex; gap: 0; flex: 1; min-height: 0; }
.sys-canvas { flex: 1; background: #f0f2f5; position: relative; overflow: hidden; }
.sys-canvas-toolbar { padding: 10px 12px; }
.sys-add-btn { font-size: 12.5px; border: 1px solid #cbd5e1; background: #fff; color: #1e293b; border-radius: 6px; padding: 5px 12px; }
.sys-add-btn:hover { background: #f8fafc; }
.sys-canvas-content { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 24px; align-items: flex-start; justify-content: center; }

/* Working environment card (NCL style: white card, name + type + badge) */
.sys-we-card { width: 148px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04); padding: 14px 12px 10px; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 4px; transition: box-shadow 0.15s; }
.sys-we-card:hover { box-shadow: 0 4px 14px rgba(0,67,197,0.15), 0 0 0 1px #cbd5e1; }
.sys-we-name { font-size: 12.5px; font-weight: 600; color: #1e293b; }
.sys-we-type { font-size: 11px; color: #64748b; margin-bottom: 10px; }
.sys-we-badge { display: flex; justify-content: flex-end; }

/* Zoom controls */
.sys-zoom-controls { position: absolute; bottom: 14px; right: 14px; display: flex; gap: 4px; }
.sys-zoom-btn { width: 28px; height: 28px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; cursor: pointer; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; color: #475569; line-height: 1; }
.sys-zoom-btn:hover { background: #f1f5f9; }

/* Summary panel */
.sys-summary { width: 200px; flex-shrink: 0; background: #fff; border-left: 1px solid #e2e8f0; padding: 14px 16px; overflow-y: auto; }
.sys-summary-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.sys-summary-header span:first-child { font-size: 13px; font-weight: 600; color: #1e293b; }
.sys-enable-services { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #0067C5; cursor: pointer; }
.sys-summary-body { padding-top: 6px; }
.sys-summary-count { font-size: 26px; font-weight: 700; color: #1e293b; line-height: 1.1; }
.sys-summary-label { font-size: 11px; color: #64748b; margin-top: 4px; }

/* =========================================================
   Add System wizard (choose location + select type)
   ========================================================= */
.addsy-page { display: flex; flex-direction: column; min-height: calc(100vh - 48px); background: #f0f2f5; }
.addsy-header { display: flex; align-items: center; padding: 14px 28px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; position: relative; }
.addsy-header-left  { flex: 1; }
.addsy-header-center { flex: 1; text-align: center; font-size: 15px; font-weight: 600; color: #1e293b; }
.addsy-header-right { flex: 1; display: flex; justify-content: flex-end; }
.addsy-back-link { font-size: 13px; color: #0067C5; cursor: pointer; text-decoration: none; }
.addsy-back-link:hover { text-decoration: underline; }
.addsy-close { background: none; border: none; cursor: pointer; color: #475569; padding: 4px; border-radius: 4px; display: flex; align-items: center; }
.addsy-close:hover { background: #f1f5f9; color: #1e293b; }

.addsy-body { flex: 1; padding: 36px 20px 20px; }

/* Location cards — default (large, before selection) */
.addsy-loc-cards { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.loc-card { width: 120px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 22px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.loc-card:hover { border-color: #aac4e8; box-shadow: 0 2px 8px rgba(0,103,197,0.10); }
.loc-card.selected { border-color: #0067C5; box-shadow: 0 0 0 1px #0067C5; }
.loc-card.compact { width: 100px; padding: 14px 8px 10px; gap: 8px; }
.loc-card-check { position: absolute; top: 6px; right: 6px; line-height: 0; }
.loc-card-icon { line-height: 0; }
.loc-card-label { font-size: 11.5px; color: #1e293b; text-align: center; font-weight: 500; line-height: 1.3; }

/* Type selection list */
.addsy-type-section { max-width: 660px; margin: 0 auto; }
.addsy-type-label { text-align: center; font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 14px; }
.addsy-type-list { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.addsy-type-row { border-bottom: 1px solid #f1f5f9; }
.addsy-type-row:last-child { border-bottom: none; }
.addsy-type-row-main { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.addsy-type-icon { flex-shrink: 0; }
.addsy-type-name { flex: 1; font-size: 13.5px; font-weight: 500; color: #1e293b; }
.addsy-type-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.addsy-discover-btn { min-width: 90px; font-size: 13px; }
.addsy-chevron-btn { background: none; border: none; cursor: pointer; color: #64748b; padding: 4px; display: flex; align-items: center; border-radius: 4px; }
.addsy-chevron-btn:hover { background: #f1f5f9; color: #1e293b; }
.addsy-type-desc { padding: 0 20px 14px 68px; font-size: 12.5px; color: #64748b; line-height: 1.55; }

/* =========================================================
   Discover on-premises clusters (Direct) — credentials form
   ========================================================= */
.discover-page { display: flex; flex-direction: column; min-height: calc(100vh - 48px); background: #f0f2f5; }
.discover-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.discover-breadcrumb { font-size: 13px; color: #0067C5; cursor: pointer; text-decoration: none; }
.discover-breadcrumb:hover { text-decoration: underline; }
.discover-body { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px 20px; }
.discover-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.10); padding: 32px 40px; width: 320px; }
.discover-card-title { font-size: 13px; color: #475569; text-align: center; margin-bottom: 24px; line-height: 1.5; }
.discover-field { margin-bottom: 18px; }
.discover-label { display: block; font-size: 12.5px; color: #1e293b; margin-bottom: 6px; }
.discover-input { width: 100%; font-size: 13px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 4px; box-sizing: border-box; }
.discover-input:focus { outline: 2px solid #0067C5; outline-offset: -1px; border-color: #0067C5; }
.discover-pw-wrap { position: relative; }
.discover-pw-wrap .discover-input { padding-right: 36px; }
.discover-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #94a3b8; padding: 0; display: flex; align-items: center; }
.discover-pw-toggle:hover { color: #475569; }
.discover-footer { display: flex; justify-content: center; padding: 16px; flex-shrink: 0; }
.discover-submit-btn { min-width: 120px; font-size: 13.5px; padding: 10px 32px; }
