@import "tailwindcss";

@theme {
  --font-sans: Inter, "Segoe UI", Manrope, ui-sans-serif, system-ui, sans-serif;
  --color-posh-bg: #050b14;
  --color-posh-surface: #0d1a2a;
  --color-posh-primary: #58ddff;
  --color-posh-secondary: #9a86ff;
  --color-posh-tertiary: #64e7bd;
  --color-posh-error: #ff7383;
  --radius-posh: 16px;
  --shadow-posh: 0 18px 60px rgba(0, 0, 0, .24);
}

:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #050b14;
  --panel: rgba(12, 25, 42, .76);
  --panel-strong: rgba(12, 25, 42, .92);
  --border: rgba(156, 199, 232, .14);
  --border-strong: rgba(101, 218, 255, .28);
  --text: #eef8ff;
  --muted: #99abc1;
  --subtle: #6f8198;
  --cyan: #58ddff;
  --cyan-soft: rgba(88, 221, 255, .14);
  --violet: #9a6bff;
  --mint: #64e7bd;
  --amber: #ffbd6a;
  --red: #ff7383;
  --action-gradient: linear-gradient(135deg, #ffe38e 0%, #ff73b0 38%, #74ece7 100%);
  --surface-gradient: linear-gradient(145deg, rgba(35, 15, 65, .74), rgba(10, 15, 46, .64));
  --nav-width: 260px;
  --top-height: 76px;
  --radius: 16px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .24);
  --display-font: "Segoe UI", Inter, Manrope, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.82);
  background: #171717;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-size: 13px;
  letter-spacing: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% 53%, rgba(255, 247, 214, .44), transparent 0 11%, rgba(255, 115, 176, .3) 24%, transparent 45%),
    radial-gradient(circle at 70% 36%, rgba(116, 236, 231, .38), transparent 0 26%, rgba(28, 111, 214, .24) 54%, transparent 72%),
    radial-gradient(circle at 28% 34%, rgba(255, 40, 143, .3), transparent 0 34%, rgba(123, 65, 205, .18) 62%, transparent 74%),
    linear-gradient(135deg, #1a0629 0%, #4c1a5e 28%, #192f7d 68%, #060d34 100%);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  width: 100%;
  transition: --nav-width .24s ease;
  position: relative;
  isolation: isolate;
}

.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--shell-atmosphere, transparent);
  opacity: var(--shell-atmosphere-opacity, .72);
  transition: opacity .24s ease, background .24s ease;
}

.shell.nav-collapsed {
  --nav-width: 86px;
}

.shell.theme-dashtreme {
  --shell-atmosphere: radial-gradient(circle at 15% 18%, rgba(255, 227, 142, .16), transparent 34%),
    radial-gradient(circle at 84% 22%, rgba(116, 236, 231, .18), transparent 28%);
}

.shell.theme-terminal {
  --bg: #020704;
  --panel: rgba(0, 24, 9, .82);
  --panel-strong: rgba(0, 34, 13, .94);
  --border: rgba(104, 255, 118, .16);
  --border-strong: rgba(104, 255, 118, .34);
  --text: #d9ffd9;
  --muted: #94bd97;
  --subtle: #6e8c70;
  --cyan: #7cff7c;
  --cyan-soft: rgba(124, 255, 124, .12);
  --violet: #d7ff72;
  --mint: #6aff7d;
  --amber: #d7ff72;
  --action-gradient: linear-gradient(135deg, #143b1c 0%, #41ff64 52%, #d7ff72 100%);
  --surface-gradient: linear-gradient(145deg, rgba(0, 35, 14, .86), rgba(1, 17, 8, .72));
  --shell-atmosphere: radial-gradient(circle at 12% 14%, rgba(65, 255, 100, .14), transparent 32%),
    linear-gradient(rgba(124, 255, 124, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 124, .026) 1px, transparent 1px);
  --shell-atmosphere-opacity: .9;
}

.shell.theme-aurora {
  --bg: #061326;
  --panel: rgba(10, 20, 48, .78);
  --panel-strong: rgba(10, 20, 48, .94);
  --border: rgba(188, 214, 255, .16);
  --border-strong: rgba(93, 231, 255, .32);
  --text: #f5f7ff;
  --muted: #a7b7d9;
  --subtle: #7283aa;
  --cyan: #5de7ff;
  --cyan-soft: rgba(93, 231, 255, .12);
  --violet: #a891ff;
  --mint: #74f2d4;
  --amber: #ffd98a;
  --action-gradient: linear-gradient(135deg, #5de7ff 0%, #7c5cff 54%, #f5f7ff 100%);
  --surface-gradient: linear-gradient(145deg, rgba(17, 37, 80, .78), rgba(12, 15, 50, .7));
  --shell-atmosphere: radial-gradient(circle at 18% 20%, rgba(93, 231, 255, .17), transparent 34%),
    radial-gradient(circle at 76% 28%, rgba(124, 92, 255, .18), transparent 30%);
}

.particle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .8;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.particle-field span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 16px #56ccf2, 0 0 28px rgba(255, 65, 108, .7);
  animation: particlePulse 7.5s ease-in-out infinite;
}

@keyframes particlePulse {
  0%, 100% { opacity: .18; translate: 0 0; }
  50% { opacity: .86; translate: 18px -24px; }
}

.glass-panel,
.wide-card,
.form-panel,
.library-pane,
.editor-pane,
.job-list,
.log-viewer,
.login-panel {
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  border-radius: var(--radius);
}

.auth-cover {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .72fr);
  position: relative;
  z-index: 1;
  padding: 28px;
  gap: 22px;
}

.auth-cover-art {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .36);
  background: #06111d;
}

.auth-cover-art img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.auth-cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, .22), rgba(5, 9, 18, .04) 42%, rgba(5, 9, 18, .72)),
    radial-gradient(circle at 22% 84%, rgba(88, 221, 255, .26), transparent 32%);
}

.auth-cover-overlay {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 30px;
}

.auth-brand-lockup,
.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-lockup strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.auth-brand-lockup span {
  display: block;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .18em;
  margin-top: 3px;
}

.auth-story {
  align-self: end;
  max-width: 620px;
  padding-bottom: 48px;
}

.auth-story h1 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: .96;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.auth-story p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
  line-height: 1.7;
}

.trust-row {
  flex-wrap: wrap;
}

.trust-row span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
}

.auth-form-panel {
  min-height: calc(100vh - 56px);
  display: grid;
  align-content: center;
  gap: 14px;
}

.auth-form-wrap {
  padding: 34px;
}

.auth-form-wrap h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 28px;
  letter-spacing: -.035em;
}

.auth-form-wrap p {
  margin: 0 0 22px;
  color: var(--muted);
}

.auth-form-wrap form {
  display: grid;
  gap: 14px;
}

.auth-form-wrap label {
  display: grid;
  gap: 7px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.password-input {
  display: grid;
  grid-template-columns: 1fr 42px;
}

.password-input input {
  border-radius: 12px 0 0 12px;
}

.password-input button {
  border: 1px solid rgba(255, 255, 255, .18);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  background: rgba(0, 0, 0, .18);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.auth-options a {
  color: var(--cyan);
  text-decoration: none;
}

.checkbox {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.checkbox input {
  width: auto;
  min-height: auto;
}

.auth-submit {
  width: 100%;
}

.form-error {
  color: #ffd5dc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 115, 131, .22);
  background: rgba(255, 115, 131, .1);
}

.demo-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(88, 221, 255, .14);
  background: rgba(88, 221, 255, .07);
}

.demo-note strong {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .12em;
}

.demo-note span {
  color: var(--muted);
  font-size: 12px;
}

.auth-form-panel footer {
  color: rgba(255, 255, 255, .55);
  text-align: center;
  font-size: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ffe38e 0%, #ff73b0 38%, #74ece7 100%);
  color: #12071f;
  box-shadow: 0 10px 24px rgba(255, 65, 108, .36);
}

.topbar h2 {
  margin: 14px 0 8px;
  color: #fff;
  letter-spacing: .5px;
}

.grid-form {
  display: grid;
  gap: 12px;
}

label,
.eyebrow {
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  background-color: rgba(0, 0, 0, .18);
  border-radius: 12px;
  padding: 9px 11px;
  outline: none;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

select option {
  background: #171717;
}

input:focus,
select:focus,
textarea:focus {
  background-color: rgba(0, 0, 0, .24);
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 .22rem rgba(255, 255, 255, .18);
}

.primary-action,
.ghost-button,
.icon-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  color: #fff;
  background: var(--action-gradient);
  font-weight: 650;
  font-size: 11px;
  box-shadow: 0 12px 30px rgba(255, 68, 154, .2), inset 0 1px 0 rgba(255, 255, 255, .55);
  color: #12071f;
}

.primary-action:hover {
  filter: brightness(1.08);
}

.ghost-button,
.icon-action {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.compact {
  min-height: 38px;
  padding: 0 12px;
}

.sidebar {
  position: fixed;
  top: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 11;
  width: calc(var(--nav-width) - 24px);
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 70px rgba(7, 4, 35, .26), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(135%);
  display: grid;
  grid-template-rows: 76px 1fr auto;
  overflow: hidden;
  transition: width .24s ease, border-radius .24s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 76px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-collapse-button {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
}

.sidebar-collapse-button:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: var(--cyan-soft);
}

.logo-text {
  margin: 0;
  color: #fff;
  font-size: 21px;
  letter-spacing: 1px;
}

.metismenu {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.menu-label {
  padding: 12px 12px 7px;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  text-transform: uppercase;
}

.metismenu button {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .78);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  text-align: left;
  position: relative;
}

.metismenu button:hover,
.metismenu button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 39, 149, .2), rgba(116, 236, 231, .12));
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 30px rgba(255, 39, 149, .08);
}

.parent-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
}

.metismenu button.active .parent-icon {
  background: linear-gradient(to right, #56ccf2, #2f80ed);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 15px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .16);
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding-inline: 10px;
}

.sidebar.collapsed .brand-mark {
  width: 42px;
  height: 42px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .menu-title,
.sidebar.collapsed .menu-label,
.sidebar.collapsed .sidebar-user div {
  display: none;
}

.sidebar.collapsed .sidebar-collapse-button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
}

.sidebar.collapsed .metismenu {
  padding-inline: 8px;
}

.sidebar.collapsed .metismenu button {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .parent-icon {
  width: 40px;
  height: 40px;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
  padding-inline: 0;
}

.sidebar-user small {
  display: block;
  color: rgba(255, 255, 255, .6);
}

.user-orb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(to right, #56ab2f, #a8e063);
  font-weight: 800;
}

.topbar {
  position: fixed;
  top: 12px;
  left: var(--nav-width);
  right: 12px;
  z-index: 10;
  height: var(--top-height);
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 70px rgba(7, 4, 35, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(135%);
  transition: left .24s ease;
  overflow: visible;
}

.topbar h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.topbar-title {
  min-width: 0;
  overflow: hidden;
}

.topbar-search {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  min-width: 0;
  color: rgba(255, 255, 255, .62);
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 0 12px;
  overflow: hidden;
}

.topbar-search span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.topbar-actions .topbar-action-button {
  min-height: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: 14px;
  color: rgba(238, 248, 255, .88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)),
    rgba(4, 13, 29, .48);
  border-color: rgba(156, 199, 232, .2);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .13),
    inset 0 1px 0 rgba(255, 255, 255, .075);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -.01em;
}

.topbar-actions .topbar-action-button svg {
  flex: 0 0 auto;
  color: var(--cyan);
}

.topbar-actions .topbar-action-button:hover {
  color: #fff;
  border-color: rgba(88, 221, 255, .42);
  background:
    radial-gradient(circle at 20% 0, rgba(88, 221, 255, .2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .052)),
    rgba(5, 16, 34, .62);
  transform: translateY(-1px);
}

.top-profile-menu {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.profile-trigger {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(156, 199, 232, .18);
  border-radius: 15px;
  color: var(--text);
  background:
    radial-gradient(circle at 26% 12%, rgba(88, 221, 255, .22), transparent 42%),
    linear-gradient(145deg, rgba(87, 125, 189, .3), rgba(31, 39, 87, .34));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  justify-content: center;
  padding: 0;
}

.profile-trigger:hover {
  border-color: rgba(88, 221, 255, .42);
  background:
    radial-gradient(circle at 26% 12%, rgba(88, 221, 255, .3), transparent 45%),
    linear-gradient(145deg, rgba(108, 150, 220, .38), rgba(63, 52, 135, .4));
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 11px;
  color: #dffaff;
  background: linear-gradient(145deg, rgba(88, 221, 255, .24), rgba(154, 134, 255, .26));
  border: 1px solid rgba(120, 210, 255, .2);
  font-size: 11px;
  font-weight: 700;
}

.top-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: rgba(238, 248, 255, .94);
  font-size: 10px;
  font-weight: 820;
  background:
    radial-gradient(circle at 26% 16%, rgba(255, 255, 255, .18), transparent 36%),
    linear-gradient(145deg, rgba(88, 221, 255, .24), rgba(154, 134, 255, .3));
  border-color: rgba(125, 232, 255, .24);
}

.avatar.large {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 14px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.profile-copy strong {
  font-size: 10px;
  font-weight: 700;
}

.profile-copy small {
  color: var(--subtle);
  font-size: 8px;
}

.profile-menu-card {
  position: absolute;
  right: 0;
  top: 52px;
  z-index: 50;
  width: 260px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 37, 59, .96), rgba(7, 17, 31, .94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .32);
  backdrop-filter: blur(22px) saturate(135%);
}

.profile-menu-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-menu-head strong,
.profile-menu-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-head strong {
  color: var(--text);
  font-size: 12px;
}

.profile-menu-head small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 9px;
}

