:root {
  --go2-bg: #f3f8ff;
  --go2-panel: rgba(255, 255, 255, 0.68);
  --go2-panel-strong: rgba(255, 255, 255, 0.86);
  --go2-border: rgba(255, 255, 255, 0.86);
  --go2-text: #232346;
  --go2-muted: #5b6678;
  --go2-soft: #9aa3b2;
  --go2-blue: #232346;
  --go2-cyan: #8dcfd4;
  --go2-shadow: 0 24px 70px rgba(40, 90, 170, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--go2-text);
  overflow-x: hidden;
  background:
    radial-gradient(820px 620px at 84% 10%, rgba(80, 165, 235, 0.20), transparent 60%),
    radial-gradient(760px 680px at 8% 92%, rgba(50, 120, 215, 0.16), transparent 62%),
    radial-gradient(620px 520px at 52% 56%, rgba(120, 210, 238, 0.13), transparent 66%),
    linear-gradient(180deg, #ffffff 0%, var(--go2-bg) 100%);
}

a {
  color: var(--go2-blue);
  text-decoration: none;
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  padding: 28px 28px 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(440px, 504px);
  align-items: center;
  gap: clamp(82px, 10vw, 150px);
  max-width: 1365px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 54px 38px;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 34px 22px;
}

.auth-card {
  width: min(420px, 100%);
}

.liquid-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(820px 620px at 84% 10%, rgba(80, 165, 235, 0.20), transparent 60%),
    radial-gradient(760px 680px at 8% 92%, rgba(50, 120, 215, 0.16), transparent 62%),
    radial-gradient(620px 520px at 52% 56%, rgba(120, 210, 238, 0.13), transparent 66%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.aurora,
.drop {
  position: absolute;
  display: block;
}

.aurora {
  border-radius: 50%;
  filter: blur(48px);
}

.aurora-one {
  top: -160px;
  right: 6%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(80, 165, 235, 0.22), transparent 68%);
  animation: auroraDrift 18s ease-in-out infinite;
}

.aurora-two {
  bottom: -200px;
  left: -60px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(55, 190, 239, 0.16), transparent 70%);
  animation: auroraDrift 22s ease-in-out infinite reverse;
}

.drop > span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(120, 195, 240, 0.42));
  box-shadow:
    inset 0 8px 18px rgba(255, 255, 255, 0.82),
    inset 0 -12px 26px rgba(50, 120, 200, 0.22),
    0 22px 46px rgba(50, 110, 190, 0.22);
  backdrop-filter: blur(6px) saturate(160%);
}

.drop-one {
  top: 120px;
  right: 25%;
  width: 132px;
  height: 132px;
  animation: floaty 7s ease-in-out infinite;
}

.drop-one > span::after,
.drop-two > span::after {
  content: "";
  position: absolute;
  top: 22%;
  left: 26%;
  width: 30px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%);
  transform: rotate(-45deg);
  filter: blur(2px);
}

.drop-two {
  right: 10%;
  bottom: 23%;
  width: 84px;
  height: 84px;
  animation: floaty2 9s ease-in-out infinite;
}

.drop-two > span::after {
  width: 20px;
  height: 26px;
  filter: blur(1.5px);
}

.drop-three {
  top: 36%;
  right: 33%;
  width: 52px;
  height: 52px;
  animation: floaty3 6s ease-in-out infinite;
}

.drop-four {
  left: 36%;
  bottom: 13%;
  width: 168px;
  height: 168px;
  opacity: 0.7;
  filter: blur(3px);
  animation: floaty 11s ease-in-out infinite;
}

.drop-four > span {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(120, 200, 240, 0.22));
}

@keyframes floaty {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes floaty2 {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(16px); }
}

@keyframes floaty3 {
  0%,
  100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -14px); }
}

@keyframes auroraDrift {
  0%,
  100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  height: calc(100vh - 82px);
}

.login-logo {
  align-self: flex-start;
  position: fixed;
  top: 52px;
  left: 54px;
  z-index: 2;
}

.login-hero-copy {
  min-width: 0;
  max-width: 500px;
  padding-top: clamp(64px, 10vh, 96px);
  padding-bottom: 0;
  transform: none;
}

.go2-wordmark {
  display: inline-flex;
  flex-direction: column;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.go2-wordmark-page,
.go2-wordmark-card {
  width: 100px;
}

.go2-wordmark-topbar {
  width: 94px;
}

.go2-wordmark-main {
  display: inline-flex;
  align-items: flex-start;
  color: #232346;
  font-weight: 850;
  letter-spacing: 0;
}

.go2-wordmark-main sup {
  margin-left: 2px;
  color: var(--go2-blue);
  font-weight: 850;
  line-height: 1;
}

.go2-wordmark-sub {
  margin-top: 8px;
  color: #8dcfd4;
  font-weight: 600;
  letter-spacing: 3px;
  white-space: nowrap;
  text-transform: uppercase;
}

.go2-wordmark-page .go2-wordmark-main {
  font-size: 30px;
}

.go2-wordmark-page .go2-wordmark-main sup {
  font-size: 13px;
}

.go2-wordmark-page .go2-wordmark-sub {
  font-size: 10px;
}

.go2-wordmark-card .go2-wordmark-main {
  font-size: 30px;
}

.go2-wordmark-card .go2-wordmark-main sup {
  font-size: 13px;
}

.go2-wordmark-card .go2-wordmark-sub {
  font-size: 10px;
  letter-spacing: 5.2px;
}

.go2-wordmark-topbar .go2-wordmark-main {
  font-size: 28px;
}

.go2-wordmark-topbar .go2-wordmark-main sup {
  font-size: 12px;
}

.go2-wordmark-topbar .go2-wordmark-sub {
  margin-top: 7px;
  font-size: 9px;
  letter-spacing: 4.6px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 56px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--go2-blue);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 28px rgba(40, 90, 170, 0.10);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--go2-cyan);
  box-shadow: 0 0 18px rgba(55, 190, 240, 0.72);
}

.hero-title {
  margin: 0 0 16px;
  max-width: 520px;
  font-size: clamp(40px, 3.65vw, 48px);
  line-height: 1.09;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 430px;
  margin: 0;
  color: var(--go2-muted);
  font-size: 17px;
  line-height: 1.6;
}

