:root {
  --cc-bg: #050b16;
  --cc-elevated: #0b1526;
  --cc-panel: rgba(12, 24, 44, 0.88);
  --cc-border: rgba(56, 120, 220, 0.35);
  --cc-accent: #1f6fff;
  --cc-accent-bright: #3b82ff;
  --cc-text: #f4f7ff;
  --cc-muted: #91a4c4;
  --cc-success: #22c55e;
  --cc-warning: #f59e0b;
  --cc-danger: #ef4444;
  --cc-sidebar: #07111f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.animated-ecbs-logo {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

.animated-ecbs-logo > img,
.animated-ecbs-waves {
  display: block;
  width: 100%;
  height: auto;
}

.animated-ecbs-waves {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: visible;
}

.animated-ecbs-trademark {
  position: absolute;
  left: 100%;
  top: 43%;
  margin-left: 2px;
  color: #fff;
  font-size: 5px;
  font-weight: 800;
  line-height: 1;
}

.ecbs-wave {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecbs-wave-dark { stroke: #083574; }
.ecbs-wave-green { stroke: #09ad0d; }
.ecbs-wave-cyan { stroke: #0da7f0; }

.ecbs-wave-orb {
  stroke: #fff;
  stroke-width: 5;
  filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 24px currentColor);
}

.ecbs-wave-orb-dark { color: #2d8cff; fill: #2d8cff; }
.ecbs-wave-orb-green { color: #7cff55; fill: #7cff55; }
.ecbs-wave-orb-cyan { color: #79eaff; fill: #79eaff; }

.cc-sidebar-ecbs-brand {
  padding: .7rem 1.25rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: center;
}

.cc-sidebar-ecbs-brand .animated-ecbs-logo {
  width: 132px;
  max-width: 100%;
  margin: 0 auto -.2rem;
}

.cc-sidebar-ecbs-brand .cc-muted {
  font-size: .65rem;
  letter-spacing: .16em;
}

.cc-hero-ecbs-brand .animated-ecbs-logo {
  width: 220px;
  margin: 0 auto -.35rem;
}

.cc-public-ecbs-brand {
  width: min(330px, 76%);
  margin-bottom: 2rem;
}

.cc-public-ecbs-brand .cc-brand-name {
  margin-top: -.2rem;
}

.oem-sidebar-ecbs-brand,
.oem-public-ecbs-brand {
  display: block;
  text-align: center;
}

.oem-sidebar-ecbs-brand .animated-ecbs-logo {
  width: 130px;
  margin: 0 auto -.2rem;
}

.oem-public-ecbs-brand .animated-ecbs-logo {
  width: min(310px, 80%);
  margin: 0 auto -.35rem;
}

.cc-space-bg {
  min-height: 100vh;
  position: relative;
  background-color: #020814;
  background-image:
    linear-gradient(105deg, rgba(2, 8, 20, 0.55) 0%, rgba(2, 8, 20, 0.72) 42%, rgba(2, 8, 20, 0.88) 100%),
    url("/img/login-earth-backdrop.jpg"),
    linear-gradient(160deg, #020814 0%, #061427 45%, #02060f 100%);
  background-size: cover, cover, cover;
  background-position: center, left center, center;
  background-repeat: no-repeat;
}

.cc-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.cc-brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-top: 0.2rem;
}

.cc-brand-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.1em;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 28px rgba(59, 130, 255, 0.35);
}

.cc-brand-glow {
  height: 2px;
  width: min(22rem, 90%);
  margin: 0.85rem 0 0.9rem;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 255, 0.85), transparent);
  box-shadow: 0 0 18px rgba(59, 130, 255, 0.55);
}

.cc-brand-pillars {
  margin-top: 0.25rem;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}

.cc-brand-copy {
  max-width: 28rem;
  margin-top: 1.5rem;
  line-height: 1.65;
  color: #d7e3f7;
}

.cc-login-welcome { font-weight: 600; font-size: 1.15rem; }

.cc-input.has-trailing { padding-right: 2.6rem; }

.cc-input-trailing {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--cc-muted);
  padding: 0.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cc-login-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

/* Match SCC-UI-07: shield icon stacked above welcome copy */
.cc-login-header .cc-login-icon {
  margin-bottom: 0.15rem;
}

.cc-login-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: #9cc0ff;
  background: rgba(31, 111, 255, 0.18);
  border: 1px solid rgba(59, 130, 255, 0.35);
  flex-shrink: 0;
}

.cc-input-wrap { position: relative; }

.cc-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cc-muted);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cc-input.has-icon { padding-left: 2.4rem; }

.cc-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--cc-muted);
  font-size: 0.75rem;
}

