/*
 * JLYQ Cockpit Glass UI
 * Visual-only layer: no DOM, route, API, form, or event contract changes.
 */

:root,
html[data-theme="light"],
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050b10;
  --surface: rgba(12, 25, 34, 0.58);
  --surface-soft: rgba(17, 34, 44, 0.46);
  --surface-raised: rgba(27, 47, 59, 0.66);
  --surface-blue: rgba(79, 126, 187, 0.14);
  --surface-cyan: rgba(76, 177, 181, 0.13);
  --surface-coral: rgba(241, 116, 103, 0.13);
  --surface-green: rgba(58, 197, 145, 0.13);
  --primary: #8fb5e7;
  --primary-dark: #bfd3ee;
  --cyan: #70c7c6;
  --coral: #ff8a7c;
  --green: #67d6aa;
  --amber: #f0bf6c;
  --danger: #ff7f91;
  --text: #f1f7f8;
  --text-2: #c5d3d8;
  --muted: #8da1a9;
  --border: rgba(139, 184, 191, 0.18);
  --border-strong: rgba(154, 200, 207, 0.34);
  --line: var(--border);
  --shadow: 0 34px 84px rgba(0, 3, 8, 0.58), 0 12px 28px rgba(0, 8, 14, 0.4), 0 2px 4px rgba(0, 0, 0, 0.46);
  --shadow-float: 0 52px 116px rgba(0, 3, 8, 0.64), 0 20px 42px rgba(0, 9, 15, 0.46), 0 5px 12px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 24px 52px rgba(0, 5, 10, 0.38), 0 8px 18px rgba(0, 8, 14, 0.28), 0 2px 4px rgba(0, 0, 0, 0.24);
  --sidebar-bg: rgba(7, 19, 27, 0.54);
  --topbar-bg: rgba(8, 20, 29, 0.46);
  --control-bg: rgba(22, 42, 53, 0.62);
  --overlay: rgba(1, 5, 12, 0.78);
  --glass: linear-gradient(145deg, rgba(49, 81, 88, 0.38) 0%, rgba(21, 46, 54, 0.25) 45%, rgba(6, 20, 27, 0.3) 100%);
  --glass-quiet: linear-gradient(145deg, rgba(47, 79, 85, 0.33) 0%, rgba(20, 45, 52, 0.21) 46%, rgba(6, 20, 27, 0.27) 100%);
  --glass-strong: linear-gradient(145deg, rgba(58, 91, 98, 0.46) 0%, rgba(25, 52, 60, 0.34) 46%, rgba(7, 23, 30, 0.38) 100%);
  --edge: rgba(143, 190, 197, 0.2);
  --edge-bright: rgba(143, 201, 207, 0.48);
  --glow: rgba(67, 154, 162, 0.17);
  --sidebar-width: 248px;
  --radius: 18px;
  --font-ui: Inter, "SF Pro Text", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: Inter, "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --type-display: clamp(24px, 1.65vw, 28px);
  --type-page-title: 22px;
  --type-section-title: 17px;
  --type-card-title: 14px;
  --type-body: 13.5px;
  --type-label: 12px;
  --type-caption: 11.5px;
}

html {
  background: #03090d;
}

body {
  background:
    radial-gradient(48% 62% at -3% 5%, rgba(56, 165, 170, 0.34) 0%, rgba(24, 93, 102, 0.15) 44%, transparent 76%),
    radial-gradient(44% 58% at 102% 4%, rgba(78, 117, 188, 0.29) 0%, rgba(43, 79, 128, 0.13) 47%, transparent 78%),
    radial-gradient(52% 48% at 75% 105%, rgba(30, 121, 129, 0.2) 0%, transparent 72%),
    linear-gradient(148deg, #061117 0%, #030a0f 46%, #071219 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--type-body);
  font-weight: 450;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(86, 139, 255, 0.38);
  color: #ffffff;
}

body,
.shell,
.main,
.content {
  background-color: transparent;
}

.shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.shell::before,
.shell::after {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(78px);
}

.shell::before {
  top: 4vh;
  left: 4vw;
  width: 30vw;
  height: 38vh;
  background: rgba(52, 160, 166, 0.13);
}

.shell::after {
  right: 5vw;
  bottom: 3vh;
  width: 38vw;
  height: 44vh;
  background: rgba(69, 103, 177, 0.12);
}

.sidebar {
  inset: 14px auto 14px 14px;
  width: var(--sidebar-width);
  height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid rgba(163, 218, 222, 0.27);
  border-radius: 28px;
  background:
    linear-gradient(152deg, rgba(149, 213, 218, 0.08), transparent 28%),
    radial-gradient(70% 34% at 22% 0%, rgba(91, 163, 176, 0.24), transparent 72%),
    rgba(8, 24, 32, 0.52);
  box-shadow:
    var(--shadow-float),
    0 0 0 1px rgba(48, 107, 116, 0.08),
    inset 0 1px 0 rgba(232, 253, 253, 0.22),
    inset 1px 0 0 rgba(205, 241, 242, 0.08),
    inset 0 -2px 1px rgba(0, 5, 10, 0.68),
    inset 0 0 58px rgba(57, 129, 137, 0.07);
  -webkit-backdrop-filter: blur(34px) saturate(158%) contrast(1.06);
  backdrop-filter: blur(34px) saturate(158%) contrast(1.06);
}

.sidebar::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(220, 250, 250, 0.17), transparent 22%, transparent 72%, rgba(73, 166, 172, 0.09)),
    radial-gradient(70% 8% at 50% 100%, rgba(62, 185, 189, 0.18), transparent 78%);
  content: "";
  pointer-events: none;
}

.brand {
  position: relative;
  min-height: 96px;
  gap: 14px;
  padding: 18px 16px 18px 18px;
  border-bottom: 1px solid rgba(141, 191, 196, 0.13);
  background:
    radial-gradient(54px 54px at 40px 48px, rgba(76, 218, 225, 0.16), transparent 74%),
    linear-gradient(180deg, rgba(94, 155, 165, 0.12), transparent);
}

.brand-mark,
.login-brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent url("/brand-logo-orbit-final.png?v=20260815-1") center / 125% auto no-repeat;
  box-shadow: none;
  filter: saturate(0.7) brightness(0.76) drop-shadow(0 4px 7px rgba(33, 123, 155, 0.14));
  transform: translateZ(0);
}

.brand-mark::after,
.login-brand-mark::after {
  display: none;
}

.brand-mark svg,
.login-brand-mark svg {
  display: none;
}