.glass-card {
  border: 1px solid var(--go2-border);
  border-radius: 24px;
  background: linear-gradient(150deg, var(--go2-panel-strong), rgba(255, 255, 255, 0.46));
  box-shadow: var(--go2-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(180%);
}

.login-card {
  align-self: center;
  position: relative;
  min-width: 0;
  width: min(100%, 504px);
  min-height: 520px;
  padding: 48px 40px 42px;
  overflow: hidden;
}

.is-local-mode .login-card {
  min-height: 590px;
}

.login-card-brand {
  margin: 0 0 22px;
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--go2-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.2;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.form-field label {
  color: #246da8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.form-note {
  display: grid;
  gap: 6px;
  margin: 4px 0 18px;
  border: 1px solid rgba(50, 110, 190, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  color: #56637f;
  background: rgba(255, 255, 255, 0.58);
}

.form-note strong {
  color: var(--go2-text);
  font-size: 14px;
}

.form-note span {
  font-size: 13px;
  line-height: 1.45;
}

.form-help {
  margin: -4px 0 18px;
  color: var(--go2-muted);
  font-size: 13px;
  line-height: 1.5;
}

.input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(50, 110, 190, 0.16);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--go2-text);
  background: rgba(255, 255, 255, 0.74);
  outline: none;
  font-size: 15px;
}

.input-icon-control {
  position: relative;
}

.input-icon-control > svg {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: var(--go2-blue);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon-control .input {
  padding-left: 44px;
}

.input:focus {
  border-color: rgba(55, 190, 240, 0.72);
  box-shadow: 0 0 0 4px rgba(55, 190, 240, 0.14);
}

.input[readonly] {
  color: #66738a;
  background: rgba(232, 241, 249, 0.68);
  cursor: not-allowed;
}

.input[readonly]:focus {
  border-color: rgba(50, 110, 190, 0.16);
  box-shadow: none;
}

.password-control {
  position: relative;
}

.password-control .input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  color: var(--go2-blue);
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(55, 190, 240, 0.12);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.password-toggle {
  transform: translateY(-50%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(100deg, var(--go2-blue), var(--go2-cyan) 55%, #76d1ee);
  box-shadow: 0 12px 30px rgba(55, 190, 239, 0.36), inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.btn-secondary {
  width: 100%;
  color: #1f2d4a;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
}

.btn-link {
  width: 100%;
  margin-top: 12px;
  color: var(--go2-blue);
  background: transparent;
  box-shadow: none;
}

.forgot-link {
  display: block;
  margin-top: 16px;
  color: var(--go2-blue);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.login-local-form .btn-link {
  min-height: 24px;
  margin-top: 8px;
}

.login-intro {
  margin: 0 0 30px;
  max-width: 380px;
  color: var(--go2-muted);
  font-size: 15px;
  line-height: 1.55;
}

.login-choice,
.login-local-form {
  transition: opacity 180ms ease, transform 180ms ease;
}

.login-local-form {
  display: none;
}

.is-local-mode .login-choice {
  display: none;
}

.is-local-mode .login-local-form {
  display: block;
}

.auth-login-page {
  min-height: 100vh;
  background:
    radial-gradient(760px 560px at 82% 8%, rgba(141, 207, 212, 0.36), transparent 67%),
    radial-gradient(780px 580px at 12% 98%, rgba(141, 207, 212, 0.26), transparent 70%),
    radial-gradient(700px 520px at 52% 58%, rgba(141, 207, 212, 0.12), transparent 72%),
    linear-gradient(115deg, #ffffff 0%, #f9fcff 43%, #eef8fc 100%);
}

.auth-login-page .login-shell {
  grid-template-columns: minmax(520px, 1fr) minmax(430px, 504px);
  gap: clamp(90px, 12vw, 170px);
  max-width: 1360px;
  padding: 48px 54px 38px;
}

.auth-login-page .login-logo {
  top: 48px;
  left: 54px;
}

.auth-login-page .login-hero-copy {
  max-width: 520px;
  padding-top: clamp(90px, 14vh, 132px);
}

.auth-login-page .hero-badge {
  margin-bottom: 62px;
  border: 0;
  padding: 9px 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(35, 35, 70, 0.08);
  color: #232346;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.9px;
}

.auth-login-page .hero-badge::before {
  width: 8px;
  height: 8px;
  background: #8dcfd4;
  box-shadow: none;
}

.auth-login-page .hero-title {
  max-width: 520px;
  margin-bottom: 18px;
  color: #232346;
  font-size: clamp(42px, 3.55vw, 50px);
  line-height: 1.09;
  font-weight: 850;
}

.auth-login-page .hero-copy {
  max-width: 470px;
  color: #58667a;
  font-size: 16px;
  line-height: 1.65;
}

.auth-login-page .glass-card {
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.9), rgba(246, 253, 255, 0.66));
  box-shadow: 0 28px 80px rgba(35, 35, 70, 0.11), inset 0 1px 1px rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
}

.auth-login-page .login-card {
  width: min(100%, 504px);
  min-height: 590px;
  border-radius: 24px;
  padding: 54px 40px 42px;
}

.auth-login-page .login-card-brand {
  margin-bottom: 28px;
}

.auth-login-page .login-intro {
  margin-bottom: 34px;
  color: #58667a;
  font-size: 15px;
}

.auth-login-page .form-field {
  gap: 10px;
  margin-bottom: 24px;
}

.auth-login-page .form-field label {
  color: #1f6aa5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.45px;
}

.auth-login-page .input {
  height: 50px;
  border: 1px solid rgba(83, 145, 190, 0.24);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: #232346;
}

.auth-login-page .input-icon-control > svg,
.auth-login-page .password-toggle {
  color: #232346;
}

.auth-login-page .input:focus {
  border-color: rgba(141, 207, 212, 0.88);
  box-shadow: 0 0 0 4px rgba(141, 207, 212, 0.18);
}

.auth-login-page .btn-primary {
  min-height: 50px;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #232346 0%, #5c8298 48%, #72cde2 100%);
  box-shadow: 0 14px 34px rgba(117, 202, 220, 0.38);
  font-size: 14px;
  font-weight: 800;
}

.auth-login-page .forgot-link {
  margin-top: 18px;
  color: #232346;
  font-size: 12px;
  font-weight: 850;
}

.auth-login-page .go2-wordmark-page .go2-wordmark-main,
.auth-login-page .go2-wordmark-card .go2-wordmark-main {
  color: #232346;
  font-size: 31px;
  font-weight: 900;
}

.auth-login-page .go2-wordmark-page .go2-wordmark-sub,
.auth-login-page .go2-wordmark-card .go2-wordmark-sub {
  color: #8dcfd4;
  font-size: 10px;
  font-weight: 700;
}

.auth-login-page .go2-wordmark-page .go2-wordmark-sub {
  letter-spacing: 4px;
}

.auth-login-page .go2-wordmark-card .go2-wordmark-sub {
  letter-spacing: 5.2px;
}

@media (max-width: 1120px) {
  .auth-login-page .login-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 680px;
    padding: 36px 28px;
  }

  .auth-login-page .login-logo {
    position: static;
    align-self: center;
  }

  .auth-login-page .login-hero {
    height: auto;
    text-align: center;
  }

  .auth-login-page .login-hero-copy {
    max-width: none;
    padding-top: 0;
  }

  .auth-login-page .hero-badge {
    margin-bottom: 28px;
  }
}

@media (max-width: 860px) {
  .auth-login-page .login-shell {
    padding: 32px 22px;
  }

  .auth-login-page .login-card {
    min-height: 0;
    padding: 36px 28px;
  }

  .auth-login-page .hero-title {
    font-size: clamp(34px, 9vw, 40px);
  }
}

@media (max-width: 1120px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 640px;
    padding: 36px 28px;
  }

  .login-hero {
    height: auto;
    min-height: auto;
    gap: 30px;
    justify-content: flex-start;
    text-align: center;
  }

  .login-logo {
    position: static;
    align-self: center;
    justify-self: center;
  }

  .login-hero-copy {
    width: 100%;
    max-width: none;
    align-self: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-badge {
    margin-bottom: 28px;
  }

  .hero-title,
  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--go2-soft);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(50, 110, 190, 0.14);
}

.alert {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.alert-error {
  color: #8a1f2d;
  background: rgba(255, 228, 232, 0.88);
  border: 1px solid rgba(200, 70, 90, 0.18);
}

.alert-success {
  color: #0f6848;
  background: rgba(221, 249, 238, 0.86);
  border: 1px solid rgba(55, 170, 120, 0.20);
}

.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1200;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 12px 1fr 34px;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  color: var(--go2-ink);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(231, 248, 255, 0.9)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(45, 90, 150, 0.20);
  backdrop-filter: blur(22px);
  pointer-events: auto;
  animation: toast-in 180ms ease-out both;
}

.toast.is-hiding {
  animation: toast-out 180ms ease-in both;
}

.toast-marker {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--go2-blue), var(--go2-cyan));
  box-shadow: 0 0 0 6px rgba(56, 174, 220, 0.14);
}

.toast-error .toast-marker {
  background: linear-gradient(135deg, #d94862, #ff8d75);
  box-shadow: 0 0 0 6px rgba(217, 72, 98, 0.12);
}

.toast-content {
  display: grid;
  gap: 5px;
}

.toast-content strong {
  font-size: 14px;
  line-height: 1.2;
}

.toast-content p {
  margin: 0;
  color: var(--go2-muted);
  font-size: 13px;
  line-height: 1.45;
}

.toast-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  color: var(--go2-blue);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(75, 130, 190, 0.08);
}

.toast-close:hover {
  color: var(--go2-ink);
  background: rgba(255, 255, 255, 0.96);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(18px, -6px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(18px, -6px, 0) scale(0.98);
  }
}

.topbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 24px;
  margin-bottom: 30px;
  overflow: visible;
}