.cc-or::before,
.cc-or::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.cc-alert {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
}

.cc-public-grid {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .cc-public-grid { grid-template-columns: 1fr 1fr; }
}

.cc-panel {
  background: var(--cc-panel);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  max-width: 28rem;
  width: 100%;
  margin-left: auto;
}

.cc-card {
  background: linear-gradient(180deg, rgba(16, 30, 52, 0.95), rgba(10, 20, 36, 0.95));
  border: 1px solid rgba(56, 120, 220, 0.22);
  border-radius: 12px;
  padding: 1rem;
}

.cc-input {
  width: 100%;
  border: 1px solid rgba(59, 130, 255, 0.45);
  background: rgba(4, 12, 24, 0.85);
  color: var(--cc-text);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.cc-btn-primary,
.cc-btn-secondary,
.cc-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  width: 100%;
}

.cc-btn-primary {
  border: 0;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, #3b82ff 0%, #1d4ed8 100%);
}

.cc-btn-secondary {
  border: 1px solid rgba(59, 130, 255, 0.65);
  color: #9cc0ff;
  background: transparent;
}

.cc-btn-ghost {
  width: auto;
  border: 1px solid rgba(59, 130, 255, 0.45);
  color: #9cc0ff;
  background: transparent;
  padding: 0.5rem 0.85rem;
}

.cc-shell {
  display: flex;
  min-height: 100vh;
}

.cc-sidebar {
  width: 250px;
  background: var(--cc-sidebar);
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
}

.cc-nav a {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  margin: 0.2rem 0.6rem;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.cc-nav a.active {
  background: var(--cc-accent);
  color: #fff;
}

.cc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.cc-topbar {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: var(--cc-elevated);
  padding: 0.75rem 1.5rem 1.25rem;
}

.cc-topbar.hero {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, 0.55) 0%, rgba(5, 11, 22, 0.88) 100%),
    url("/img/home-hero-earth.jpg"),
    linear-gradient(180deg, #071627, #050b16);
  background-size: cover, cover, cover;
  background-position: center, center 40%, center;
  text-align: center;
}

.cc-content { padding: 1.5rem; }

.cc-grid-5 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cc-grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cc-grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cc-muted { color: var(--cc-muted); }
.cc-success { color: var(--cc-success); }
.cc-warning { color: var(--cc-warning); }
.cc-accent-text { color: var(--cc-accent-bright); }

.cc-pill {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
}