/* Login · liquid gateway -------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body:has(.liquid-login-page) {
  overflow: hidden;
  background: #020b13;
}

.liquid-login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: #020b13;
  isolation: isolate;
}

.liquid-login-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  flex: 0 0 auto;
  overflow: hidden;
}

.liquid-login-stage .liquid-login-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: max(100vw, calc(100vh * 1.405482));
  width: max(100vw, calc(100dvh * 1.405482));
  height: max(100vh, calc(100vw / 1.405482));
  height: max(100dvh, calc(100vw / 1.405482));
  background: #020b13 url("/login-liquid-gateway-bg.png?v=20260815-1") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%);
}

.liquid-login-page .liquid-login-panel,
html[data-theme="dark"] .liquid-login-page .liquid-login-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: max(100vw, calc(100vh * 1.405482));
  width: max(100vw, calc(100dvh * 1.405482));
  height: max(100vh, calc(100vw / 1.405482));
  height: max(100dvh, calc(100vw / 1.405482));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  transform: translate(-50%, -50%);
  container-type: inline-size;
}

.liquid-login-brand {
  position: absolute;
  top: 62.3%;
  left: 14.35%;
  display: flex;
  width: 15.8%;
  height: 6.4%;
  min-width: 0;
  align-items: center;
  gap: clamp(8px, .8cqw, 12px);
}

.liquid-login-brand .login-brand-mark {
  width: clamp(34px, 3.5cqw, 52px);
  height: clamp(34px, 3.5cqw, 52px);
  flex: 0 0 clamp(34px, 3.5cqw, 52px);
  opacity: .76;
  filter: saturate(.64) brightness(.78) drop-shadow(0 5px 11px rgba(92, 211, 224, .12));
}

.liquid-login-brand h1 {
  margin: 0;
  color: rgba(244, 251, 255, .94);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4cqw, 21px);
  font-weight: 690;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-shadow: 0 2px 18px rgba(75, 181, 199, .12);
}

.liquid-login-brand p {
  margin: 5px 0 0;
  color: rgba(186, 211, 222, .64);
  font-size: clamp(10px, .8cqw, 12px);
  line-height: 1.25;
  letter-spacing: .04em;
}

.liquid-login-panel form {
  display: contents;
}

.liquid-login-field {
  position: absolute;
  top: 62.25%;
  width: 18.65%;
  height: 5.55%;
  min-width: 0;
  margin: 0;
}

.liquid-login-username {
  left: 32.35%;
}

.liquid-login-password {
  left: 53.25%;
}

.liquid-login-field-icon {
  position: absolute;
  top: 50%;
  left: clamp(12px, 1.15cqw, 17px);
  z-index: 1;
  display: grid;
  width: clamp(16px, 1.35cqw, 20px);
  height: clamp(16px, 1.35cqw, 20px);
  place-items: center;
  color: rgba(212, 238, 246, .72);
  pointer-events: none;
  transform: translateY(-50%);
}

.liquid-login-field-icon svg {
  width: clamp(15px, 1.2cqw, 18px);
  height: clamp(15px, 1.2cqw, 18px);
  stroke-width: 1.7;
}

.liquid-login-field input {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 clamp(12px, 1.2cqw, 18px) 0 clamp(38px, 3.15cqw, 47px);
  border: 1px solid rgba(183, 229, 239, .18);
  border-radius: 19px;
  outline: none;
  background: rgba(12, 40, 53, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -9px 24px rgba(0, 11, 20, .08),
    0 8px 24px rgba(0, 8, 16, .08);
  color: rgba(244, 251, 255, .94);
  font-family: var(--font-ui);
  font-size: clamp(12px, 1cqw, 15px);
  letter-spacing: .01em;
  backdrop-filter: blur(17px) saturate(126%);
  -webkit-backdrop-filter: blur(17px) saturate(126%);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.liquid-login-field input::placeholder {
  color: rgba(194, 219, 229, .58);
}

.liquid-login-field input:hover {
  border-color: rgba(176, 233, 241, .3);
  background: rgba(17, 51, 65, .42);
}

.liquid-login-field input:focus-visible {
  border-color: rgba(154, 232, 241, .62);
  background: rgba(18, 55, 70, .52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 0 4px rgba(87, 194, 205, .1),
    0 12px 34px rgba(0, 8, 16, .16);
  transform: translateY(-1px);
}

.liquid-login-submit {
  position: absolute;
  top: 61.25%;
  left: 76.55%;
  display: grid;
  width: 6.2%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(222, 249, 252, .38);
  border-radius: 50%;
  background: rgba(167, 229, 235, .035);
  box-shadow:
    inset -10px -16px 28px rgba(0, 31, 43, .12),
    inset 10px 8px 24px rgba(234, 253, 255, .08),
    inset 0 2px 1px rgba(255, 255, 255, .24),
    0 0 0 7px rgba(101, 210, 222, .035),
    0 13px 38px rgba(0, 10, 19, .24);
  color: rgba(248, 253, 255, .96);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.75cqw, 27px);
  font-weight: 660;
  letter-spacing: .08em;
  text-indent: .08em;
  text-shadow: 0 2px 14px rgba(177, 244, 248, .25);
  backdrop-filter: blur(8px) saturate(126%);
  -webkit-backdrop-filter: blur(8px) saturate(126%);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.liquid-login-submit:hover {
  border-color: rgba(218, 250, 253, .58);
  background: rgba(167, 229, 235, .12);
  box-shadow:
    inset -10px -16px 28px rgba(0, 31, 43, .1),
    inset 10px 8px 24px rgba(234, 253, 255, .12),
    inset 0 2px 1px rgba(255, 255, 255, .28),
    0 0 0 8px rgba(101, 210, 222, .07),
    0 15px 42px rgba(0, 10, 19, .28);
  transform: translateY(-2px) scale(1.02);
}

.liquid-login-submit:active {
  transform: translateY(0) scale(.98);
}

.liquid-login-submit:focus-visible {
  outline: 0;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .24),
    0 0 0 5px rgba(133, 229, 238, .2),
    0 13px 38px rgba(0, 10, 19, .26);
}

.liquid-login-feedback {
  position: absolute;
  top: 69.7%;
  left: 32.35%;
  width: 39.55%;
  transform: none;
}

.liquid-login-feedback:empty {
  display: none;
}

.liquid-login-feedback .notice,
.liquid-login-feedback .error {
  margin: 0;
  padding: 11px 17px;
  border: 1px solid rgba(192, 233, 239, .18);
  border-radius: 999px;
  background: rgba(8, 31, 43, .68);
  box-shadow: 0 15px 36px rgba(0, 7, 14, .2);
  color: rgba(238, 249, 252, .88);
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
}

.liquid-login-feedback .error {
  border-color: rgba(236, 130, 135, .28);
  color: #ffc5c8;
}

@media (max-width: 980px) {
  .liquid-login-brand h1 {
    font-size: clamp(15px, 1.45vw, 19px);
  }
}

@media (max-width: 680px) {
  .liquid-login-stage {
    width: 100vw;
    height: 100vh;
  }

  .liquid-login-stage .liquid-login-scene {
    inset: 0;
    width: auto;
    height: auto;
    background-position: center top;
    background-size: auto 100%;
    transform: none;
  }

  .liquid-login-page .liquid-login-panel,
  html[data-theme="dark"] .liquid-login-page .liquid-login-panel {
    top: 48%;
    right: 16px;
    bottom: auto;
    left: 16px;
    display: grid;
    width: auto;
    height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(183, 229, 239, .14);
    border-radius: 30px;
    background: rgba(7, 27, 38, .42);
    box-shadow: 0 22px 64px rgba(0, 7, 14, .26);
    backdrop-filter: blur(24px) saturate(128%);
    -webkit-backdrop-filter: blur(24px) saturate(128%);
    transform: none;
    container-type: normal;
  }

  .liquid-login-brand,
  .liquid-login-field,
  .liquid-login-submit,
  .liquid-login-feedback {
    position: static;
    width: 100%;
    height: auto;
  }

  .liquid-login-brand {
    justify-content: center;
  }

  .liquid-login-panel form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .liquid-login-field input {
    height: 54px;
  }

  .liquid-login-submit {
    width: 100%;
    height: 54px;
    aspect-ratio: auto;
    border-radius: 20px;
  }

  .liquid-login-feedback {
    transform: none;
  }
}

.brand-title {
  color: #f6f9ff;
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 740;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(93, 203, 216, 0.08);
}

.brand > div:last-child {
  min-width: 0;
}

.brand-title,
.brand-subtitle {
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 4px;
  color: #91aab4;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.055em;
}

.nav {
  position: relative;
  padding: 14px 12px 24px;
  scrollbar-color: rgba(126, 160, 210, 0.32) transparent;
}

.nav > button,
.nav-group-title,
.nav-sub > button {
  min-height: 42px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #b8c5d7;
  font-size: var(--type-body);
  font-weight: 560;
  line-height: 1.35;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav > button:hover,
.nav-group-title:hover,
.nav-sub > button:hover {
  border-color: rgba(139, 193, 198, 0.2);
  background: rgba(79, 135, 145, 0.13);
  color: #f0f5ff;
  transform: translateX(2px);
}

.nav > button.active,
.nav-sub > button.active {
  border-color: rgba(131, 192, 199, 0.4);
  background: linear-gradient(90deg, rgba(52, 133, 145, 0.3), rgba(63, 102, 151, 0.13));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(223, 246, 246, 0.11), 0 10px 26px rgba(3, 32, 39, 0.22);
}

.nav > button.active::before,
.nav-sub > button.active::before {
  inset: 8px auto 8px 5px;
  width: 3px;
  border-radius: 999px;
  background: #7bc4c7;
  box-shadow: 0 0 14px rgba(100, 189, 193, 0.65);
}

.nav-icon {
  color: #5dc9d3;
}

.nav-sub {
  margin: 2px 3px 8px;
  padding: 2px 0 4px 12px;
  border-left: 1px solid rgba(125, 161, 215, 0.18);
}

.nav-group-title {
  font-weight: 680;
}

.nav-sub > button {
  font-size: 12px;
  font-weight: 520;
}

.nav-sub .nav-icon {
  background: #6f87aa;
  box-shadow: 0 0 0 4px rgba(92, 128, 185, 0.08);
}

.nav-sub button.active .nav-icon {
  background: #82aaff;
  box-shadow: 0 0 10px rgba(89, 144, 255, 0.62);
}

.nav-badge {
  border-color: rgba(240, 191, 108, 0.28);
  background: rgba(240, 191, 108, 0.1);
  color: #f2c980;
}

.main {
  height: 100vh;
  margin-left: calc(var(--sidebar-width) + 28px);
  grid-template-rows: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 14px 14px 0;
}

.topbar,
.content {
  border: 1px solid rgba(158, 205, 210, 0.25);
  background:
    linear-gradient(145deg, rgba(189, 231, 232, 0.075), transparent 28%),
    rgba(8, 22, 30, 0.52);
  box-shadow:
    var(--shadow-float),
    0 0 0 1px rgba(58, 110, 119, 0.07),
    inset 0 1px 0 rgba(229, 250, 250, 0.19),
    inset 1px 0 0 rgba(204, 233, 235, 0.07),
    inset 0 -2px 1px rgba(0, 6, 11, 0.64);
  -webkit-backdrop-filter: blur(32px) saturate(154%) contrast(1.055);
  backdrop-filter: blur(32px) saturate(154%) contrast(1.055);
}

.topbar {
  min-height: 72px;
  padding: 11px 18px;
  border-radius: 24px;
  box-shadow:
    0 24px 58px rgba(0, 3, 8, 0.5),
    0 8px 18px rgba(0, 8, 14, 0.38),
    0 2px 4px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(229, 250, 250, 0.2),
    inset 0 -2px 1px rgba(0, 6, 11, 0.58);
}

.topbar-title h2 {
  color: #f4f7fd;
  font-family: var(--font-display);
  font-size: var(--type-page-title);
  font-weight: 730;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.topbar-meta {
  color: #8194ae;
  font-size: var(--type-caption);
  font-weight: 480;
  line-height: 1.45;
}

.content {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 22px 22px 34px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(209, 241, 241, 0.055), transparent 24%),
    radial-gradient(58% 42% at 82% 0%, rgba(75, 132, 170, 0.16), transparent 76%),
    radial-gradient(48% 34% at 14% 100%, rgba(52, 134, 141, 0.11), transparent 78%),
    linear-gradient(150deg, rgba(14, 35, 44, 0.49), rgba(4, 15, 22, 0.46));
  box-shadow:
    var(--shadow-float),
    0 0 0 1px rgba(48, 104, 113, 0.08),
    inset 0 1px 0 rgba(229, 251, 251, 0.19),
    inset 1px 0 0 rgba(198, 237, 239, 0.06),
    inset 0 -2px 1px rgba(0, 5, 10, 0.68);
  scrollbar-color: rgba(118, 155, 212, 0.36) transparent;
}

.content::before,
.content::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(58px);
}

.content::before {
  top: 5%;
  right: 4%;
  width: 46%;
  height: 38%;
  background: radial-gradient(circle, rgba(86, 127, 185, 0.28) 0%, rgba(53, 101, 143, 0.11) 48%, transparent 74%);
}

.content::after {
  bottom: 3%;
  left: 3%;
  width: 42%;
  height: 35%;
  background: radial-gradient(circle, rgba(49, 151, 156, 0.23) 0%, rgba(34, 102, 111, 0.1) 46%, transparent 74%);
}

.user-chip {
  min-height: 38px;
  border-color: rgba(157, 205, 210, 0.25);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(64, 96, 103, 0.34), rgba(13, 34, 42, 0.32));
  color: #cbd6e5;
  box-shadow:
    0 10px 24px rgba(0, 6, 11, 0.2),
    inset 0 1px 0 rgba(240, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 7, 11, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.user-chip strong {
  color: #8fb1ff;
}

.section {
  gap: 16px;
  margin-bottom: 20px;
}

.section-header h3,
.management-head h3,
.panel-title-row h3,
.overview-block-head h3,
.module-head h3 {
  color: #f1f6ff;
  font-family: var(--font-display);
  font-size: var(--type-section-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.section-header p,
.management-head p,
.panel-title-row p,
.overview-block-head p,
.product-card-head span,
.form-hint,
.field-hint,
.metric-note {
  color: #8da3b5;
  font-size: var(--type-label);
  font-weight: 450;
  line-height: 1.55;
}

.field label,
thead th,
.staff-directory > span:first-child {
  font-size: var(--type-label);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.btn,
.segmented button,
.tabs button,
.tab,
.smart-select-trigger {
  font-size: 12.5px;
  font-weight: 630;
  line-height: 1;
}

table,
input,
select,
textarea {
  font-size: var(--type-body);
}

.status,
.panel-badge,
.channel-pill,
.nav-badge {
  font-size: var(--type-caption);
  font-weight: 620;
  line-height: 1.25;
}

.kpi-label,
.core-result-card > span,
.core-result-card > small,
.result-core-card > span,
.result-core-card > small,
.operating-core-card > span,
.operating-core-card > small,
.channel-primary-metrics span,
.goal-mini-metrics span,
.overview-product-channels span,
.overview-product-cost span,
.overview-effect-grid span,
.metric-pairs span,
.product-cost-strip span,
.goal-kpis span,
.goal-rate-grid span,
.effect-stat span,
.cloud-account-metrics span {
  font-size: var(--type-caption);
  font-weight: 520;
  line-height: 1.4;
  letter-spacing: 0.012em;
}

.kpi-value,
.core-result-card > strong,
.result-core-card > strong,
.operating-core-card > strong,
.channel-primary-metrics strong,
.goal-mini-metrics strong,
.overview-product-channels strong,
.overview-effect-grid strong,
.metric-pairs strong,
.goal-kpis strong,
.goal-rate-grid strong,
.effect-stat strong,
.cloud-account-metrics strong,
.resource-card strong,
.goal-completion,
.goal-master-kpis strong,
.goal-allocation-values strong {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.results-hero h2,
.today-hero h2,
.goal-command-title h3 {
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: 740;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.panel,
.overview-block,
.kpi,
.management-card,
.product-card,
.goal-card,
.resource-card,
.estimate-card,
.overview-goal-card,
.overview-channel-card,
.overview-product-card,
.operating-core-card,
.department-result-card,
.person-result-card,
.metric-module,
.cloud-account-block,
.cloud-bulk-account,
.source-status-card,
.result-core-card,
.today-hero,
.results-hero {
  border-color: var(--edge);
  background:
    linear-gradient(145deg, rgba(229, 252, 252, 0.09), rgba(185, 229, 230, 0.018) 27%, transparent 48%),
    var(--glass-quiet);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(235, 254, 254, 0.2),
    inset 1px 0 0 rgba(214, 243, 244, 0.07),
    inset -1px 0 0 rgba(139, 188, 192, 0.04),
    inset 0 -2px 1px rgba(0, 7, 12, 0.5);
  -webkit-backdrop-filter: blur(30px) saturate(152%) contrast(1.05);
  backdrop-filter: blur(30px) saturate(152%) contrast(1.05);
}

.panel,
.overview-block {
  border-radius: 20px;
}

/* Result filters sit before independent glass cards. Keep their custom select
   menus above those later sibling stacking contexts without changing the
   shared filter markup or its data bindings. */