.topbar-brand {
  display: flex;
  align-items: center;
  font-weight: 800;
}

.topbar-nav,
.topbar-actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-nav {
  margin: 0 22px 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.topbar-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #43516c;
  font-size: 14px;
  font-weight: 750;
}

.topbar-nav a.is-active {
  color: #fff;
  background: linear-gradient(100deg, var(--go2-blue), var(--go2-cyan));
  box-shadow: 0 10px 22px rgba(45, 139, 186, 0.20);
}

.topbar-actions {
  gap: 8px;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  color: var(--go2-blue);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button.compact {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
}

.icon-button.danger {
  color: #b33c4a;
}

.icon-button.is-loading {
  color: transparent;
  cursor: wait;
  pointer-events: none;
}

.icon-button.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(45, 139, 186, 0.18);
  border-top-color: var(--go2-blue);
  border-right-color: var(--go2-cyan);
  border-radius: 999px;
  animation: buttonSpin 680ms linear infinite;
}

.icon-button.compact.is-loading::after {
  width: 15px;
  height: 15px;
}

@keyframes buttonSpin {
  to { transform: rotate(360deg); }
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--go2-cyan);
}

.notification-dot.is-hidden {
  display: none;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ef5d6c, #ff8b7b);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.dropdown-menu {
  position: relative;
  z-index: 110;
}

.dropdown-menu summary {
  list-style: none;
}

.dropdown-menu summary::-webkit-details-marker {
  display: none;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 64px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 0 13px;
  color: #293651;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 800;
}

.language-pill::after {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23526079' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 0 8px 0 16px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.user-pill span {
  max-width: 120px;
  overflow: hidden;
  color: #293651;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill strong,
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--go2-blue), var(--go2-cyan));
  font-size: 12px;
}

.entity-cell .avatar {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  color: #fff;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(40, 90, 170, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
}

.language-menu .dropdown-panel {
  min-width: 118px;
}

.settings-menu .dropdown-panel {
  min-width: 180px;
}

.notification-menu .dropdown-panel {
  min-width: 320px;
}

.notification-panel {
  padding: 12px;
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.notification-panel-head strong {
  color: var(--go2-text);
  font-size: 14px;
}

.notification-panel-head span {
  color: var(--go2-blue);
  font-size: 12px;
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.notification-item {
  position: relative;
  border: 1px solid rgba(50, 110, 190, 0.12);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.58);
}

.notification-item.is-unread {
  border-color: rgba(55, 190, 240, 0.34);
  background: rgba(222, 248, 252, 0.76);
}

.notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--go2-cyan);
}

.notification-item strong {
  display: block;
  padding-right: 18px;
  color: var(--go2-text);
  font-size: 13px;
}

.notification-item p {
  margin: 5px 0 7px;
  color: var(--go2-muted);
  font-size: 12px;
  line-height: 1.4;
}