.profile-menu-action {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  color: var(--cyan);
  background: var(--cyan-soft);
  text-align: left;
}

.profile-menu-action.danger {
  color: var(--red);
  background: rgba(255, 115, 131, .08);
}

.workspace {
  position: relative;
  z-index: 1;
  margin-left: var(--nav-width);
  width: calc(100% - var(--nav-width));
  padding: 112px 30px 30px;
  min-height: 100vh;
  min-width: 0;
  transition: margin-left .24s ease, width .24s ease;
}

.workspace > section {
  min-width: 0;
  animation: viewRise .28s ease both;
}

@keyframes viewRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.page-header.compact-header {
  min-height: 70px;
}

.page-header h2 {
  margin: 2px 0 7px;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 9px;
}

.dashboard-workspace {
  display: grid;
  gap: 13px;
}

.dashboard-command-strip {
  min-height: 58px;
  padding: 11px 13px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-command-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-command-strip svg {
  color: var(--cyan);
}

.dashboard-command-strip span {
  color: var(--text);
  font: 700 10px var(--display-font);
}

.dashboard-command-strip small {
  color: var(--subtle);
  font-size: 8px;
}

.dashboard-mode-chip {
  padding: 7px 9px;
  border: 1px solid rgba(88, 221, 255, .12);
  border-radius: 999px;
  color: var(--subtle);
  background: rgba(88, 221, 255, .05);
  font-size: 7px;
  letter-spacing: .1em;
}

.dashboard-mode-chip.active {
  color: var(--mint);
  border-color: rgba(100, 231, 189, .25);
  background: rgba(100, 231, 189, .08);
  box-shadow: 0 0 20px rgba(100, 231, 189, .07);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(74px, auto);
  grid-auto-flow: dense;
  gap: 13px;
}

.dashboard-widget {
  position: relative;
  min-height: 100%;
  padding: 14px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dashboard-widget::before {
  content: "";
  position: absolute;
  inset: -90px -110px auto auto;
  width: 230px;
  height: 160px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(88, 221, 255, .09), transparent 68%);
}

.dashboard-widget.editing {
  border-color: rgba(88, 221, 255, .26);
  box-shadow: 0 0 32px rgba(88, 221, 255, .055), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.dashboard-widget.collapsed {
  min-height: 72px;
}

.widget-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 34px;
}

.widget-toolbar h3 {
  margin: 3px 0 0;
  color: var(--text);
  font: 700 13px var(--display-font);
  letter-spacing: 0;
}

.widget-toolbar > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.widget-drag {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--subtle);
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(88, 221, 255, .12);
}

.widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.widget-actions button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 199, 232, .13);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, .16);
  font: 800 12px var(--display-font);
}

.widget-actions button:hover {
  color: var(--cyan);
  border-color: rgba(88, 221, 255, .28);
  background: rgba(88, 221, 255, .07);
}

.dashboard-stat-widget {
  min-height: 0;
  height: 100%;
  padding: 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-stat-widget header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-stat-widget header div {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--tone);
  background: var(--tone-bg);
}

.dashboard-stat-widget > strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font: 700 30px var(--display-font);
  letter-spacing: 0;
}

.dashboard-stat-widget footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.dashboard-stat-widget footer svg {
  color: var(--mint);
}

.tone-cyan { --tone: var(--cyan); --tone-bg: var(--cyan-soft); }
.tone-violet { --tone: var(--violet); --tone-bg: rgba(154, 107, 255, .14); }
.tone-mint { --tone: var(--mint); --tone-bg: rgba(100, 231, 189, .13); }
.tone-orange { --tone: var(--amber); --tone-bg: rgba(255, 189, 106, .13); }

.widget-scroll {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

.widget-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(156, 199, 232, .16);
  border-radius: 14px;
  color: var(--subtle);
  font-size: 9px;
  text-align: center;
}

.dashboard-widget.dragging {
  opacity: .58;
  transform: scale(.985);
}

.widget-drag {
  cursor: grab;
}

.widget-drag:disabled {
  opacity: .38;
  cursor: default;
}

.widget-metric-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.widget-metric-stack span {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(88, 221, 255, .045), rgba(255, 255, 255, .012));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.widget-metric-stack strong {
  min-width: 0;
  color: var(--text);
  font: 800 18px var(--display-font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-metric-stack small {
  color: var(--subtle);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: right;
}

.widget-action-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  align-content: start;
}

.jobs-watch {
  display: grid;
  gap: 8px;
}

.jobs-watch > div {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 11px;
  background: rgba(255, 255, 255, .015);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jobs-watch span {
  min-width: 0;
  color: var(--text);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-watch small {
  color: var(--subtle);
  font: 700 7px var(--display-font);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(12px);
}

.widget-library {
  width: min(880px, calc(100vw - 34px));
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  border-radius: 24px;
}

.widget-library > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.modal-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--cyan-soft);
}

.widget-library h3 {
  margin: 5px 0;
  color: var(--text);
  font: 800 24px var(--display-font);
  letter-spacing: 0;
}

.widget-library p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.widget-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.widget-library-grid article {
  min-height: 86px;
  padding: 13px;
  border: 1px solid rgba(156, 199, 232, .09);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .03), rgba(88, 221, 255, .018));
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.widget-library-grid article > span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(88, 221, 255, .13);
}

.widget-library-grid strong,
.widget-library-grid small {
  display: block;
}

.widget-library-grid strong {
  color: var(--text);
  font: 700 11px var(--display-font);
}

.widget-library-grid small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 8px;
  line-height: 1.45;
}

.script-template-workspace {
  height: calc(100vh - 250px);
  min-height: 650px;
  display: grid;
  grid-template-columns: 286px minmax(420px, 1fr) 250px;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(9, 21, 36, .86), rgba(6, 14, 25, .8)),
    radial-gradient(circle at 50% 0, rgba(88, 221, 255, .06), transparent 38%);
}

.script-template-workspace.without-library {
  grid-template-columns: minmax(520px, 1fr) 250px;
}

.script-template-workspace.without-inspector {
  grid-template-columns: 286px minmax(520px, 1fr);
}

.script-template-workspace.without-library.without-inspector {
  grid-template-columns: minmax(520px, 1fr);
}

.script-template-tree,
.script-template-inspector {
  min-width: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 0, rgba(88, 221, 255, .04), transparent 46%),
    rgba(3, 12, 22, .44);
}

.script-template-tree {
  border-right: 1px solid var(--border);
}

.script-template-inspector {
  border-left: 1px solid var(--border);
  padding-bottom: 26px;
}

.script-template-tree > header,
.script-template-inspector > header,
.script-editor-header {
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.script-template-tree > header strong,
.script-template-inspector > header strong {
  color: var(--text);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.script-template-tree > header div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.script-template-tree > header button,
.script-template-inspector > header button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}

.script-template-tree > header button:hover,
.script-template-inspector > header button:hover {
  color: var(--cyan);
  border-color: rgba(88, 221, 255, .26);
  background: rgba(88, 221, 255, .07);
}

.script-template-tree .tree-search {
  height: 40px;
  margin: 12px;
  border-radius: 10px;
  background: rgba(5, 13, 26, .62);
}

.script-tree-scroll {
  padding: 0 10px 18px;
}

.tree-branch {
  display: grid;
  gap: 3px;
  margin-bottom: 4px;
}

.script-template-tree .tree-folder,
.script-template-tree .tree-file {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 9px;
}

.script-template-tree .tree-folder:hover,
.script-template-tree .tree-file:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .035);
}

.script-template-tree .tree-file.active {
  color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: inset 0 0 0 1px rgba(88, 221, 255, .12);
}

.script-template-tree .tree-folder span,
.script-template-tree .tree-file span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-template-tree .tree-file small {
  color: var(--subtle);
  font: 800 7px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.script-template-tree .tree-children {
  margin-left: 16px;
  padding-left: 5px;
  border-left: 1px solid var(--border);
}

.script-explorer {
  background:
    linear-gradient(180deg, rgba(16, 17, 22, .96), rgba(14, 14, 18, .94)),
    rgba(3, 12, 22, .44);
}

.script-explorer-titlebar {
  text-transform: uppercase;
}

.script-explorer-titlebar strong {
  color: rgba(230, 234, 241, .7);
  font: 700 11px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .06em;
}

.script-explorer-search {
  height: 34px;
  min-height: 34px;
  margin: 10px 12px 8px;
  border-radius: 8px;
  background: rgba(8, 10, 15, .76);
  border-color: rgba(117, 132, 158, .18);
}

.script-explorer-search input {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.script-explorer-scroll {
  padding: 2px 8px 18px;
  overflow-x: hidden;
}

.explorer-row {
  --depth: 0;
  width: 100%;
  min-height: 22px;
  height: 24px;
  padding: 0 7px 0 calc(6px + (var(--depth) * 14px));
  border: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(213, 219, 231, .78);
  background: transparent;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1;
  text-align: left;
  letter-spacing: 0;
}

.explorer-row svg {
  flex: 0 0 auto;
  color: rgba(166, 176, 195, .74);
}

.explorer-row svg.open {
  transform: rotate(90deg);
}

.explorer-row:hover {
  color: rgba(244, 248, 255, .94);
  background: rgba(255, 255, 255, .055);
}

.explorer-row.active {
  color: #bfeeff;
  background: rgba(58, 126, 197, .34);
  box-shadow: inset 2px 0 0 rgba(88, 221, 255, .82);
}

.explorer-root {
  margin-bottom: 3px;
  color: rgba(239, 243, 250, .88);
  font-weight: 800;
  text-transform: uppercase;
}

.explorer-root small,
.explorer-row small {
  margin-left: auto;
  flex: 0 0 auto;
  color: rgba(144, 155, 177, .78);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
}

.explorer-folder {
  font-weight: 700;
}

.explorer-file {
  color: rgba(202, 209, 224, .72);
}

.explorer-file > svg {
  color: #67d2ff;
}

.explorer-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-spacer {
  width: 14px;
  flex: 0 0 14px;
}

.explorer-empty {
  margin: 14px 8px;
  padding: 14px;
  border: 1px dashed rgba(156, 199, 232, .2);
  border-radius: 10px;
  color: rgba(181, 198, 220, .64);
  background: rgba(255, 255, 255, .025);
}

.explorer-empty strong,
.explorer-empty span {
  display: block;
}

.explorer-empty strong {
  color: rgba(238, 248, 255, .82);
  font-size: 11px;
}

.explorer-empty span {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.45;
}

.script-editor-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(11, 22, 36, .7), rgba(5, 14, 25, .7)),
    rgba(8, 16, 28, .54);
}

.script-editor-header {
  flex: 0 0 52px;
}

