/* [next]/internal/font/google/geist_a71539c9.module.css [app-client] (css) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/53b9e256198e5412-s.390ncx5urfkfu.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7178b3e590c64307-s.21jp631_3pja2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.0%;
  size-adjust: 104.76%;
}

.geist_a71539c9-module__T19VSG__className {
  font-family: Geist, Geist Fallback;
  font-style: normal;
}

.geist_a71539c9-module__T19VSG__variable {
  --font-geist-sans: "Geist", "Geist Fallback";
}

/* [next]/internal/font/google/geist_mono_8d43a2aa.module.css [app-client] (css) */
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5ce348bf30bf5439-s.31988l_ccedte.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.geist_mono_8d43a2aa-module__8Li5zG__className {
  font-family: Geist Mono, Geist Mono Fallback;
  font-style: normal;
}

.geist_mono_8d43a2aa-module__8Li5zG__variable {
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
}

/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --background: #f6f7fb;
  --surface: #fff;
  --surface-2: #f1f3f9;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e6e8ef;
  --primary: #409;
  --primary-hover: color-mix(in srgb, var(--primary), #000 15%);
  --primary-contrast: #fff;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --grad-primary: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 70%, #fff) 0%,
    var(--primary) 58%,
    color-mix(in srgb, var(--primary), #000 14%) 100%);
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --topbar-bg: #fffc;
  --topbar-fg: #0f172a;
  --topbar-muted: #64748b;
  --topbar-border: #e6e8ef;
  --topbar-hover: #f1f3f9;
  --sidebar-bg: #0f152a;
  --sidebar-fg: #e8ebf5;
  --sidebar-muted: #8a93ad;
  --sidebar-hover: #ffffff0f;
  --sidebar-active-bg: color-mix(in srgb, var(--primary) 30%, transparent);
  --sidebar-active-fg: #fff;
  --sidebar-accent: color-mix(in srgb, var(--primary) 55%, #fff);
  --sidebar-border: #ffffff14;
  --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 26%, transparent);
  --shadow-sm: 0 1px 2px #0f172a0f, 0 1px 3px #0f172a14;
  --shadow-md: 0 6px 18px #0f172a14;
  --shadow-lg: 0 20px 45px #0f172a29;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --topbar-height: 60px;
  --sidebar-width: 264px;
}

:root[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --background: #0a0e17;
  --surface: #121826;
  --surface-2: #1a2233;
  --foreground: #e7ebf3;
  --muted: #93a0b7;
  --border: #232c40;
  --danger: #f87171;
  --danger-bg: #dc262624;
  --danger-border: #f8717159;
  --success: #4ade80;
  --success-bg: #16a34a24;
  --success-border: #4ade8059;
  --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 36%, transparent);
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow-md: 0 6px 18px #0006;
  --shadow-lg: 0 24px 50px #0000008c;
}

[data-sidebar="light"] {
  --sidebar-bg: #fff;
  --sidebar-fg: #1f2937;
  --sidebar-muted: #6b7280;
  --sidebar-hover: #f3f4f6;
  --sidebar-active-bg: color-mix(in srgb, var(--primary) 12%, transparent);
  --sidebar-active-fg: color-mix(in srgb, var(--primary), #000 15%);
  --sidebar-accent: var(--primary);
  --sidebar-border: #e6e8ef;
}

[data-topbar="dark"] {
  --topbar-bg: #0f152ad1;
  --topbar-fg: #e7ebf3;
  --topbar-muted: #93a0b7;
  --topbar-border: #ffffff14;
  --topbar-hover: #ffffff12;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100vw;
  height: 100%;
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-geist-sans), system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.centered-screen {
  background: radial-gradient(60rem 60rem at 15% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 55%),
    radial-gradient(50rem 50rem at 100% 110%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 55%),
    var(--background);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1.5rem;
  display: flex;
  position: relative;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.login-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  display: flex;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.25rem;
  display: flex;
}

.login-footer {
  justify-content: center;
  align-items: center;
  gap: .35rem;
  display: flex;
}

.login-footer .login-version {
  color: var(--muted);
  margin-left: .35rem;
  font-size: .8rem;
}

.auth-brand {
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.auth-logo {
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--primary) 40%, transparent));
}

.theme-fixed {
  z-index: 10;
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.brand-title {
  letter-spacing: -.02em;
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-subtitle {
  text-align: center;
  margin-top: -.35rem;
  margin-bottom: .25rem;
  font-size: .9rem;
}

.field {
  color: var(--muted);
  flex-direction: column;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
}

.field input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  padding: .7rem .85rem;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
  outline: none;
}

.btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  padding: .7rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .12s, box-shadow .15s, opacity .15s, filter .15s, background .15s;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--primary-contrast);
  margin-top: .25rem;
}

.btn-primary:not(:disabled):hover {
  filter: brightness(1.08);
}

.alert {
  border-radius: var(--radius-sm);
  padding: .65rem .8rem;
  font-size: .85rem;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.app-shell {
  grid-template-columns: var(--sidebar-width) 1fr;
  height: 100vh;
  transition: grid-template-columns .22s;
  display: grid;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell {
    transition: none;
  }
}

.app-main {
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  display: flex;
}

.app-content {
  flex: 1;
  padding: 1.35rem 1.5rem;
  overflow-y: auto;
}

.sidebar {
  background: var(--sidebar-bg);
  height: 100vh;
  color: var(--sidebar-fg);
  border-right: 1px solid var(--sidebar-border);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.sidebar-brand {
  height: var(--topbar-height);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--sidebar-border);
  align-items: center;
  gap: .65rem;
  padding: 0 1.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
}

.brand-logo {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--primary) 45%, transparent));
  flex-shrink: 0;
}

.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: .2rem;
  padding: 1rem .85rem;
  display: flex;
  overflow-y: auto;
}

.app-content, .sidebar-nav, .settings-nav, .settings-main {
  scrollbar-width: thin;
  scrollbar-color: #8c8c8c73 transparent;
}

.app-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.settings-nav::-webkit-scrollbar {
  width: 8px;
}

.settings-main::-webkit-scrollbar {
  width: 8px;
}

.app-content::-webkit-scrollbar-track {
  background: none;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: none;
}

.settings-nav::-webkit-scrollbar-track {
  background: none;
}

.settings-main::-webkit-scrollbar-track {
  background: none;
}

.app-content::-webkit-scrollbar-thumb {
  background: #8c8c8c66;
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #8c8c8c66;
  border-radius: 999px;
}

.settings-nav::-webkit-scrollbar-thumb {
  background: #8c8c8c66;
  border-radius: 999px;
}

.settings-main::-webkit-scrollbar-thumb {
  background: #8c8c8c66;
  border-radius: 999px;
}

.app-content::-webkit-scrollbar-thumb:hover {
  background: #8c8c8c99;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #8c8c8c99;
}

.settings-nav::-webkit-scrollbar-thumb:hover {
  background: #8c8c8c99;
}

.settings-main::-webkit-scrollbar-thumb:hover {
  background: #8c8c8c99;
}

.sidebar-section {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  margin-bottom: .5rem;
  padding: 0 .75rem;
  font-size: .68rem;
  font-weight: 700;
}

.sidebar-footer {
  padding: .85rem;
}

.nav-link {
  border-radius: var(--radius-sm);
  color: var(--sidebar-muted);
  align-items: center;
  gap: .7rem;
  padding: .62rem .75rem;
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  display: flex;
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-fg);
}

.nav-link-active, .nav-link-active:hover {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-fg);
}

.nav-icon {
  color: currentColor;
  opacity: .85;
  flex-shrink: 0;
}

.nav-link-active .nav-icon {
  color: var(--sidebar-accent);
  opacity: 1;
}

.sidebar-separator {
  background: var(--sidebar-border);
  height: 1px;
  margin: .85rem -.85rem;
}

.sidebar-version {
  text-align: center;
  color: var(--sidebar-muted);
  font-size: .76rem;
}

.topbar {
  z-index: 5;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--topbar-border);
  align-items: center;
  gap: .4rem;
  padding: 0 1.25rem;
  display: flex;
  position: sticky;
  top: 0;
}

.topbar-spacer {
  flex: 1;
}

.topbar .icon-btn {
  color: var(--topbar-muted);
}

.topbar .icon-btn:hover {
  background: var(--topbar-hover);
  border-color: var(--topbar-border);
  color: var(--topbar-fg);
}

.topbar .user-menu-trigger {
  color: var(--topbar-fg);
}

.topbar .user-menu-trigger:hover {
  background: var(--topbar-hover);
  border-color: var(--topbar-border);
}

.topbar .caret {
  color: var(--topbar-muted);
}

.icon-btn {
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--foreground);
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  cursor: pointer;
  color: var(--foreground);
  background: none;
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  gap: .6rem;
  padding: .35rem .6rem .35rem .4rem;
  font-size: .9rem;
  transition: background .15s, border-color .15s;
  display: flex;
}

.user-menu-trigger:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.avatar {
  background: var(--grad-primary);
  color: #fff;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 38%, transparent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
}

.user-name {
  font-weight: 500;
}

.caret {
  color: var(--muted);
}

.dropdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  padding: .35rem;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  overflow: hidden;
}

.dropdown-header {
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: .35rem;
  padding: .6rem .7rem;
  font-size: .8rem;
}

.dropdown-item {
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  color: var(--foreground);
  background: none;
  border: none;
  align-items: center;
  gap: .6rem;
  padding: .6rem .7rem;
  font-size: .9rem;
  transition: background .12s;
  display: flex;
}

.dropdown-item:hover {
  background: var(--surface-2);
}

.dropdown-item-danger {
  color: var(--danger);
}