.notification-item time,
.notification-empty {
  color: rgba(91, 102, 120, 0.72);
  font-size: 11px;
}

.notification-empty {
  margin: 0;
  padding: 10px 2px 4px;
}

.dropdown-panel a,
.dropdown-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border-radius: 11px;
  border: 0;
  padding: 0 12px;
  color: #526079;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.dropdown-panel a:hover,
.dropdown-panel button:hover {
  color: var(--go2-blue);
  background: rgba(55, 190, 240, 0.12);
}

.page {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 28px);
  max-width: 1360px;
  margin: 0 auto;
}

.page-heading {
  margin-bottom: 26px;
}

.page-heading h1 {
  margin: 0 0 6px;
  font-size: 34px;
}

.page-heading p {
  margin: 0;
  color: var(--go2-muted);
}

.page-heading-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-heading-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn-auto {
  width: auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px 20px;
}

.stat-card span {
  color: var(--go2-muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 42px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 264px;
  border-radius: 22px;
  padding: 32px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 78px rgba(40, 90, 170, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.app-card.is-disabled {
  opacity: 0.58;
  filter: saturate(0.58);
}

.app-card.is-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--go2-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.82);
}

.app-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.1;
}

.app-card p {
  margin: 16px 0 0;
  color: var(--go2-muted);
  line-height: 1.55;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.app-logo-frame,
.entity-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(210, 247, 250, 0.72);
  box-shadow: 0 12px 24px rgba(38, 123, 178, 0.16);
}

.app-logo-frame {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 7px;
}

.app-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.entity-logo {
  padding: 10px;
  object-fit: contain;
}

.app-role {
  display: block;
  color: var(--go2-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.app-card-action {
  margin-top: auto;
}

.app-card-action .btn {
  min-width: 106px;
}

.app-card-action .btn:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--go2-blue);
  background: rgba(55, 190, 240, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--go2-blue);
  background: rgba(55, 190, 240, 0.12);
  font-size: 12px;
  font-weight: 750;
}

.chip-strong {
  color: #fff;
  background: linear-gradient(100deg, var(--go2-blue), var(--go2-cyan));
}

.muted,
.muted-link {
  color: var(--go2-muted);
}

.empty-state {
  padding: 28px;
  color: var(--go2-muted);
}

.data-panel {
  overflow: hidden;
  border-radius: 22px;
  padding: 4px;
}

.data-panel.datatable {
  overflow: visible;
}

.datatable-toolbar,
.datatable-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.datatable-toolbar {
  border-bottom: 1px solid rgba(50, 110, 190, 0.10);
}

.datatable-search,
.datatable-filter,
.datatable-pager label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.datatable-search {
  flex: 1 1 280px;
}

.datatable-filter {
  flex: 0 0 180px;
}

.datatable-toolbar span,
.datatable-footer span {
  color: #34415f;
  font-size: 12px;
  font-weight: 800;
}

.datatable-export,
.datatable-pager {
  display: flex;
  align-items: end;
  gap: 8px;
}

.datatable-footer {
  border-top: 1px solid rgba(50, 110, 190, 0.10);
  color: var(--go2-muted);
}

.datatable-pager .input {
  width: 88px;
}

.datatable-pager .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.table-wrap {
  width: 100%;
  overflow: visible;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(50, 110, 190, 0.10);
  text-align: left;
}

.table th {
  color: #34415f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.admin-table td {
  position: relative;
  vertical-align: middle;
}

.entity-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
}

.entity-cell strong,
.entity-cell span {
  display: block;
}

.entity-cell span {
  margin-top: 3px;
  color: var(--go2-muted);
  font-size: 13px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.row-actions form {
  margin: 0;
}

.row-action-menu {
  display: inline-flex;
  justify-content: flex-end;
}

.row-action-menu[open] {
  z-index: 140;
}

.row-action-menu summary.icon-button {
  color: #526079;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
}

.row-action-panel {
  top: calc(100% + 8px);
  right: 0;
  z-index: 150;
  min-width: 230px;
  padding: 7px;
}

.row-action-panel form {
  margin: 0;
}

.row-action-panel button {
  justify-content: flex-start;
  min-height: 40px;
  white-space: nowrap;
}

.row-action-panel .menu-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  color: var(--go2-blue);
  font-size: 15px;
  line-height: 1;
}

.row-action-panel .danger-menu-item,
.row-action-panel .danger-menu-item .menu-icon {
  color: #bf3850;
}

.row-action-panel .danger-menu-item:hover {
  color: #bf3850;
  background: rgba(239, 93, 108, 0.10);
}

.status-toggle {
  min-width: 94px;
  min-height: 32px;
  border: 1px solid rgba(50, 110, 190, 0.13);
  border-radius: 999px;
  color: #66738a;
  background: rgba(255, 255, 255, 0.64);
  font-weight: 800;
  cursor: pointer;
}

.status-toggle.is-on {
  color: #0f7d5a;
  background: rgba(225, 250, 239, 0.92);
}

.empty-table {
  padding: 32px !important;
  color: var(--go2-muted);
  text-align: center !important;
}

.modal {
  width: min(640px, calc(100vw - 32px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--go2-text);
  background: transparent;
}

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

.modal-access {
  max-height: calc(100vh - 32px);
  overflow: visible;
}

.modal-user-form {
  width: min(980px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(16, 30, 62, 0.28);
  backdrop-filter: blur(10px);
}

.modal-card {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(240, 250, 255, 0.84));
  box-shadow: 0 28px 80px rgba(30, 80, 150, 0.26);
}

.access-modal-card {
  display: flex;
  max-height: calc(100vh - 64px);
  flex-direction: column;
  overflow: hidden;
}

.access-modal-card .modal-header,
.access-modal-card .modal-alert,
.access-modal-card .modal-actions {
  flex: 0 0 auto;
}

.access-modal-card .access-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.modal-alert {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(217, 72, 98, 0.20);
  border-radius: 16px;
  padding: 12px 14px;
  margin: -4px 0 18px;
  color: #823145;
  background: rgba(255, 241, 244, 0.84);
  font-size: 13px;
  font-weight: 750;
}

.modal-alert p {
  margin: 0;
}

.modal-loading {
  display: grid;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(240, 250, 255, 0.84));
  place-items: center;
  color: var(--go2-muted);
  font-weight: 750;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 22px;
}

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

.textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.file-input {
  padding: 12px 14px;
  height: auto;
}

.dropzone {
  position: relative;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(45, 139, 186, 0.38);
  border-radius: 18px;
  padding: 22px;
  color: #34415f;
  background: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--go2-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dropzone strong {
  font-size: 14px;
}

.dropzone.is-dragging {
  border-color: var(--go2-cyan);
  background: rgba(222, 248, 255, 0.72);
  transform: translateY(-1px);
}

.import-dropzone {
  min-height: 180px;
}

.form-field small {
  color: var(--go2-muted);
  font-size: 12px;
}

.settings-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(50, 110, 190, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.42);
}

.settings-switch strong,
.settings-switch small {
  display: block;
}

.settings-switch strong {
  color: #16234d;
  font-size: 14px;
}

.settings-switch small {
  margin-top: 4px;
  color: var(--go2-muted);
  font-size: 12px;
  line-height: 1.45;
}

.fieldset {
  margin: 0 0 16px;
  border: 1px solid rgba(50, 110, 190, 0.12);
  border-radius: 16px;
  padding: 14px;
}

.fieldset legend {
  padding: 0 6px;
  color: #34415f;
  font-size: 13px;
  font-weight: 750;
}

.app-permissions-fieldset,
.app-public-access {
  padding: 12px 14px;
}

.app-permissions-fieldset {
  margin-bottom: 12px;
}

.fieldset-help {
  margin: 0 0 12px;
  color: var(--go2-muted);
  font-size: 12px;
  line-height: 1.45;
}

.app-public-access-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(260px, 1.28fr);
  gap: 14px;
  align-items: end;
}

.app-public-switch {
  min-height: 50px;
  border: 1px solid rgba(50, 110, 190, 0.12);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.46);
}

.app-default-role-field {
  margin-bottom: 0;
}

.app-default-role-field .input {
  height: 50px;
}

.app-active-switch {
  width: fit-content;
  margin-top: 4px;
}

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

.check-card,
.switch-row,
.switch-control {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  color: #34415f;
  font-weight: 750;
}

.check-card {
  border: 1px solid rgba(50, 110, 190, 0.12);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.48);
}

.selectpicker {
  position: relative;
}

.selectpicker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.selectpicker-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(75, 130, 190, 0.20);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--go2-ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.selectpicker-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selectpicker-toggle i {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--go2-soft);
  border-bottom: 2px solid var(--go2-soft);
  transform: rotate(45deg) translateY(-2px);
}

.selectpicker.is-open .selectpicker-toggle i {
  transform: rotate(225deg) translateY(-2px);
}

.selectpicker-panel {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 20;
  display: none;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 12px;
  background: rgba(248, 253, 255, 0.98);
  box-shadow: 0 24px 60px rgba(45, 90, 150, 0.22);
  backdrop-filter: blur(18px);
}

.selectpicker.is-open .selectpicker-panel {
  display: grid;
  gap: 10px;
}

.selectpicker-search {
  min-height: 44px;
}

.selectpicker-options {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.selectpicker-group {
  display: grid;
  gap: 6px;
}

.selectpicker-group > strong {
  color: var(--go2-blue);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.selectpicker-option {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(50, 110, 190, 0.10);
  border-radius: 12px;
  padding: 10px;
  color: #34415f;
  background: rgba(255, 255, 255, 0.70);
  cursor: pointer;
  font-weight: 750;
}

.selectpicker-option:hover {
  background: rgba(223, 248, 255, 0.82);
}

.selectpicker-option small {
  color: var(--go2-muted);
  font-size: 12px;
  font-weight: 700;
}

.switch-row {
  width: fit-content;
  padding: 8px 0;
}

.switch-control {
  width: fit-content;
  cursor: pointer;
  padding: 8px 0;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control i,
.switch-button i {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(120, 135, 158, 0.24);
  box-shadow: inset 0 1px 3px rgba(30, 55, 92, 0.16);
  transition: background 160ms ease;
}

.switch-control i::after,
.switch-button i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(30, 55, 92, 0.22);
  transition: transform 160ms ease;
}

.switch-control input:checked + i,
.switch-button.is-on i {
  background: linear-gradient(100deg, var(--go2-blue), var(--go2-cyan));
}

.switch-control input:checked + i::after,
.switch-button.is-on i::after {
  transform: translateX(20px);
}

.switch-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #66738a;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.switch-button.is-on {
  color: #0f7d5a;
}

.compact-switch {
  min-width: 100px;
}

.access-list {
  display: grid;
  gap: 10px;
  max-height: min(520px, 65vh);
  overflow: auto;
  padding-right: 4px;
}

.compact-access-list {
  overflow-x: hidden;
}

.access-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 180px auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(50, 110, 190, 0.10);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.50);
}

.access-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(50, 110, 190, 0.12);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.access-card:hover {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(55, 190, 240, 0.38);
}

.access-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.access-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.access-card-head > div {
  min-width: 0;
}

.access-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.access-card-head strong,
.access-card-head span {
  display: block;
}

.access-card-head strong {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.2;
}

.access-card-head span {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--go2-muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.access-card-controls {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.access-card-controls .input {
  min-height: 46px;
}

.access-card-controls .switch-control {
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid rgba(50, 110, 190, 0.10);
  padding-top: 12px;
}

.access-row strong,
.access-row span {
  display: block;
}

.access-row span {
  margin-top: 4px;
  color: var(--go2-muted);
  font-size: 13px;
  line-height: 1.35;
}

.page-footer {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  margin-top: auto;
  border-top: 1px solid rgba(50, 110, 190, 0.14);
  padding: 18px 28px;
  color: rgba(91, 102, 120, 0.64);
  background: rgba(242, 248, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.assistant-footer-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 170;
}

.assistant-footer-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.assistant-ai-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--go2-blue);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(40, 90, 170, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(180%);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
}

.assistant-ai-trigger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.assistant-ai-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 104px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.96);
  box-shadow: 0 28px 70px rgba(40, 90, 170, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(180%);
}

.assistant-ai-panel[hidden] {
  display: none;
}

.assistant-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid rgba(50, 110, 190, 0.12);
  padding: 0 14px 0 16px;
  color: var(--go2-blue);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 850;
}