.script-editor-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.script-editor-header strong {
  color: var(--text);
  font: 800 11px var(--display-font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-editor-header span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--subtle);
  background: rgba(255, 255, 255, .04);
  font: 800 7px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.script-description-bar {
  display: grid;
  grid-template-columns: minmax(220px, .44fr) minmax(320px, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .08);
}

.script-description-bar input,
.script-description-bar textarea {
  min-width: 0;
  width: 100%;
  border-radius: 10px;
  background: rgba(5, 13, 26, .58);
  border-color: rgba(156, 199, 232, .15);
}

.script-description-bar textarea {
  height: 42px;
  min-height: 42px;
  resize: none;
  line-height: 1.35;
}

.script-editor-pane .monaco-host {
  min-height: 0;
  flex: 1;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.script-editor-status {
  height: 28px;
  flex: 0 0 28px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: rgba(204, 204, 204, .72);
  background: #007acc;
  font: 700 10px "Segoe UI", Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.script-editor-status span:first-child {
  margin-right: auto;
  color: #fff;
}

.script-editor-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(100, 231, 189, .7);
}

.script-template-inspector label,
.script-template-inspector .inspector-section {
  margin: 13px;
}

.script-template-inspector label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.script-template-inspector label > span,
.script-template-inspector .inspector-section > span {
  color: var(--subtle);
  font: 800 7px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.script-template-inspector input,
.script-template-inspector select,
.script-template-inspector textarea {
  width: 100%;
  border-radius: 10px;
  background: rgba(5, 13, 26, .66);
  border-color: rgba(156, 199, 232, .15);
}

.script-template-inspector textarea {
  min-height: 110px;
  resize: vertical;
}

.script-template-inspector .inspector-section {
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 9px;
}

.script-template-inspector .inspector-section:last-child {
  padding-bottom: 12px;
}

.script-detail-row {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(88, 221, 255, .055);
  border: 1px solid rgba(88, 221, 255, .08);
}

.script-detail-row strong {
  color: var(--text);
  font: 800 14px var(--display-font);
}

.script-detail-row small {
  color: var(--subtle);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.variable-studio {
  display: grid;
  gap: 14px;
}

.variable-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
}

.variable-tabs {
  margin: 0;
  padding: 5px;
  width: max-content;
}

.variable-catalog-layout,
.custom-variable-layout {
  min-height: 520px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(3, 11, 21, .5);
}

.variable-category-list,
.custom-variable-list {
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, .16);
}

.variable-category-list button,
.custom-variable-list article {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.variable-category-list button:hover,
.variable-category-list button.active,
.custom-variable-list article:hover,
.custom-variable-list article.active {
  color: var(--text);
  border-color: rgba(88, 221, 255, .18);
  background: rgba(88, 221, 255, .075);
}

.variable-category-list strong {
  color: var(--cyan);
  font: 800 9px "SFMono-Regular", Consolas, monospace;
}

.variable-list {
  max-height: 520px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: auto;
}

.variable-row {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(156, 199, 232, .12);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(88, 221, 255, .035));
}

.variable-row strong,
.custom-variable-list article strong {
  display: block;
  color: var(--cyan);
  font: 800 12px "SFMono-Regular", Consolas, monospace;
}

.variable-row span,
.custom-variable-list header span,
.custom-variable-list article span {
  color: var(--subtle);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.variable-row p,
.custom-variable-list article p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.variable-actions {
  display: inline-flex;
  gap: 7px;
}

.custom-variable-layout {
  grid-template-columns: minmax(260px, .42fr) minmax(360px, 1fr);
}

.custom-variable-list {
  max-height: 560px;
  overflow: auto;
}

.custom-variable-list header {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-variable-list header strong {
  color: var(--text);
}

.custom-variable-list article {
  min-height: 84px;
  align-items: center;
}

.custom-variable-list article > div {
  min-width: 0;
}

.custom-variable-form {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.custom-variable-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-variable-preview code {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--mint);
  background: rgba(3, 31, 12, .8);
  border: 1px solid rgba(109, 255, 122, .18);
}

.psadt-workbench {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.psadt-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  min-width: 0;
}

.psadt-kpi {
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 12px;
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 221, 255, .16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.psadt-kpi svg {
  grid-row: span 2;
  color: var(--cyan);
}

.psadt-kpi strong {
  color: var(--text);
  font: 800 25px var(--display-font);
  line-height: 1;
}

.psadt-kpi span {
  color: var(--subtle);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.psadt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}

.psadt-panel {
  min-width: 0;
  padding: 16px;
  min-height: 280px;
}

.psadt-support-panel,
.psadt-snippet-panel {
  grid-column: 1 / -1;
}

.psadt-function-panel {
  grid-column: 1 / -1;
}

.psadt-verifier-panel {
  display: grid;
  gap: 14px;
}

.psadt-migration-panel,
.psadt-intune-panel {
  display: grid;
  gap: 14px;
}

.intune-publisher-panel {
  display: grid;
  gap: 16px;
  min-height: 420px;
}

.intune-publisher-panel .section-title {
  align-items: start;
  min-width: 0;
}

.intune-publisher-panel .section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.publisher-shell {
  display: grid;
  grid-template-columns: minmax(230px, .32fr) minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.publisher-steps {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.publisher-steps button {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(156, 199, 232, .1);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 3px;
  text-align: left;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
}

.publisher-steps button span {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(88, 221, 255, .1);
  border: 1px solid rgba(88, 221, 255, .18);
  font: 900 11px var(--display-font);
}

.publisher-steps button strong {
  color: var(--text);
  font-size: 12px;
}

.publisher-steps button small {
  grid-column: 2;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.35;
}

.publisher-steps button.active,
.publisher-steps button:hover {
  border-color: rgba(88, 221, 255, .32);
  background:
    linear-gradient(135deg, rgba(88, 221, 255, .14), rgba(176, 115, 255, .12)),
    rgba(255, 255, 255, .045);
}

.publisher-steps button.complete span {
  color: #05131e;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.publisher-stage {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(88, 221, 255, .13);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 115, 176, .12), transparent 30%),
    rgba(0, 0, 0, .16);
}

.publisher-stage header h4 {
  margin: 3px 0;
  color: var(--text);
  font: 900 22px var(--display-font);
}

.publisher-stage header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.publisher-stage-grid {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) minmax(260px, .65fr) minmax(180px, .32fr);
  gap: 12px;
  align-items: stretch;
}

.publisher-card,
.publisher-score {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(156, 199, 232, .1);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: rgba(255, 255, 255, .035);
}

.publisher-card > strong,
.publisher-score > strong {
  color: var(--text);
}

.publisher-card label {
  display: grid;
  gap: 6px;
}

.publisher-card label span,
.publisher-card dt {
  color: var(--cyan);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.publisher-card dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.publisher-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.publisher-guidance code {
  overflow-wrap: anywhere;
  padding: 9px;
  border-radius: 10px;
  color: var(--mint);
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(100, 231, 189, .14);
  font: 800 10px "SFMono-Regular", Consolas, monospace;
}

.check-row {
  display: block;
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(156, 199, 232, .08);
  font-size: 11px;
  line-height: 1.35;
}

.check-row.warning { color: #ffe7a6; border-color: rgba(255, 196, 87, .24); }
.check-row.error,
.check-row.critical { color: #ffc4c4; border-color: rgba(255, 99, 99, .25); }
.check-row.completed { color: var(--mint); border-color: rgba(100, 231, 189, .22); }

.publisher-score {
  background:
    radial-gradient(circle at 18% 8%, rgba(88, 221, 255, .18), transparent 38%),
    rgba(255, 255, 255, .04);
}

.publisher-score > strong {
  font: 950 52px var(--display-font);
  line-height: .9;
}

.publisher-score p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.publisher-score div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.publisher-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.graph-tracking-panel {
  display: grid;
  gap: 14px;
}

.graph-tracking-panel .section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.graph-tracking-grid {
  display: grid;
  grid-template-columns: minmax(280px, .45fr) minmax(220px, .28fr) minmax(280px, .45fr);
  gap: 12px;
  align-items: stretch;
}

.graph-connections-list {
  max-height: 280px;
  overflow: auto;
}

.graph-connections-list .check-row {
  display: grid;
  gap: 6px;
}

.graph-connections-list .check-row b {
  color: var(--text);
  font-size: 12px;
}

.graph-connections-list .check-row small {
  color: var(--subtle);
  font-size: 10px;
}

.graph-connections-list .check-row span {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.psadt-verifier-grid {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(300px, .55fr);
  gap: 14px;
}

.psadt-verifier-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.psadt-verifier-controls label {
  display: grid;
  gap: 6px;
}

.psadt-verifier-controls label > span {
  color: var(--cyan);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.psadt-verifier-controls textarea {
  grid-column: 1 / -1;
  min-height: 130px;
  resize: vertical;
}

.psadt-verifier-score {
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(88, 221, 255, .14);
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(160px, .45fr);
  gap: 14px;
  background:
    radial-gradient(circle at 16% 10%, rgba(88, 221, 255, .16), transparent 36%),
    rgba(255, 255, 255, .035);
}

.psadt-verifier-score strong {
  display: block;
  color: var(--text);
  font: 900 42px var(--display-font);
  line-height: 1;
}

.psadt-verifier-score p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.verifier-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.verifier-counts span {
  padding: 9px;
  border-radius: 11px;
  color: var(--subtle);
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(156, 199, 232, .08);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.verifier-counts strong {
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 18px;
}

.verifier-table-wrap {
  max-height: 440px;
}

.verifier-table {
  min-width: 1080px;
}

.intune-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.intune-coverage-grid section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(156, 199, 232, .1);
  border-radius: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: rgba(255, 255, 255, .035);
}

.intune-coverage-grid section > strong {
  color: var(--text);
  font-size: 12px;
}

.intune-coverage-grid div {
  padding: 9px;
  border-radius: 10px;
  display: grid;
  gap: 5px;
  background: rgba(0, 0, 0, .14);
}

.intune-coverage-grid code {
  color: var(--cyan);
  font: 800 10px "SFMono-Regular", Consolas, monospace;
}

.intune-coverage-grid span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.intune-gotchas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intune-gotchas span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #ffe7a6;
  background: rgba(255, 196, 87, .12);
  border: 1px solid rgba(255, 196, 87, .18);
  font-size: 10px;
}

.help-center {
  position: fixed;
  z-index: 80;
  width: min(980px, calc(100vw - 24px));
  height: min(760px, calc(100vh - 24px));
  padding: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .45);
}

.help-header {
  cursor: move;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(156, 199, 232, .11);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(88, 221, 255, .16), transparent 34%),
    rgba(255, 255, 255, .03);
}

.help-header h3 {
  margin: 2px 0 0;
  color: var(--text);
  font: 900 22px var(--display-font);
}

.help-toolbar {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(156, 199, 232, .09);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
}

.help-toolbar label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(156, 199, 232, .14);
  border-radius: 13px;
  background: rgba(0, 0, 0, .18);
}

.help-toolbar input {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.help-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
}

.help-results {
  min-height: 0;
  padding: 12px;
  border-right: 1px solid rgba(156, 199, 232, .09);
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
}

.help-results button {
  padding: 11px;
  border: 1px solid rgba(156, 199, 232, .09);
  border-radius: 13px;
  display: grid;
  gap: 5px;
  text-align: left;
  background: rgba(255, 255, 255, .03);
}

.help-results button.active,
.help-results button:hover {
  border-color: rgba(88, 221, 255, .28);
  background: linear-gradient(135deg, rgba(88, 221, 255, .12), rgba(176, 115, 255, .1));
}

.help-results span {
  color: var(--cyan);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.help-results strong {
  color: var(--text);
  font-size: 12px;
}

.help-results small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.help-article {
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.help-article h4 {
  margin: 4px 0 8px;
  color: var(--text);
  font: 900 28px var(--display-font);
}

.help-article > p,
.help-article article p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.help-article article {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(156, 199, 232, .09);
}

.help-article h5 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 13px;
}

.help-article pre {
  overflow: auto;
  padding: 12px;
  border-radius: 13px;
  color: #c9ffd4;
  background: rgba(0, 20, 8, .72);
  border: 1px solid rgba(95, 255, 124, .18);
  font: 500 11px "SFMono-Regular", Consolas, monospace;
  line-height: 1.55;
}

.help-tags {
  margin-top: 18px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.help-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--subtle);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(156, 199, 232, .1);
  font-size: 10px;
}

.status-pill.critical {
  color: #ffd7df;
  background: rgba(255, 72, 110, .18);
  border-color: rgba(255, 72, 110, .32);
}

.status-pill.error {
  color: #ffc4c4;
  background: rgba(255, 99, 99, .16);
  border-color: rgba(255, 99, 99, .28);
}

.status-pill.warning {
  color: #ffe7a6;
  background: rgba(255, 196, 87, .15);
  border-color: rgba(255, 196, 87, .28);
}

.status-pill.info {
  color: #bfefff;
  background: rgba(88, 221, 255, .14);
  border-color: rgba(88, 221, 255, .26);
}

.mini-table-wrap {
  overflow: auto;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.mini-table th {
  padding: 10px;
  color: var(--subtle);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.mini-table td {
  padding: 11px 10px;
  color: var(--muted);
  vertical-align: top;
  border-bottom: 1px solid rgba(156, 199, 232, .08);
  font-size: 11px;
  line-height: 1.45;
}

.mini-table td strong {
  display: block;
  color: var(--text);
}

.mini-table td small {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
}

.psadt-structure-list,
.psadt-option-list {
  display: grid;
  gap: 9px;
}

.psadt-structure-list div,
.psadt-option-list div {
  padding: 11px;
  border: 1px solid rgba(156, 199, 232, .1);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  background: rgba(255, 255, 255, .035);
}

.psadt-structure-list code,
.psadt-option-list code,
.snippet-grid code {
  color: var(--cyan);
  font: 800 10px "SFMono-Regular", Consolas, monospace;
}

.psadt-structure-list span,
.psadt-option-list p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.psadt-structure-list strong,
.psadt-option-list span {
  color: var(--subtle);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.psadt-function-summary {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psadt-function-summary span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--subtle);
  background: rgba(88, 221, 255, .07);
  border: 1px solid rgba(88, 221, 255, .12);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.psadt-function-summary strong {
  margin-right: 6px;
  color: var(--cyan);
}

.psadt-function-list {
  max-height: 360px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 8px;
}

.psadt-function-list button {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(156, 199, 232, .1);
  border-radius: 11px;
  display: grid;
  gap: 5px;
  text-align: left;
  background: rgba(255, 255, 255, .035);
}

.psadt-function-list button:hover {
  border-color: rgba(88, 221, 255, .28);
  background: rgba(88, 221, 255, .07);
}

.psadt-function-list code {
  min-width: 0;
  color: var(--cyan);
  font: 800 10px "SFMono-Regular", Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psadt-function-list span {
  color: var(--subtle);
  font: 800 8px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.psadt-admx-list {
  max-height: 360px;
  overflow: auto;
}

.snippet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.snippet-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(156, 199, 232, .12);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  background: linear-gradient(135deg, rgba(88, 221, 255, .06), rgba(255, 255, 255, .035));
}

.snippet-grid strong {
  color: var(--text);
  font-size: 12px;
}

.snippet-grid pre {
  max-height: 110px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-radius: 10px;
  color: var(--mint);
  background: rgba(0, 20, 8, .72);
  border: 1px solid rgba(109, 255, 122, .14);
  font: 10px/1.5 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

.full-width {
  width: 100%;
  justify-content: center;
}

.template-grid-workspace .page-header {
  align-items: center;
}

.template-grid-workspace .page-actions {
  flex-wrap: wrap;
}

.compact-section-title {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.danger-text {
  color: var(--red);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.metric-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .24);
}

.metric-card-0 { background: linear-gradient(to right, #8e2de2, #4a00e0); }
.metric-card-1 { background: linear-gradient(to right, #ff416c, #ff4b2b); }
.metric-card-2 { background: linear-gradient(to right, #56ab2f, #a8e063); }
.metric-card-3 { background: linear-gradient(to right, #56ccf2, #2f80ed); }

.metric-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
}

.metric-card strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  color: rgba(255, 255, 255, .82);
}

.wide-card {
  grid-column: span 2;
  padding: 20px;
  min-height: 245px;
  overflow: auto;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.section-title h3 {
  margin: 0;
  color: #fff;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.section-title svg {
  color: rgba(255, 255, 255, .82);
}

.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.section-title button:not(.primary-action):not(.ghost-button),
.panel-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.section-title .primary-action,
.section-title .ghost-button {
  width: auto;
  min-width: max-content;
  height: auto;
}

.panel-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(156, 199, 232, .13);
  color: var(--muted);
  background: rgba(0, 0, 0, .16);
}

.panel-toggle:hover {
  color: var(--cyan);
  border-color: rgba(88, 221, 255, .28);
  background: rgba(88, 221, 255, .07);
}

.panel-collapsed {
  min-height: 64px !important;
  max-height: 76px !important;
}

.panel-collapsed > :not(.section-title) {
  display: none !important;
}

.log-viewer-title {
  margin-bottom: 12px;
}

.job-strip,
.settings-list,
.data-list {
  display: grid;
  gap: 10px;
}

.job-strip button,
.data-list > button,
.runplan-row,
.job-list > button {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .105), rgba(88, 221, 255, .045));
  color: rgba(255, 255, 255, .9);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.job-strip button:hover,
.data-list > button:hover,
.runplan-row:hover,
.job-list > button:hover {
  border-color: rgba(88, 221, 255, .28);
  background: linear-gradient(135deg, rgba(88, 221, 255, .1), rgba(255, 255, 255, .055));
}

.data-list span,
.runplan-row span,
.job-list span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.data-list strong,
.runplan-row strong,
.job-list strong {
  color: var(--text);
}

.data-list > button,
.runplan-row,
.job-list > button,
.host-picker label,
.toggle,
.setting-row {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.data-list > button:hover,
.runplan-row:hover,
.job-list > button:hover,
.host-picker label:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.data-list small,
.job-strip small {
  color: rgba(255, 255, 255, .58);
}

.settings-list div {
  display: grid;
  grid-template-columns: minmax(160px, .5fr) 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.settings-list span {
  color: rgba(255, 255, 255, .62);
}

.editor-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.library-pane,
.editor-pane,
.form-panel,
.job-list,
.log-viewer {
  padding: 16px;
  min-height: 0;
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.tree {
  display: grid;
  gap: 4px;
}

.tree-node {
  display: grid;
  gap: 3px;
}

.tree-folder,
.tree-script {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 9px;
  color: rgba(255, 255, 255, .84);
  background: transparent;
  text-align: left;
}

.tree-script {
  margin-left: 20px;
  width: calc(100% - 20px);
  color: rgba(255, 255, 255, .68);
}

.root-script {
  margin-left: 0;
  width: 100%;
}

.tree-script.active,
.tree-folder:hover,
.tree-script:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .12);
}

.editor-pane {
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr);
  gap: 10px;
}

.editor-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px minmax(150px, 180px) auto;
  gap: 10px;
  align-items: end;
}

.toolbar-actions {
  display: flex;
  align-items: end;
  gap: 9px;
}

.description-input {
  min-height: 48px;
}

.monaco-host {
  min-height: 480px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #1e1e1e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.monaco-host::before {
  content: "POWERSHELL  PSADT  POSHMANAGER";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 24px;
  padding: 6px 12px 0 48px;
  color: rgba(204, 204, 204, .68);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: #252526;
  font: 700 10px "Segoe UI", Inter, sans-serif;
  letter-spacing: 0;
  pointer-events: none;
}

.monaco-host::after {
  content: "";
  position: absolute;
  inset: 24px auto 0 0;
  width: 3px;
  z-index: 2;
  pointer-events: none;
  background: #007acc;
  border-right: 0;
  opacity: 1;
}

.monaco-host .monaco-editor {
  padding-top: 24px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.two-column > .form-panel {
  background:
    linear-gradient(145deg, rgba(25, 35, 78, .97), rgba(8, 22, 56, .95)),
    rgba(4, 10, 28, .92);
  border-color: rgba(156, 199, 232, .24);
  box-shadow: 0 24px 76px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.two-column .panel-intro {
  color: rgba(225, 236, 255, .84);
}

.grid-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  gap: 14px;
}

.grid-form textarea,
.grid-form .host-picker,
.grid-form .field-span-2,
.grid-form .list-header,
.grid-form .form-actions {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .8);
}

.field > span {
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.field small {
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.45;
}

.panel-intro {
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.list-header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.list-header strong {
  min-width: 30px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(88, 221, 255, .14);
}

.toggle {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}

.toggle input,
.host-picker input {
  width: auto;
  min-height: auto;
}

.execution-toggle span {
  display: grid;
  gap: 3px;
}

.execution-toggle strong {
  color: #fff;
  font-size: 12px;
}

.execution-toggle small {
  color: var(--subtle);
  font-size: 10px;
  text-transform: none;
}

.host-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.host-picker label {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(88, 221, 255, .035));
  text-transform: none;
}

.host-picker label:has(input:checked) {
  border-color: rgba(100, 231, 189, .38);
  background: linear-gradient(135deg, rgba(100, 231, 189, .12), rgba(88, 221, 255, .06));
}

.host-picker span {
  display: grid;
  gap: 4px;
}

.host-picker strong {
  color: #fff;
  font-size: 12px;
}

.host-picker small {
  color: var(--subtle);
  font-size: 10px;
}

.logs-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-list > button.active {
  border-color: rgba(86, 204, 242, .78);
  background: rgba(86, 204, 242, .18);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #ffd200;
  box-shadow: 0 0 14px currentColor;
}

.status-dot.completed { background: #a8e063; }
.status-dot.failed { background: #ff416c; }
.status-dot.running { background: #56ccf2; }

.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  margin-bottom: 12px;
}

.tabs button {
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .7);
  background: transparent;
}

.tabs button.active {
  color: #fff;
  background: linear-gradient(to right, #56ccf2, #2f80ed);
}

.log-viewer {
  min-width: 0;
}

.log-tabs {
  width: min(100%, 360px);
  min-height: 48px;
  padding: 5px;
  gap: 6px;
  margin: 2px 0 14px;
  border: 1px solid rgba(156, 199, 232, .12);
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  background: rgba(255, 255, 255, .075);
}

.log-tabs button {
  min-width: 0;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.log-tabs button svg {
  flex: 0 0 auto;
}

.terminal {
  min-height: calc(100% - 54px);
  max-height: calc(100vh - 184px);
  overflow: auto;
  border-radius: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .13);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88rem;
}

.terminal p {
  margin: 0 0 8px;
  color: #e5efff;
  overflow-wrap: anywhere;
}

.terminal p.stderr { color: #ffb4c2; }
.terminal p.system { color: #ffe38a; }

.terminal span {
  display: inline-block;
  min-width: 112px;
  color: #56ccf2;
}

.settings-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(136px, .74fr) max-content;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .095);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045)),
    rgba(7, 14, 38, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.setting-row:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 221, 255, .22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.setting-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.setting-copy > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.setting-copy small {
  color: rgba(225, 236, 255, .78);
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
}

.setting-copy code {
  width: fit-content;
  max-width: 100%;
  color: rgba(255, 255, 255, .66);
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.setting-control {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

.settings-input {
  min-height: 42px;
  border-radius: 999px;
  padding-inline: 15px;
  border-color: rgba(88, 221, 255, .18);
  background:
    linear-gradient(135deg, rgba(88, 221, 255, .055), rgba(154, 107, 255, .055)),
    rgba(0, 0, 0, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.switch-control {
  position: relative;
  min-width: 136px;
  height: 42px;
  display: inline-grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 6px;
  border: 1px solid rgba(255, 115, 131, .28);
  border-radius: 999px;
  color: #ffd7dd;
  background: rgba(255, 115, 131, .095);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.switch-control i {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9aa6, var(--red));
  box-shadow: 0 8px 18px rgba(255, 115, 131, .24), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.switch-control strong {
  color: inherit;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.switch-control.active {
  color: #d9fff4;
  border-color: rgba(100, 231, 189, .34);
  background: rgba(100, 231, 189, .115);
}

.switch-control.active i {
  transform: translateX(8px);
  background: linear-gradient(135deg, #b6ffe9, var(--mint));
  box-shadow: 0 8px 18px rgba(100, 231, 189, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.setting-source {
  justify-self: end;
  min-width: 54px;
  text-align: center;
  color: var(--cyan);
  background: rgba(88, 221, 255, .11);
  border: 1px solid rgba(88, 221, 255, .18);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.setting-source.db {
  color: var(--mint);
  background: rgba(100, 231, 189, .105);
  border-color: rgba(100, 231, 189, .18);
}

.setting-source.env {
  color: var(--amber);
  background: rgba(255, 189, 106, .105);
  border-color: rgba(255, 189, 106, .2);
}

.v-field {
  border-radius: 12px !important;
  color: var(--text) !important;
  background: rgba(0, 0, 0, .18) !important;
}

.v-field__outline {
  color: rgba(255, 255, 255, .18) !important;
}

.v-label,
.v-selection-control .v-label {
  letter-spacing: 0;
  text-transform: none;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.profile-identity-card {
  min-height: 340px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 20px;
}

.profile-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 227, 142, .2), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(88, 221, 255, .2), transparent 28%),
    linear-gradient(140deg, rgba(255, 115, 176, .14), rgba(116, 236, 231, .055));
}

.profile-avatar {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  color: #130a1c;
  font-size: 32px;
  font-weight: 900;
  background: var(--action-gradient);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .58);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity-card > div:not(.profile-glow) {
  position: relative;
  z-index: 1;
}

.profile-identity-card h3 {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.profile-identity-card p {
  margin: 0;
  color: var(--muted);
}

.identity-meta {
  display: grid;
  gap: 10px;
}

.identity-meta span,
.external-auth-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
}

.identity-meta strong {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
}

.profile-editor-card {
  min-height: 340px;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.theme-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 14px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035));
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.theme-card:hover,
.theme-card.active {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24), 0 0 34px rgba(88, 221, 255, .08);
}

.theme-card > span:not(.theme-swatch) {
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
}

.theme-card svg {
  color: var(--mint);
}

.theme-card small {
  color: var(--muted);
  line-height: 1.4;
}

.theme-swatch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.theme-swatch i {
  height: 30px;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38);
}

.external-auth-card {
  align-items: stretch;
  background: linear-gradient(135deg, rgba(88, 221, 255, .1), rgba(255, 255, 255, .045));
}

.external-auth-card div {
  display: grid;
  gap: 6px;
}

.external-auth-card strong {
  color: var(--text);
}

.external-auth-card span {
  color: var(--muted);
  line-height: 1.5;
}

.context-menu {
  position: fixed;
  z-index: 30;
  min-width: 188px;
  padding: 8px;
}

.context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, .9);
  background: transparent;
  text-align: left;
}

.context-menu button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.context-menu button.danger-text:hover {
  color: #ffd6dd;
  background: rgba(255, 94, 125, .12);
}

.script-action-form {
  display: grid;
  gap: 14px;
}

.script-impact-warning,
.script-action-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(255, 210, 117, .24);
  border-radius: 14px;
  color: rgba(255, 244, 214, .9);
  background:
    radial-gradient(circle at 0 0, rgba(255, 210, 117, .14), transparent 42%),
    rgba(23, 17, 8, .36);
}

.script-impact-warning.danger {
  border-color: rgba(255, 94, 125, .34);
  color: rgba(255, 226, 232, .94);
  background:
    radial-gradient(circle at 0 0, rgba(255, 94, 125, .14), transparent 42%),
    rgba(28, 9, 16, .42);
}

.script-impact-warning > svg,
.script-action-note > svg {
  color: #ffd275;
}

.script-impact-warning.danger > svg {
  color: #ff7189;
}

.script-impact-warning strong,
.script-impact-warning p,
.script-action-note span {
  display: block;
}

.script-impact-warning strong {
  color: var(--text);
  font-size: 12px;
}

.script-impact-warning p,
.script-action-note span {
  margin: 5px 0 0;
  color: rgba(214, 225, 240, .74);
  font-size: 10px;
  line-height: 1.55;
}

.script-impact-warning ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.script-impact-warning li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(238, 248, 255, .86);
  font-size: 10px;
}

.script-impact-warning li span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #10131d;
  background: linear-gradient(135deg, #7de8ff, #ffd4ef);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.danger-action {
  background: linear-gradient(135deg, #ff7189, #ffd4ef);
}

.script-test-form {
  display: grid;
  gap: 16px;
  padding-bottom: 4px;
}

.form-modal .script-test-form .modal-actions {
  margin: 0;
  padding: 2px 0 0;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.script-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.script-test-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.script-test-context span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(156, 199, 232, .16);
  border-radius: 12px;
  color: rgba(214, 225, 240, .78);
  background: rgba(0, 0, 0, .16);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-test-context svg {
  flex: 0 0 auto;
  color: var(--cyan);
}

.script-test-output {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr);
  border: 1px solid rgba(97, 255, 139, .22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(168, 255, 189, .08);
  background:
    radial-gradient(circle at 10% 0, rgba(97, 255, 139, .1), transparent 35%),
    #03120a;
}

.script-test-output header {
  min-height: 64px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(97, 255, 139, .18);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .24)),
    rgba(6, 22, 12, .8);
}

.script-test-output header strong {
  display: block;
  margin-top: 2px;
  color: #a8ffbd;
  font: 800 12px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.script-test-output header small {
  color: rgba(168, 255, 189, .68);
  font: 800 9px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.script-test-output-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 82px;
}

.script-test-output textarea {
  width: 100%;
  min-height: 300px;
  height: 100%;
  padding: 18px 16px;
  border: 0;
  border-radius: 0;
  color: #a8ffbd;
  background:
    repeating-linear-gradient(180deg, rgba(168, 255, 189, .025) 0, rgba(168, 255, 189, .025) 1px, transparent 1px, transparent 26px),
    transparent;
  box-shadow: none;
  resize: vertical;
  font: 12px/1.75 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  white-space: pre;
}

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

  .script-test-output {
    min-height: 300px;
    grid-template-rows: auto minmax(240px, 1fr);
  }

  .script-test-output header {
    grid-template-columns: 1fr;
  }

  .script-test-output-meta {
    align-items: flex-start;
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(to right, #56ab2f, #a8e063);
  border-radius: 14px;
  box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .22);
}

@media (max-width: 1180px) {
  .auth-cover {
    grid-template-columns: 1fr;
  }

  .auth-cover-art {
    min-height: 420px;
  }

  .auth-form-panel {
    min-height: auto;
  }

  .dashboard-grid,
  .two-column,
  .editor-layout,
  .logs-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
    grid-template-rows: 60px auto auto;
    border-radius: 18px;
    margin: 10px;
    width: calc(100% - 20px);
  }

  .sidebar.collapsed .logo-text,
  .sidebar.collapsed .menu-title,
  .sidebar.collapsed .sidebar-user div {
    display: initial;
  }

  .sidebar.collapsed .menu-label {
    display: none;
  }

  .sidebar.collapsed .sidebar-header {
    justify-content: flex-start;
    padding-inline: 18px;
  }

  .sidebar.collapsed .sidebar-collapse-button {
    position: static;
    width: 34px;
    height: 34px;
    margin-left: auto;
  }

  .metismenu {
    flex-direction: row;
    overflow-x: auto;
  }

  .menu-label {
    display: none;
  }

  .topbar {
    position: sticky;
    top: 10px;
    left: 0;
    right: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 60px;
    padding: 12px;
    margin: 10px;
  }

  .topbar-search {
    display: none;
  }

  .workspace {
    margin-left: 0;
    width: 100%;
    padding: 0 10px 16px;
  }
}

@media (max-width: 720px) {
  .auth-cover {
    padding: 12px;
  }

  .auth-cover-overlay,
  .auth-form-wrap {
    padding: 22px;
  }

  .auth-story h1 {
    font-size: 34px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .editor-toolbar,
  .grid-form,
  .setting-row,
  .host-picker {
    grid-template-columns: 1fr;
  }

  .setting-source {
    justify-self: start;
  }

  .topbar-actions {
    flex-direction: row;
    align-items: center;
  }

  .terminal span {
    min-width: 0;
    display: block;
    margin-bottom: 2px;
  }

  .external-auth-card {
    display: grid;
  }
}

/* SysProv-derived enterprise polish layer */
:root {
  --panel-soft: rgba(21, 42, 66, .42);
  --violet-soft: rgba(154, 134, 255, .15);
  --mint-soft: rgba(100, 231, 189, .13);
  --display-font: "Space Grotesk", "Manrope", Inter, "Segoe UI", system-ui, sans-serif;
  font-family: "Manrope", Inter, "Segoe UI", system-ui, sans-serif;
}

body {
  font-size: 13px;
  color: var(--text);
}

.shell::before {
  background:
    radial-gradient(circle at 48% 53%, rgba(255, 247, 214, .58), transparent 0 12%, rgba(255, 115, 176, .38) 25%, transparent 45%),
    radial-gradient(circle at 68% 39%, rgba(116, 236, 231, .44), transparent 0 28%, rgba(28, 111, 214, .32) 52%, transparent 70%),
    radial-gradient(circle at 32% 36%, rgba(255, 40, 143, .38), transparent 0 34%, rgba(123, 65, 205, .18) 62%, transparent 74%),
    linear-gradient(135deg, #1a0629 0%, #4c1a5e 28%, #192f7d 68%, #060d34 100%);
}

.glass-panel,
.dashboard-widget,
.form-panel,
.job-list,
.log-viewer {
  background: linear-gradient(145deg, rgba(35, 15, 65, .74), rgba(10, 15, 46, .64));
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 22px 70px rgba(5, 4, 28, .28), inset 0 1px 0 rgba(255, 255, 255, .09);
}

.sidebar {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 8, 42, .78), rgba(9, 12, 43, .58));
}

.sidebar-header {
  height: 80px;
  padding: 18px 20px;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .11);
}

.logo-text {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.menu-label {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}

.metismenu button {
  min-height: 43px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.metismenu button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.metismenu button.active {
  color: #fff7ff;
  background: linear-gradient(90deg, rgba(255, 39, 149, .2), rgba(116, 236, 231, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 30px rgba(255, 39, 149, .08);
}

.metismenu button.active::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 19px;
  left: -1px;
  border-radius: 4px;
  background: linear-gradient(#ffe38e, #ff5b98 48%, #74ece7);
  box-shadow: 0 0 15px rgba(255, 91, 152, .6);
}

.sidebar-user {
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.topbar {
  grid-template-columns: minmax(210px, 1fr) minmax(280px, 520px) minmax(260px, 1fr);
  background: linear-gradient(145deg, rgba(18, 37, 59, .76), rgba(7, 17, 31, .64));
  border-color: rgba(255, 255, 255, .13);
}

.topbar h2,
.page-header h2,
.widget-toolbar h3,
.section-title h3 {
  font-family: var(--display-font);
  letter-spacing: -.025em;
}

.topbar h2 {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 650;
}

.eyebrow {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .17em;
}

.page-header h2 {
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.widget-grid {
  gap: 13px;
}

.dashboard-widget {
  border-radius: 22px;
  padding: 15px;
}

.dashboard-widget.collapsed {
  min-height: 76px;
}

.widget-actions button,
.widget-drag {
  border-color: rgba(156, 199, 232, .13);
  background: rgba(0, 0, 0, .16);
}

.chart-widget,
.health-widget {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  gap: 12px;
  flex: 1;
}

.chart-bars {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(8, minmax(14px, 1fr));
  align-items: end;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(88, 221, 255, .1);
  border-radius: 15px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    rgba(1, 7, 14, .24);
  background-size: 28px 28px;
}

.chart-bars span {
  min-height: 12px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), #3389ff);
  box-shadow: 0 0 18px rgba(88, 221, 255, .22);
}

.chart-bars span.running,
.chart-legend i.running { background: linear-gradient(180deg, var(--amber), #ff7a45); }
.chart-bars span.failed,
.chart-legend i.failed { background: linear-gradient(180deg, var(--red), #a92545); }
.chart-bars span.completed,
.chart-legend i.completed { background: linear-gradient(180deg, var(--mint), #32a97f); }

.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--subtle);
  font-size: 9px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.health-widget {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
}

.health-ring {
  --value: 0deg;
  width: 122px;
  height: 122px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--mint) var(--value), rgba(255, 255, 255, .07) 0);
  box-shadow: 0 0 28px rgba(100, 231, 189, .12);
}

.health-ring::before {
  content: "";
  width: 96px;
  height: 96px;
  border-radius: inherit;
  background: rgba(7, 17, 31, .9);
  grid-area: 1 / 1;
}

.health-ring strong,
.health-ring span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.health-ring strong {
  margin-top: -12px;
  color: var(--text);
  font: 900 25px var(--display-font);
}

.health-ring span {
  margin-top: 32px;
  color: var(--subtle);
  font-size: 9px;
  text-transform: uppercase;
}

.health-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.health-stats span {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(88,221,255,.045), rgba(255,255,255,.012));
}

.health-stats strong,
.health-stats small {
  display: block;
}

.health-stats strong {
  color: var(--text);
  font: 800 20px var(--display-font);
}

.health-stats small {
  color: var(--subtle);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tree-search,
.search-control {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--subtle);
  background: rgba(0, 0, 0, .12);
}

.tree-search {
  margin-bottom: 10px;
}

.tree-search input,
.search-control input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  min-height: auto;
  padding: 0;
  box-shadow: none;
}

.tree-folder,
.tree-script {
  min-height: 34px;
  border-radius: 9px;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
}

.tree-folder:hover,
.tree-script:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.tree-script.active {
  color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: inset 0 0 0 1px rgba(88, 221, 255, .11);
}

.script-explorer .script-explorer-search {
  min-height: 34px;
  height: 34px;
  margin: 10px 12px 8px;
  padding: 0 10px;
  border-radius: 8px;
}

.script-explorer .script-explorer-search input {
  font-size: 11px;
}

.resource-toolbar {
  min-height: 56px;
  padding: 9px 11px;
  margin-bottom: 13px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 19, 32, .42);
  border: 1px solid var(--border);
}

.resource-page {
  display: grid;
  gap: 14px;
}

.resource-table-panel {
  padding: 15px;
  border-radius: 20px;
}

.resource-toolbar select {
  width: 132px;
  min-height: 37px;
}

.resource-table th button {
  min-height: 28px;
  width: 100%;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  background: transparent;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  font: inherit;
}

.resource-table th button:hover {
  color: var(--cyan);
}

.resource-table th button span {
  color: var(--cyan);
  font-size: 10px;
}

.resource-table td strong {
  color: var(--text);
  font-size: 11px;
}

.resource-table .tag-row {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.vault-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 800;
}

.wide-form-modal {
  width: min(860px, calc(100vw - 34px));
}

.modal-toggle {
  min-height: 42px;
  margin-top: 20px;
}

.modal-host-picker {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, .12);
}

.modal-host-picker .host-picker {
  max-height: 260px;
  overflow: auto;
}

.log-toolbar select {
  width: 170px;
  min-height: 37px;
}

.log-toolbar {
  align-items: stretch;
  flex-wrap: wrap;
}

.log-toolbar .search-control {
  flex: 1 1 320px;
  min-width: min(100%, 260px);
}

.toolbar-count {
  margin-left: auto;
  color: var(--subtle);
  font-size: 9px;
  white-space: nowrap;
}

.data-table-wrap {
  border-radius: var(--radius);
  overflow: auto;
  border: 1px solid var(--border);
  background: rgba(3, 9, 17, .38);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.data-table th {
  height: 42px;
  padding: 0 15px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .1);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  height: 54px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  font-size: 10px;
  color: var(--muted);
}

.data-table tbody tr:hover {
  background: rgba(88, 221, 255, .025);
}

.data-table code {
  color: #a8c2d8;
  font: 400 10px "SFMono-Regular", Consolas, monospace;
  white-space: normal;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(88, 221, 255, .16);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status-pill.stderr,
.status-pill.error,
.status-pill.failed { color: var(--red); background: rgba(255, 115, 131, .1); border-color: rgba(255, 115, 131, .22); }
.status-pill.stdout,
.status-pill.info,
.status-pill.completed,
.status-pill.local { color: var(--mint); background: rgba(100, 231, 189, .1); border-color: rgba(100, 231, 189, .2); }
.status-pill.warn,
.status-pill.running { color: var(--amber); background: rgba(255, 189, 106, .1); border-color: rgba(255, 189, 106, .2); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.pagination span {
  color: var(--subtle);
  font-size: 9px;
}

.pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.admin-page {
  display: grid;
  grid-template-columns: minmax(520px, 1fr);
  gap: 18px;
  align-items: start;
}

.users-page {
  display: grid;
  gap: 18px;
}

.error-view {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: 12px;
}

.error-view h2 {
  margin: 0;
  color: var(--text);
  font: 800 28px var(--display-font);
}

.error-view p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.directory-command-strip {
  min-height: 78px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid rgba(88, 221, 255, .12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(circle at 12% 0, rgba(88, 221, 255, .09), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

.directory-command-strip > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.directory-command-strip strong {
  color: var(--text);
  font: 800 14px var(--display-font);
  letter-spacing: -.02em;
}

.directory-command-strip small {
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.45;
}

.directory-command-strip > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.form-modal {
  width: min(720px, calc(100vw - 34px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  border-radius: 24px;
}

.form-modal.compact-modal {
  width: min(560px, calc(100vw - 34px));
}

.form-modal > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.form-modal h3 {
  margin: 4px 0 5px;
  color: var(--text);
  font: 900 24px var(--display-font);
  letter-spacing: -.05em;
}

.form-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.modal-actions {
  position: static;
  bottom: auto;
  margin: 10px -20px -20px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5, 11, 20, .72), rgba(5, 11, 20, .96));
  backdrop-filter: blur(16px);
}

.settings-layout {
  padding: 16px 20px;
}

.settings-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.settings-section:first-child {
  padding-top: 0;
}

.settings-section:last-child {
  border-bottom: 0;
}

.settings-section > header {
  display: flex;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--cyan);
}

.settings-section-toggle {
  align-items: center;
  cursor: pointer;
}

.settings-section-toggle > div {
  min-width: 0;
  flex: 1;
}

.settings-section-toggle .panel-toggle {
  flex: 0 0 auto;
}

.settings-section-body {
  display: grid;
  gap: 10px;
}

.settings-section > header > span,
.form-section-header > span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(88, 221, 255, .13);
}

.settings-section h3,
.form-section-header strong {
  margin: 0 0 4px;
  color: var(--text);
  font: 800 13px var(--display-font);
  letter-spacing: -.02em;
}

.settings-section p,
.form-section-header p {
  margin: 0;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.5;
}

.setting-row {
  grid-template-columns: minmax(0, 1.05fr) minmax(160px, .82fr) max-content;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(88,221,255,.018));
  border-color: rgba(156, 199, 232, .11);
}

.setting-copy > span {
  font: 800 11px var(--display-font);
}

.settings-input {
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(10, 25, 42, .72), rgba(5, 14, 25, .82));
  border-color: rgba(156, 199, 232, .16);
}

.settings-textarea {
  min-height: 74px;
  resize: vertical;
  border-radius: 12px;
}

.admin-management-grid,
.directory-browser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-section-card {
  position: relative;
  padding: 15px;
  border: 1px solid rgba(156,199,232,.11);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(12,29,49,.58),rgba(4,13,24,.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  overflow: hidden;
}

.form-section-card::before {
  content: "";
  position: absolute;
  inset: -80px -90px auto auto;
  width: 210px;
  height: 140px;
  background: radial-gradient(circle, rgba(88,221,255,.12), transparent 64%);
  pointer-events: none;
}

.form-section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-grid label > span {
  color: #a8bad0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .015em;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  height: 42px;
  background: linear-gradient(180deg, rgba(10,25,42,.72), rgba(5,14,25,.82));
  border-color: rgba(156,199,232,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.full {
  grid-column: 1 / -1;
}

.select-tall {
  height: 118px !important;
  padding-block: 9px !important;
}

.compact-directory {
  margin-top: 14px;
}

.directory-results-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(3, 8, 14, .58);
}

.directory-results-panel > header {
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.directory-results-panel > header strong {
  display: block;
  color: var(--text);
  font-family: var(--display-font);
  font-size: 11px;
}

.directory-results-panel > header span {
  color: var(--subtle);
  font-size: 7px;
}

.directory-result-list {
  display: grid;
  gap: 9px;
  padding: 12px;
  max-height: 410px;
  overflow: auto;
}

.directory-user-result {
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.018);
}

.directory-user-result > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.directory-user-result strong {
  color: var(--text);
  font-size: 10px;
}

.directory-user-result small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 8px;
}

.directory-user-result code {
  margin-top: 5px;
  color: #63849b;
  font: 400 7px "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-avatar {
  color: var(--mint);
  background: rgba(100, 231, 189, .14);
}

@media (max-width: 1280px) {
  .admin-page,
  .admin-management-grid,
  .directory-browser-grid,
  .health-widget {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 440px) auto;
  }

  .publisher-stage-grid,
  .publisher-shell,
  .graph-tracking-grid,
  .psadt-verifier-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

  .resource-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .log-toolbar select,
  .toolbar-count {
    width: 100%;
    margin-left: 0;
  }

  .publisher-steps,
  .psadt-verifier-controls,
  .intune-coverage-grid,
  .help-toolbar,
  .help-body {
    grid-template-columns: 1fr;
  }

  .help-center {
    left: 12px !important;
    top: 12px !important;
  }

  .help-results {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(156, 199, 232, .09);
  }
}

/* Dashboard cards must not create nested scroll regions. Resize the card instead. */
.dashboard-workspace > .widget-grid > .dashboard-widget {
  overflow: hidden;
}

.dashboard-workspace > .widget-grid > .dashboard-widget .widget-scroll {
  overflow: hidden;
  padding-right: 0;
}

.dashboard-workspace > .widget-grid > .dashboard-widget .settings-list strong,
.dashboard-workspace > .widget-grid > .dashboard-widget .settings-list span,
.dashboard-workspace > .widget-grid > .dashboard-widget .jobs-watch span,
.dashboard-workspace > .widget-grid > .dashboard-widget .job-strip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Microsoft Entra sign-in option on the login panel */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--text-muted, #8a93a6);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Enterprise form reset: keep labels readable and fields as the visual surface. */
.form-modal {
  width: min(780px, calc(100vw - 34px));
  max-height: min(820px, calc(100vh - 42px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
}

.form-modal.compact-modal {
  width: min(560px, calc(100vw - 34px));
}

.form-modal > header {
  margin: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(156, 199, 232, .14);
  background:
    radial-gradient(circle at 12% 0, rgba(88, 221, 255, .12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}

.form-modal h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.025em;
}

.form-modal .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.modal-form {
  min-height: 0;
  max-height: calc(100vh - 150px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
}

.modal-form .form-grid,
.modal-form .form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.form-grid label,
.grid-form .field,
.modal-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(224, 238, 255, .82);
  text-transform: none;
  letter-spacing: 0;
}

.form-grid label:focus-within,
.grid-form .field:focus-within,
.modal-form label:focus-within {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.form-grid label > span,
.grid-form .field > span,
.modal-form label > span {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  width: fit-content;
  color: rgba(190, 215, 238, .78);
  background: transparent;
  font: 800 10px/1.2 var(--display-font);
  letter-spacing: .085em;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.grid-form .field input,
.grid-form .field select,
.grid-form .field textarea,
.modal-form input,
.modal-form select,
.modal-form textarea,
.settings-input {
  width: 100%;
  min-height: 46px;
  height: auto;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(156, 199, 232, .18);
  border-radius: 13px;
  color: rgba(242, 249, 255, .94);
  background:
    linear-gradient(180deg, rgba(13, 28, 48, .82), rgba(5, 13, 27, .9)),
    rgba(4, 10, 22, .74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 0 0 1px rgba(255, 255, 255, .01);
}

.form-grid textarea,
.grid-form .field textarea,
.modal-form textarea,
.settings-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.form-grid select,
.grid-form .field select,
.modal-form select,
.settings-input:is(select) {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(218, 236, 255, .8) 50%),
    linear-gradient(135deg, rgba(218, 236, 255, .8) 50%, transparent 50%),
    linear-gradient(180deg, rgba(13, 28, 48, .82), rgba(5, 13, 27, .9));
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover,
.grid-form .field input:hover,
.grid-form .field select:hover,
.grid-form .field textarea:hover,
.modal-form input:hover,
.modal-form select:hover,
.modal-form textarea:hover,
.settings-input:hover {
  border-color: rgba(156, 199, 232, .32);
  background-color: rgba(6, 18, 34, .92);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.grid-form .field input:focus,
.grid-form .field select:focus,
.grid-form .field textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus,
.settings-input:focus {
  border-color: rgba(88, 221, 255, .58);
  box-shadow:
    0 0 0 3px rgba(88, 221, 255, .13),
    0 12px 30px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder,
.grid-form .field input::placeholder,
.grid-form .field textarea::placeholder,
.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: rgba(172, 190, 212, .48);
}

.modal-form .full,
.form-grid .full,
.grid-form .full,
.grid-form .field-span-2 {
  grid-column: 1 / -1;
}

.modal-form .file-drop-zone,
.file-drop-zone {
  min-height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 26px;
  border: 1px dashed rgba(88, 221, 255, .34);
  border-radius: 18px;
  color: rgba(224, 238, 255, .84);
  background:
    radial-gradient(circle at 22% 0, rgba(88, 221, 255, .14), transparent 42%),
    linear-gradient(145deg, rgba(26, 48, 76, .74), rgba(6, 15, 34, .72));
  text-align: center;
  cursor: pointer;
}

.modal-form .file-drop-zone:hover,
.file-drop-zone:hover {
  border-color: rgba(88, 221, 255, .54);
  background:
    radial-gradient(circle at 22% 0, rgba(88, 221, 255, .19), transparent 42%),
    linear-gradient(145deg, rgba(30, 57, 88, .8), rgba(7, 17, 39, .76));
}

.modal-form .file-drop-zone > span,
.file-drop-zone > span {
  color: rgba(242, 249, 255, .92);
  font-size: 11px;
  letter-spacing: .11em;
}

.modal-form .file-drop-zone small,
.file-drop-zone small,
.field-hint {
  color: rgba(167, 189, 214, .68);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .04em;
}

.modal-form .primary-action.full-width,
.modal-form > .primary-action,
.modal-form > .ghost-button {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

.modal-form .primary-action:disabled,
.modal-form > .primary-action:disabled {
  color: rgba(219, 230, 244, .48);
  border-color: rgba(156, 199, 232, .12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(88, 221, 255, .08)),
    rgba(7, 14, 28, .78);
  box-shadow: none;
  opacity: 1;
  filter: none;
}

.modal-form .toggle,
.grid-form .toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px;
  border: 1px solid rgba(156, 199, 232, .14);
  border-radius: 14px;
  background: rgba(7, 16, 31, .48);
}

.modal-form .toggle input,
.grid-form .toggle input {
  width: auto;
  min-height: auto;
}

@media (max-width: 900px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar,
  .sidebar.collapsed {
    position: relative;
    inset: auto;
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    min-height: auto;
    margin: 10px;
    grid-template-rows: 68px auto auto;
    border-radius: 18px;
  }

  .sidebar-header,
  .sidebar.collapsed .sidebar-header {
    justify-content: flex-start;
    height: 68px;
    padding-inline: 14px;
  }

  .sidebar.collapsed .logo-text,
  .sidebar.collapsed .sidebar-user div {
    display: block;
  }

  .sidebar-collapse-button,
  .sidebar.collapsed .sidebar-collapse-button {
    position: static;
    width: 34px;
    height: 34px;
    margin-left: auto;
  }

  .metismenu,
  .sidebar.collapsed .metismenu {
    display: flex;
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px;
    scrollbar-width: none;
  }

  .metismenu::-webkit-scrollbar {
    display: none;
  }

  .menu-label,
  .menu-title,
  .sidebar.collapsed .menu-title,
  .sidebar.collapsed .menu-label {
    display: none;
  }

  .metismenu button,
  .sidebar.collapsed .metismenu button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .parent-icon,
  .sidebar.collapsed .parent-icon {
    width: 32px;
    height: 32px;
  }

  .sidebar-user,
  .sidebar.collapsed .sidebar-user {
    justify-content: flex-start;
    min-height: 62px;
    padding: 10px 14px;
  }

  .topbar {
    position: relative;
    inset: auto;
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    min-height: 62px;
    height: auto;
    margin: 10px;
    padding: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-radius: 18px;
  }

  .topbar-search {
    display: none;
  }

  .topbar-actions {
    gap: 7px;
  }

  .topbar-actions .topbar-action-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .topbar-actions .topbar-action-button svg {
    width: 17px;
    height: 17px;
  }

  .top-profile-menu,
  .profile-trigger {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .top-avatar {
    width: 34px;
    height: 34px;
  }

  .profile-menu-card {
    right: 0;
    width: min(260px, calc(100vw - 30px));
  }

  .workspace {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 0 10px 18px;
  }
}

@media (max-width: 520px) {
  .page-header {
    display: grid;
    gap: 12px;
  }

  .page-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-actions .primary-action,
  .page-actions .ghost-button {
    width: 100%;
    min-width: 0;
  }
}
.entra-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.entra-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Installer analysis controls in the deployment modal */
.installer-analyze {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}
.installer-analyze-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.installer-analyze-row input { flex: 1 1 180px; }
.installer-candidates {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.installer-candidates .status-pill {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.installer-candidates .status-pill:hover { background: rgba(255, 255, 255, 0.12); }

/* Material + Tailwind polish layer */
html {
  scroll-behavior: smooth;
}

::selection {
  color: #041019;
  background: rgba(88, 221, 255, .82);
}

button,
a,
input,
select,
textarea {
  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    transform .18s ease,
    filter .18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(88, 221, 255, .74);
  outline-offset: 3px;
}

button:disabled,
.primary-action:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.28);
  opacity: .52;
  transform: none;
}

.primary-action,
.ghost-button,
.icon-action,
.profile-menu-action,
.metismenu button,
.tabs button,
.resource-table th button,
.panel-toggle,
.modal-close,
.sidebar-collapse-button {
  position: relative;
  overflow: hidden;
}

.primary-action::before,
.ghost-button::before,
.icon-action::before,
.profile-menu-action::before,
.metismenu button::before,
.tabs button::before,
.resource-table th button::before,
.panel-toggle::before,
.modal-close::before,
.sidebar-collapse-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: currentColor;
  transition: opacity .18s ease;
}

.primary-action:hover::before,
.ghost-button:hover::before,
.icon-action:hover::before,
.profile-menu-action:hover::before,
.metismenu button:hover::before,
.tabs button:hover::before,
.resource-table th button:hover::before,
.panel-toggle:hover::before,
.modal-close:hover::before,
.sidebar-collapse-button:hover::before {
  opacity: .075;
}

.primary-action:active,
.ghost-button:active,
.icon-action:active,
.profile-menu-action:active,
.tabs button:active {
  transform: translateY(1px) scale(.992);
}

.primary-action,
.ghost-button {
  isolation: isolate;
  white-space: nowrap;
}

.primary-action {
  border-color: rgba(255, 255, 255, .28);
  box-shadow:
    0 14px 34px rgba(255, 68, 154, .19),
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    inset 0 1px 0 rgba(255, 255, 255, .58);
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 42px rgba(88, 221, 255, .15),
    0 12px 34px rgba(255, 68, 154, .18),
    inset 0 1px 0 rgba(255, 255, 255, .62);
}

.ghost-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045)),
    rgba(6, 15, 28, .54);
  border-color: rgba(156, 199, 232, .18);
}

.ghost-button:hover {
  color: #fff;
  border-color: rgba(88, 221, 255, .38);
  background:
    radial-gradient(circle at 22% 0, rgba(88, 221, 255, .16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .052)),
    rgba(6, 15, 28, .62);
}

input,
select,
textarea,
.settings-input {
  color: var(--text);
  caret-color: var(--cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 0 0 1px rgba(255, 255, 255, .012);
}

input::placeholder,
textarea::placeholder {
  color: rgba(181, 198, 220, .48);
}

input:hover,
select:hover,
textarea:hover,
.settings-input:hover {
  border-color: rgba(156, 199, 232, .28);
  background-color: rgba(0, 0, 0, .22);
}

input:focus,
select:focus,
textarea:focus,
.settings-input:focus {
  border-color: rgba(88, 221, 255, .58);
  box-shadow:
    0 0 0 3px rgba(88, 221, 255, .13),
    0 12px 30px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

input:read-only {
  color: rgba(238, 248, 255, .62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .14);
}

.page-header {
  padding: 2px 2px 0;
}

.page-header > div:first-child {
  min-width: 0;
}

.page-actions {
  flex-wrap: wrap;
}

.page-actions .primary-action,
.page-actions .ghost-button {
  min-width: max-content;
}

.dashboard-command-strip,
.directory-command-strip,
.resource-toolbar {
  box-shadow:
    0 10px 32px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.dashboard-widget {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, .025) inset,
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.dashboard-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 221, 255, .24);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, .28),
    0 0 42px rgba(88, 221, 255, .055),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.dashboard-widget.collapsed {
  min-height: 78px;
  padding-block: 13px;
}

.dashboard-widget.collapsed .widget-toolbar {
  align-items: center;
}

.widget-actions button,
.widget-drag {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028)),
    rgba(3, 9, 17, .34);
}

.widget-actions button:hover,
.widget-drag:not(:disabled):hover {
  color: var(--cyan);
  border-color: rgba(88, 221, 255, .34);
  background: rgba(88, 221, 255, .095);
}

.resource-table-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(88, 221, 255, .09), transparent 34%),
    linear-gradient(145deg, rgba(23, 27, 68, .88), rgba(6, 17, 42, .84));
  border-color: rgba(156, 199, 232, .18);
}

.resource-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(88, 221, 255, .1), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)),
    rgba(8, 19, 32, .48);
}

.resource-toolbar > :first-child:not(.search-control) {
  grid-column: 1 / -1;
}

.search-control {
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(156, 199, 232, .16);
  border-radius: 13px;
  color: var(--subtle);
  background:
    linear-gradient(180deg, rgba(10, 25, 42, .64), rgba(5, 14, 25, .78)),
    rgba(0, 0, 0, .12);
}

.search-control:focus-within {
  color: var(--cyan);
  border-color: rgba(88, 221, 255, .42);
  box-shadow: 0 0 0 3px rgba(88, 221, 255, .1);
}

.search-control input {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.search-control input:focus {
  box-shadow: none;
}

.search-clear {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 199, 232, .14);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
}

.search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
}

.table-density-select {
  width: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  border: 1px solid rgba(156, 199, 232, .16);
  border-radius: 13px;
  background: rgba(0, 0, 0, .14);
}

.table-density-select span {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.table-density-select select {
  min-height: 38px;
  border: 0;
  border-radius: 0 12px 12px 0;
  padding-inline: 4px 8px;
  background: transparent;
  box-shadow: none;
}

.resource-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -3px 0 12px;
}

.resource-filter-strip span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(88, 221, 255, .16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(88, 221, 255, .065);
  font-size: 10px;
}

.resource-filter-strip strong {
  color: var(--text);
}

.data-table-wrap {
  scrollbar-gutter: stable both-edges;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.resource-empty-shell {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 199, 232, .14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 10%, rgba(88, 221, 255, .105), transparent 36%),
    linear-gradient(145deg, rgba(7, 17, 36, .74), rgba(4, 10, 24, .88));
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: rgba(172, 226, 246, .78);
  background:
    linear-gradient(180deg, rgba(20, 34, 58, .99), rgba(8, 18, 36, .98));
  backdrop-filter: blur(16px);
}

.resource-table th button {
  border-radius: 9px;
  padding: 0 7px;
  justify-content: space-between;
}

.resource-table th button svg {
  flex: 0 0 auto;
  color: rgba(88, 221, 255, .72);
}

.data-table td {
  vertical-align: middle;
  color: rgba(226, 238, 255, .76);
}

.data-table tbody tr {
  transition: background-color .16s ease, box-shadow .16s ease;
}

.data-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(88, 221, 255, .065), rgba(154, 134, 255, .025));
  box-shadow: inset 3px 0 0 rgba(88, 221, 255, .42);
}

.pagination {
  min-height: 46px;
  padding-top: 2px;
}

.pagination span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(156, 199, 232, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
}

.modal-backdrop {
  background:
    radial-gradient(circle at 50% 40%, rgba(88, 221, 255, .08), transparent 34%),
    rgba(1, 5, 18, .86);
  animation: modalBackdropIn .18s ease both;
}

.form-modal {
  background:
    linear-gradient(145deg, rgba(25, 29, 63, .995), rgba(5, 13, 32, .995));
  border-color: rgba(177, 219, 255, .22);
  box-shadow:
    0 28px 96px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: modalSurfaceIn .2s ease both;
}

.form-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0, rgba(88, 221, 255, .16), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(154, 134, 255, .14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 32%);
}

.form-modal > header {
  align-items: flex-start;
}

.form-modal h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.08;
}

.form-modal p {
  color: rgba(218, 231, 248, .82);
}

.modal-form,
.form-grid,
.grid-form {
  align-items: start;
}

.form-grid label,
.grid-form .field,
.modal-form label {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(156, 199, 232, .09);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    rgba(4, 12, 26, .42);
}

.form-grid label:focus-within,
.grid-form .field:focus-within,
.modal-form label:focus-within {
  border-color: rgba(88, 221, 255, .28);
  background: rgba(88, 221, 255, .04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.form-grid label > span,
.grid-form .field > span,
.modal-form label > span {
  color: rgba(218, 236, 255, .9);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-grid label input,
.form-grid label select,
.form-grid label textarea,
.grid-form .field input,
.grid-form .field select,
.grid-form .field textarea,
.modal-form label input,
.modal-form label select,
.modal-form label textarea {
  margin-top: 2px;
}

.file-drop-zone {
  border-style: dashed !important;
  border-color: rgba(88, 221, 255, .28) !important;
  background:
    radial-gradient(circle at 22% 0, rgba(88, 221, 255, .12), transparent 42%),
    rgba(88, 221, 255, .045) !important;
}

.settings-section {
  border-radius: 17px;
}

.settings-section-toggle {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(156, 199, 232, .11);
  border-radius: 15px;
  color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(3, 9, 17, .22);
  text-align: left;
}

.settings-section-toggle:hover {
  border-color: rgba(88, 221, 255, .24);
  background:
    radial-gradient(circle at 0 0, rgba(88, 221, 255, .1), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
}

.settings-section-toggle > div {
  min-width: 0;
  flex: 1;
}

.settings-section-toggle > span:first-child {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(88, 221, 255, .13);
}

.settings-section-toggle .panel-toggle {
  flex: 0 0 auto;
}

.settings-section > header,
.settings-section > .settings-section-toggle {
  margin-bottom: 12px;
}

.setting-row {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.switch-control {
  overflow: hidden;
}

.switch-control::after {
  content: "";
  position: absolute;
  inset: 5px auto 5px 6px;
  width: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  opacity: 0;
  transition: opacity .18s ease, transform .2s ease;
}

.switch-control:hover::after {
  opacity: 1;
}

.switch-control.active::after {
  transform: translateX(8px);
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSurfaceIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Final form override: legacy card-label rules above must not leak into forms. */
.form-modal > header {
  padding: 18px 24px 16px;
}

.form-modal > form {
  min-height: 0;
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding: 18px 24px 20px;
}

.form-modal > form.form-grid,
.form-modal > form.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
}

.modal-form {
  gap: 12px;
  padding: 18px 24px 20px;
}

.modal-form .form-grid,
.modal-form .form-grid.two {
  gap: 12px;
}

.form-modal .modal-form label:not(.file-drop-zone),
.form-modal .form-grid label:not(.file-drop-zone),
.form-modal > form label:not(.file-drop-zone),
.form-panel .form-grid label:not(.file-drop-zone),
.form-panel .grid-form .field,
.grid-form .field {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.form-modal .modal-form label:not(.file-drop-zone):focus-within,
.form-modal .form-grid label:not(.file-drop-zone):focus-within,
.form-modal > form label:not(.file-drop-zone):focus-within,
.form-panel .form-grid label:not(.file-drop-zone):focus-within,
.form-panel .grid-form .field:focus-within,
.grid-form .field:focus-within {
  background: transparent !important;
  box-shadow: none !important;
}

.form-modal .modal-form label:not(.file-drop-zone) > span,
.form-modal .form-grid label:not(.file-drop-zone) > span,
.form-modal > form label:not(.file-drop-zone) > span,
.form-panel .form-grid label:not(.file-drop-zone) > span,
.form-panel .grid-form .field > span,
.grid-form .field > span {
  display: inline-flex;
  width: fit-content;
  color: rgba(190, 215, 238, .78) !important;
  background: transparent !important;
  font: 800 10px/1.2 var(--display-font);
  letter-spacing: .085em;
  text-transform: uppercase;
}

.form-modal .modal-form input,
.form-modal .modal-form select,
.form-modal .modal-form textarea,
.form-modal .form-grid input,
.form-modal .form-grid select,
.form-modal .form-grid textarea,
.form-modal > form input,
.form-modal > form select,
.form-modal > form textarea,
.form-panel .form-grid input,
.form-panel .form-grid select,
.form-panel .form-grid textarea,
.form-panel .grid-form input,
.form-panel .grid-form select,
.form-panel .grid-form textarea,
.grid-form .field input,
.grid-form .field select,
.grid-form .field textarea {
  width: 100%;
  min-height: 46px;
  height: auto;
  margin: 0 !important;
  padding: 11px 13px;
  border: 1px solid rgba(156, 199, 232, .18);
  border-radius: 13px;
  color: rgba(242, 249, 255, .94);
  background:
    linear-gradient(180deg, rgba(13, 28, 48, .82), rgba(5, 13, 27, .9)),
    rgba(4, 10, 22, .74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 0 0 1px rgba(255, 255, 255, .01);
}

.form-modal .modal-form textarea,
.form-modal .form-grid textarea,
.form-modal > form textarea,
.form-panel .form-grid textarea,
.form-panel .grid-form textarea,
.grid-form .field textarea {
  min-height: 78px;
}

.form-modal .modal-form select,
.form-modal .form-grid select,
.form-modal > form select,
.form-panel .form-grid select,
.form-panel .grid-form select,
.grid-form .field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(218, 236, 255, .82) 50%),
    linear-gradient(135deg, rgba(218, 236, 255, .82) 50%, transparent 50%),
    linear-gradient(180deg, rgba(13, 28, 48, .82), rgba(5, 13, 27, .9));
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

.form-modal .modal-form .file-drop-zone,
.modal-form .file-drop-zone,
.file-drop-zone {
  min-height: 116px;
  padding: 20px !important;
  border: 1px dashed rgba(88, 221, 255, .34) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 22% 0, rgba(88, 221, 255, .14), transparent 42%),
    linear-gradient(145deg, rgba(26, 48, 76, .74), rgba(6, 15, 34, .72)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.form-modal .modal-form input,
.form-modal .modal-form select,
.form-modal .modal-form textarea,
.form-modal .form-grid input,
.form-modal .form-grid select,
.form-modal .form-grid textarea,
.form-modal > form input,
.form-modal > form select,
.form-modal > form textarea {
  min-height: 42px;
  padding: 9px 12px;
}

.form-modal .modal-form .primary-action.full-width,
.form-modal .modal-form > .primary-action,
.form-modal > form .primary-action {
  min-height: 44px;
}

.form-modal .modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px -24px -20px;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(156, 199, 232, .12);
  background:
    linear-gradient(180deg, rgba(5, 13, 27, .55), rgba(3, 8, 20, .86));
}

.form-modal .modal-actions .primary-action,
.form-modal .modal-actions .ghost-button {
  min-width: 118px;
}

.form-modal.wide-form-modal {
  width: min(1120px, calc(100vw - 34px));
}

.form-modal > form.intune-deployment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 138px);
  padding: 14px 18px 0;
  scrollbar-gutter: stable;
  scroll-padding-bottom: 110px;
}

.intune-deployment-form .deployment-section {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(156, 199, 232, .13);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(88, 221, 255, .06), transparent 32%),
    linear-gradient(145deg, rgba(12, 24, 46, .72), rgba(5, 12, 28, .6));
}

.deployment-section-toggle {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  text-align: left;
}

.deployment-section-toggle > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 221, 255, .18);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(88, 221, 255, .09);
}

.deployment-section-toggle strong,
.structured-list-head strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.deployment-section-toggle small,
.structured-list-head small {
  display: block;
  margin-top: 3px;
  color: rgba(190, 210, 232, .68);
  font-size: 10px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.deployment-section-toggle svg:last-child {
  color: rgba(218, 236, 255, .7);
  transition: transform .18s ease;
}

.deployment-section-toggle svg.open {
  transform: rotate(180deg);
}

.section-count {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(88, 221, 255, .16);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(88, 221, 255, .07);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.deployment-section-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  padding: 14px;
}

.deployment-section-body.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deployment-section-body.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.span-3,
.span-all {
  grid-column: 1 / -1;
}

.structured-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.deployment-section-body > .structured-list {
  padding: 0;
}

.structured-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.structured-row {
  position: relative;
  display: grid;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(156, 199, 232, .12);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
    rgba(2, 8, 20, .48);
}

.return-code-row {
  grid-template-columns: minmax(88px, .28fr) minmax(140px, .38fr) minmax(220px, 1fr) 38px;
}

.assignment-row {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) 38px;
}

.assignment-row .icon-action {
  grid-column: 4;
  grid-row: 1;
}

.relationship-row {
  grid-template-columns: minmax(150px, .42fr) minmax(150px, .42fr) minmax(220px, 1fr) minmax(180px, .7fr) 38px;
}

.structured-row .icon-action {
  width: 38px;
  height: 38px;
  align-self: end;
  border-radius: 11px;
}

.switch-field {
  min-height: 58px;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px !important;
  padding: 12px !important;
  border: 1px solid rgba(156, 199, 232, .13) !important;
  border-radius: 14px !important;
  background: rgba(6, 15, 32, .54) !important;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-field .switch-visual {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid rgba(156, 199, 232, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  transition: background .18s ease, border-color .18s ease;
}

.switch-field .switch-visual::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(231, 240, 255, .84);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .18s ease;
}

.switch-field input:checked + .switch-visual {
  border-color: rgba(88, 221, 255, .42);
  background: linear-gradient(135deg, rgba(88, 221, 255, .85), rgba(154, 134, 255, .85));
}

.switch-field input:checked + .switch-visual::after {
  transform: translateX(22px);
  background: #fff;
}

.switch-field strong {
  display: block;
  color: #fff;
  font-size: 11px;
}

.switch-field small {
  display: block;
  margin-top: 3px;
  color: rgba(190, 210, 232, .66);
  font-size: 10px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.compact-switch {
  min-height: 42px;
  padding-block: 8px !important;
}

.compact-switch .switch-visual {
  width: 42px;
  height: 23px;
}

.compact-switch .switch-visual::after {
  width: 15px;
  height: 15px;
}

.compact-switch input:checked + .switch-visual::after {
  transform: translateX(19px);
}

.intune-deployment-form .installer-analyze {
  padding: 12px;
  border: 1px dashed rgba(88, 221, 255, .18);
  border-radius: 14px;
  background: rgba(88, 221, 255, .045);
}

.intune-deployment-form .installer-analyze-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, .8fr) auto;
  gap: 10px;
  align-items: center;
}

.intune-deployment-form .modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  width: calc(100% + 36px);
  margin: auto -18px 0;
  justify-content: flex-end;
  flex: 0 0 auto;
  box-shadow: 0 -18px 34px rgba(0, 0, 0, .24);
}

.vcenter-import-form {
  display: grid;
  gap: 16px;
  max-height: min(74vh, 820px);
  overflow: auto;
  padding: 2px 2px 0;
}

.wizard-section {
  border: 1px solid rgba(139, 224, 255, .14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(88, 221, 255, .075), rgba(255, 255, 255, .025)),
    rgba(7, 13, 28, .52);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.section-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #06101d;
  font-weight: 900;
  background: linear-gradient(135deg, #75d8ff, #a579ff 55%, #ffe4f1);
  box-shadow: 0 12px 30px rgba(108, 122, 255, .28);
}

.section-heading h4 {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .98rem;
}

.section-heading p {
  margin: 4px 0 0;
  color: rgba(219, 227, 255, .62);
  font-size: .82rem;
  line-height: 1.45;
}

.vcenter-filter-grid,
.vcenter-options-grid {
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(150px, .85fr) minmax(220px, 1.35fr) minmax(120px, .55fr);
  gap: 12px;
  align-items: end;
}

.vcenter-options-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.vcenter-filter-grid label,
.vcenter-options-grid label {
  min-width: 0;
}

.vcenter-filter-grid .filter-value,
.vcenter-options-grid .option-tags {
  grid-column: span 1;
}

.wizard-actions,
.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.vcenter-status,
.preview-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(219, 227, 255, .68);
  font-size: .82rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f8c66a;
  box-shadow: 0 0 14px rgba(248, 198, 106, .62);
}

.status-dot.success {
  background: #66f2b5;
  box-shadow: 0 0 14px rgba(102, 242, 181, .62);
}

.inline-error {
  border: 1px solid rgba(255, 124, 152, .28);
  border-radius: 14px;
  padding: 10px 12px;
  color: #ffb7c7;
  background: rgba(255, 65, 112, .08);
  margin-bottom: 12px;
}

.vcenter-preview-table {
  position: relative;
  overflow: auto;
  border: 1px solid rgba(139, 224, 255, .12);
  border-radius: 16px;
  background: rgba(3, 8, 18, .36);
}

.vcenter-preview-table table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.vcenter-preview-table th,
.vcenter-preview-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(139, 224, 255, .08);
  text-align: left;
  vertical-align: top;
}

.vcenter-preview-table th {
  color: rgba(151, 221, 255, .78);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(7, 13, 28, .72);
}

.vcenter-preview-table td {
  color: rgba(238, 242, 255, .84);
  font-size: .84rem;
}

.vcenter-preview-table strong,
.vcenter-preview-table small {
  display: block;
  min-width: 0;
}

.vcenter-preview-table small {
  margin-top: 4px;
  color: rgba(219, 227, 255, .42);
  overflow-wrap: anywhere;
}

.vcenter-preview-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #75d8ff;
}

.wizard-empty {
  padding: 28px 18px;
  color: rgba(219, 227, 255, .56);
  text-align: center;
}

@media (max-width: 1180px) {
  .deployment-section-body.three,
  .deployment-section-body.two,
  .return-code-row,
  .assignment-row,
  .relationship-row,
  .intune-deployment-form .installer-analyze-row,
  .vcenter-filter-grid,
  .vcenter-options-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-3,
  .span-all,
  .assignment-row .icon-action {
    grid-column: 1 / -1;
  }

  .structured-row .icon-action {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .page-header {
    display: grid;
    gap: 12px;
  }

  .page-actions {
    justify-content: flex-start;
    padding-top: 0;
  }

  .resource-toolbar {
    grid-template-columns: 1fr;
  }

  .table-density-select {
    width: 100%;
  }

  .toolbar-count {
    margin-left: 0;
  }
}
