:root {
  --ops-canvas: #f5f7fb;
  --ops-surface: #ffffff;
  --ops-surface-muted: #f8fafc;
  --ops-ink: #111827;
  --ops-ink-soft: #1f2937;
  --ops-text: #111827;
  --ops-muted: #64748b;
  --ops-border: #e2e8f0;
  --ops-brand: #22c55e;
  --ops-brand-dark: #15803d;
  --ops-brand-ink: #052e16;
  --ops-danger: #ef4444;
  --ops-radius: 10px;
  --ops-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  --ops-mobile-bar-height: calc(66px + env(safe-area-inset-top, 0px));
}

.ops-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.ops-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--ops-radius);
  background: var(--ops-brand);
  color: var(--ops-brand-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.ops-brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ops-brand-name,
.ops-brand-module {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-brand-name {
  color: inherit;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
}

.ops-brand-module {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.ops-module-switch {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 4px;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  padding: 4px;
  background: var(--ops-surface);
}

.ops-module-switch > a {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  color: #334155;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.ops-module-switch > a:hover {
  background: #f1f5f9;
  color: var(--ops-text);
}

.ops-module-switch > a.active,
.ops-module-switch > a[aria-current="page"] {
  background: #dcfce7;
  color: #166534;
}

.ops-module-switch > a:focus-visible,
.ops-brand:focus-visible {
  outline: 3px solid rgba(34, 197, 94, .35);
  outline-offset: 2px;
}

.ops-module-switch--dark {
  border-color: #334155;
  background: #0b1220;
}

.ops-module-switch--dark > a {
  color: #cbd5e1;
}

.ops-module-switch--dark > a:hover {
  background: var(--ops-ink-soft);
  color: #ffffff;
}

.ops-module-switch--dark > a.active,
.ops-module-switch--dark > a[aria-current="page"] {
  background: var(--ops-ink-soft);
  color: #86efac;
  box-shadow: inset 0 0 0 1px #475569;
}

.ops-platform-shell {
  min-height: 100vh;
  display: block;
  background: var(--ops-canvas);
}

.ops-platform-sidebar {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  min-width: 0;
  height: auto;
  min-height: var(--ops-mobile-bar-height);
  display: block;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  overflow: visible;
  background: var(--ops-ink);
  color: #fff;
}

.ops-platform-sidebar[hidden],
.ops-platform-sidebar.hidden {
  display: none !important;
}

.ops-platform-sidebar::before {
  content: "";
  position: fixed;
  z-index: 1;
  inset: var(--ops-mobile-bar-height) 0 0;
  background: rgba(15, 23, 42, .48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(1px);
}

.ops-platform-sidebar.nav-open::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ops-platform-sidebar-head {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.ops-platform-sidebar-head > .ops-brand {
  flex: 1 1 auto;
}

.ops-platform-mobile-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid #475569;
  border-radius: var(--ops-radius);
  padding: 0;
  background: transparent;
  color: #fff;
}

.ops-platform-mobile-toggle:hover,
.ops-platform-mobile-toggle:focus-visible,
.ops-platform-mobile-toggle[aria-expanded="true"] {
  border-color: #86efac;
  background: var(--ops-ink-soft);
  outline: none;
}

.ops-platform-menu-icon {
  width: 19px;
  display: grid;
  gap: 4px;
}

.ops-platform-menu-icon::before,
.ops-platform-menu-icon::after,
.ops-platform-menu-icon > span {
  content: "";
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 140ms ease;
}

.ops-platform-mobile-toggle[aria-expanded="true"] .ops-platform-menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.ops-platform-mobile-toggle[aria-expanded="true"] .ops-platform-menu-icon > span {
  opacity: 0;
}

.ops-platform-mobile-toggle[aria-expanded="true"] .ops-platform-menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.ops-platform-navigation {
  position: fixed;
  z-index: 2;
  inset: var(--ops-mobile-bar-height) auto 0 0;
  width: min(336px, calc(100vw - 20px));
  min-width: 0;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
  align-content: stretch;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px max(18px, env(safe-area-inset-bottom, 0px));
  background: var(--ops-ink);
  border-top: 1px solid #273449;
  border-right: 1px solid #273449;
  box-shadow: 20px 0 48px rgba(15, 23, 42, .24);
  scrollbar-width: thin;
  scrollbar-color: #475569 transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-104%);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease, visibility 220ms ease;
  touch-action: pan-y;
}

.ops-platform-sidebar.nav-open .ops-platform-navigation {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.ops-platform-navigation > * {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.ops-platform-sidebar .ops-module-switch {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin: 0;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 1px solid #334155;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ops-platform-sidebar .ops-module-switch > a {
  min-height: 38px;
  justify-content: flex-start;
  border-radius: 8px;
  padding: 8px 10px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
}

.ops-platform-sidebar .ops-module-switch > a:hover,
.ops-platform-sidebar .ops-module-switch > a:focus-visible {
  background: #1e293b;
  color: #fff;
  outline: none;
}

.ops-platform-sidebar .ops-module-switch > a.active,
.ops-platform-sidebar .ops-module-switch > a[aria-current="page"] {
  background: rgba(34, 197, 94, .13);
  color: #bbf7d0;
  box-shadow: inset 3px 0 0 #4ade80;
}

.ops-platform-nav-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ops-platform-nav-label {
  display: block;
  margin: 8px 10px 3px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ops-platform-nav-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.ops-platform-nav-item:hover,
.ops-platform-nav-item:focus-visible {
  background: #1e293b;
  color: #fff;
  outline: none;
}

.ops-platform-nav-item.active,
.ops-platform-nav-item[aria-current="page"] {
  background: rgba(34, 197, 94, .13);
  color: #bbf7d0;
  box-shadow: inset 3px 0 0 #4ade80;
}

.ops-platform-sidebar-footer {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #334155;
}

.ops-platform-sidebar-user {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 11px 12px 12px;
  background: rgba(255, 255, 255, .035);
}

.ops-platform-sidebar-user strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-platform-sidebar-user strong {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.3;
}

.ops-platform-sidebar-user-caption {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.ops-platform-sidebar-user .ops-platform-sidebar-user-role {
  color: #86efac;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.ops-platform-sidebar-user .ops-platform-sidebar-user-login {
  min-width: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-platform-sidebar-user [hidden] {
  display: none !important;
}

.ops-platform-sidebar .ops-platform-logout {
  color: #cbd5e1;
}

.ops-platform-sidebar .ops-platform-logout:hover,
.ops-platform-sidebar .ops-platform-logout:focus-visible {
  background: #1e293b;
  color: #fff;
}

.ops-platform-content,
.ops-platform-main {
  min-width: 0;
  max-width: 100%;
}

.ops-platform-content {
  min-height: 100vh;
}

.ops-platform-page-header {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 18px;
}

.ops-platform-page-header p,
.ops-platform-page-header h1 {
  margin: 0;
}

.ops-platform-page-header p {
  margin-bottom: 4px;
  color: var(--ops-brand-dark);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.ops-platform-page-header h1 {
  color: var(--ops-text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
}

.ops-platform-menu-open,
.ops-platform-menu-open body {
  overflow: clip;
}

@media (max-width: 640px) {
  .ops-platform-sidebar {
    padding-inline: 14px;
  }

  .ops-platform-navigation {
    gap: 8px;
    width: min(326px, calc(100vw - 16px));
    padding-inline: 12px;
  }

  .ops-platform-page-header {
    padding: 18px 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-platform-sidebar::before,
  .ops-platform-navigation {
    transition-duration: 1ms !important;
  }
}
.password-visibility-control { position: relative; display: block; min-width: 0; }
.password-visibility-control input { width: 100%; min-height: 44px; padding-right: 48px !important; }
.password-visibility-control button {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px; min-height: 44px;
  display: grid; place-items: center; margin: 0; padding: 0; border: 0;
  border-radius: 6px; color: #526171; background: transparent;
}
.password-visibility-control button:hover { background: #edf4f0; }
.password-visibility-control button:focus-visible { outline: 2px solid #16803e; outline-offset: -3px; }