.cc-pill.active, .cc-pill.healthy { color: #86efac; border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.15); }
.cc-pill.pending, .cc-pill.medium { color: #fcd34d; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.15); }
.cc-pill.inactive, .cc-pill.high, .cc-pill.critical { color: #fca5a5; border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.15); }
.cc-pill.open, .cc-pill.low { color: #7dd3fc; border-color: rgba(14,165,233,.4); background: rgba(14,165,233,.15); }

table.cc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.cc-table th {
  text-align: left;
  color: var(--cc-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
table.cc-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}

.cc-footer-public {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--cc-muted);
}

.field { display: block; margin-bottom: 0.9rem; font-size: 0.9rem; }
.field span { display: block; margin-bottom: 0.35rem; color: var(--cc-muted); }
.stack > * + * { margin-top: 0.9rem; }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.bar { height: 0.5rem; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--cc-success); }

.cc-oem-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(59, 130, 255, 0.25);
  border: 1px solid rgba(59, 130, 255, 0.45);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #cfe0ff;
  flex-shrink: 0;
}

.cc-prog {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.cc-prog.prog-l { color: #93c5fd; background: rgba(59,130,255,.18); border-color: rgba(59,130,255,.35); }
.cc-prog.prog-ecbs { color: #86efac; background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.35); }
.cc-prog.prog-scan { color: #fcd34d; background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.35); }
.cc-prog.prog-emv { color: #d8b4fe; background: rgba(168,85,247,.15); border-color: rgba(168,85,247,.35); }

.cc-page-num {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  background: var(--cc-accent);
  color: #fff;
  font-weight: 600;
}

.cc-top-icon { position: relative; display: inline-grid; place-items: center; }
.cc-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.4rem;
  background: var(--cc-danger);
  color: #fff;
  border-radius: 999px;
  font-size: 0.6rem;
  min-width: 0.95rem;
  height: 0.95rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cc-user-chip {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--cc-accent);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.cc-btn-secondary[href] { text-align: center; }

.cc-login-icon-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
}

.cc-deny-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--cc-muted);
  font-size: 0.88rem;
}

.cc-deny-x {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  margin-right: 0.45rem;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.4);
  font-size: 0.7rem;
}

.cc-textarea {
  min-height: 6.5rem;
  resize: vertical;
  padding-top: 0.75rem;
}

.cc-char-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.55rem;
  font-size: 0.7rem;
  color: var(--cc-muted);
  pointer-events: none;
}

.cc-priority-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(59, 130, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--cc-muted);
  cursor: pointer;
}

.cc-priority-opt.selected,
.cc-priority-opt:has(input:checked) {
  border-color: rgba(59, 130, 255, 0.65);
  color: var(--cc-text);
  background: rgba(59, 130, 255, 0.12);
}

.cc-priority-opt input { display: none; }
.cc-priority .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  display: inline-block;
}
.cc-priority .dot.low { background: #22c55e; }
.cc-priority .dot.normal { background: #3b82ff; }
.cc-priority .dot.high { background: #ef4444; }

.cc-strength-label {
  font-size: 0.78rem;
  color: #fca5a5;
  margin-bottom: 0.35rem;
}

.cc-strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.cc-strength-bar span {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.cc-strength-bar span.on.weak { background: #ef4444; }

.cc-req-list { display: grid; gap: 0.35rem; }
.cc-req::before {
  content: "✓";
  color: #22c55e;
  margin-right: 0.4rem;
  font-weight: 700;
}
.cc-req.ok { color: #d1fae5; }

.cc-panel { max-height: calc(100vh - 7rem); overflow: auto; }

.cc-legal-scroll {
  max-height: 18rem;
  overflow: auto;
  margin-top: 0.85rem;
  padding-right: 0.35rem;
  font-size: 0.82rem;
  color: #c9d7ef;
}

.cc-legal-scroll strong {
  display: block;
  color: var(--cc-text);
  margin-bottom: 0.25rem;
}

.cc-legal-scroll p {
  margin: 0 0 0.85rem;
  line-height: 1.45;
  color: var(--cc-muted);
}

.cc-grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cc-suite-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
  .cc-suite-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr);
    align-items: start;
  }
}

.cc-suite-tile { position: relative; padding-top: 1.1rem; }

.cc-suite-num {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9cc0ff;
  background: rgba(59, 130, 255, 0.16);
  border: 1px solid rgba(59, 130, 255, 0.35);
}

.cc-suite-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  background: color-mix(in srgb, var(--tile-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tile-color) 40%, transparent);
}

.cc-toggle {
  width: 2.2rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  flex-shrink: 0;
}

.cc-toggle::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0.14rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.cc-toggle.on {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.55);
}

.cc-toggle.on::after {
  left: auto;
  right: 0.14rem;
  background: #86efac;
}

.cc-reports-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
  .cc-reports-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(15rem, 0.85fr);
    align-items: start;
  }
}