.assistant-ai-header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assistant-ai-header svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.assistant-ai-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--go2-blue);
  background: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.assistant-ai-panel iframe {
  flex: 1 1 auto;
  min-height: 0;
}

.page-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1360px);
  margin: 0 auto;
}

@media (max-width: 1240px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .assistant-footer-widget {
    right: 12px;
    bottom: 12px;
  }

  .assistant-ai-panel {
    right: 0;
    width: calc(100vw - 24px);
    height: min(640px, calc(100vh - 92px));
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 22px;
  }

  .login-hero {
    min-height: auto;
    gap: 28px;
    text-align: center;
  }

  .login-logo {
    align-self: center;
    justify-self: center;
  }

  .login-hero-copy {
    width: 100%;
    max-width: none;
    transform: none;
  }

  .login-card {
    width: 100%;
    min-height: 0;
    padding: 34px 30px;
  }

  .hero-title,
  .hero-copy,
  .login-intro {
    overflow-wrap: anywhere;
  }

  .hero-badge {
    margin-bottom: 28px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 40px);
  }

  .drop-one,
  .drop-three {
    display: none;
  }

  .topbar,
  .page-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading-buttons {
    justify-content: stretch;
  }

  .topbar-nav,
  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
  }

  .toast-stack {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .datatable-toolbar,
  .datatable-footer,
  .datatable-export,
  .datatable-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .datatable-search,
  .datatable-filter {
    flex: 1 1 auto;
  }

  .stat-grid,
  .app-grid,
  .form-grid,
  .check-grid,
  .access-card-grid,
  .access-row {
    grid-template-columns: 1fr;
  }

  .user-pill span {
    max-width: 180px;
  }
}

/* Prototype visual alignment: JuanAzcue dark operational UI */
:root {
  --ja-bg: #0a0706;
  --ja-bg-mid: #221f1e;
  --ja-bg-soft: #3d3b3d;
  --ja-card: rgba(255, 255, 255, 0.105);
  --ja-card-strong: rgba(255, 255, 255, 0.14);
  --ja-border: rgba(255, 255, 255, 0.18);
  --ja-border-strong: rgba(255, 255, 255, 0.26);
  --ja-text: #f4f4f4;
  --ja-muted: rgba(244, 244, 244, 0.62);
  --ja-soft: rgba(244, 244, 244, 0.42);
  --ja-red: #e2454c;
  --ja-red-dark: #b21d24;
  --ja-cyan: #4a90a4;
  --ja-green: #3ecf8e;
  --ja-amber: #e0a339;
}

:root[data-theme="light"] {
  --ja-bg: #f5f7f8;
  --ja-bg-mid: #eef3f5;
  --ja-bg-soft: #dde7ea;
  --ja-card: rgba(255, 255, 255, 0.76);
  --ja-card-strong: rgba(255, 255, 255, 0.92);
  --ja-border: rgba(22, 34, 42, 0.14);
  --ja-border-strong: rgba(22, 34, 42, 0.24);
  --ja-text: #1f2328;
  --ja-muted: rgba(31, 35, 40, 0.62);
  --ja-soft: rgba(31, 35, 40, 0.44);
  --ja-red: #d8323c;
  --ja-red-dark: #a91e28;
  --ja-cyan: #347f96;
  --ja-green: #12845e;
  --ja-amber: #a76d12;
}

body.app-prototype-page,
body.auth-login-page {
  color: var(--ja-text);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(74, 144, 164, 0.14), transparent 48%),
    radial-gradient(ellipse at 86% 92%, rgba(74, 144, 164, 0.10), transparent 50%),
    linear-gradient(165deg, var(--ja-bg) 0%, var(--ja-bg-mid) 48%, var(--ja-bg-soft) 100%);
}

body.app-prototype-page::before,
body.auth-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 260px at 24% 16%, rgba(74, 144, 164, 0.12), transparent 70%),
    radial-gradient(680px 320px at 72% 100%, rgba(74, 144, 164, 0.09), transparent 72%);
  filter: blur(16px);
}

.app-prototype-page .shell {
  padding: 28px 44px 30px;
}

.app-prototype-page .page {
  max-width: none;
  min-height: calc(100vh - 58px);
}

.app-prototype-page .liquid-bg,
.auth-login-page .liquid-bg,
.app-prototype-page .aurora,
.app-prototype-page .drop,
.auth-login-page .aurora,
.auth-login-page .drop {
  display: none;
}

.app-prototype-page .glass-card,
.auth-login-page .glass-card {
  border: 1px solid var(--ja-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08));
  box-shadow: none;
  backdrop-filter: blur(14px) saturate(150%);
}

.go2-wordmark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.go2-wordmark-main {
  color: #c7c7c7;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.go2-wordmark-main .brand-accent {
  color: var(--ja-red);
}

.go2-wordmark-sub {
  display: none;
}