.result-filter-panel {
  position: relative;
  z-index: 30;
  overflow: visible;
}

.result-filter-panel .filters,
.result-filter-panel .field,
.result-filter-panel .smart-select {
  overflow: visible;
}

/* The X/TG result owner picker stays native so the browser opens it above all
   glass stacking contexts. Its value and change event still use the existing
   detailFilters contract. */
.result-filter-panel select[data-native-select] {
  color-scheme: dark;
  cursor: pointer;
}

.panel-title-row {
  border-color: rgba(132, 165, 214, 0.14);
}

.overview-block,
.operating-funnel-panel,
.personnel-overview-panel,
.material-overview-panel,
.operating-split-grid > .panel {
  border-radius: 22px;
}

.results-hero,
.today-hero {
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(226, 252, 252, 0.12), transparent 25%),
    radial-gradient(54% 78% at 86% 14%, rgba(75, 130, 170, 0.27), transparent 73%),
    linear-gradient(135deg, rgba(34, 66, 76, 0.38), rgba(8, 24, 32, 0.28));
  box-shadow:
    0 22px 52px rgba(0, 7, 13, 0.3),
    inset 0 1px 0 rgba(225, 248, 248, 0.13),
    inset 0 -1px 0 rgba(0, 8, 13, 0.42);
}