.page-title {
  letter-spacing: -.02em;
  margin-bottom: .35rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.placeholder-card {
  color: var(--muted);
  border-style: dashed;
  margin-top: 1.5rem;
  padding: 2.5rem;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:not(:disabled):hover {
  background: var(--surface);
}

.btn-ghost-danger {
  color: var(--danger);
  border: 1px solid var(--danger-border);
  background: none;
}

.btn-ghost-danger:not(:disabled):hover {
  background: var(--danger-bg);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}

.btn-danger:not(:disabled):hover {
  background: color-mix(in srgb, var(--danger) 88%, #000);
}

.btn-sm {
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem;
  font-size: .85rem;
  display: inline-flex;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.settings {
  gap: 0;
  height: calc(100% + 2.7rem);
  min-height: 0;
  margin-top: -1.35rem;
  margin-bottom: -1.35rem;
  display: flex;
}

.settings-nav {
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  width: 230px;
  padding: 1.35rem 1.25rem 1.35rem 0;
  overflow-y: auto;
}

.settings-nav-title {
  letter-spacing: -.01em;
  color: var(--foreground);
  margin-bottom: .9rem;
  padding: 0 .6rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.settings-main {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin-right: -1.5rem;
  padding: 1.35rem 1.5rem;
  display: flex;
  overflow-y: auto;
}

.settings-group + .settings-group {
  margin-top: 1.1rem;
}

.settings-group-title {
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
  padding: 0 .6rem;
  font-size: .72rem;
  font-weight: 700;
}

.settings-link {
  border-radius: var(--radius-sm);
  color: var(--foreground);
  align-items: center;
  gap: .65rem;
  padding: .55rem .6rem;
  font-size: .9rem;
  font-weight: 500;
  transition: background .12s, color .12s;
  display: flex;
}

.settings-link:hover {
  background: var(--surface-2);
}

.settings-link-active, .settings-link-active:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.settings-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.settings-link-active .settings-icon {
  color: var(--primary);
}

.settings-content {
  min-width: 0;
}

.settings-header {
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
}

@media (max-width: 900px) {
  .settings {
    flex-direction: column;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .settings-nav {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
    padding: 0 0 1rem;
    overflow: visible;
  }

  .settings-main {
    margin-right: 0;
    padding: 1rem 0 0;
  }

  .settings-content {
    overflow: visible;
  }
}

.settings-header-text {
  min-width: 0;
}

.settings-header-actions {
  flex-shrink: 0;
}

.settings-section-title {
  letter-spacing: -.02em;
  font-size: 1.5rem;
  font-weight: 700;
}

.settings-section-desc {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .9rem;
}

.settings-panel {
  padding: 1.5rem;
}

.form-grid {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  display: grid;
}

.form-actions {
  margin-top: .25rem;
}

.field-hint {
  color: var(--muted);
  margin-top: .5rem;
  font-size: .8rem;
}

.field input:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

.avatar-row {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
}

.avatar-actions {
  gap: .6rem;
  display: flex;
}

.avatar-img {
  object-fit: cover;
}

.segmented {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 3px;
  padding: 3px;
  display: inline-flex;
}

.segmented-item {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 7px;
  align-items: center;
  gap: .4rem;
  padding: .45rem .8rem;
  font-size: .85rem;
  font-weight: 500;
  transition: background .12s, color .12s, box-shadow .12s;
  display: inline-flex;
}

.segmented-item:hover {
  color: var(--foreground);
}

.segmented-item.active {
  background: var(--surface);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.option-group {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.option-group-last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.option-label {
  font-size: .95rem;
  font-weight: 600;
}

.option-hint {
  color: var(--muted);
  margin: .15rem 0 .7rem;
  font-size: .85rem;
}

.color-picker {
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.swatch {
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
  transition: transform .12s, box-shadow .12s;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch-active {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--foreground);
}

.color-custom {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .45rem;
  padding: .3rem .6rem .3rem .3rem;
  font-size: .82rem;
  display: inline-flex;
}

.color-custom input[type="color"] {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  padding: 0;
}

.color-custom input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-custom input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.color-picker .color-custom input[type="color"] {
  border-radius: 50%;
  width: 26px;
  height: 26px;
  padding: 0;
}

.tenant-switcher {
  position: relative;
}

.tenant-trigger {
  cursor: pointer;
  color: var(--foreground);
  background: none;
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  gap: .5rem;
  padding: .4rem .7rem;
  font-size: .9rem;
  transition: background .15s, border-color .15s;
  display: inline-flex;
}

.tenant-trigger:disabled {
  opacity: .6;
  cursor: default;
}

.tenant-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
  font-weight: 600;
  overflow: hidden;
}

.topbar .tenant-trigger {
  color: var(--topbar-fg);
}

.topbar .tenant-trigger:hover:not(:disabled) {
  background: var(--topbar-hover);
  border-color: var(--topbar-border);
}

.tenant-dropdown {
  left: 0;
  right: auto;
}

.tenant-dropdown .dropdown-item {
  justify-content: space-between;
}

.tenant-check {
  color: var(--primary);
  flex-shrink: 0;
}

.alert-info {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.settings-alert {
  margin-bottom: 1rem;
}

.create-row {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
}

.create-row input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
  color: var(--foreground);
  padding: .6rem .75rem;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}

.create-row input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
  outline: none;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
}

.data-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1rem;
  font-size: .72rem;
  font-weight: 600;
}

.data-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: .7rem 1rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem;
}

.tenant-cell-name {
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  display: inline-flex;
}

.badge {
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: .15rem .45rem;
  font-size: .66rem;
  font-weight: 700;
}

.inline-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  padding: .4rem .6rem;
  font-size: .9rem;
}

.inline-input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
  outline: none;
}

.row-actions {
  text-align: right;
  white-space: nowrap;
}

.row-actions > * {
  vertical-align: middle;
}

.row-actions > * + * {
  margin-left: .5rem;
}

.row-actions:after {
  content: "";
  vertical-align: middle;
  width: 0;
  height: calc(18px + .8rem);
  display: inline-block;
}

.row-actions .btn {
  opacity: 0;
  transition: opacity .15s, transform .15s;
  transform: translateX(6px);
}

tr:hover .row-actions .btn, tr:focus-within .row-actions .btn {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .row-actions .btn {
    transform: none;
  }
}

@media (hover: none) {
  .row-actions .btn {
    opacity: 1;
    transform: none;
  }
}

.btn-ghost {
  color: var(--muted);
  background: none;
  border: 1px solid #0000;
}

.btn-ghost:not(:disabled):hover {
  background: var(--surface-2);
  color: var(--foreground);
}

.icon-only {
  padding: .4rem;
}

.icon-only:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.modal-overlay {
  z-index: 100;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0f172a8c;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: fit-content;
  min-width: 40vw;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

@media (max-width: 640px) {
  .modal-panel {
    min-width: 92vw;
  }
}

.modal-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
}

.modal-title {
  letter-spacing: -.01em;
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  display: flex;
}

.swatch-default {
  background: var(--surface-2);
  border: 2px dashed var(--border);
}

.serial-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.serial-value {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  letter-spacing: .04em;
  -webkit-user-select: all;
  user-select: all;
  padding: .55rem .8rem;
  font-size: .95rem;
}

.license-page {
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
}

.license-head {
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  display: flex;
}

.license-level {
  letter-spacing: .06em;
  color: #fff;
  background: #64748b;
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .8rem;
  font-weight: 700;
}

.license-level-enterprise {
  background: #2563eb;
}

.license-level-auditor {
  background: var(--grad-primary);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.license-details {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem 1.5rem;
  margin-top: 1rem;
  display: grid;
}

.license-details > div {
  flex-direction: column;
  gap: .15rem;
  display: flex;
}

.license-details dt {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.license-details dd {
  word-break: break-word;
  font-size: .92rem;
}

.license-actions {
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.25rem;
  display: flex;
}

.license-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
  color: var(--foreground);
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  resize: vertical;
  margin-top: .5rem;
  padding: .7rem .85rem;
  font-size: .82rem;
}

.license-input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
  outline: none;
}

.tiers-intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.tiers-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  display: grid;
}

.tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  flex-direction: column;
  padding: 1.5rem;
  display: flex;
}

.tier-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.tier-head {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.tier-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.tier-price {
  letter-spacing: -.02em;
  margin-top: .75rem;
  font-size: 1.9rem;
  font-weight: 800;
}

.tier-period {
  color: var(--muted);
  margin-left: .2rem;
  font-size: .9rem;
  font-weight: 500;
}

.tier-tagline {
  color: var(--muted);
  margin: .35rem 0 1rem;
  font-size: .9rem;
}

.tier-features {
  flex-direction: column;
  gap: .6rem;
  list-style: none;
  display: flex;
}

.tier-features li {
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
  display: flex;
}

.tier-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

.paliers {
  margin-top: 2rem;
}

.paliers-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .6rem;
  font-size: .72rem;
  font-weight: 700;
}

.paliers-row {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.palier-chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
}

.plan-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.plan-head-right {
  flex-shrink: 0;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.node-usage {
  margin-top: 1.25rem;
}

.node-usage-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
}

.usage-track {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.usage-fill {
  background: var(--grad-primary);
  border-radius: 999px;
  height: 100%;
  transition: width .25s;
}

.license-top-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: 1.25rem;
  display: grid;
}

.license-top-grid > .card {
  margin: 0;
}

.flag {
  border-radius: 3px;
  width: 22px;
  height: auto;
  display: block;
  box-shadow: 0 0 0 1px #0000001f;
}

.lang-switcher {
  position: relative;
}

.lang-trigger {
  overflow: hidden;
}

.lang-dropdown {
  min-width: 200px;
  left: auto;
  right: 0;
}

.lang-dropdown .dropdown-item {
  justify-content: flex-start;
  gap: .6rem;
}

.lang-name {
  flex: 1;
}

.lang-options {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.lang-option {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  font-size: .88rem;
  transition: border-color .12s, background .12s, color .12s;
  display: inline-flex;
}

.lang-option:hover {
  background: var(--surface-2);
}

.lang-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.lang-option .flag {
  width: 20px;
}

.nav-group-header {
  width: 100%;
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  justify-content: space-between;
}

.nav-group-label {
  align-items: center;
  gap: .7rem;
  min-width: 0;
  display: flex;
}

.nav-group-label > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.nav-group-chevron {
  color: var(--sidebar-muted);
  flex-shrink: 0;
  transition: transform .15s;
}

.nav-group-open .nav-group-chevron {
  transform: rotate(90deg);
}

.nav-group {
  position: relative;
}

.nav-group-items {
  border-left: 1px solid var(--sidebar-border);
  flex-direction: column;
  gap: .1rem;
  margin: .15rem 0 .35rem 1.6rem;
  padding-left: .55rem;
  display: none;
}

.nav-group.open > .nav-group-items {
  display: flex;
}

.nav-flyout-title {
  display: none;
}

.nav-sublink {
  border-radius: var(--radius-sm);
  color: var(--sidebar-muted);
  padding: .42rem .7rem;
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.nav-sublink:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-fg);
}

.nav-sublink-active, .nav-sublink-active:hover {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-fg);
}

.nav-sub {
  flex-direction: column;
  gap: .1rem;
  display: flex;
}

.nav-sub-head {
  align-items: center;
  gap: .15rem;
  display: flex;
}

.nav-sub-head .nav-sublink {
  flex: 1;
  min-width: 0;
}

.nav-sub-toggle {
  border-radius: var(--radius-sm);
  width: 24px;
  height: 24px;
  color: var(--sidebar-muted);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background .15s, color .15s;
  display: inline-flex;
}

.nav-sub-toggle:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-fg);
}

.nav-sub-chevron {
  transition: transform .15s;
}

.nav-sub.open .nav-sub-chevron {
  transform: rotate(90deg);
}

.nav-subitems {
  border-left: 1px solid var(--sidebar-border);
  flex-direction: column;
  gap: .1rem;
  margin: .1rem 0 .15rem .7rem;
  padding-left: .55rem;
  display: flex;
}

.nav-subsublink {
  border-radius: var(--radius-sm);
  color: var(--sidebar-muted);
  padding: .36rem .7rem;
  font-size: .84rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.nav-subsublink:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-fg);
}

:root[data-sidebar-collapsed="1"] {
  --sidebar-width: 76px;
}

:root[data-sidebar-collapsed="1"] .sidebar {
  overflow: visible;
}