.app-prototype-page .topbar {
  min-height: 40px;
  padding: 0;
  margin-bottom: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.app-prototype-page .topbar-brand {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ja-border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(160%);
}

.app-prototype-page .go2-wordmark-topbar,
.app-prototype-page .go2-wordmark-card,
.app-prototype-page .go2-wordmark-page {
  width: auto;
}

.app-prototype-page .go2-wordmark-topbar .go2-wordmark-main {
  color: #c7c7c7;
  font-size: 15px;
  font-weight: 800;
}

.app-prototype-page .topbar-nav {
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--ja-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.app-prototype-page .topbar-nav a {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: var(--ja-muted);
}

.app-prototype-page .topbar-nav a.is-active {
  color: var(--ja-text);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.app-prototype-page .topbar-nav .nav-icon-link {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ja-red);
}

.app-prototype-page .topbar-nav .nav-icon-link svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-prototype-page .topbar-nav .nav-icon-link.is-active {
  color: var(--ja-red);
  border: 1px solid rgba(226, 69, 76, 0.38);
  background: rgba(226, 69, 76, 0.18);
}

.app-prototype-page .topbar-nav .admin-nav-link,
.app-prototype-page .topbar-nav .admin-nav-link.is-active {
  color: var(--ja-muted);
}

.app-prototype-page .topbar-nav .admin-nav-link.is-active {
  border-color: var(--ja-border);
  background: rgba(255, 255, 255, 0.08);
}

.app-prototype-page [data-tooltip] {
  position: relative;
}

.app-prototype-page [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 1400;
  min-width: max-content;
  border: 1px solid var(--ja-border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ja-text);
  background: rgba(31, 29, 29, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.app-prototype-page [data-tooltip]:hover::after,
.app-prototype-page [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-prototype-page .icon-button,
.app-prototype-page .user-pill {
  border: 1px solid var(--ja-border);
  color: var(--ja-muted);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.app-prototype-page .icon-button:hover,
.app-prototype-page .user-pill:hover {
  color: var(--ja-text);
  border-color: var(--ja-border-strong);
}

.app-prototype-page .user-pill {
  min-height: 42px;
  gap: 10px;
  padding: 0 6px 0 14px;
}

.app-prototype-page .user-pill .user-pill-role {
  color: rgba(244, 244, 244, 0.70);
  font-size: 13px;
  font-weight: 800;
}

.app-prototype-page .user-pill strong {
  color: #fff;
  background: linear-gradient(135deg, rgba(74, 144, 164, 0.95), rgba(244, 244, 244, 0.32));
}

.app-prototype-page .page-heading {
  margin-bottom: 22px;
}

.app-prototype-page .section-eyebrow {
  color: var(--ja-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.app-prototype-page .page-heading h1 {
  margin-bottom: 4px;
  color: var(--ja-text);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 850;
}

.app-prototype-page .page-heading p {
  color: var(--ja-muted);
  font-weight: 650;
}

.app-prototype-page .app-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.installations-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--ja-border);
  border-radius: 12px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.segmented-control button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ja-muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.segmented-control button.is-active {
  color: #0a0706;
  background: var(--ja-cyan);
}

.segmented-control button:disabled {
  cursor: not-allowed;
}

.attention-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(226, 69, 76, 0.38);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ja-red);
  background: rgba(226, 69, 76, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.installation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.installation-card {
  min-height: 132px;
  border: 1px solid var(--ja-border);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08));
}

.installation-card header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.installation-card h2 {
  margin: 0;
  color: var(--ja-text);
  font-size: 20px;
  line-height: 1.15;
}

.installation-card strong {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.installation-card p {
  margin: 16px 0 0;
  color: var(--ja-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.status-normal .status-dot,
.status-normal strong {
  color: var(--ja-green);
}

.status-normal strong {
  background: rgba(62, 207, 142, 0.12);
}

.status-review .status-dot,
.status-review strong {
  color: var(--ja-amber);
}

.status-review strong {
  background: rgba(224, 163, 57, 0.12);
}

.status-alarm .status-dot,
.status-alarm strong {
  color: var(--ja-red);
}

.status-alarm strong {
  background: rgba(226, 69, 76, 0.14);
}

.status-nodata .status-dot,
.status-nodata strong {
  color: rgba(244, 244, 244, 0.58);
}

.status-nodata strong {
  background: rgba(255, 255, 255, 0.10);
}

.admin-modules-heading {
  margin-top: 4px;
  margin-bottom: 14px;
}

.admin-modules-heading h2 {
  margin: 0 0 4px;
  color: var(--ja-text);
  font-size: 22px;
}

.admin-modules-grid .app-card {
  min-height: 190px;
}

.app-prototype-page .admin-modules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-prototype-page .app-card,
.app-prototype-page .stat-card,
.app-prototype-page .data-panel {
  border-color: var(--ja-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08));
}

.app-prototype-page .app-card {
  position: relative;
  min-height: 132px;
  border-radius: 22px;
  padding: 24px;
}

.app-prototype-page .admin-modules-grid .app-card {
  min-height: 178px;
  padding: 24px;
}

.app-prototype-page .app-card-corner-link,
.app-prototype-page .app-card-meta {
  position: absolute;
  top: 20px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(226, 69, 76, 0.35);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ja-red);
  background: rgba(226, 69, 76, 0.10);
  font-size: 12px;
  font-weight: 850;
}

.app-prototype-page .app-card-corner-link:hover {
  color: #fff;
  background: rgba(226, 69, 76, 0.28);
}

.app-prototype-page .app-card-meta {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(244, 244, 244, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.app-prototype-page .admin-modules-grid .app-card-head {
  max-width: calc(100% - 96px);
}

.app-prototype-page .app-card:hover {
  transform: none;
  border-color: var(--ja-border-strong);
  box-shadow: none;
}

.app-prototype-page .app-card h2,
.app-prototype-page .stat-card strong {
  color: var(--ja-text);
}

.app-prototype-page .app-card p,
.app-prototype-page .stat-card span,
.app-prototype-page .entity-cell span,
.app-prototype-page .datatable-footer,
.app-prototype-page .muted {
  color: var(--ja-muted);
}

.app-prototype-page .app-logo-frame,
.app-prototype-page .avatar {
  color: var(--ja-text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.app-prototype-page .app-logo {
  color: var(--ja-cyan);
}

.app-prototype-page .app-role,
.app-prototype-page .chip {
  color: var(--ja-green);
  background: rgba(62, 207, 142, 0.12);
}

.app-prototype-page .app-card.is-disabled .app-role {
  color: rgba(244, 244, 244, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.app-prototype-page .app-card.is-disabled {
  opacity: 1;
  filter: none;
}

.app-prototype-page .btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--ja-red-dark), var(--ja-red));
  box-shadow: 0 14px 28px rgba(226, 69, 76, 0.16);
}

.app-prototype-page .btn-primary:hover {
  filter: brightness(1.05);
}

.app-prototype-page .btn-secondary,
.app-prototype-page .btn-link {
  color: var(--ja-muted);
  border: 1px solid var(--ja-border);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.app-prototype-page .btn-secondary:hover,
.app-prototype-page .btn-link:hover {
  color: var(--ja-text);
  border-color: var(--ja-border-strong);
}

.app-prototype-page .input {
  border-color: var(--ja-border);
  color: var(--ja-text);
  background: rgba(255, 255, 255, 0.07);
}

.app-prototype-page .textarea {
  min-height: 110px;
  padding-top: 14px;
  resize: vertical;
}

.app-prototype-page .input:focus {
  border-color: rgba(74, 144, 164, 0.72);
  box-shadow: 0 0 0 4px rgba(74, 144, 164, 0.18);
}

.app-prototype-page .form-field label,
.app-prototype-page .datatable-toolbar span,
.app-prototype-page .datatable-footer span,
.app-prototype-page .table th {
  color: var(--ja-muted);
}

.app-prototype-page .table th,
.app-prototype-page .table td,
.app-prototype-page .datatable-toolbar,
.app-prototype-page .datatable-footer {
  border-color: rgba(255, 255, 255, 0.10);
}

.app-prototype-page .table td,
.app-prototype-page .entity-cell strong {
  color: var(--ja-text);
}

.app-prototype-page .dropdown-panel,
.app-prototype-page .modal-card {
  border: 1px solid var(--ja-border);
  color: var(--ja-text);
  background: #252222;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.app-prototype-page .dropdown-panel a,
.app-prototype-page .dropdown-panel button {
  color: var(--ja-muted);
}

.app-prototype-page .dropdown-panel a:hover,
.app-prototype-page .dropdown-panel button:hover {
  color: var(--ja-text);
  background: rgba(255, 255, 255, 0.08);
}

.app-prototype-page .switch-button {
  color: var(--ja-muted);
  gap: 9px;
  min-height: 26px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.app-prototype-page .switch-button.is-on {
  color: var(--ja-green);
  background: transparent;
}

.app-prototype-page .switch-button i {
  width: 34px;
  height: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.app-prototype-page .switch-button i::after {
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
}

.app-prototype-page .switch-button.is-on i {
  background: rgba(62, 207, 142, 0.30);
}

.app-prototype-page .switch-button.is-on i::after {
  background: var(--ja-green);
  transform: translateX(16px);
}

.app-prototype-page .row-action-menu summary.icon-button {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0 6px;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2px;
}

.app-prototype-page .row-action-menu summary.icon-button:hover,
.app-prototype-page .row-action-menu[open] summary.icon-button {
  color: var(--ja-red);
  border: 0;
  background: transparent;
}

.app-prototype-page .page-footer {
  width: 100%;
  margin: auto 0 0;
  border: 0;
  padding: 18px 0 0;
  color: rgba(244, 244, 244, 0.34);
  background: transparent;
  box-shadow: none;
}

.app-prototype-page .page-footer-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.ai-usage-filter {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
}

.ai-usage-filter h2,
.chart-panel h2,
.data-panel h2 {
  margin: 0 0 4px;
  color: var(--ja-text);
  font-size: 20px;
}

.ai-usage-filter p {
  margin: 0;
  color: var(--ja-muted);
}

.app-prototype-page .check-card {
  border: 1px solid var(--ja-border);
  color: var(--ja-text);
  background: rgba(255, 255, 255, 0.06);
}

.app-prototype-page .check-card span {
  display: grid;
  gap: 3px;
}

.app-prototype-page .check-card small {
  color: var(--ja-muted);
}

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

.chart-panel {
  min-height: 360px;
  padding: 18px;
}

.chart-panel:last-child {
  grid-column: span 2;
}

.highchart {
  width: 100%;
  min-height: 330px;
}

.app-prototype-page .toast-stack {
  top: 22px;
  right: 28px;
  width: min(420px, calc(100vw - 32px));
}

.app-prototype-page .toast {
  grid-template-columns: 10px 1fr 32px;
  gap: 12px;
  border: 1px solid var(--ja-border);
  border-radius: 18px;
  padding: 14px 14px 14px 16px;
  color: var(--ja-text);
  background: linear-gradient(145deg, rgba(53, 50, 50, 0.96), rgba(32, 29, 29, 0.94));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px) saturate(150%);
}

.app-prototype-page .toast-marker {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--ja-green);
  box-shadow: 0 0 0 6px rgba(62, 207, 142, 0.12), 0 0 16px rgba(62, 207, 142, 0.42);
}

.app-prototype-page .toast-error .toast-marker {
  background: var(--ja-red);
  box-shadow: 0 0 0 6px rgba(226, 69, 76, 0.13), 0 0 16px rgba(226, 69, 76, 0.40);
}

.app-prototype-page .toast-content strong {
  color: var(--ja-text);
  font-size: 13px;
}

.app-prototype-page .toast-content p {
  color: var(--ja-muted);
}

.app-prototype-page .toast-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--ja-muted);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.app-prototype-page .toast-close:hover {
  color: var(--ja-text);
  background: rgba(255, 255, 255, 0.12);
}

.auth-login-page .login-shell {
  grid-template-columns: minmax(500px, 1fr) minmax(420px, 500px);
}

.auth-login-page .hero-title,
.auth-login-page .go2-wordmark-main,
.auth-login-page .login-card .go2-wordmark-main {
  color: var(--ja-text);
}

.auth-login-page .hero-copy,
.auth-login-page .login-intro {
  color: var(--ja-muted);
}

.auth-login-page .hero-badge,
.auth-login-page .login-card {
  border-color: var(--ja-border);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.auth-login-page .hero-badge {
  color: var(--ja-text);
}

.auth-login-page .go2-wordmark-page .go2-wordmark-main,
.auth-login-page .go2-wordmark-card .go2-wordmark-main,
.auth-login-page .login-card .go2-wordmark-card .go2-wordmark-main {
  color: #f4f4f4;
}

.auth-login-page .go2-wordmark-main .brand-accent {
  color: var(--ja-red);
}

.auth-login-page .form-field label {
  color: rgba(244, 244, 244, 0.62);
  font-size: 11px;
  letter-spacing: 1.7px;
}

.auth-login-page .input {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ja-text);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-login-page .input::placeholder {
  color: rgba(244, 244, 244, 0.38);
}

.auth-login-page .input-icon-control > svg,
.auth-login-page .password-toggle {
  color: rgba(244, 244, 244, 0.62);
}

.auth-login-page .forgot-link {
  color: #f4f4f4;
}

.auth-login-page .btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--ja-red-dark), var(--ja-red));
  box-shadow: 0 14px 28px rgba(226, 69, 76, 0.18);
}

.auth-login-page .btn-primary:hover {
  filter: brightness(1.06);
}

@media (max-width: 1120px) {
  .app-prototype-page .shell {
    padding: 24px;
  }

  .app-prototype-page .app-grid,
  .app-prototype-page .admin-modules-grid,
  .installation-grid,
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-panel:last-child {
    grid-column: span 2;
  }

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

@media (max-width: 720px) {
  .app-prototype-page .app-grid,
  .app-prototype-page .admin-modules-grid,
  .installation-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel:last-child {
    grid-column: auto;
  }
}