.operating-core-card,
.result-core-card,
.core-result-card {
  border: 1px solid var(--edge);
  border-top: 1px solid rgba(130, 175, 247, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(229, 252, 252, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(34, 63, 72, 0.34), rgba(8, 22, 30, 0.25));
  box-shadow:
    0 16px 38px rgba(0, 6, 12, 0.25),
    inset 0 1px 0 rgba(224, 247, 247, 0.1),
    inset 0 -1px 0 rgba(0, 8, 13, 0.36);
  -webkit-backdrop-filter: blur(27px) saturate(148%) contrast(1.04);
  backdrop-filter: blur(27px) saturate(148%) contrast(1.04);
}

.operating-core-card.green,
.result-core-card.green,
.core-result-card.green {
  border-top-color: rgba(103, 214, 170, 0.7);
}

.operating-core-card.coral,
.result-core-card.coral,
.core-result-card.coral {
  border-top-color: rgba(255, 138, 124, 0.7);
}

.operating-core-card.cyan,
.result-core-card.cyan,
.core-result-card.blue {
  border-top-color: rgba(82, 208, 211, 0.7);
}

.btn,
.segmented,
.tabs,
.tab,
.status,
.panel-badge,
.channel-pill,
.staff-chip,
.nav-badge,
.mobile-nav-toggle,
.topbar-menu-button,
.smart-select-trigger {
  border-radius: 999px;
}

.btn,
.mobile-nav-toggle,
.topbar-menu-button,
.smart-select-trigger {
  border-color: rgba(154, 203, 208, 0.26);
  background: linear-gradient(145deg, rgba(64, 98, 105, 0.34), rgba(12, 33, 41, 0.32));
  color: #d4deec;
  box-shadow:
    0 10px 24px rgba(0, 6, 11, 0.2),
    inset 0 1px 0 rgba(239, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 7, 11, 0.4);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.btn:hover:not(:disabled),
.mobile-nav-toggle:hover,
.topbar-menu-button:hover,
.smart-select-trigger:hover {
  border-color: rgba(128, 190, 196, 0.58);
  background: linear-gradient(145deg, rgba(76, 125, 132, 0.48), rgba(22, 54, 64, 0.42));
  color: #ffffff;
  box-shadow:
    0 14px 30px rgba(0, 21, 28, 0.3),
    inset 0 1px 0 rgba(244, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 7, 11, 0.42);
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.btn.primary,
.btn.success {
  border-color: rgba(151, 208, 212, 0.58);
  background: linear-gradient(145deg, rgba(73, 152, 159, 0.92), rgba(37, 99, 109, 0.92));
  box-shadow:
    0 14px 30px rgba(4, 55, 64, 0.34),
    inset 0 1px 0 rgba(247, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 24, 31, 0.48);
  color: #fff;
}

/* The illustrated pearl is the button surface; keep the real control aligned
   on top without painting a second circle over it. */
.liquid-login-page .btn.primary.liquid-login-submit {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: clamp(18px, 1.75cqw, 27px);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.liquid-login-page .btn.primary.liquid-login-submit:hover {
  border-color: rgba(220, 249, 252, .18);
  background: rgba(185, 237, 242, .045);
  box-shadow: 0 0 22px rgba(117, 224, 232, .12);
}

.liquid-login-page .btn.primary.liquid-login-submit:focus-visible {
  border-color: rgba(220, 249, 252, .26);
  background: rgba(185, 237, 242, .055);
  box-shadow: 0 0 0 4px rgba(133, 229, 238, .15);
}

.btn.danger {
  border-color: rgba(255, 127, 145, 0.34);
  background: rgba(255, 127, 145, 0.08);
  color: #ff9aaa;
}

.segmented,
.tabs {
  border-color: rgba(154, 203, 208, 0.22);
  background: linear-gradient(145deg, rgba(42, 74, 82, 0.38), rgba(6, 24, 32, 0.36));
  box-shadow:
    0 10px 24px rgba(0, 6, 11, 0.18),
    inset 0 1px 0 rgba(237, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 7, 11, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.segmented button,
.tabs button,
.tab {
  border-radius: 999px;
  color: #91a2b8;
}

.segmented button.active,
.tabs button.active,
.tab.active {
  background: linear-gradient(145deg, rgba(82, 166, 172, 0.58), rgba(57, 102, 139, 0.38));
  color: #f6f9ff;
  box-shadow:
    0 8px 20px rgba(4, 40, 49, 0.28),
    inset 0 1px 0 rgba(244, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 14, 19, 0.4);
}

.filters,
.kol-filters,
.form-readonly-note,
.batch-transfer-bar {
  border-color: var(--edge);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 43, 53, 0.48), rgba(8, 23, 31, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field input,
.field select,
.table-input,
.inline-form input,
.inline-form select,
.custom-period-form input,
.batch-transfer-bar input {
  border-color: rgba(132, 169, 225, 0.26);
  border-radius: 999px;
  background: rgba(12, 31, 40, 0.66);
  color: #eef4ff;
  box-shadow:
    inset 0 1px 0 rgba(238, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 7, 11, 0.34);
}

.field textarea {
  border-color: rgba(132, 169, 225, 0.26);
  border-radius: 14px;
  background: rgba(12, 31, 40, 0.66);
  color: #eef4ff;
  box-shadow:
    inset 0 1px 0 rgba(238, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 7, 11, 0.34);
}

.field input::placeholder,
.field textarea::placeholder,
.table-input::placeholder,
.inline-form input::placeholder {
  color: #7f91aa;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.table-input:focus,
.inline-form input:focus,
.inline-form select:focus,
.custom-period-form input:focus,
.batch-transfer-bar input:focus {
  border-color: rgba(119, 167, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(83, 132, 232, 0.15), 0 8px 22px rgba(9, 28, 65, 0.2);
}

.field input[readonly],
.field input:disabled,
.field select:disabled,
.inline-form input:disabled,
.inline-form select:disabled,
.btn:disabled {
  border-color: rgba(115, 143, 185, 0.16);
  background: rgba(16, 27, 43, 0.56);
  color: #73849a;
}

.smart-select-menu {
  border-color: rgba(139, 177, 235, 0.3);
  border-radius: 16px;
  background: rgba(10, 27, 36, 0.92);
  box-shadow: 0 24px 60px rgba(0, 3, 10, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
}

.smart-select-option {
  border-radius: 10px;
}

.smart-select-option:hover,
.smart-select-option:focus-visible,
.smart-select-option.selected {
  background: rgba(62, 116, 225, 0.22);
  color: #f2f6ff;
}

.table-wrap,
.detail-table-wrap {
  border-color: var(--edge);
  border-radius: 16px;
  background: rgba(8, 23, 31, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

table {
  color: #c8d4e4;
}

th,
td,
.table-wrap > table > tbody > tr > td:last-child {
  border-color: rgba(124, 156, 204, 0.13);
  background: rgba(8, 23, 31, 0.56);
  color: #c9d4e2;
}

thead th,
.table-wrap > table > thead > tr > th:last-child {
  background: rgba(24, 47, 57, 0.86);
  color: #9eafc5;
  backdrop-filter: blur(14px);
}

tbody tr:hover > td,
.table-wrap > table > tbody > tr:hover > td:last-child {
  background: rgba(38, 71, 80, 0.68);
}

.drawer-backdrop,
.modal-backdrop {
  background: rgba(1, 5, 12, 0.74);
  backdrop-filter: blur(8px);
}

.drawer-panel,
.modal-card {
  border-color: rgba(137, 176, 235, 0.28);
  background: linear-gradient(145deg, rgba(24, 47, 58, 0.92), rgba(7, 21, 29, 0.94));
  box-shadow: -24px 0 70px rgba(0, 3, 10, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--text);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  backdrop-filter: blur(30px) saturate(130%);
}

.drawer-panel {
  margin: 12px;
  height: calc(100vh - 24px);
  border: 1px solid rgba(137, 176, 235, 0.28);
  border-radius: 24px;
}

.drawer-head,
.drawer-actions {
  border-color: rgba(129, 163, 216, 0.16);
  background: rgba(10, 29, 38, 0.84);
  backdrop-filter: blur(20px);
}

.global-toast,
.notice,
.error {
  border-radius: 14px;
  backdrop-filter: blur(18px);
}

.global-toast {
  border-color: rgba(103, 214, 170, 0.38);
  background: rgba(15, 48, 42, 0.92);
  box-shadow: 0 18px 46px rgba(0, 3, 10, 0.42);
}

.notice {
  border-color: rgba(121, 166, 255, 0.32);
  background: rgba(45, 88, 173, 0.12);
  color: #a9c4ff;
}

.notice.ok {
  border-color: rgba(103, 214, 170, 0.32);
  background: rgba(53, 143, 108, 0.12);
}

.notice.warn {
  border-color: rgba(240, 191, 108, 0.32);
  background: rgba(169, 113, 31, 0.13);
  color: #f2c980;
}

.error {
  border-color: rgba(255, 127, 145, 0.34);
  background: rgba(182, 56, 75, 0.13);
  color: #ff9aaa;
}

.status,
.panel-badge {
  border: 1px solid rgba(154, 203, 208, 0.2);
  background: linear-gradient(145deg, rgba(65, 95, 103, 0.3), rgba(13, 34, 42, 0.26));
  color: #a8b6c9;
  box-shadow:
    inset 0 1px 0 rgba(238, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 7, 11, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.status.ok {
  border-color: rgba(103, 214, 170, 0.24);
  background: rgba(63, 167, 127, 0.12);
  color: #78ddb5;
}

.status.info {
  border-color: rgba(121, 166, 255, 0.24);
  background: rgba(58, 110, 216, 0.14);
  color: #9bb9ff;
}

.status.warn {
  border-color: rgba(240, 191, 108, 0.25);
  background: rgba(177, 116, 30, 0.13);
  color: #f1c982;
}

.status.bad {
  border-color: rgba(255, 127, 145, 0.26);
  background: rgba(191, 57, 77, 0.13);
  color: #ff9aaa;
}

.progress,
.bar-track,
.cost-target-rail {
  background: rgba(126, 158, 206, 0.2);
}

.department-result-card dl div,
.person-result-metrics div,
.overview-product-cost,
.shared-kol-ledger-row > div,
.source-effect-metrics > div {
  border-color: rgba(128, 163, 217, 0.17);
  background: rgba(20, 42, 51, 0.5);
}

.person-result-card::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 166, 255, 0.78), rgba(82, 208, 211, 0.5), transparent);
}

.person-avatar,
.title-mark,
.bulk-action-title > span,
.source-rule-icon {
  border: 1px solid rgba(121, 166, 255, 0.22);
  background: rgba(62, 112, 216, 0.14);
  color: #8eb0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.loaded-cost-card {
  border-style: dashed;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.86) saturate(0.7);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(132, 165, 216, 0.32);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 182, 234, 0.5);
  background-clip: padding-box;
}

:focus-visible {
  outline: 2px solid rgba(121, 166, 255, 0.82);
  outline-offset: 2px;
}

/* Typography system: display, section, metric, body, helper and state layers. */
body,
button,
input,
select,
textarea,
table {
  font-family: var(--font-ui);
}

body {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.58;
}

h1,
h2,
h3,
h4,
h5,
.brand-title,
.kpi-value,
.core-result-card > strong,
.result-core-card > strong,
.operating-core-card > strong {
  font-family: var(--font-display);
  text-wrap: balance;
}

.topbar-title h2 {
  color: #f7fbff;
  font-size: var(--type-page-title);
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.026em;
}

.topbar-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 470;
  line-height: 1.45;
}

.results-hero h3,
.today-hero h3,
.results-hero h2,
.today-hero h2,
.goal-command-title h3 {
  color: #f8fbff;
  font-size: clamp(22px, 1.65vw, 26px);
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: -0.028em;
}

.results-hero.compact h3 {
  font-size: 20px;
}

.section-header h3,
.management-head h3,
.panel-title-row h3,
.overview-block-head h3,
.module-head h3,
.today-panel h3,
.period-panel h3 {
  color: #f0f7fa;
  font-size: var(--type-section-title);
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.product-card-head h4,
.overview-card-head h4,
.cloud-account-head h5,
.drawer-head h4,
.modal-card h3,
.management-card h4,
.goal-card-title strong {
  color: #e8f1f5;
  font-size: var(--type-card-title);
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -0.004em;
}

.nav > button,
.nav-group-title {
  color: #b9cbd3;
  font-size: 13px;
  font-weight: 600;
}

.nav-sub > button {
  color: #9bafb8;
  font-size: 12.5px;
  font-weight: 520;
}

.nav > button:hover,
.nav-group-title:hover,
.nav-sub > button:hover,
.nav > button.active,
.nav-sub > button.active {
  color: #f2f8fb;
}

.section-header p,
.management-head p,
.panel-title-row p,
.overview-block-head p,
.product-card-head span,
.form-hint,
.field-hint,
.metric-note,
.cloud-account-head p,
.goal-card-foot,
.source-effect-note {
  color: #91a5ad;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.55;
}

.today-hero p,
.results-hero p,
.goal-command-header p,
.workbench-panel-head p,
.period-panel-head p {
  color: #91a5ad;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.55;
}

.field label,
thead th,
.staff-directory > span:first-child,
.period-label,
.kpi-label,
.core-result-card > span,
.result-core-card > span,
.operating-core-card > span,
.channel-primary-metrics span,
.overview-effect-grid span,
.metric-pairs span,
.goal-kpis span,
.goal-rate-grid span,
.effect-stat span,
.cloud-account-metrics span {
  color: #9cafb7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.kpi-sub,
.core-result-card > small,
.result-core-card > small,
.operating-core-card > small,
.goal-mini-metrics small,
.channel-title small,
.source-effect-head small,
.source-effect-metrics span,
.material-card-metrics span,
.snapshot-cell small,
.cloud-account-metrics span,
.cloud-account-head p {
  color: #81969f;
  font-size: var(--type-caption);
  font-weight: 460;
  line-height: 1.5;
}

.kpi-value,
.core-result-card > strong,
.result-core-card > strong,
.operating-core-card > strong,
.channel-primary-metrics strong,
.goal-mini-metrics strong,
.overview-product-channels strong,
.overview-effect-grid strong,
.metric-pairs strong,
.goal-kpis strong,
.goal-rate-grid strong,
.effect-stat strong,
.cloud-account-metrics strong,
.resource-card strong,
.goal-completion,
.goal-master-kpis strong,
.goal-allocation-values strong {
  color: #f3f8fb;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.024em;
}

.kpi-value {
  font-size: 28px;
}

.core-result-card > strong,
.result-core-card > strong,
.operating-core-card > strong {
  font-size: clamp(26px, 1.8vw, 30px);
}

.workbench-stat-grid strong,
.resource-card strong,
.organization-summary-grid strong,
.goal-type-card b,
.goal-master-kpis strong,
.goal-completion {
  font-size: 24px;
}

.person-result-metrics div strong,
.tg-result-flow > div strong,
.result-pipeline > div strong,
.result-funnel > div strong {
  font-size: 23px;
}

.person-result-metrics .person-result-primary strong,
.operating-funnel-panel .result-funnel > div strong {
  font-size: clamp(26px, 1.8vw, 30px);
}

.btn,
.segmented button,
.tabs button,
.tab,
.smart-select-trigger,
.user-chip {
  font-size: 12.5px;
  font-weight: 620;
}

.field input,
.field select,
.field textarea,
.table-input,
.inline-form input,
.inline-form select,
.custom-period-form input {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 460;
}

input::placeholder,
textarea::placeholder {
  color: #718791;
  opacity: 1;
}

.status,
.panel-badge,
.channel-pill,
.nav-badge {
  color: #a9bcc5;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.012em;
}

table {
  color: #bdcbd1;
  font-size: 12.5px;
}

thead th {
  color: #9db0ba;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.015em;
}

tbody td {
  color: #c2d0d5;
  font-weight: 450;
  line-height: 1.52;
}

/* Preserve readable horizontal text in the dense account-permission table. */
.user-permission-page #usersTable table {
  min-width: 760px;
}

.user-permission-page #usersTable th,
.user-permission-page #usersTable td {
  white-space: nowrap;
}

.user-permission-page #usersTable td:nth-child(4) {
  min-width: 220px;
  white-space: normal;
}

@media (max-width: 1120px) {
  :root,
  html[data-theme="light"],
  html[data-theme="dark"] {
    --sidebar-width: 226px;
  }

  .sidebar {
    inset: 10px auto 10px 10px;
    height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .main {
    margin-left: calc(var(--sidebar-width) + 20px);
    padding: 10px 10px 10px 0;
  }

  .content {
    padding: 18px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    inset: 10px auto 10px 10px;
    width: min(300px, calc(100vw - 28px));
    height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .main {
    margin-left: 0;
    grid-template-rows: 64px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .topbar {
    border-radius: 18px;
  }

  .content {
    padding: 14px;
    border-radius: 20px;
  }

  .drawer-panel {
    inset: 0;
    width: calc(100vw - 16px);
    max-width: none;
    margin: 8px;
    height: calc(100vh - 16px);
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .main {
    padding: 6px;
  }

  .topbar {
    padding: 9px 10px;
  }

  .topbar-title h2 {
    font-size: 17px;
  }

  .content {
    padding: 11px;
  }

  .panel,
  .overview-block,
  .operating-split-grid > .panel {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav > button,
  .nav-group-title,
  .nav-sub > button,
  .btn {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sidebar,
  .topbar,
  .content,
  .panel,
  .overview-block,
  .kpi,
  .management-card,
  .product-card,
  .goal-card,
  .resource-card,
  .estimate-card,
  .overview-goal-card,
  .overview-channel-card,
  .overview-product-card,
  .operating-core-card,
  .department-result-card,
  .person-result-card,
  .metric-module,
  .cloud-account-block,
  .cloud-bulk-account,
  .source-status-card,
  .result-core-card,
  .today-hero,
  .results-hero {
    background-color: #10232d;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 2px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Operating overview — executive cockpit surface */
.operating-overview-page {
  --overview-free: #6edbb1;
  --overview-paid: #f2bd68;
  --overview-business: #78a6ff;
  --overview-tg: #a98dff;
  gap: 18px;
  padding-bottom: 40px;
}

.operating-command-stack {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 10px;
}

.operating-toolbar {
  min-height: 68px;
  padding: 10px 12px;
  border-color: rgba(144, 195, 202, .24);
  border-radius: 18px;
  background: rgba(9, 25, 34, .72);
  box-shadow: 0 18px 42px rgba(0, 6, 11, .28), inset 0 1px rgba(229, 251, 252, .07);
}

.operating-period-tabs {
  padding: 4px;
  border: 1px solid rgba(136, 188, 195, .2);
  border-radius: 13px;
  background: rgba(3, 14, 21, .55);
}

.operating-period-tabs button {
  min-width: 76px;
  min-height: 36px;
  border-radius: 10px;
  color: #8fa7b0;
}

.operating-period-tabs button.active {
  background: #244354;
  box-shadow: inset 0 1px rgba(233, 251, 252, .12), 0 8px 18px rgba(0, 6, 12, .2);
  color: #f4fbfc;
}

.operating-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.operating-period-copy {
  display: flex;
  min-width: 230px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(136, 188, 195, .18);
  border-radius: 12px;
  background: rgba(13, 31, 41, .58);
}

.operating-period-copy > svg {
  width: 17px;
  color: var(--cyan);
}

.operating-period-copy > div {
  display: grid;
  gap: 1px;
}

.operating-period-copy strong {
  font-size: 12px;
}

.operating-period-copy small {
  color: #78919a;
  font-size: 10px;
}

.overview-menu-wrap {
  position: relative;
}

.overview-menu-trigger,
.overview-health-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border-color: rgba(136, 188, 195, .18);
  background: rgba(13, 31, 41, .58);
}

.overview-menu-trigger > svg:first-child,
.overview-health-trigger > svg:last-child {
  width: 16px;
}

.overview-menu-trigger > svg:last-child,
.overview-health-trigger > svg:last-child {
  width: 14px;
  transition: transform .18s ease;
}

.overview-menu-trigger.active > svg:last-child,
.overview-health-trigger.active > svg:last-child {
  transform: rotate(180deg);
}

.overview-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 270px;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(156, 208, 214, .28);
  border-radius: 15px;
  background: rgba(8, 23, 32, .96);
  box-shadow: 0 28px 68px rgba(0, 4, 9, .58), inset 0 1px rgba(238, 255, 255, .08);
  backdrop-filter: blur(28px);
}

.overview-popover button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.overview-popover button:hover,
.overview-popover button.active {
  background: rgba(92, 153, 171, .14);
}

.overview-popover button > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(115, 165, 255, .12);
  color: #9ebeff;
}

.overview-popover button > div {
  display: grid;
}

.overview-popover small {
  color: var(--muted);
  font-size: 10px;
}

.overview-health-trigger strong {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(91, 210, 156, .12);
  color: #83dcb4;
  font-size: 10px;
}

.health-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58d89b;
  box-shadow: 0 0 0 4px rgba(88, 216, 155, .12);
}

.overview-health-drawer {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(520px, 1.7fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 17px;
  background: rgba(8, 24, 33, .88);
  animation: overview-drawer-in .18s cubic-bezier(.16, 1, .3, 1);
}

@keyframes overview-drawer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.overview-health-summary {
  display: flex;
  align-items: center;
  gap: 11px;
}

.overview-health-summary > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: rgba(93, 207, 159, .12);
  color: #72d6aa;
}

.overview-health-summary > div {
  display: grid;
}

.overview-health-summary small {
  color: var(--muted);
  font-size: 10px;
}

.overview-health-summary em {
  margin-left: auto;
  color: #73d7aa;
  font-size: 10px;
  font-style: normal;
}

.overview-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 6px;
}

.overview-health-grid article {
  display: grid;
  grid-template-columns: 30px 1fr 7px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  background: rgba(18, 40, 51, .48);
}

.overview-health-grid .source-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: rgba(119, 162, 225, .1);
  color: #9eb9e7;
}

.overview-health-grid .source-icon svg {
  width: 15px;
}

.overview-health-grid article > div {
  display: grid;
  min-width: 0;
}

.overview-health-grid small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-health-grid article > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.overview-health-grid article > i.ok { background: #58d89b; }
.overview-health-grid article > i.warn { background: #eab65c; }

.operating-flow-panel {
  padding: 24px 26px 20px;
  border-radius: 22px;
  background: rgba(7, 22, 31, .74);
}

.operating-flow-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr) 62px minmax(0, 1fr);
  gap: 0;
  margin-top: 20px;
}

.operating-flow-grid::before {
  position: absolute;
  top: 50%;
  right: 17%;
  left: 17%;
  height: 1px;
  background: rgba(111, 178, 195, .2);
  content: "";
}

.operating-flow-node {
  position: relative;
  z-index: 1;
  min-height: 112px;
  padding: 18px 20px;
  border-color: rgba(139, 193, 201, .22);
  background: rgba(12, 31, 41, .86);
  box-shadow: 0 18px 38px rgba(0, 5, 10, .2), inset 0 1px rgba(235, 255, 255, .05);
}

.operating-flow-node .flow-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 14px;
}

.operating-flow-node strong {
  font-size: clamp(25px, 2.2vw, 34px);
  font-variant-numeric: tabular-nums;
}

.flow-arrow {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: auto;
  border: 1px solid rgba(127, 183, 194, .24);
  border-radius: 50%;
  background: #0b202a;
  color: #7197a3;
}

.flow-arrow svg {
  width: 14px;
}

.operating-flow-trend,
.operating-line-trend {
  margin-top: 20px;
  padding-top: 18px;
  border-top-color: rgba(141, 193, 200, .14);
}

.overview-chart-shell {
  min-width: 0;
}

.overview-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.overview-series-chip {
  display: inline-grid;
  grid-template-columns: 8px auto auto;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(139, 191, 199, .15);
  border-radius: 10px;
  background: rgba(11, 28, 38, .54);
  color: var(--text);
  cursor: pointer;
}

.overview-series-chip > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--series);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--series) 14%, transparent);
}

.overview-series-chip small {
  color: var(--muted);
}

.overview-series-chip strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.overview-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  overflow: visible;
}

.overview-chart-grid {
  stroke: rgba(132, 182, 190, .1);
  stroke-width: 1;
}

.overview-chart-line {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .25));
}

.overview-chart-area { opacity: .9; }
.overview-chart-end { stroke: #0c212b; stroke-width: 3; }
.overview-chart-hit,
.overview-chart-hit:hover {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  filter: none;
  opacity: 0;
  pointer-events: all;
  cursor: crosshair;
}
.overview-chart-label { fill: #718b95; font-size: 11px; }
.overview-chart-axis-title {
  fill: #93aaac;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
}
.overview-chart-axis-value {
  fill: #70898d;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.overview-chart-axis-title.left,
.overview-chart-axis-value.left { fill: #68d9d0; }
.overview-chart-axis-title.right,
.overview-chart-axis-value.right { fill: #70a4ff; }
.overview-chart-axis-guide { stroke-width: 1; opacity: .36; }
.overview-chart-axis-guide.left { stroke: #68d9d0; }
.overview-chart-axis-guide.right { stroke: #70a4ff; }
.overview-chart-scale-note {
  margin: 3px 0 -3px;
  color: #718b8f;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}
.overview-chart-lane-title {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
}
.overview-chart-lane-value {
  fill: #70898d;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.overview-chart-lane-divider {
  stroke: rgba(126, 174, 180, .18);
  stroke-width: 1;
}

.operating-business-card {
  min-height: 390px;
  padding: 22px 24px 18px;
  border-color: rgba(139, 192, 200, .2);
  border-radius: 22px;
  background: rgba(7, 22, 31, .72);
  box-shadow: 0 20px 48px rgba(0, 5, 10, .24), inset 0 1px rgba(236, 255, 255, .05);
}

.operating-business-card::before {
  width: 96px;
  height: 2px;
  margin: -22px 0 19px;
  background: var(--business-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--business-accent) 30%, transparent);
}

.operating-business-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operating-business-identity > div {
  display: grid;
}

.business-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--business-accent) 34%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--business-accent) 11%, transparent);
  color: var(--business-accent);
}

.business-icon svg { width: 20px; }

.operating-business-head > .operating-business-identity > div > span {
  color: var(--business-accent);
  font-size: 10px;
  font-weight: 700;
}

.operating-business-head h3 {
  margin: 0;
  font-size: 19px;
}

.operating-business-metrics {
  display: flex;
  gap: 0;
  margin-top: 12px;
  overflow-x: auto;
  border-top: 1px solid rgba(139, 192, 200, .13);
  border-bottom: 1px solid rgba(139, 192, 200, .13);
}

.business-line-metric {
  min-width: 132px;
  flex: 1 0 132px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid rgba(139, 192, 200, .12);
  border-radius: 0;
  background: transparent;
}

.business-line-metric:last-child { border-right: 0; }
.business-line-metric strong { font-size: 18px; font-variant-numeric: tabular-nums; }

.operating-line-trend.pending-trend {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: rgba(12, 30, 40, .5);
}

.operating-line-trend.pending-trend::before {
  position: absolute;
  inset: 18px;
  border-bottom: 1px solid rgba(139, 192, 200, .12);
  background: repeating-linear-gradient(0deg, transparent 0 34px, rgba(139, 192, 200, .06) 35px 36px);
  content: "";
}

.operating-line-trend.pending-trend > div,
.operating-line-trend.pending-trend > strong,
.operating-line-trend.pending-trend > span {
  position: relative;
  z-index: 1;
}

.personnel-overview-panel,
.material-overview-panel {
  padding: 24px;
  border-radius: 22px;
  background: rgba(7, 22, 31, .74);
}

.people-performance-board {
  display: grid;
  gap: 8px;
  min-width: 820px;
  margin-top: 18px;
}

.people-board-head,
.people-performance-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(5, minmax(112px, 1fr));
  gap: 8px;
  align-items: center;
}

.people-board-head {
  padding: 0 12px 5px;
  color: #78919a;
  font-size: 10px;
  text-align: center;
}

.people-board-head span:first-child { text-align: left; }

.people-performance-row {
  padding: 9px 10px;
  border: 1px solid rgba(136, 189, 197, .14);
  border-radius: 14px;
  background: rgba(12, 30, 40, .52);
  transition: border-color .18s ease, transform .18s ease;
}

.people-performance-row:hover {
  border-color: rgba(136, 198, 207, .3);
  transform: translateY(-1px);
}

.people-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.people-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(129, 174, 238, .18);
  border-radius: 10px;
  background: rgba(115, 157, 221, .1);
  color: #9ab8e4;
  font-weight: 800;
}

.people-identity > div { display: grid; }
.people-identity small { color: var(--muted); font-size: 9px; }

.people-performance-cell {
  position: relative;
  display: grid;
  min-height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(18, 39, 49, .5);
}

.people-performance-cell::before {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #63c9a5 var(--intensity), transparent);
  content: "";
  opacity: .34;
}

.people-performance-cell strong {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.people-performance-cell i {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.people-performance-cell i::after {
  display: block;
  width: var(--intensity);
  height: 100%;
  border-radius: inherit;
  background: #79dfb8;
  content: "";
}

.people-performance-cell.missing::before { display: none; }
.people-performance-cell.missing strong { color: var(--amber); }

.material-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(136, 189, 197, .16);
  border-radius: 16px;
  background: rgba(12, 30, 40, .52);
}

.material-kpi-strip > div {
  min-height: 108px;
  padding: 17px 19px;
  border: 0;
  border-right: 1px solid rgba(136, 189, 197, .13);
  border-radius: 0;
  background: transparent;
}

.material-kpi-strip > div:last-child { border-right: 0; }

.material-kpi-strip span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.material-kpi-strip span svg {
  width: 15px;
  color: #7ba6d9;
}

.material-kpi-strip strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.material-kpi-strip small { color: var(--muted); font-size: 9px; }

.material-analysis-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .62fr);
  gap: 14px;
}

.material-analysis-layout > section {
  padding: 17px;
  border-color: rgba(136, 189, 197, .15);
  background: rgba(11, 28, 38, .48);
}

.material-source-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.material-source-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(137, 190, 198, .14);
  border-radius: 14px;
  background: rgba(17, 37, 47, .5);
}