.cc-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 7rem;
  margin-top: 1rem;
  padding: 0.5rem 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-sparkline > span {
  flex: 1;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, #67e8f9, rgba(59, 130, 255, 0.35));
  min-height: 0.35rem;
}

.cc-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.35rem;
}

.cc-settings-tab {
  background: transparent;
  border: 0;
  color: var(--cc-muted);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.cc-settings-tab.active {
  color: #fff;
  border-bottom-color: var(--cc-accent);
}

.cc-filter-bar {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  align-items: center;
}

/* OEM Management module (light app shell + public login) */
.oem-public-body { margin: 0; min-height: 100vh; background: #f3f6fb; color: #0f172a; }
.oem-public-grid { display: grid; min-height: 100vh; grid-template-columns: 1.1fr 1fr; }
.oem-public-brand {
  background: linear-gradient(160deg, #0b1f44, #12356e 55%, #0a1936);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.oem-public-brand-top { display: flex; gap: .85rem; align-items: center; margin-bottom: 2rem; }
.oem-mark {
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700;
  background: #2563eb; color: #fff;
}
.oem-public-brand-name { font-weight: 700; letter-spacing: .08em; }
.oem-public-brand-sub { font-size: .75rem; color: #93c5fd; letter-spacing: .06em; }
.oem-public-brand h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 1rem; max-width: 22rem; }
.oem-public-brand p { color: #dbeafe; max-width: 28rem; line-height: 1.5; }
.oem-public-features { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; color: #e2e8f0; }
.oem-public-features li::before { content: "• "; color: #60a5fa; }
.oem-public-secure { color: #86efac; font-size: .9rem; margin-top: auto; }
.oem-public-panel { display: grid; place-items: center; padding: 2rem; }
.oem-public-card {
  width: min(26rem, 100%);
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}
.oem-public-help { margin-top: 1rem; color: #64748b; font-size: .9rem; text-align: center; }
.oem-public-help a { color: #2563eb; text-decoration: none; font-weight: 600; }
.oem-light-input {
  width: 100%; border: 1px solid #cbd5e1; border-radius: .55rem;
  padding: .7rem .85rem; font: inherit; background: #fff; color: #0f172a;
}
.oem-light-btn {
  width: 100%; border: 0; border-radius: .55rem; padding: .8rem 1rem;
  background: #2563eb; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.oem-light-btn.secondary {
  background: #fff; color: #0f172a; border: 1px solid #cbd5e1;
}

.oem-app-body { margin: 0; min-height: 100vh; background: #f5f7fb; color: #0f172a; }
.oem-shell { display: grid; grid-template-columns: 16.5rem 1fr; min-height: 100vh; }
.oem-sidebar {
  background: #0b1f44; color: #fff; display: flex; flex-direction: column;
  padding: 1.25rem .85rem;
}
.oem-sidebar-brand { display: flex; gap: .7rem; align-items: center; padding: .35rem .5rem 1.25rem; }
.oem-sidebar-name { font-weight: 700; letter-spacing: .06em; }
.oem-sidebar-tag { font-size: .7rem; color: #93c5fd; }
.oem-nav { display: grid; gap: .25rem; flex: 1; }
.oem-nav a {
  display: flex; align-items: center; gap: .65rem;
  color: #dbeafe; text-decoration: none; border-radius: .55rem;
  padding: .65rem .75rem; font-size: .9rem;
}
.oem-nav a.active, .oem-nav a:hover { background: #2563eb; color: #fff; }
.oem-sidebar-user {
  display: flex; gap: .65rem; align-items: center;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: .9rem; margin-top: .75rem;
  font-size: .85rem;
}
.oem-avatar {
  width: 2rem; height: 2rem; border-radius: 999px; background: #2563eb;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.oem-avatar.sm { width: 1.7rem; height: 1.7rem; }
.oem-main { display: flex; flex-direction: column; min-width: 0; }
.oem-topbar { padding: 1rem 1.5rem .75rem; background: #fff; border-bottom: 1px solid #e2e8f0; }
.oem-top-actions { display: flex; justify-content: flex-end; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.oem-icon-btn {
  width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid #e2e8f0;
  display: grid; place-items: center; position: relative; color: #334155; background: #fff;
}
.oem-icon-btn sup {
  position: absolute; top: -.25rem; right: -.2rem;
  background: #ef4444; color: #fff; border-radius: 999px;
  font-size: .65rem; padding: .05rem .28rem;
}
.oem-user-chip { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: #475569; }
.oem-user-chip strong { display: block; color: #0f172a; }
.oem-topbar h1 { margin: 0; font-size: 1.6rem; }
.oem-topbar p { margin: .35rem 0 0; color: #64748b; }
.oem-content { padding: 1.25rem 1.5rem; display: grid; gap: 1rem; }
.oem-footer { text-align: center; color: #94a3b8; font-size: .75rem; padding: 1rem; }
.oem-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: .85rem; padding: 1rem;
}
.oem-kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.oem-kpi .label { color: #64748b; font-size: .75rem; }
.oem-kpi .value { font-size: 1.8rem; font-weight: 700; margin: .2rem 0; }
.oem-kpi a { color: #2563eb; font-size: .8rem; text-decoration: none; }
.oem-muted { color: #64748b; }
.oem-grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.oem-grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.oem-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.oem-table th, .oem-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid #e2e8f0; }
.oem-table th { color: #64748b; font-weight: 600; font-size: .75rem; }
.oem-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; font-weight: 600;
}
.oem-pill.active { background: #dcfce7; color: #166534; }
.oem-pill.setup { background: #dbeafe; color: #1d4ed8; }
.oem-pill.review { background: #ffedd5; color: #c2410c; }
.oem-pill.risk { background: #fee2e2; color: #b91c1c; }
.oem-pill.high { background: #fee2e2; color: #b91c1c; }
.oem-pill.medium { background: #ffedd5; color: #c2410c; }
.oem-pill.low { background: #e0f2fe; color: #0369a1; }
.oem-bar { height: .45rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.oem-bar > span { display: block; height: 100%; background: #2563eb; }
.oem-toolbar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.oem-toolbar .oem-light-input { width: auto; min-width: 10rem; flex: 1; }
.oem-btn {
  border: 1px solid #cbd5e1; background: #fff; color: #0f172a;
  border-radius: .5rem; padding: .55rem .9rem; font: inherit; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.oem-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.oem-due { color: #dc2626; font-size: .8rem; font-weight: 600; }

@media (max-width: 960px) {
  .oem-public-grid, .oem-shell { grid-template-columns: 1fr; }
  .oem-sidebar { min-height: auto; }
}

.oem-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: .65rem;
  padding: .85rem 1rem;
  font-size: .85rem;
  line-height: 1.4;
}

.oem-mfa-digits {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .45rem;
}

.oem-mfa-digit {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: .45rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.oem-wizard {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
  .oem-wizard {
    grid-template-columns: minmax(0, 1.7fr) minmax(15rem, .85fr);
    align-items: start;
  }
}

.oem-stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .4rem;
  margin-bottom: 1rem;
}

.oem-step {
  display: grid;
  gap: .35rem;
  justify-items: center;
  text-align: center;
  text-decoration: none;
  color: #64748b;
  font-size: .68rem;
  padding: .45rem .2rem;
  border-radius: .55rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.oem-step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: .75rem;
}

.oem-step.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.oem-step.active .oem-step-num,
.oem-step.done .oem-step-num {
  background: #2563eb;
  color: #fff;
}

.oem-step.done { color: #2563eb; }

.oem-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.oem-form-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.oem-section-title {
  font-weight: 700;
  margin: 1.1rem 0 .55rem;
  grid-column: 1 / -1;
}

.oem-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.oem-tab {
  text-decoration: none;
  color: #64748b;
  padding: .45rem 0;
  border-bottom: 2px solid transparent;
  font-size: .9rem;
}

.oem-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