:root[data-sidebar-collapsed="1"] .brand-name, :root[data-sidebar-collapsed="1"] .nav-label, :root[data-sidebar-collapsed="1"] .nav-group-chevron, :root[data-sidebar-collapsed="1"] .sidebar-version-name {
  display: none;
}

:root[data-sidebar-collapsed="1"] .sidebar-version {
  font-size: .68rem;
}

:root[data-sidebar-collapsed="1"] .sidebar-brand {
  justify-content: center;
  padding: 0;
}

:root[data-sidebar-collapsed="1"] .sidebar-nav {
  padding: 1rem .6rem;
  overflow: visible;
}

:root[data-sidebar-collapsed="1"] .nav-link {
  justify-content: center;
  padding: .62rem;
}

:root[data-sidebar-collapsed="1"] .nav-group-label {
  gap: 0;
}

:root[data-sidebar-collapsed="1"] .nav-group.open > .nav-group-items {
  display: none;
}

:root[data-sidebar-collapsed="1"] .nav-group-items {
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius);
  background: var(--sidebar-bg);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  margin: 0;
  padding: .4rem;
  position: absolute;
  top: 0;
  left: 100%;
}

:root[data-sidebar-collapsed="1"] .nav-group:hover > .nav-group-items {
  display: flex;
}

:root[data-sidebar-collapsed="1"] .nav-flyout-title {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  padding: .35rem .7rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  display: block;
}

.page-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.page-header .page-title {
  margin-bottom: .15rem;
}

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

.mfr-card {
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  display: flex;
}

.mfr-icon {
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: block;
}

.mfr-icon-fallback {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
}

.mfr-body {
  flex: 1;
  min-width: 0;
}

.mfr-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  overflow: hidden;
}

.mfr-desc {
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: .15rem;
  font-size: .85rem;
  display: -webkit-box;
  overflow: hidden;
}

.mfr-actions {
  flex-shrink: 0;
  gap: .4rem;
  display: flex;
}

.mfr-icon-row {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
}

.mfr-icon-row .mfr-icon {
  border-radius: 16px;
  width: 72px;
  height: 72px;
}

.field-textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
  color: var(--foreground);
  resize: vertical;
  padding: .7rem .85rem;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}

.field-textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
  outline: none;
}

.crop-area {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  height: 55vh;
  margin: .75rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.crop-zoom {
  color: var(--muted);
  align-items: center;
  gap: .9rem;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.crop-zoom input[type="range"] {
  accent-color: var(--primary);
  flex: 1;
}

.table-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  display: flex;
}

.search-field {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-width: 200px;
  max-width: 380px;
  min-height: 2.375rem;
  color: var(--muted);
  flex: 1;
  align-items: center;
  gap: .5rem;
  padding: 0 .75rem;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
}

.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.search-field input {
  min-width: 0;
  color: var(--foreground);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: .55rem 0;
  font-size: .92rem;
}

.table-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: .85rem;
  display: flex;
}