.material-source-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.material-source-head > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  background: rgba(113, 156, 222, .11);
  color: #9bb9e6;
}

.material-source-head > span svg { width: 18px; }
.material-source-head > div { display: grid; min-width: 0; }
.material-source-head small { color: var(--muted); font-size: 9px; }

.material-rate {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 16px;
}

.material-rate span { color: var(--muted); font-size: 10px; }
.material-rate strong { font-size: 22px; }

.material-meter {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.material-meter i {
  display: block;
  width: var(--rate);
  height: 100%;
  border-radius: inherit;
  background: #70d4ac;
}

.material-source-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0 0;
}

.material-source-card dl > div { display: grid; }
.material-source-card dt { color: var(--muted); font-size: 9px; }
.material-source-card dd { margin: 2px 0 0; font-size: 14px; font-weight: 750; }

.top-material-list article {
  border-color: rgba(136, 189, 197, .14);
  border-radius: 12px;
  background: rgba(16, 36, 46, .48);
}

.top-material-list article > span {
  border-radius: 9px;
  background: rgba(117, 158, 221, .12);
  color: #9ab8e5;
}

@media (max-width: 1240px) {
  .overview-health-drawer { grid-template-columns: 1fr; }
  .overview-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operating-toolbar { align-items: stretch; flex-direction: column; }
  .operating-toolbar-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .operating-period-copy { flex: 1; }
  .material-source-map { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .operating-flow-grid { grid-template-columns: 1fr; gap: 8px; }
  .operating-flow-grid::before { display: none; }
  .flow-arrow { transform: rotate(90deg); }
  .operating-toolbar-actions { align-items: stretch; flex-direction: column; }
  .operating-period-copy, .overview-menu-trigger, .overview-health-trigger { width: 100%; }
  .overview-popover { right: auto; left: 0; width: min(100%, 310px); }
  .material-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-kpi-strip > div:nth-child(2) { border-right: 0; }
  .material-kpi-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(136, 189, 197, .13); }
}

@media (max-width: 560px) {
  .overview-health-grid, .material-kpi-strip { grid-template-columns: 1fr; }
  .material-kpi-strip > div { border-right: 0; border-bottom: 1px solid rgba(136, 189, 197, .13); }
  .material-kpi-strip > div:last-child { border-bottom: 0; }
}

/* 经营总览 v34：选定母版的数据化实现。只作用于经营总览内容区，不改生产导航和页面外壳。 */
.operating-v34 {
  --ov34-teal: #68d9d0;
  --ov34-green: #66dda8;
  --ov34-amber: #efbc68;
  --ov34-purple: #a98dff;
  --ov34-hair: rgba(139, 192, 200, .14);
  --ov34-border: rgba(139, 192, 200, .22);
  display: grid;
  gap: 14px;
}

.operating-v34 > .panel,
.operating-v34 .operating-toolbar,
.operating-v34 .overview-health-drawer {
  border-color: var(--ov34-border);
  background:
    linear-gradient(145deg, rgba(225, 250, 250, .065), transparent 24%),
    radial-gradient(56% 90% at 0 0, rgba(73, 150, 157, .095), transparent 72%),
    linear-gradient(145deg, rgba(27, 52, 61, .48), rgba(5, 18, 25, .74));
  box-shadow: 0 24px 58px rgba(0, 5, 10, .28), inset 0 1px 0 rgba(234, 255, 255, .11), inset 0 -1px 0 rgba(0, 7, 12, .44);
  backdrop-filter: blur(26px) saturate(145%);
}

.ov34-global-panel {
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
}

.ov34-global-row {
  display: grid;
  grid-template-columns: minmax(150px, 18%) minmax(0, 1fr) minmax(120px, 15%);
  min-height: 174px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ov34-hair);
}