.pagination {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.data-table .col-icon {
  width: 56px;
}

.data-table .col-icon .mfr-icon {
  border-radius: 10px;
  width: 40px;
  height: 40px;
}

.data-table .cell-strong {
  font-weight: 600;
}

.data-table .cell-desc {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
  overflow: hidden;
}

.data-table .col-select {
  text-align: center;
  width: 44px;
  padding-right: 0;
}

.data-table td.col-select {
  padding-right: 0;
}

.row-select {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  vertical-align: middle;
}

.row-select:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.data-table tr.is-selected td {
  background: var(--primary-soft);
}

.bulk-bar {
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 2.375rem;
  display: flex;
}

.bulk-bar-info {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.bulk-bar-count {
  font-size: .9rem;
  font-weight: 600;
}

.bulk-confirm-text {
  color: var(--foreground);
  margin: 0;
}

.bulk-progress {
  flex-direction: column;
  gap: .6rem;
  display: flex;
}

.bulk-progress-head {
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  display: flex;
}

.bulk-progress-track {
  background: var(--border);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bulk-progress-fill {
  background: var(--grad-primary);
  border-radius: 999px;
  height: 100%;
  transition: width .2s;
}

.bulk-summary {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.bulk-summary-line {
  margin: 0;
  font-weight: 600;
}

.bulk-summary-failed {
  color: var(--danger);
}

.bulk-fail-list {
  flex-direction: column;
  gap: .3rem;
  max-height: 220px;
  margin: .25rem 0 0;
  padding-left: 1.1rem;
  font-size: .85rem;
  display: flex;
  overflow-y: auto;
}

.inv-page {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
}

.inv-layout {
  flex: 1;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(240px, 340px) 1fr;
  min-height: 0;
  padding: 0;
  display: grid;
  overflow: hidden;
}

.inv-tree-pane {
  border-right: 1px solid var(--border);
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.inv-tree-head, .inv-fields-title {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.inv-tree-head {
  border-bottom: 1px solid var(--border);
  padding: .85rem 1rem;
}

.inv-tree {
  flex: 1;
  min-height: 0;
  padding: .4rem 0;
  overflow-y: auto;
}

.inv-row {
  cursor: pointer;
  border-left: 2px solid #0000;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem .35rem .5rem;
  display: flex;
}

.inv-row:hover {
  background: var(--surface-2, #7f7f7f0f);
}

.inv-row.active {
  background: var(--primary-soft);
  border-left-color: var(--primary);
}

.inv-caret {
  width: 18px;
  height: 18px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.inv-caret-empty {
  cursor: default;
}

.inv-row-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: .9rem;
  font-weight: 500;
  overflow: hidden;
}

.inv-type-badge {
  flex-shrink: 0;
  font-size: .6rem;
}

.inv-type-group {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}

.inv-type-keyvalue {
  color: #2563eb;
  background: #2563eb29;
}

.inv-type-table {
  color: #7c3aed;
  background: #7c3aed29;
}

.inv-row-actions {
  flex-shrink: 0;
  gap: .15rem;
  display: inline-flex;
}

.inv-kebab {
  color: var(--muted);
  opacity: .65;
  transition: opacity .12s, color .12s;
}

.inv-row:hover .inv-kebab, .inv-kebab:hover, .inv-kebab.active {
  opacity: 1;
  color: var(--foreground);
}

.inv-row-menu {
  min-width: 180px;
}

.inv-detail-pane {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
}

.inv-detail-empty {
  color: var(--muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

.inv-detail-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  display: flex;
}

.inv-detail-heading {
  min-width: 0;
}

.inv-detail-actions {
  flex-shrink: 0;
  gap: .5rem;
  display: flex;
}

.inv-detail-title {
  align-items: center;
  gap: .6rem;
  margin: 0 0 .25rem;
  font-size: 1.1rem;
  display: flex;
}

.inv-detail-note {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

.inv-fields-empty {
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  margin: 0 1.25rem 1.25rem;
  padding: 1.5rem;
}

.inv-fields-table {
  border-top: 1px solid var(--border);
}

.inv-table-scroll {
  border-top: 1px solid var(--border);
  overflow-x: auto;
}

.inv-preview-table {
  min-width: 100%;
}

.inv-preview-table th {
  border-right: 1px solid var(--border);
  vertical-align: top;
}

.inv-preview-table th:last-child {
  border-right: none;
}

.inv-col-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  display: flex;
}

.inv-col-text {
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
  display: flex;
}

.inv-col-name {
  color: var(--foreground);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 600;
}

.inv-col-type {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: .72rem;
  font-weight: 500;
}

.inv-col-actions {
  opacity: 0;
  gap: .1rem;
  transition: opacity .12s;
  display: inline-flex;
}

.inv-preview-table th:hover .inv-col-actions {
  opacity: 1;
}

@media (hover: none) {
  .inv-col-actions {
    opacity: 1;
  }
}

.inv-preview-empty {
  text-align: center;
  padding: 1.25rem;
  font-size: .85rem;
}

.inv-key-star {
  color: #d97706;
  font-size: .95rem;
}

.inv-keycol-badge {
  color: #d97706;
  background: #d9770629;
  margin-left: .5rem;
  font-size: .6rem;
}

.inv-inherited-badge {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
  margin-left: .35rem;
  font-size: .6rem;
}

.inv-fields-table tr.inv-inherited-row, .inv-fields-table tr.inv-inherited-row:hover {
  background: color-mix(in srgb, var(--muted) 4%, transparent);
}

.inv-inherited-row .inv-key-name {
  color: var(--muted);
}

.inv-preview-table td.inv-key-cell {
  border-right: 1px solid var(--border);
  background: #d977060f;
}

.inv-key-row {
  align-items: center;
  gap: .4rem;
  display: inline-flex;
}

.inv-key-row .inv-key-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  font-weight: 600;
}

.inv-key-del {
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: .1rem;
  transition: opacity .12s, color .12s, background .12s;
  display: inline-flex;
}

.inv-preview-table tr:hover .inv-key-del {
  opacity: 1;
}

.inv-key-del:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.inv-preview-table td.inv-cell-dash {
  text-align: center;
}

@media (hover: none) {
  .inv-key-del {
    opacity: 1;
  }
}

.dt-chip {
  text-transform: none;
  letter-spacing: 0;
  color: var(--dtc);
  background: color-mix(in srgb, var(--dtc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--dtc) 28%, transparent);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  padding: .1rem .5rem;
  font-size: .7rem;
  font-weight: 600;
  display: inline-flex;
}

.dt-text {
  --dtc: #64748b;
}

.dt-number {
  --dtc: #2563eb;
}

.dt-boolean {
  --dtc: #16a34a;
}

.dt-date {
  --dtc: #d97706;
}

.dt-interface {
  --dtc: #0891b2;
}

.dt-ip {
  --dtc: #4f46e5;
}

.dt-mask {
  --dtc: #0d9488;
}

.dt-ipmask {
  --dtc: #7c3aed;
}

.dt-version {
  --dtc: #db2777;
}

.inv-col-meta {
  align-items: center;
  gap: .35rem;
  display: inline-flex;
}

.inv-sum-badge {
  color: #0891b2;
  background: #0891b226;
  border: 1px solid #0891b24d;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .25rem;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
}

.inv-summary-demo {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--muted) 5%, transparent);
  flex-direction: column;
  gap: .4rem;
  margin-top: .6rem;
  padding: .7rem .8rem;
  display: flex;
}

.inv-summary-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.inv-summary-result {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.inv-summary-result code {
  color: var(--primary);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
}

.inv-key-name, .inv-col-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
}

.inv-fields-table thead th {
  background: color-mix(in srgb, var(--muted) 8%, transparent);
}

.inv-fields-table td {
  padding-top: .72rem;
  padding-bottom: .72rem;
}

.inv-fields-table .col-grip {
  text-align: center;
  width: 34px;
  padding-right: 0;
}

.inv-grip {
  color: var(--muted);
  cursor: grab;
  opacity: .6;
  align-items: center;
  transition: opacity .12s, color .12s;
  display: inline-flex;
}

.inv-fields-table tr:hover .inv-grip {
  opacity: 1;
  color: var(--foreground);
}

.inv-grip:active {
  cursor: grabbing;
}

.inv-fields-table tr.is-dragging {
  opacity: .45;
}

.inv-fields-table tr.drop-above td {
  box-shadow: inset 0 2px 0 var(--primary);
}

.inv-fields-table tr.drop-below td {
  box-shadow: inset 0 -2px 0 var(--primary);
}

@media (max-width: 720px) {
  .inv-page {
    height: auto;
  }

  .inv-layout {
    flex: initial;
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .inv-tree-pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .inv-tree {
    max-height: 320px;
  }

  .inv-detail-pane {
    overflow-y: visible;
  }
}

.worker-view {
  flex-direction: column;
  gap: 2rem;
  display: flex;
}

.worker-type {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.worker-type + .worker-type {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.worker-type-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.worker-type-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.worker-type-desc {
  margin: .15rem 0 0;
  font-size: .85rem;
}

.worker-type-badge {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex: none;
  padding: .2rem .6rem;
  font-size: .75rem;
}

.worker-type-block, .worker-config-card {
  margin: 0;
}

.worker-config-head {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  display: flex;
}

.worker-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  display: grid;
}

.worker-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border-left-width: 3px;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.worker-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.worker-stat-label {
  color: var(--muted);
  font-size: .8rem;
}

.worker-stat-pending {
  border-left-color: #2563eb;
}

.worker-stat-processing {
  border-left-color: #d97706;
}

.worker-stat-failed {
  border-left-color: var(--danger);
}

.worker-section-title {
  font-weight: 600;
}

.worker-poll {
  font-size: .8rem;
}

.worker-config-summary {
  margin: 0;
}

.worker-config-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worker-restart-note {
  color: #b45309;
  background: #d977061f;
  border: 1px solid #d977064d;
}

@media (max-width: 640px) {
  .worker-stats, .worker-config-grid {
    grid-template-columns: 1fr;
  }
}

.node-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
}

.split-btn {
  display: inline-flex;
  position: relative;
}

.split-main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.split-caret {
  border-left: 1px solid #ffffff4d;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: .55rem;
  padding-right: .55rem;
}

.split-main:not(:disabled):hover, .split-caret:not(:disabled):hover {
  transform: none;
}

.split-menu {
  min-width: 220px;
}

.bulk-count {
  color: var(--muted);
  font-size: .82rem;
}

.bulk-count-warn {
  color: var(--danger);
}

.csv-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 2.5rem 1rem;
  transition: border-color .15s, background .15s;
  display: flex;
}

.csv-drop:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.csv-drop p {
  color: var(--foreground);
  margin: 0;
  font-weight: 500;
}

.csv-values {
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
}

.csv-value-title {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0 0 .6rem;
  font-size: .72rem;
  font-weight: 600;
}

.csv-value-row {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: .4rem 0;
  display: grid;
}

.csv-value-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  font-weight: 600;
  overflow: hidden;
}

.csv-config {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.csv-file {
  margin: 0 0 .5rem;
}

.csv-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 300px;
  overflow: auto;
}

.csv-preview-table {
  font-size: .82rem;
}

.csv-preview-table th {
  background: var(--surface);
  z-index: 1;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.csv-preview-table td {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 260px;
  overflow: hidden;
}

.csv-more {
  margin: .35rem 0 0;
}

.csv-select-field {
  max-width: 480px;
  margin-top: .75rem;
}

.csv-rules {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1.25rem;
}

.csv-rules-title {
  margin: 0 0 .25rem;
  font-size: 1rem;
  font-weight: 700;
}

.csv-map-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: .75rem;
  overflow: hidden;
}

.csv-map-head, .csv-map-row {
  grid-template-columns: minmax(180px, 1.6fr) 1fr 1fr 1fr .8fr;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  display: grid;
}

.csv-map-head {
  background: color-mix(in srgb, var(--muted) 8%, transparent);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
}

.csv-map-row + .csv-map-row {
  border-top: 1px solid var(--border);
}

.data-table th.col-score, .data-table td.col-score {
  text-align: center;
  width: 52px;
}

.node-score {
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: .82rem;
  font-weight: 700;
  display: inline-flex;
}

.score-none {
  background: color-mix(in srgb, var(--muted) 22%, transparent);
  color: var(--muted);
}

.score-a {
  background: #16a34a;
}

.score-b {
  background: #65a30d;
}

.score-c {
  background: #ca8a04;
}

.score-d {
  background: #ea580c;
}

.score-e {
  background: #dc2626;
}

.score-f {
  background: #991b1b;
}

.node-host {
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  display: flex;
}

.node-host-name {
  font-weight: 500;
}

.node-host-tags {
  flex-wrap: wrap;
  gap: .3rem;
  display: flex;
}

.node-host-tags .tag-chip {
  padding: .05rem .4rem;
  font-size: .68rem;
}

.node-host-cell {
  align-items: center;
  gap: .6rem;
  min-width: 0;
  display: flex;
}

.node-ip-cell {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.monitor-dot {
  background: #9aa0a6;
  border-radius: 50%;
  flex: none;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px #0000;
}

.monitor-dot-lg {
  width: 12px;
  height: 12px;
}

.monitor-dot-up {
  background: #22c55e;
  box-shadow: 0 0 0 3px #22c55e38;
}

.monitor-dot-down {
  background: #ef4444;
  box-shadow: 0 0 0 3px #ef444438;
}

.monitor-dot-unknown {
  background: #9aa0a6;
}

.monitor-dot.is-running {
  animation: .75s ease-in-out infinite monitor-blink;
}

@keyframes monitor-blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

.data-table td.col-compliance {
  min-width: 150px;
}

.node-compliance {
  align-items: center;
  gap: .55rem;
  display: flex;
}

.node-compliance-track {
  background: color-mix(in srgb, var(--muted) 20%, transparent);
  border-radius: 999px;
  flex: 1;
  min-width: 70px;
  height: 6px;
  overflow: hidden;
}

.node-compliance-fill {
  background: var(--grad-primary);
  border-radius: 999px;
  height: 100%;
  transition: width .2s;
}

.node-compliance-label {
  color: var(--muted);
  white-space: nowrap;
  font-size: .78rem;
}

.node-head {
  align-items: center;
  gap: .9rem;
  display: flex;
}

.node-score-lg.node-score {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
}

.node-head-info {
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  display: flex;
}

.node-head-line1 {
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
  display: flex;
}

.node-head-name {
  margin: 0;
  font-weight: 700;
}

.node-head-ip {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  font-style: italic;
}

.node-head-line2 {
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  display: flex;
}

.node-head-part {
  align-items: center;
  gap: .45rem;
  display: inline-flex;
}

.node-head-mfr {
  color: var(--foreground);
  align-items: center;
  gap: .35rem;
  font-weight: 400;
  display: inline-flex;
}

.node-head-mfr .mfr-icon {
  border-radius: 3px;
  width: 14px;
  height: 14px;
}

.node-head-mfr .mfr-icon-fallback {
  font-size: .5rem;
}

.node-head-sep {
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  border-radius: 50%;
  width: 3px;
  height: 3px;
}

.node-head-tags {
  flex-wrap: wrap;
  gap: .3rem;
  display: inline-flex;
}

.node-head-tags .tag-chip {
  padding: .05rem .4rem;
  font-size: .68rem;
}

.node-summary {
  flex-direction: column;
  display: flex;
}

.node-summary-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: .75rem 0;
  display: grid;
}

.node-summary-row:last-child {
  border-bottom: none;
}

.node-summary-label {
  color: var(--muted);
  font-weight: 500;
}

.node-summary-compliance {
  max-width: 260px;
}

.node-settings-actions {
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  display: flex;
}

.node-danger-zone {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  display: flex;
}

.node-danger-zone .field-hint {
  margin: .15rem 0 0;
}

@media (max-width: 560px) {
  .node-summary-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

.node-pending {
  opacity: .75;
  font-style: italic;
}

.node-mfr-icon.mfr-icon {
  border-radius: 5px;
  width: 18px;
  height: 18px;
}

.node-mfr-icon.mfr-icon-fallback {
  font-size: .6rem;
}

.node-device {
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
  display: flex;
}

.node-device-mfr {
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  display: inline-flex;
}

.node-device-model {
  color: var(--muted);
  font-size: .8rem;
}

.node-enforce-hint {
  align-items: center;
  gap: .3rem;
  display: inline-flex;
}

.tag-chip {
  color: var(--tag, var(--primary));
  background: color-mix(in srgb, var(--tag, var(--primary)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag, var(--primary)) 32%, transparent);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: .4rem;
  padding: .15rem .55rem;
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
}

.tag-dot {
  background: var(--tag, var(--primary));
  border-radius: 50%;
  flex-shrink: 0;
  width: .55rem;
  height: .55rem;
}

.tag-preview-row {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem;
  padding: .75rem 0;
  display: flex;
}

.data-block {
  padding: 0;
  overflow: hidden;
}

.data-block-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  display: flex;
}

.data-block-actions {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.data-block-body {
  min-height: 0;
}

.data-block-footer {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  font-size: .85rem;
  display: flex;
}

.footer-left {
  align-items: center;
  gap: 1.25rem;
  display: flex;
}

.page-size {
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  display: flex;
}

.filter-select-sm select {
  padding: .3rem 1.7rem .3rem .6rem;
  font-size: .85rem;
}

.filter-select-sm svg {
  right: .55rem;
}

@media (max-width: 560px) {
  .page-size span {
    display: none;
  }
}

.filter-dot {
  background: var(--primary);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.drawer-overlay {
  z-index: 100;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  background: #0f172a73;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.drawer {
  background: var(--surface);
  border-left: 1px solid var(--border);
  width: 360px;
  max-width: 90vw;
  height: 100%;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  animation: .2s drawer-in;
  display: flex;
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.drawer-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  display: flex;
}

.filter-panel {
  flex-direction: column;
  gap: 1.75rem;
  display: flex;
}

.filter-section {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.filter-section-title {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0 0 .15rem;
  font-size: .72rem;
  font-weight: 700;
}

.filter-check {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: .65rem;
  padding: .4rem .1rem;
  font-size: .92rem;
  display: flex;
}

.filter-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-select {
  position: relative;
}

.filter-select select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
  color: var(--foreground);
  cursor: pointer;
  padding: .65rem 2.25rem .65rem .85rem;
  font-size: .92rem;
  transition: border-color .15s, box-shadow .15s;
}

.filter-select select:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
  outline: none;
}

.filter-select svg {
  color: var(--muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: .85rem;
  transform: translateY(-50%);
}

.detail-header {
  align-items: center;
  margin-bottom: .85rem;
}

.detail-head-left {
  align-items: center;
  gap: .85rem;
  min-width: 0;
  display: flex;
}

.back-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 40px;
  height: 40px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: color .15s, border-color .15s, background .15s;
  display: inline-flex;
}

.back-btn:hover {
  color: var(--foreground);
  border-color: var(--primary);
  background: var(--surface-2);
}

.detail-head-actions {
  align-items: center;
  gap: .85rem;
  display: flex;
}

.save-note {
  color: var(--success);
  font-size: .85rem;
  font-weight: 600;
}

.tabs {
  border-bottom: 1px solid var(--border);
  gap: .25rem;
  margin-bottom: 1.25rem;
  display: flex;
  overflow-x: auto;
}

.tab {
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: .45rem;
  padding: .7rem .95rem;
  font-size: .9rem;
  font-weight: 600;
  transition: color .15s, border-color .15s;
  display: inline-flex;
}

.tab:hover {
  color: var(--foreground);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab.tab-right {
  margin-left: auto;
}

.tab-panel {
  padding: 1.5rem;
}

.tab-empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
}

.tab-lead {
  margin: 0 0 1.15rem;
}

.field-narrow {
  max-width: 260px;
}

.code-textarea {
  tab-size: 2;
  font-family: ui-monospace, SF Mono, Cascadia Code, Menlo, Consolas, monospace;
  font-size: .85rem;
  line-height: 1.55;
}

.tag-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: .45rem .5rem;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
}

.tag-input:focus-within {
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.tag-input input {
  min-width: 8rem;
  color: var(--foreground);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: .25rem;
  font-size: .9rem;
}

.tag {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  align-items: center;
  gap: .35rem;
  padding: .25rem .3rem .25rem .6rem;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
}

.tag button {
  color: inherit;
  cursor: pointer;
  opacity: .7;
  background: none;
  border: none;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: .1rem;
  display: inline-flex;
}

.tag button:hover {
  opacity: 1;
}

.oid-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

@media (max-width: 640px) {
  .oid-grid {
    grid-template-columns: 1fr;
  }
}

.row-link {
  cursor: pointer;
}

.row-link:hover {
  background: var(--surface-2);
}

.data-table th.col-center, .data-table td.col-center {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}

.check-yes {
  color: var(--success);
  display: inline-flex;
}

.cell-dash {
  color: var(--muted);
}

.count-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-width: 1.6rem;
  height: 1.5rem;
  color: var(--muted);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 .4rem;
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
}

.cve-tags {
  flex-wrap: wrap;
  gap: .3rem;
  max-width: 260px;
  display: flex;
}

.mini-tag {
  background: var(--primary-soft);
  color: var(--primary);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  padding: .1rem .45rem;
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
}

.role-form-head {
  margin-bottom: 1.25rem;
}

.role-perms-title {
  border-top: 1px solid var(--border);
  margin: .25rem 0 .85rem;
  padding-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.role-system-note {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.perm-editor {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.perm-editor-disabled {
  opacity: .75;
}

.perm-manage {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  display: flex;
}

.perm-manage input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: .15rem;
}

.perm-manage span {
  flex-direction: column;
  gap: .15rem;
  display: flex;
}

.perm-manage small {
  color: var(--muted);
  font-size: .8rem;
}

.perm-resource {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.perm-resource-title {
  margin-bottom: .5rem;
  font-size: .95rem;
  font-weight: 700;
}

.perm-check {
  cursor: pointer;
  align-items: center;
  gap: .55rem;
  padding: .28rem 0;
  font-size: .9rem;
  display: flex;
}

.perm-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.perm-scope {
  border-left: 2px solid var(--border);
  flex-direction: column;
  gap: .3rem;
  margin: .1rem 0 .5rem 1.6rem;
  padding-left: .85rem;
  display: flex;
}

.perm-radio {
  cursor: pointer;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  display: flex;
}

.perm-radio input {
  accent-color: var(--primary);
  cursor: pointer;
}

.perm-instances {
  flex-wrap: wrap;
  gap: .1rem 1.25rem;
  margin-top: .2rem;
  display: flex;
}

.perm-instance {
  font-size: .85rem;
}

.perm-empty {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .82rem;
  font-style: italic;
}

.user-name-row {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  display: grid;
}

.user-super {
  margin-top: 1.25rem;
}

.source-badge {
  text-transform: none;
  letter-spacing: 0;
  background: var(--surface-2);
  color: var(--foreground);
  border: 1px solid var(--border);
  font-weight: 600;
}

.badge-accent {
  background: var(--primary-soft);
  color: var(--primary);
}

@media (max-width: 560px) {
  .user-name-row {
    grid-template-columns: 1fr;
  }
}

.tab-fieldset {
  border: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.member-head {
  margin-bottom: .75rem;
}

.member-hint {
  margin-top: .6rem;
}

.plan-compare-wrap {
  margin-top: .5rem;
  overflow-x: auto;
}

.plan-compare {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
}

.plan-compare th, .plan-compare td {
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: .7rem .9rem;
}

.plan-compare thead th {
  border-bottom: 2px solid var(--border);
}

.plan-compare tbody tr:last-child th, .plan-compare tbody tr:last-child td {
  border-bottom: none;
}

.plan-col-name {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.plan-feature {
  text-align: left;
  color: var(--foreground);
  font-weight: 500;
}

.plan-yes {
  color: var(--success);
  vertical-align: middle;
}

.plan-value {
  font-weight: 600;
}

.plan-compare .plan-col-current {
  background: var(--primary-soft);
}

.plan-compare thead th.plan-col-current {
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.auth-settings {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.auth-minlen {
  max-width: 240px;
}

.auth-toggles {
  flex-direction: column;
  gap: .2rem;
  margin-top: .85rem;
  display: flex;
}

.auth-idle-input {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.auth-unit {
  color: var(--muted);
  font-size: .9rem;
}

.sso-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .65rem 1rem;
  font-size: .92rem;
  font-weight: 600;
  transition: filter .15s;
  display: flex;
}

.sso-btn:hover {
  filter: brightness(.97);
}

.sso-list {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.sso-divider {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  align-items: center;
  gap: .75rem;
  margin: .35rem 0;
  font-size: .8rem;
  display: flex;
}

.sso-divider:before, .sso-divider:after {
  content: "";
  background: var(--border);
  flex: 1;
  height: 1px;
}

.sso-url {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  word-break: break-all;
  padding: .5rem .7rem;
  font-size: .82rem;
  display: block;
}

.sso-rules {
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .85rem;
  display: flex;
}

.sso-rule {
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: .5rem;
  display: grid;
}

.sso-rule-context {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.sso-rule > input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-width: 0;
  color: var(--foreground);
  padding: .5rem .6rem;
  font-size: .88rem;
}

.sso-rule .filter-select {
  min-width: 0;
}

.sso-preview {
  max-width: 320px;
}

.sso-test {
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  display: flex;
}

.sso-test-note {
  margin: 0;
}

@media (max-width: 720px) {
  .sso-rule, .sso-rule-context {
    grid-template-columns: 1fr 1fr;
  }
}

.sso-colors {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  display: grid;
}

.field input[type="color"] {
  cursor: pointer;
  height: 42px;
  padding: .2rem;
}

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

.sso-guide-btn {
  color: var(--muted);
}

.sso-guide-layout {
  align-items: flex-start;
  gap: 1.5rem;
  display: flex;
}

.sso-guide-nav {
  flex-direction: column;
  flex-shrink: 0;
  gap: .25rem;
  width: 200px;
  display: flex;
  position: sticky;
  top: 0;
}

.sso-guide-nav-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
  padding: 0 .6rem;
  font-size: .7rem;
  font-weight: 700;
}

.sso-guide-nav-btn {
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem;
  font-size: .9rem;
  transition: background .12s, border-color .12s;
  display: flex;
}

.sso-guide-nav-btn:hover {
  background: var(--surface-2);
}

.sso-guide-nav-btn.active {
  background: var(--surface-2);
  border-color: var(--border);
  font-weight: 600;
}

.sso-guide-nav-icon {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.sso-guide-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .sso-guide-layout {
    flex-direction: column;
  }

  .sso-guide-nav {
    flex-flow: wrap;
    width: 100%;
    position: static;
  }

  .sso-guide-nav-label {
    width: 100%;
  }
}

.guide-intro {
  margin-bottom: .75rem;
}

.guide-callback {
  margin-bottom: 1rem;
}

.sso-guide {
  margin: 1rem 0 0;
  padding-left: 1.3rem;
}

.sso-guide > li {
  margin-bottom: 1rem;
}

.sso-guide > li::marker {
  color: var(--primary);
  font-weight: 700;
}

.sso-guide strong {
  margin-bottom: .15rem;
  display: block;
}

.sso-guide p {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
}

.guide-vals {
  color: var(--muted);
  flex-direction: column;
  gap: .25rem;
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  font-size: .85rem;
  list-style: outside;
  display: flex;
}

.sso-guide code, .guide-vals code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: 4px;
  padding: .05rem .35rem;
  font-size: .82rem;
}

.guide-heading {
  margin: 1.4rem 0 .5rem;
  font-size: .95rem;
  font-weight: 700;
}

.guide-fields {
  margin: .25rem 0 0;
}

.guide-fields dt {
  margin-top: .7rem;
  font-size: .88rem;
  font-weight: 600;
}

.guide-fields dd {
  color: var(--muted);
  margin: .15rem 0 0;
  font-size: .88rem;
  line-height: 1.5;
}

.guide-fields dd code {
  margin-top: .2rem;
  display: inline-block;
}

.guide-note {
  color: var(--muted);
  margin: .4rem 0 0;
  font-size: .88rem;
  line-height: 1.5;
}

.sso-debug {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-top: .85rem;
  padding: .85rem 1rem;
}

.sso-debug.ok {
  border-color: var(--success-border);
}

.sso-debug.ko {
  border-color: var(--danger-border);
}

.sso-debug-head {
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 700;
}

.sso-checks {
  flex-direction: column;
  gap: .35rem;
  list-style: none;
  display: flex;
}

.sso-checks li {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  display: flex;
}

.chk-ok {
  color: var(--success);
  flex-shrink: 0;
}

.chk-ko {
  color: var(--danger);
  flex-shrink: 0;
}

.chk-label {
  font-weight: 600;
}

.chk-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  word-break: break-all;
  border-radius: 4px;
  padding: .05rem .35rem;
  font-size: .8rem;
}

.sso-sim-btn {
  margin-top: .6rem;
}

.sso-sim-out {
  grid-template-columns: auto 1fr;
  gap: .25rem 1rem;
  margin-bottom: .6rem;
  display: grid;
}

.sso-sim-out > div {
  display: contents;
}

.sso-sim-out dt {
  font-size: .85rem;
  font-weight: 600;
}

.sso-sim-out dd {
  color: var(--muted);
  word-break: break-all;
  font-size: .85rem;
}

.sso-sim-out-block {
  margin-top: .5rem;
  font-size: .85rem;
}

.sso-sim-out-block .cve-tags {
  margin-top: .3rem;
}

.sso-test-live {
  margin-top: 1rem;
}

.sso-real-btn {
  margin-top: .2rem;
  display: inline-flex;
}

.guide-warn {
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  margin-top: .6rem;
  padding: .55rem .75rem;
}

.mapping-builder {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.mb-header {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.mb-header-hint {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.mb-header-add {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: color .12s, border-color .12s, background .12s;
  display: inline-flex;
}

.mb-header-add:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-2);
}

.mapping-builder > .mb-block.mb-if:not(:first-child) {
  margin-top: 1.25rem;
  position: relative;
}

.mapping-builder > .mb-block.mb-if:not(:first-child):before {
  content: "";
  border-top: 1px dashed var(--border);
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
}

.mb-block {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: .75rem .85rem;
}

.mb-dragging {
  opacity: .45;
}

.mb-head {
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  display: flex;
}

.mb-collapsed .mb-head {
  margin-bottom: 0;
}

.mb-collapse {
  width: 22px;
  height: 22px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.mb-collapse svg {
  transition: transform .15s;
}

.mb-collapse:hover {
  color: var(--foreground);
}

.mb-collapsed .mb-collapse svg {
  transform: rotate(-90deg);
}

.mb-summary {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--muted);
  flex: 1;
  font-size: .72rem;
  overflow: hidden;
}

.mb-sum-claim {
  color: var(--foreground);
  font-weight: 600;
}

.mb-sum-op {
  color: var(--muted);
}

.mb-sum-val {
  color: #d97706;
  font-weight: 600;
}

.mb-sum-and {
  color: #16a34a;
  font-weight: 700;
}

.mb-sum-or {
  color: #2563eb;
  font-weight: 700;
}

.mb-sum-arrow {
  color: var(--muted);
}

.mb-sum-grant {
  color: var(--primary);
  font-weight: 700;
}

.mb-tools-sep {
  background: var(--border);
  opacity: 0;
  width: 1px;
  height: 15px;
  margin: 0 .2rem;
  transition: opacity .12s;
}

.mb-block:hover .mb-head .mb-tools-sep {
  opacity: 1;
}

.mb-grip {
  cursor: grab;
  color: var(--muted);
  display: inline-flex;
}

.mb-grip:active {
  cursor: grabbing;
}

.mb-kind {
  width: 118px;
}

.mb-remove {
  margin-left: auto;
}

.mb-combinator {
  gap: 1.25rem;
  margin-bottom: .5rem;
  display: flex;
}

.mb-cond {
  grid-template-columns: 1.2fr 1fr 1.2fr auto;
  align-items: center;
  gap: .4rem;
  margin-bottom: .4rem;
  display: grid;
}

.mb-cond > input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-width: 0;
  color: var(--foreground);
  padding: .45rem .55rem;
  font-size: .85rem;
}

.mb-novalue {
  color: var(--muted);
  text-align: center;
}

.mb-add-cond {
  color: var(--muted);
}

.mb-then {
  border-top: 1px dashed var(--border);
  margin-top: .55rem;
  padding-top: .55rem;
}

.mb-then-label {
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 700;
  display: inline-block;
}

.mb-grant {
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: .4rem;
  margin-bottom: .4rem;
  display: grid;
}

.mb-grant-context {
  grid-template-columns: 1fr auto;
}

.mb-add-blocks {
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
  display: flex;
}

@media (max-width: 640px) {
  .mb-cond {
    grid-template-columns: 1fr 1fr;
  }

  .mb-grant {
    grid-template-columns: 1fr;
  }
}

.mb-badge {
  letter-spacing: .05em;
  border-radius: 999px;
  padding: .12rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}

.mb-badge-if {
  background: var(--primary-soft);
  color: var(--primary);
}

.mb-badge-elseif {
  color: #d97706;
  background: #d9770629;
}

.mb-badge-else {
  background: var(--surface-2);
  color: var(--muted);
}

.mb-if {
  border-left-color: var(--primary);
}

.mb-elseif {
  border-left-color: #d97706;
}

.mb-else {
  border-left-color: var(--muted);
}

.mb-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
  border-left-width: 3px;
  margin: .45rem 0;
  padding: .5rem .6rem;
}

.mb-group.mb-comb-and {
  border-left-color: #16a34a;
}

.mb-group.mb-comb-or {
  border-left-color: #2563eb;
}

.mb-group-head {
  align-items: center;
  gap: .5rem;
  margin-bottom: .45rem;
  display: flex;
}

.mb-comb {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  overflow: hidden;
}

.mb-comb-btn {
  background: var(--surface);
  color: var(--muted);
  letter-spacing: .03em;
  cursor: pointer;
  border: none;
  padding: .22rem .65rem;
  font-size: .74rem;
  font-weight: 700;
}

.mb-comb-btn.active.mb-and {
  color: #fff;
  background: #16a34a;
}

.mb-comb-btn.active.mb-or {
  color: #fff;
  background: #2563eb;
}

.mb-group-remove {
  margin-left: auto;
}

.mb-group-body {
  flex-direction: column;
  gap: .4rem;
  display: flex;
}

.mb-group-actions {
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .4rem;
  display: flex;
}

.mb-tools {
  align-items: center;
  gap: .15rem;
  margin-left: auto;
  display: inline-flex;
}

.mb-then-head {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.mb-tool {
  border-radius: var(--radius-sm);
  width: 26px;
  height: 26px;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: opacity .12s, background .12s, color .12s, border-color .12s;
  display: inline-flex;
}

.mb-tool:hover {
  background: var(--surface-2);
  color: var(--foreground);
  border-color: var(--border);
}

.mb-tool-danger:hover {
  color: var(--danger);
  border-color: var(--danger-border);
}

.mb-group:hover .mb-tools .mb-tool, .mb-block:hover .mb-remove, .mb-block:hover .mb-then-add, .mb-cond:hover .mb-tool, .mb-grant:hover .mb-tool {
  opacity: 1;
}

@media (hover: none) {
  .mb-tool {
    opacity: 1;
  }
}

.mapping-builder input[type="text"], .mapping-builder .filter-select select {
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: .85rem;
}

.mb-then-add {
  margin-left: auto;
}

.mb-group.mb-solo {
  border-left-color: var(--border);
}

.mb-block:hover .mb-head .mb-tool {
  opacity: 1;
}

.mb-then {
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  border-top: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  margin-top: .7rem;
  padding: .55rem .7rem;
}

.mb-cond, .mb-grant {
  margin-bottom: 0;
}

.mb-group {
  margin: 0;
}

.mb-then {
  border-color: color-mix(in srgb, #3b82f6 32%, var(--border));
  border-top-color: color-mix(in srgb, #3b82f6 32%, var(--border));
  background: #3b82f614;
  flex-direction: column;
  gap: .4rem;
  display: flex;
}

.mb-then-label {
  color: #2563eb;
}

.mb-nested {
  border-left: 2px dashed var(--border);
  margin-top: .6rem;
  padding-left: .75rem;
}

.mapping-builder-nested {
  gap: .5rem;
}

.mapping-builder-nested .mb-add-blocks {
  margin-top: 0;
}

.mb-nested-empty {
  border-left: none;
  margin-top: .4rem;
  padding-left: 0;
}

.mb-nested-empty .btn {
  color: var(--muted);
}

.mb-block:hover .mb-then .mb-tool {
  opacity: 1;
}

.collection-board {
  align-items: stretch;
  min-height: 420px;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.collection-tree-pane {
  border-right: 1px solid var(--border);
  flex-direction: column;
  flex: 0 0 280px;
  width: 280px;
  padding: .5rem;
  display: flex;
  overflow-y: auto;
}

.collection-commands-pane {
  flex-direction: column;
  flex: auto;
  min-width: 0;
  display: flex;
}

.collection-commands-head {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  display: flex;
}

.collection-commands-body {
  flex: 1;
  overflow-y: auto;
}

.collection-empty-pane {
  color: var(--muted);
  text-align: center;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  display: flex;
}

.collection-tree-head {
  justify-content: space-between;
  align-items: center;
  padding: .35rem .5rem .5rem;
  display: flex;
}

.folder-tree {
  flex-direction: column;
  gap: 1px;
  display: flex;
}

.folder-empty {
  padding: .5rem;
  font-size: .85rem;
}

.folder-node {
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  gap: .3rem;
  min-width: 0;
  padding: .32rem .5rem;
  display: flex;
}

.folder-node:hover {
  background: var(--surface-2, #7f7f7f14);
}

.folder-node.is-selected {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.folder-twist {
  width: 16px;
  height: 16px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  flex: none;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.folder-twist.is-empty {
  cursor: default;
}

.folder-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  overflow: hidden;
}

.folder-kind-manufacturer {
  font-weight: 600;
}

.folder-kind-model {
  color: var(--fg);
}

.folder-lock {
  color: var(--muted);
  flex: none;
}

.collection-folder-title {
  align-items: center;
  gap: .6rem;
  min-width: 0;
  display: flex;
}

.collection-folder-actions {
  gap: .15rem;
  display: flex;
}

.command-list {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.command-item {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .85rem 1rem;
  display: flex;
}

.command-item:last-child {
  border-bottom: 0;
}

.command-item-main {
  flex: 1;
  min-width: 0;
}

.command-item-head {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.command-item-name {
  font-weight: 600;
}

.command-item-desc {
  color: var(--muted);
  margin: .25rem 0 .35rem;
  font-size: .85rem;
}

.command-item-preview {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: .8rem;
  display: block;
  overflow: hidden;
}

.command-item-actions {
  flex: none;
  gap: .15rem;
  display: flex;
}

.command-lines-input {
  font-family: var(--mono, ui-monospace, monospace);
  resize: vertical;
  font-size: .85rem;
}

.node-collection {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.node-collection-bar {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.node-collection-bar p {
  margin: 0;
}

.collection-runs {
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.collection-run {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.collection-run-head {
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  background: none;
  border: 0;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  display: flex;
}

.collection-run-head:hover {
  background: var(--surface-2, #7f7f7f0f);
}

.collection-run-time {
  font-size: .85rem;
}

.collection-run-proto {
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .05rem .45rem;
  font-size: .72rem;
}

.collection-run-error {
  color: var(--danger);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  overflow: hidden;
}

.collection-run-body {
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: .75rem;
  padding: .5rem .85rem .85rem;
  display: flex;
}

.collection-modal {
  width: 72vw;
  height: 85vh;
}

.modal-body-flush {
  flex-direction: column;
  min-height: 0;
  padding: 0;
  display: flex;
}

.coll-modal-msg {
  padding: 1.25rem;
}

.coll-tree {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.coll-file-view {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.coll-file-view-head {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  display: flex;
}

.coll-back {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  align-items: center;
  gap: .25rem;
  margin-right: .35rem;
  padding: .25rem .5rem .25rem .3rem;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
}

.coll-back:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

.collection-result-output.coll-file-fullview {
  border-radius: 0;
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: auto;
}

.collection-result-output.coll-file-fullview.is-failed {
  color: var(--danger);
}

.coll-folder {
  flex-direction: column;
  display: flex;
}

.coll-folder-head {
  border: none;
  border-bottom: 1px solid var(--border);
  width: 100%;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  align-items: center;
  gap: .5rem;
  padding: .6rem .4rem;
  transition: background .12s;
  display: flex;
}

.coll-folder-head:hover {
  background: var(--surface-2);
}

.coll-twist {
  color: var(--muted);
  display: inline-flex;
}

.coll-folder-icon {
  color: var(--primary);
}

.coll-folder-name {
  font-size: .9rem;
  font-weight: 600;
}

.coll-file-count {
  color: var(--muted);
  margin-left: auto;
  font-size: .78rem;
}

.coll-file-wrap {
  flex-direction: column;
  display: flex;
}

.coll-file {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  gap: .5rem;
  padding: .45rem .4rem .45rem 2.1rem;
  transition: background .12s;
  display: flex;
}

.coll-file:hover {
  background: var(--surface-2);
}

.coll-file-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.coll-file-name {
  font-size: .85rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.coll-file-wrap.is-failed .coll-file-name {
  color: var(--danger);
}

.coll-file-size {
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  font-size: .78rem;
}

.coll-file-eye {
  color: var(--muted);
  flex-shrink: 0;
  display: inline-flex;
}

.coll-file:hover .coll-file-eye, .coll-file-eye.active {
  color: var(--primary);
}

.coll-file-output {
  border-radius: 0;
  margin: 0 0 0 2.1rem;
}

.collection-result-head {
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
  display: flex;
}

.collection-result-cmd {
  font-size: .85rem;
  font-weight: 600;
}

.collection-result-src {
  color: var(--muted);
  font-size: .72rem;
}

.collection-result-ms {
  color: var(--muted);
  margin-left: auto;
  font-size: .72rem;
}

.collection-result-output {
  background: var(--surface-2, #7f7f7f14);
  border-radius: var(--radius-sm);
  white-space: pre;
  max-height: 340px;
  margin: 0;
  padding: .6rem .8rem;
  font-size: .8rem;
  line-height: 1.4;
  overflow-x: auto;
}

.collection-result.is-failed .collection-result-output {
  color: var(--danger);
}

.collection-status-success {
  color: #16a34a;
  background: #22c55e2e;
}

.collection-status-partial {
  color: #b45309;
  background: #d977062e;
}

.collection-status-failed {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: var(--danger);
}

.collection-status-running, .collection-status-pending {
  color: #2563eb;
  background: #2563eb29;
}

.spin {
  animation: .9s linear infinite spin;
}

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

@media (max-width: 720px) {
  .collection-board {
    flex-direction: column;
  }

  .collection-tree-pane {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-basis: auto;
    width: 100%;
    max-height: 260px;
  }
}

.bulk-bar-actions {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.collection-dot {
  background: #9aa0a6;
  border-radius: 2px;
  flex: none;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
}

.collection-dot-success {
  background: #22c55e;
  box-shadow: 0 0 0 3px #22c55e33;
}

.collection-dot-partial {
  background: #d97706;
  box-shadow: 0 0 0 3px #d9770633;
}

.collection-dot-failed {
  background: #ef4444;
  box-shadow: 0 0 0 3px #ef444433;
}

.collection-dot-running, .collection-dot-pending {
  background: #2563eb;
}

.collection-dot-none {
  background: #9aa0a6;
}

.collection-dot.is-running {
  animation: .75s ease-in-out infinite monitor-blink;
}

.collection-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.collection-toolbar .btn {
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: 0;
  line-height: 1;
  display: inline-flex;
}

.collection-toolbar .btn.icon-only {
  aspect-ratio: 1;
  padding: .62rem;
}

.collection-tree-card {
  padding: .4rem;
}

.collection-tree-full {
  flex-direction: column;
  padding: .4rem;
  display: flex;
}

.tree-children {
  flex-direction: column;
  display: flex;
}

.tree-row {
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .62rem .7rem;
  display: flex;
}

.tree-switch {
  opacity: 0;
  pointer-events: none;
  flex: none;
  align-items: center;
  margin-left: auto;
  transition: opacity .12s;
  display: inline-flex;
}

.tree-row:hover .tree-switch {
  opacity: 1;
  pointer-events: auto;
}

.tree-row.is-disabled .tree-icon, .tree-row.is-disabled .tree-name, .tree-row.is-disabled .tree-badge, .tree-row.is-disabled .tree-badge-auto, .tree-row.is-disabled .tree-count {
  opacity: .4;
}

.tree-row:hover {
  background: var(--surface-2, #7f7f7f12);
}

.tree-twist {
  width: 16px;
  height: 16px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.tree-twist.is-empty {
  cursor: default;
}

.tree-twist-spacer {
  flex: none;
  width: 16px;
}

.tree-icon {
  flex: none;
}

.tree-icon-folder.folder-kind-manufacturer {
  color: #f59e0b;
}

.tree-icon-folder.folder-kind-model {
  color: #3b82f6;
}

.tree-icon-folder.folder-kind-custom {
  color: var(--muted);
}

.tree-icon-command {
  color: #22c55e;
}

.tree-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  overflow: hidden;
}

.tree-name-folder {
  font-weight: 600;
}

.tree-badge, .tree-badge-auto {
  border-radius: 999px;
  flex: none;
  padding: .05rem .4rem;
  font-size: .68rem;
  line-height: 1.5;
}

.tree-badge {
  background: var(--surface-2, #7f7f7f1f);
  color: var(--muted);
}

.tree-badge-auto {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  text-transform: lowercase;
}

.tree-count {
  color: var(--muted);
  flex: none;
  font-size: .78rem;
}

.tree-actions {
  opacity: 0;
  pointer-events: none;
  gap: .1rem;
  transition: opacity .12s;
  display: flex;
}

.tree-row:hover .tree-actions {
  opacity: 1;
  pointer-events: auto;
}

.switch {
  background: var(--border);
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  flex: none;
  width: 24px;
  height: 14px;
  padding: 0;
  transition: background .15s;
  position: relative;
}

.switch.is-on {
  background: #22c55e;
}

.switch-knob {
  background: #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transition: transform .15s;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 2px #00000040;
}

.switch.is-on .switch-knob {
  transform: translateX(10px);
}

.switch:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.collect-indicator {
  flex: none;
  align-items: center;
  display: inline-flex;
}

.collect-indicator svg {
  display: block;
}

.collect-indicator-pending {
  color: #9aa0a6;
  animation: .85s ease-in-out infinite monitor-blink;
}

.collect-indicator-running {
  color: #f59e0b;
  animation: .9s ease-in-out infinite collect-pulse;
}

.collect-indicator-success {
  color: #22c55e;
  animation: 4s forwards collect-out;
}

.collect-indicator-failed {
  color: #ef4444;
  animation: 4s forwards collect-out;
}

@keyframes collect-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .55;
    transform: scale(.8);
  }
}

@keyframes collect-out {
  0%, 85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.collection-node-cell {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.collection-node-ip {
  font-size: .82rem;
}

.toast-stack {
  z-index: 300;
  flex-direction: column;
  gap: .6rem;
  max-width: min(90vw, 380px);
  display: flex;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
}

.toast {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  text-align: left;
  border-left-width: 3px;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  animation: .2s toast-in;
  display: flex;
}

.toast-msg {
  color: var(--foreground);
  font-size: .9rem;
}

.toast-dot {
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
}

.toast-success {
  border-left-color: #22c55e;
}

.toast-success .toast-dot {
  background: #22c55e;
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-error .toast-dot {
  background: var(--danger);
}

.toast-info {
  border-left-color: #2563eb;
}

.toast-info .toast-dot {
  background: #2563eb;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.notif {
  position: relative;
}

.notif-btn {
  width: 38px;
  height: 38px;
  color: var(--foreground);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  position: relative;
}

.notif-btn:hover {
  background: var(--surface-2);
}

.notif-badge {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  font-size: .62rem;
  font-weight: 700;
  display: flex;
  position: absolute;
  top: 3px;
  right: 3px;
}

.notif-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 340px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  z-index: 120;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  overflow: hidden;
}

.notif-head {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: .55rem .85rem;
  display: flex;
}

.notif-title {
  font-weight: 600;
}

.notif-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  font-size: .9rem;
}

.notif-list {
  max-height: 60vh;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.notif-item {
  border-bottom: 1px solid var(--border);
  padding: .7rem .85rem;
}

.notif-item:last-child {
  border-bottom: 0;
}

.notif-item.is-unread {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.notif-item-head {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.notif-dot {
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
}

.notif-dot-running {
  background: #f59e0b;
  animation: .85s ease-in-out infinite monitor-blink;
}

.notif-dot-done {
  background: #22c55e;
}

.notif-dot-warn {
  background: #d97706;
}

.notif-item-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: .88rem;
  font-weight: 500;
  overflow: hidden;
}

.notif-item-x {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 2px;
  display: inline-flex;
}

.notif-item-x:hover {
  color: var(--foreground);
}

.notif-item-sub {
  color: var(--muted);
  font-size: .78rem;
}

.notif-progress {
  background: var(--surface-2);
  border-radius: 999px;
  height: 5px;
  margin: .45rem 0 .3rem;
  overflow: hidden;
}

.notif-progress-fill {
  background: #f59e0b;
  height: 100%;
  transition: width .3s;
}

.rule-source, .rule-target {
  align-items: center;
  gap: .4rem;
  display: inline-flex;
}

.tree-icon-rule {
  color: #8b5cf6;
}

.tree-row .rule-source {
  color: #8b5cf6;
  border-color: #8b5cf666;
}

.rule-arrow {
  color: var(--muted);
  font-size: .85rem;
}

.rule-form {
  min-width: 520px;
  max-width: 640px;
}

.rule-pattern-field {
  flex: 1;
}

.rule-flags-field {
  flex: 0 0 90px;
}

.rule-mapping, .rule-tester {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: .5rem;
  padding: .75rem .85rem;
  display: flex;
}

.rule-mapping-title {
  font-size: .85rem;
  font-weight: 600;
}

.rule-mapping-row {
  align-items: center;
  gap: .6rem;
  display: flex;
}

.rule-mapping-field {
  flex: 1;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  display: flex;
}

.rule-mapping-arrow {
  color: var(--muted);
}

.rule-mapping-group {
  color: var(--muted);
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  display: flex;
}

.rule-mapping-group input {
  width: 60px;
}

.rule-tester-head {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.rule-test-result {
  overflow-x: auto;
}

.rule-test-table {
  font-size: .82rem;
}

.rule-test-table code {
  font-size: .8rem;
}

.rule-editor-heading {
  align-items: flex-start;
  gap: .6rem;
  display: flex;
}

.rule-editor-actions {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.rule-tab {
  flex-direction: column;
  gap: 1.1rem;
  display: flex;
}

.rule-tab-head {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.rule-tab-head .muted {
  margin: 0;
}

.rule-tab-actions {
  justify-content: flex-end;
  display: flex;
}

.rule-collect-form {
  max-width: 720px;
}

.rule-command-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rule-command-preview-head {
  background: var(--surface-2);
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.rule-command-preview .collection-result-output {
  border-radius: 0;
  margin: 0;
}

.rule-command-hint {
  margin: 0;
  padding: .5rem .8rem 0;
}

.rule-command-list {
  flex-direction: column;
  gap: .35rem;
  margin: 0;
  padding: .5rem .8rem .7rem;
  list-style: none;
  display: flex;
}

.rule-command-line {
  color: var(--muted);
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  display: flex;
}

.rule-command-line code {
  color: var(--foreground);
}

.rule-item-cmd {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  padding: .05rem .35rem;
  font-size: .78rem;
}

.rule-item-list, .rule-card-list {
  flex-direction: column;
  gap: .6rem;
  display: flex;
}

.rule-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .6rem .85rem;
  display: flex;
}

.rule-item-main {
  cursor: pointer;
  flex: 1;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  display: flex;
}

.rule-item-name {
  font-size: .92rem;
  font-weight: 600;
}

.rule-item-meta {
  font-size: .8rem;
}

.rule-item-actions {
  align-items: center;
  gap: .4rem;
  display: flex;
}

.rule-item.is-disabled, .rule-card.is-disabled {
  opacity: .55;
}

.rule-mode-line, .rule-mode-block {
  text-transform: capitalize;
}

.rule-mode-block {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  color: var(--primary);
}

.rule-multiline-row {
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  display: flex;
}

.extract-modal-panel {
  width: 90vw;
  height: 90vh;
}

.extract-modal-body {
  flex-direction: column;
  min-height: 0;
  display: flex;
}

.rule-extract-modal {
  flex-direction: column;
  flex: 1;
  gap: 1rem;
  min-height: 0;
  display: flex;
}

.rule-extract-cols {
  flex: 1;
  grid-template-columns: 3fr 3fr 4fr;
  align-items: stretch;
  gap: 1.25rem;
  min-height: 0;
  display: grid;
}

.rule-extract-col {
  flex-direction: column;
  gap: .7rem;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.rule-extract-col-test {
  overflow: hidden;
}

.rule-extract-col + .rule-extract-col {
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
}

.rule-col-title {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
}

.rule-col-fields {
  flex-direction: column;
  gap: .7rem;
  display: flex;
}

.rule-group-rows {
  flex-direction: column;
  gap: .6rem;
  display: flex;
}

.rule-group-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  flex-direction: column;
  gap: .35rem;
  padding: .5rem .6rem;
  display: flex;
}

.rule-group-row-head {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.rule-group-badge {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  white-space: nowrap;
  padding: .1rem .4rem;
  font-size: .78rem;
  font-weight: 600;
}

.rule-group-capture {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  padding: .1rem .4rem;
  font-size: .78rem;
  overflow: hidden;
}

.rule-group-row .filter-select {
  width: 100%;
}

.rule-tester-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.rule-tester-controls .filter-select {
  min-width: 160px;
}

.rule-test-split {
  flex-direction: column;
  flex: 1;
  gap: .6rem;
  min-height: 0;
  display: flex;
}

.rule-test-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2, #7f7f7f0f);
  flex: 7;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.rule-test-highlight, .rule-test-editor .rule-test-textarea {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  white-space: pre-wrap;
  word-break: break-word;
  box-sizing: border-box;
  tab-size: 4;
  border: 0;
  margin: 0;
  padding: .6rem .7rem;
  font-size: .8rem;
  line-height: 1.5;
  position: absolute;
  inset: 0;
  overflow: auto;
}

.rule-test-highlight {
  color: var(--foreground);
  pointer-events: none;
  z-index: 0;
}

.rule-test-highlight mark.rule-match {
  background: color-mix(in srgb, var(--primary) 34%, transparent);
  color: inherit;
  border-radius: 2px;
}

.rule-test-editor .rule-test-textarea {
  z-index: 1;
  color: #0000;
  caret-color: var(--foreground);
  resize: none;
  background: none;
  outline: none;
}

.rule-test-editor .rule-test-textarea::placeholder {
  color: var(--muted);
}

.rule-test-result-pane {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 3;
  min-height: 0;
  padding: .4rem;
  overflow: auto;
}

.rule-test-hint {
  margin: 0;
  padding: .35rem;
  font-size: .82rem;
}

.rule-test-msg {
  margin: 0;
}

.rule-test-table-wrap {
  max-height: 220px;
  overflow: auto;
}

@media (max-width: 900px) {
  .rule-extract-cols {
    grid-template-columns: 1fr;
  }

  .rule-extract-col + .rule-extract-col {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    padding-left: 0;
  }
}

.extract-table {
  width: 100%;
}

.extract-table th.extract-mapped, .extract-table td.extract-mapped {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}

.extract-folder-row td {
  background: var(--surface-2);
  padding: 0;
}

.extract-folder-cell {
  cursor: pointer;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  display: flex;
}

.extract-folder-name {
  font-size: .88rem;
  font-weight: 600;
}

.extract-folder-actions {
  opacity: 0;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
  transition: opacity .12s;
  display: flex;
}

.extract-folder-row:hover .extract-folder-actions {
  opacity: 1;
}

.extract-row.is-disabled {
  opacity: .55;
}

.extract-name-btn {
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-size: .9rem;
  font-weight: 600;
}

.extract-name-btn:hover {
  color: var(--primary);
}

.extract-cmd {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  padding: .05rem .35rem;
  font-size: .8rem;
}

.extract-switch-cell, .extract-actions-cell {
  white-space: nowrap;
  width: 1%;
}

.extract-actions {
  opacity: 0;
  justify-content: flex-end;
  align-items: center;
  gap: .15rem;
  transition: opacity .12s;
  display: flex;
}

.extract-row:hover .extract-actions {
  opacity: 1;
}

.rule-wizard {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.rule-wizard-steps {
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.rule-wizard-step {
  color: var(--muted);
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
}

.rule-wizard-step + .rule-wizard-step {
  border-left: 1px solid var(--border);
  padding-left: .5rem;
}

.rule-wizard-step.active {
  color: var(--primary);
}

.rule-wizard-step-num {
  background: var(--surface-2);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: .72rem;
  display: inline-flex;
}

.rule-wizard-step.active .rule-wizard-step-num {
  background: var(--primary);
  color: #fff;
}

.rule-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-direction: column;
  gap: .85rem;
  padding: .9rem;
  display: flex;
}

.rule-card-head {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.rule-card-name {
  flex: 1;
  max-width: 340px;
  font-weight: 600;
}

.rule-card-actions {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.rule-card-foot {
  justify-content: flex-end;
  display: flex;
}

.rule-then-value input {
  width: 100%;
}

.rule-cond-claim {
  min-width: 180px;
}

.rule-actions-editor {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.rule-action-row {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.rule-action-row input {
  flex: 1;
}

.rule-actions-add {
  gap: .5rem;
  display: flex;
}

.rule-tests-bar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  display: flex;
}

.rule-tests-node, .rule-tests-cmd {
  flex: 1;
  max-width: 340px;
}

.rule-tests-output {
  grid-template-columns: 1fr 300px;
  align-items: start;
  gap: 1rem;
  display: grid;
}

.rule-tests-results {
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
  display: flex;
}

.rule-tests-capture {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: .85rem;
  position: sticky;
  top: 1rem;
}

.rule-capture-detail {
  flex-direction: column;
  gap: .5rem;
  margin-top: .5rem;
  display: flex;
}

.rule-capture-extract {
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
}

.rule-capture-full {
  background: var(--surface);
  border-radius: var(--radius-sm);
  white-space: pre;
  padding: .4rem .5rem;
  font-size: .78rem;
  display: block;
  overflow-x: auto;
}

.rule-capture-field {
  flex-direction: column;
  gap: .2rem;
  display: flex;
}

.rule-capture-label {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-size: .7rem;
}

.rule-capture-regex {
  background: var(--surface);
  border-radius: var(--radius-sm);
  white-space: pre;
  color: var(--primary);
  padding: .4rem .5rem;
  font-size: .78rem;
  display: block;
  overflow-x: auto;
}

.rule-preview-tags {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  display: flex;
}

.rule-preview-tags-label {
  color: var(--muted);
  margin-right: .25rem;
  font-size: .75rem;
}

.rule-output-highlight {
  white-space: pre-wrap;
  word-break: break-word;
}

.rule-match {
  background: color-mix(in srgb, var(--primary) 32%, transparent);
  color: inherit;
  cursor: pointer;
  border-radius: 3px;
  padding: 0 1px;
}

.rule-match:hover {
  background: color-mix(in srgb, var(--primary) 55%, transparent);
}

@media (max-width: 720px) {
  .rule-tests-output {
    grid-template-columns: 1fr;
  }

  .rule-tests-capture {
    position: static;
  }
}

.tab-panel-flush {
  padding: 0;
  overflow: hidden;
}

.node-inventory {
  flex-direction: column;
  gap: 0;
  display: flex;
}

.inv-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem .9rem;
  display: flex;
}

.inv-tag {
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  display: flex;
}

.inv-tag-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.inv-tag-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: .1rem .5rem;
  font-weight: 600;
}

.inv-run-meta {
  color: var(--muted);
}

.inv-layout {
  grid-template-columns: minmax(200px, 260px) 1fr;
  min-height: 320px;
  display: grid;
}

.inv-nav {
  border-right: 1px solid var(--border);
  flex-direction: column;
  gap: 1px;
  padding: .6rem .4rem;
  display: flex;
  overflow-y: auto;
}

.inv-nav-group {
  flex-direction: column;
  gap: 1px;
  display: flex;
}

.inv-nav-group-label {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: .55rem .5rem .3rem;
  font-size: .7rem;
  font-weight: 700;
}

.inv-nav-item {
  border-radius: var(--radius-sm);
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .4rem .6rem;
  font-size: .88rem;
  transition: background .12s;
  display: flex;
}

.inv-nav-item:hover {
  background: var(--surface-2);
}

.inv-nav-item.active {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-weight: 600;
}

.inv-nav-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.inv-nav-count {
  text-align: center;
  background: var(--surface-2);
  min-width: 20px;
  color: var(--muted);
  border-radius: 999px;
  flex-shrink: 0;
  padding: .02rem .35rem;
  font-size: .72rem;
  font-weight: 600;
}

.inv-nav-item.active .inv-nav-count {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--primary);
}

.inv-detail {
  min-width: 0;
}

.inv-detail-scroll {
  overflow-x: auto;
}

.inv-kv-table {
  width: 100%;
  font-size: .85rem;
}

.inv-kv-table th {
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .72rem;
}

.inv-key-col {
  width: 20%;
  min-width: 20%;
}

.inv-key {
  white-space: nowrap;
}

.inv-key-name {
  font-weight: 600;
}

.inv-key-flag {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-left: .4rem;
  font-size: .68rem;
}

.inv-rows-table {
  width: 100%;
  font-size: .85rem;
}

.inv-rows-table th {
  white-space: nowrap;
}

.inv-rows-table th.inv-col-key {
  color: var(--foreground);
}

.inv-rows-table td:first-child {
  font-weight: 600;
}

.inv-empty-cell {
  opacity: .5;
}

@media (max-width: 640px) {
  .inv-layout {
    grid-template-columns: 1fr;
  }

  .inv-nav {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-flow: wrap;
  }
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__0cbk-n2._.css.map*/