.ov34-global-row:last-child { border-bottom: 0; }
.ov34-global-lead,
.ov34-compare { display: flex; flex-direction: column; justify-content: center; }
.ov34-global-lead span,
.ov34-compare span { color: #91a8ab; font-size: 13px; }
.ov34-global-lead span b { font-size: 10px; font-weight: 500; }
.ov34-global-lead strong { margin: 13px 0 8px; color: #f3fbfa; font-size: clamp(28px, 2.25vw, 46px); font-weight: 560; letter-spacing: -.035em; }
.ov34-global-lead small,
.ov34-compare small { color: #789093; font-size: 11px; }
.ov34-global-chart { min-width: 0; padding: 12px 8px; }
.ov34-global-chart .overview-chart-shell { height: 100%; }
.ov34-global-chart .overview-chart-legend { display: none; }
.ov34-global-chart .overview-chart { height: 150px; }
.ov34-compare { align-items: flex-end; padding-left: 18px; border-left: 1px solid var(--ov34-hair); text-align: right; }
.ov34-compare strong { margin: 10px 0 6px; color: var(--ov34-green); font-size: clamp(22px, 1.55vw, 31px); }
.ov34-compare.negative strong { color: #f1c36d; }
.ov34-compare.missing strong { color: #81989b; }

.ov34-lane {
  --lane-accent: var(--ov34-green);
  position: relative;
  display: grid;
  grid-template-columns: 38px 170px minmax(0, 1fr);
  min-height: 292px;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
}
.ov34-lane::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--lane-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--lane-accent) 34%, transparent); content: ""; }
.ov34-paid { --lane-accent: var(--ov34-amber); min-height: 520px; }
.ov34-commercial { --lane-accent: #69cdbd; min-height: 330px; }
.ov34-tg { --lane-accent: var(--ov34-purple); min-height: 300px; }
.ov34-section-id { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid color-mix(in srgb, var(--lane-accent) 68%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--lane-accent) 18%, transparent); color: #eefbfa; font-size: 13px; }
.ov34-identity { display: flex; min-width: 0; align-items: flex-start; justify-content: center; flex-direction: column; padding: 0 20px 0 8px; border-right: 1px solid var(--ov34-hair); }
.ov34-identity > span { display: grid; width: 58px; height: 58px; margin-bottom: 18px; place-items: center; border: 1px solid color-mix(in srgb, var(--lane-accent) 45%, transparent); border-radius: 19px; background: color-mix(in srgb, var(--lane-accent) 12%, rgba(12, 35, 42, .6)); color: var(--lane-accent); box-shadow: inset 0 1px rgba(255,255,255,.09), 0 12px 28px rgba(0, 7, 12, .25); }
.ov34-identity > span svg { width: 28px; height: 28px; }
.ov34-identity strong { color: #f2f9f8; font-size: 21px; }
.ov34-identity small { margin-top: 7px; color: #849b9e; font-size: 12px; }
.ov34-lane-body { min-width: 0; padding-left: 22px; }
.ov34-commercial .ov34-lane-body { display: flex; min-height: 0; flex-direction: column; }
.ov34-commercial-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid rgba(234, 182, 92, .22);
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(101, 75, 28, .19), rgba(8, 27, 34, .48));
}
.ov34-commercial-notice strong { flex: 0 0 auto; color: #f2ca7f; font-size: 11px; }
.ov34-commercial-notice span { color: #9eabad; font-size: 10px; }

.ov34-free-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ov34-hair); }
.ov34-kpi { min-width: 0; padding: 8px 18px 13px; border-right: 1px solid var(--ov34-hair); }
.ov34-kpi:last-child { border-right: 0; }
.ov34-kpi span { display: block; color: #8ea5a8; font-size: 11px; }
.ov34-kpi strong { display: block; margin-top: 9px; color: #f1f8f7; font-size: clamp(18px, 1.35vw, 27px); font-weight: 620; font-variant-numeric: tabular-nums; }
.ov34-kpi small { display: block; margin-top: 4px; color: #71898d; font-size: 9px; }
.ov34-kpi.missing strong { color: #7e9497; }
.ov34-free-main { display: grid; grid-template-columns: minmax(0, 1fr) 190px; min-height: 196px; }
.ov34-chart-wrap { min-width: 0; padding: 7px 14px 0 0; }
.ov34-chart-wrap .overview-chart { height: 180px; }
.ov34-chart-wrap .overview-chart-shell.split-lanes .overview-chart { height: 230px; }
.overview-metric-trend-shell { min-width: 0; }
.overview-metric-trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.overview-metric-trend-card { min-width: 0; padding: 9px 9px 3px; border: 1px solid rgba(126, 174, 180, .16); border-radius: 12px; background: rgba(7, 30, 38, .28); }
.overview-metric-trend-card header { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 0 4px 4px; }
.overview-metric-trend-card header span { display: flex; min-width: 0; align-items: center; gap: 7px; color: #9eb2b4; font-size: 10px; white-space: nowrap; }
.overview-metric-trend-card header i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--series); box-shadow: 0 0 8px color-mix(in srgb, var(--series) 42%, transparent); }
.overview-metric-trend-card header strong { color: #eef8f7; font-size: 13px; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
.overview-chart-card-value { fill: #70898d; font-size: 8px; font-variant-numeric: tabular-nums; }
.ov34-chart-wrap .overview-metric-trend-card .overview-chart { height: 148px; }
.ov34-target { display: flex; flex-direction: column; justify-content: center; padding-left: 22px; border-left: 1px solid var(--ov34-hair); }
.ov34-target span,.ov34-roi span,.ov34-revenue span { color: #90a7aa; font-size: 12px; }
.ov34-target strong,.ov34-roi strong,.ov34-revenue strong { margin: 12px 0 17px; color: #f3faf9; font-size: clamp(27px, 2vw, 38px); font-weight: 560; }
.ov34-target i { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.075); }
.ov34-target i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lane-accent), #b8ead4); }
.ov34-target em { margin-top: 10px; color: var(--lane-accent); font-size: 14px; font-style: normal; }
.ov34-target small,.ov34-roi small,.ov34-revenue small { margin-top: 5px; color: #7a9295; font-size: 10px; }

.ov34-paid-layout { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.ov34-paid-summary { display: grid; grid-template-columns: minmax(0, 1fr) 170px; min-height: 158px; border-bottom: 1px solid var(--ov34-hair); }
.ov34-funnel { display: grid; grid-template-columns: minmax(55px,1fr) 52px minmax(55px,1fr) 52px minmax(55px,1fr) 52px minmax(55px,1fr); align-items: center; padding: 0 18px 0 4px; }
.ov34-funnel-stage { min-width: 0; text-align: center; }
.ov34-funnel-stage span { color: #8da4a7; font-size: 11px; white-space: nowrap; }
.ov34-funnel-stage strong { display: block; margin-top: 20px; color: #f2f9f8; font-size: clamp(15px, 1.06vw, 22px); font-weight: 620; }
.ov34-funnel-stage em { display: block; min-height: 13px; margin-top: 7px; color: #718b8d; font-size: 8px; font-style: normal; }
.ov34-funnel-stage.partial em { color: #efbc68; }
.ov34-funnel-stage.complete em { color: #66dda8; }
.ov34-funnel-stage.missing strong { color: #85999b; font-size: 12px; }
.ov34-funnel-link { display: flex; height: 100px; align-items: center; justify-content: center; flex-direction: column; color: var(--ov34-teal); }
.ov34-funnel-link b { font-size: 24px; font-weight: 500; line-height: 1; }
.ov34-funnel-link small { margin-top: 13px; color: #789093; font-size: 9px; line-height: 1.45; text-align: center; }
.ov34-paid .ov34-chart-wrap { padding: 16px 8px 4px 4px; }
.ov34-paid .overview-metric-trend-grid { gap: 14px; }
.ov34-paid .overview-metric-trend-card { padding: 11px 12px 4px; }
.ov34-paid .overview-metric-trend-card .overview-chart { height: 176px; }
.ov34-roi { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.ov34-paid-summary .ov34-roi { border-left: 1px solid var(--ov34-hair); }
.ov34-gauge { position: relative; width: 104px; height: 54px; margin-bottom: 6px; overflow: hidden; }
.ov34-gauge::before,.ov34-gauge::after { position: absolute; inset: 0; border: 10px solid rgba(255,255,255,.07); border-bottom: 0; border-radius: 104px 104px 0 0; content: ""; }
.ov34-gauge::after { border-color: var(--ov34-amber) var(--ov34-green) transparent var(--ov34-amber); }
.ov34-roi em,.ov34-revenue em { color: var(--lane-accent); font-size: 12px; font-style: normal; }

.ov34-paid-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 9px;
  padding: 0 8px 12px 0;
  border-bottom: 1px solid var(--ov34-hair);
}
.ov34-paid-coverage article {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  padding: 8px 10px;
  border: 1px solid rgba(238, 188, 104, .13);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(70, 54, 24, .18), rgba(7, 25, 31, .35));
}
.ov34-paid-coverage strong { margin-right: 3px; color: #f1f7f5; font-size: 11px; }
.ov34-paid-coverage span {
  padding: 3px 6px;
  border: 1px solid rgba(129, 163, 165, .14);
  border-radius: 999px;
  color: #8ba0a2;
  background: rgba(7, 24, 29, .42);
  font-size: 8px;
}
.ov34-paid-coverage span.complete { border-color: rgba(102, 221, 168, .18); color: #72d9aa; }
.ov34-paid-coverage span.partial { border-color: rgba(239, 188, 104, .22); color: #efbc68; }
.ov34-paid-coverage span.missing { color: #82989a; }

.ov34-commercial-grid { display: grid; flex: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(112px, 1fr)); gap: 1px; overflow: hidden; background: var(--ov34-hair); }
.ov34-commercial-grid article { display: grid; grid-template-columns: minmax(120px, 28%) minmax(0, 1fr); align-items: stretch; padding: 12px 16px; background: linear-gradient(145deg, rgba(17, 39, 47, .8), rgba(5, 20, 27, .76)); }
.ov34-commercial-grid article:nth-child(-n+3) { grid-column: span 2; }
.ov34-commercial-grid article:nth-child(n+4) { grid-column: span 3; }
.ov34-commercial-grid .ov34-kpi { display: flex; justify-content: center; flex-direction: column; padding: 0 14px 0 0; border: 0; }
.ov34-pending-chart { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ov34-pending-chart i { position: absolute; right: 0; left: 0; height: 1px; background: rgba(139, 192, 200, .08); }
.ov34-pending-chart i:nth-child(1) { top: 25%; }.ov34-pending-chart i:nth-child(2) { top: 50%; }.ov34-pending-chart i:nth-child(3) { top: 75%; }
.ov34-pending-chart span { position: relative; color: #6f888b; font-size: 10px; }

.ov34-tg-cadence { display: grid; grid-template-columns: 120px repeat(7, minmax(58px, 1fr)); align-items: center; min-height: 64px; border-bottom: 1px solid var(--ov34-hair); }
.ov34-tg-cadence > span { color: #8da5a7; font-size: 11px; }
.ov34-tg-cadence > div { text-align: center; }
.ov34-tg-cadence b { display: grid; width: 30px; height: 30px; margin: auto; place-items: center; border: 1px solid rgba(103, 214, 170, .5); border-radius: 50%; color: #c3f4da; background: rgba(80, 157, 115, .11); }
.ov34-tg-cadence small { display: block; margin-top: 4px; color: #728b8e; font-size: 9px; }
.ov34-tg-main { display: grid; grid-template-columns: minmax(0, 1fr) 190px; min-height: 205px; }
.ov34-tg .ov34-chart-wrap { padding-top: 12px; }
.ov34-revenue { display: flex; justify-content: center; flex-direction: column; padding-left: 22px; border-left: 1px solid var(--ov34-hair); }

.operating-v34 .overview-chart-shell { min-height: 0; }
.operating-v34 .overview-chart-legend { gap: 22px; justify-content: center; }
.operating-v34 .overview-series-chip { padding: 0; border: 0; background: transparent; }
.operating-v34 .overview-series-chip strong { display: none; }
.operating-v34 .overview-chart-line { stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--chart-color) 28%, transparent)); }
.operating-v34 .overview-chart-area { opacity: .2; }
.operating-v34 .overview-chart-mist { opacity: .08; filter: blur(8px); }
.operating-v34 .overview-chart-point { stroke: none; filter: drop-shadow(0 0 1.5px currentColor); pointer-events: none; }
.operating-v34 .overview-chart-grid { stroke: rgba(139, 192, 200, .1); stroke-dasharray: 3 5; }
.operating-v34 .overview-chart-label { fill: #728b8e; }
.operating-v34 .operating-chart-empty { display: grid; height: 100%; min-height: 120px; place-items: center; color: #718a8d; }
.ov34-table-panel { border-radius: 22px; }
.ov34-source-note { border-radius: 18px; }

.operating-heatmap-shell { margin-top: 15px; overflow-x: auto; }
.operating-heatmap-tabs {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 12px;
  padding: 3px;
  border: 1px solid rgba(126, 203, 201, .16);
  border-radius: 12px;
  background: rgba(3, 19, 25, .42);
}
.operating-heatmap-tabs button {
  min-width: 74px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  color: #7f989a;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.operating-heatmap-tabs button.active {
  color: #e9f9f6;
  background: linear-gradient(135deg, rgba(75, 178, 169, .3), rgba(27, 85, 91, .36));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 5px 18px rgba(0, 12, 18, .2);
}
.operating-daily-heatmap {
  min-width: max(840px, calc(168px + var(--heat-days) * 68px));
  overflow: hidden;
  border: 1px solid rgba(126, 203, 201, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 43, 50, .52), rgba(4, 20, 27, .65));
}
.operating-heatmap-head,
.operating-daily-heatmap article {
  display: grid;
  grid-template-columns: 168px repeat(var(--heat-days), minmax(58px, 1fr));
}
.operating-heatmap-head { background: rgba(7, 26, 33, .66); }
.operating-heatmap-head > span {
  display: grid;
  min-height: 39px;
  place-items: center;
  border-right: 1px solid rgba(126, 203, 201, .1);
  color: #789194;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.operating-heatmap-head > span:first-child { justify-content: start; padding-left: 16px; color: #9ab0b2; font-size: 10px; }
.operating-daily-heatmap article { border-top: 1px solid rgba(126, 203, 201, .1); }
.operating-heatmap-name {
  display: flex;
  min-height: 58px;
  justify-content: center;
  flex-direction: column;
  padding: 8px 16px;
  border-right: 1px solid rgba(126, 203, 201, .1);
}
.operating-heatmap-name strong { color: #e9f4f2; font-size: 11px; }
.operating-heatmap-name small { margin-top: 4px; color: #6e898c; font-size: 8px; }
.operating-heat-cell {
  --cell-color: 103, 217, 170;
  position: relative;
  display: grid;
  min-height: 58px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(126, 203, 201, .08);
}
.operating-heat-cell::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(var(--cell-color), .14);
  border-radius: 9px;
  background: color-mix(in srgb, rgb(var(--cell-color)) var(--intensity), transparent);
  opacity: .42;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  content: "";
}
.operating-heat-cell strong { position: relative; color: #dff5ef; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.operating-heat-cell.missing::before { border-style: dashed; border-color: rgba(128, 155, 158, .1); background: rgba(87, 110, 114, .025); }
.operating-heat-cell.missing strong { color: #617b7e; }
.operating-heatmap-empty {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px dashed rgba(126, 203, 201, .16);
  border-radius: 15px;
  color: #7e9799;
  text-align: center;
}
.operating-heatmap-empty strong { color: #a6b8ba; font-size: 12px; }
.operating-heatmap-empty span { max-width: 560px; font-size: 10px; }

@media (max-width: 1320px) {
  .ov34-lane { grid-template-columns: 34px 138px minmax(0, 1fr); }
  .ov34-paid-summary { grid-template-columns: minmax(0, 1fr) 130px; }
  .ov34-funnel { grid-template-columns: minmax(46px,1fr) 32px minmax(46px,1fr) 32px minmax(46px,1fr) 32px minmax(46px,1fr); padding-right: 10px; }
  .ov34-funnel-stage span { font-size: 9px; }
  .ov34-funnel-stage strong { font-size: 14px; }
  .ov34-funnel-link b { font-size: 19px; }
  .ov34-funnel-link small { font-size: 8px; }
}

@media (max-width: 980px) {
  .ov34-global-row { grid-template-columns: 135px minmax(360px, 1fr) 110px; min-width: 760px; }
  .ov34-lane { grid-template-columns: 34px 120px minmax(620px, 1fr); min-width: 820px; }
  .operating-v34 { overflow-x: auto; }
}

/* 用户与权限：基础身份 + 查看范围 + 功能权限包 */
.user-permission-page {
  --permission-line: rgba(129, 196, 204, .16);
  --permission-line-strong: rgba(115, 218, 207, .38);
  --permission-panel: linear-gradient(145deg, rgba(21, 52, 61, .68), rgba(5, 23, 30, .78));
  --permission-panel-soft: linear-gradient(145deg, rgba(24, 59, 67, .42), rgba(5, 22, 29, .56));
  --permission-teal: #72d9cf;
  --permission-green: #72dfa8;
  --permission-warn: #e8b758;
}
.permission-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.permission-form-panel {
  overflow: visible;
  border-color: rgba(126, 199, 205, .2);
  background:
    radial-gradient(circle at 3% 0%, rgba(94, 198, 190, .1), transparent 28%),
    linear-gradient(145deg, rgba(15, 42, 51, .88), rgba(3, 17, 24, .9));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 8, 12, .2);
}
.permission-account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.identity-profile-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--permission-line);
}
.identity-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.identity-profile-card,
.permission-choice-card,
.permission-module-card {
  position: relative;
  cursor: pointer;
}
.identity-profile-card input,
.permission-choice-card input,
.permission-module-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.identity-profile-card {
  display: grid;
  min-height: 145px;
  grid-template-rows: 38px auto 1fr;
  align-content: start;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--permission-line);
  border-radius: 18px;
  background: var(--permission-panel-soft);
  box-shadow: inset 0 1px rgba(255,255,255,.045);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.identity-profile-card:hover,
.permission-choice-card:hover,
.permission-module-card:hover,
.permission-pack-card:hover { border-color: rgba(114, 217, 207, .35); transform: translateY(-1px); }
.identity-profile-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(114, 217, 207, .24);
  border-radius: 12px;
  color: #89cfd0;
  background: rgba(68, 153, 156, .09);
}
.identity-profile-card > span svg { width: 18px; height: 18px; }
.identity-profile-card strong { margin-top: 13px; color: #edf8f7; font-size: 15px; }
.identity-profile-card small { margin-top: 5px; color: #789093; font-size: 11px; line-height: 1.55; }
.identity-profile-card > i,
.permission-choice-card > i,
.permission-module-card > i {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: rgba(255,255,255,.045);
}
.identity-profile-card > i svg,
.permission-choice-card > i svg,
.permission-module-card > i svg { width: 13px; height: 13px; }
.identity-profile-card.is-selected,
.permission-choice-card.is-selected,
.permission-module-card.is-selected {
  border-color: var(--permission-line-strong);
  background: linear-gradient(145deg, rgba(38, 96, 98, .34), rgba(8, 33, 40, .74));
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 10px 25px rgba(0, 13, 18, .12);
}
.identity-profile-card.is-selected > i,
.permission-choice-card.is-selected > i,
.permission-module-card.is-selected > i { color: #c6fff1; background: rgba(61, 190, 156, .28); }

.permission-config-section { overflow: visible; }
.permission-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}
.permission-config-main { display: grid; gap: 12px; min-width: 0; }
.permission-block,
.permission-advanced,
.permission-summary-card {
  border: 1px solid var(--permission-line);
  border-radius: 19px;
  background: var(--permission-panel-soft);
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.permission-block { padding: 17px; }
.permission-block-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.permission-block-head h5 { margin: 4px 0 0; color: #eef8f7; font-size: 15px; }
.permission-block-note { color: #718a8d; font-size: 10px; white-space: nowrap; }
.permission-block-note.warning { color: #c99e52; }
.permission-scope-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.permission-choice-card {
  display: grid;
  min-height: 94px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--permission-line);
  border-radius: 15px;
  background: rgba(7, 28, 35, .48);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.permission-choice-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #7ac6c6;
  background: rgba(78, 161, 164, .1);
}
.permission-choice-icon svg { width: 17px; height: 17px; }
.permission-choice-card strong { display: block; color: #edf7f6; font-size: 13px; }
.permission-choice-card small { display: block; margin-top: 4px; color: #71898c; font-size: 10px; line-height: 1.45; }
.permission-owner-field { margin-top: 13px; }
.permission-owner-field.is-required label::after { margin-left: 5px; color: #e8b758; content: "指定范围必填"; font-size: 9px; }
.permission-module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.permission-module-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--permission-line);
  border-radius: 14px;
  color: #8aa1a4;
  background: rgba(7, 28, 35, .46);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.permission-module-card > span { display: grid; width: 26px; height: 26px; place-items: center; color: #6fbebf; }
.permission-module-card > span svg { width: 17px; height: 17px; }
.permission-module-card strong { color: #d9e8e7; font-size: 11px; font-weight: 560; }
.permission-module-card:has(input:disabled) { opacity: .42; cursor: not-allowed; }
.permission-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.permission-pack-card {
  display: grid;
  min-height: 92px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--permission-line);
  border-radius: 16px;
  color: inherit;
  text-align: left;
  background: rgba(7, 28, 35, .48);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.permission-pack-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #79c7c5; background: rgba(72, 158, 160, .1); }
.permission-pack-icon svg { width: 19px; height: 19px; }
.permission-pack-card strong { display: block; color: #eaf5f4; font-size: 13px; }
.permission-pack-card small { display: block; margin-top: 4px; color: #70878a; font-size: 10px; line-height: 1.45; }
.permission-pack-card em { padding: 5px 8px; border-radius: 999px; color: #71898c; background: rgba(255,255,255,.04); font-size: 9px; font-style: normal; white-space: nowrap; }
.permission-pack-card.is-active { border-color: rgba(87, 209, 160, .36); background: linear-gradient(145deg, rgba(35, 103, 85, .25), rgba(7, 31, 36, .64)); }
.permission-pack-card.is-active em { color: #adf3d1; background: rgba(61, 180, 131, .16); }
.permission-pack-card.is-partial { border-color: rgba(232, 183, 88, .32); }
.permission-pack-card.is-partial em { color: #dfbd78; background: rgba(190, 138, 43, .12); }
.permission-pack-card:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.sensitive-permission-block { border-color: rgba(232, 183, 88, .18); }
.permission-sensitive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.permission-toggle {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(130, 184, 192, .11);
  border-radius: 12px;
  color: #b7cac9;
  background: rgba(4, 20, 27, .38);
  font-size: 10px;
  cursor: pointer;
}
.permission-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.permission-toggle-ui { position: relative; width: 28px; height: 16px; flex: 0 0 auto; border-radius: 999px; background: rgba(255,255,255,.1); transition: background .18s ease; }
.permission-toggle-ui::after { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #82989a; content: ""; transition: transform .18s ease, background .18s ease; }
.permission-toggle:has(input:checked) .permission-toggle-ui { background: rgba(74, 192, 151, .34); }
.permission-toggle:has(input:checked) .permission-toggle-ui::after { background: #a6f1d0; transform: translateX(12px); }
.permission-toggle:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.permission-advanced { overflow: hidden; }
.permission-advanced summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 17px; color: #c8d9d8; cursor: pointer; list-style: none; }
.permission-advanced summary::-webkit-details-marker { display: none; }
.permission-advanced summary span { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.permission-advanced summary svg { width: 16px; height: 16px; color: #70c5c4; }
.permission-advanced summary small { color: #6f8689; font-size: 9px; }
.permission-advanced-body { display: grid; gap: 10px; padding: 0 17px 17px; }
.permission-action-row { padding-top: 11px; border-top: 1px solid var(--permission-line); }
.permission-action-row > strong { display: block; margin-bottom: 8px; color: #91a8aa; font-size: 10px; }
.permission-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.permission-summary-card {
  position: sticky;
  top: 14px;
  padding: 17px;
  background:
    radial-gradient(circle at 20% 0%, rgba(80, 185, 180, .12), transparent 45%),
    linear-gradient(155deg, rgba(19, 51, 59, .82), rgba(4, 20, 27, .9));
}
.permission-summary-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--permission-line); }
.permission-summary-head > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #93e6d7; background: rgba(70, 181, 154, .14); }
.permission-summary-head svg { width: 18px; height: 18px; }
.permission-summary-head strong { display: block; color: #f0f9f8; font-size: 13px; }
.permission-summary-head small { display: block; margin-top: 3px; color: #70898b; font-size: 9px; }
.permission-summary-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(129,196,204,.1); }
.permission-summary-identity span,.permission-summary-group > span { color: #71898c; font-size: 9px; }
.permission-summary-identity strong { max-width: 68%; color: #dcebea; font-size: 11px; line-height: 1.45; text-align: right; }
.permission-summary-group { padding: 12px 0 2px; }
.permission-summary-group p { margin: 6px 0 0; color: #b6c9c8; font-size: 10px; line-height: 1.65; }
.permission-summary-risk { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding: 10px; border-radius: 11px; color: #78cfa8; background: rgba(50, 149, 109, .09); font-size: 9px; }
.permission-summary-risk.has-risk { color: #dfb96e; background: rgba(188, 133, 39, .1); }
.permission-summary-risk svg { width: 14px; height: 14px; }
.permission-collapsible-panel { padding: 0; overflow: hidden; }
.permission-collapsible-summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.permission-collapsible-summary::-webkit-details-marker { display: none; }
.permission-collapsible-summary > span { display: flex; align-items: baseline; gap: 10px; }
.permission-collapsible-summary strong { color: #edf7f6; font-size: 15px; }
.permission-collapsible-summary small { color: #71898c; font-size: 10px; }
.permission-collapsible-summary > i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: #76c9c5; background: rgba(89, 176, 174, .09); transition: transform .18s ease, background .18s ease; }
.permission-collapsible-summary > i svg { width: 16px; height: 16px; }
.permission-collapsible-panel[open] .permission-collapsible-summary > i { background: rgba(89, 176, 174, .15); transform: rotate(180deg); }
.permission-collapsible-body { padding: 0 20px 20px; border-top: 1px solid var(--permission-line); }
.permission-list-toolbar { display: flex; justify-content: flex-end; padding: 14px 0 8px; }
.account-form-actions .btn[data-reset-user-form] { color: #a9c6c4; }

@media (max-width: 1280px) {
  .identity-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permission-module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .permission-editor { grid-template-columns: minmax(0, 1fr) 245px; }
  .permission-sensitive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .permission-account-grid,
  .permission-pack-grid,
  .permission-sensitive-grid,
  .permission-check-grid { grid-template-columns: minmax(0, 1fr); }
  .permission-editor { grid-template-columns: minmax(0, 1fr); }
  .permission-summary-card { position: static; }
}
@media (max-width: 680px) {
  .identity-profile-grid,
  .permission-scope-options,
  .permission-module-grid { grid-template-columns: minmax(0, 1fr); }
}
