@charset "UTF-8";

@font-face {
  font-family: "Material Symbols Outlined";
  src: url("./ext-design/fonts/MaterialSymbolsOutlined.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
}

@font-face {
  font-family: "Science Gothic";
  src: url("./ext-design/fonts/ScienceGothic.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Audiowide";
  src: url("./ext-design/fonts/Audiowide-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("./ext-design/fonts/SofiaSansCondensed.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --background: #000000;
  --panel-top: rgba(22, 25, 28, 0.76);
  --panel-bottom: rgba(5, 7, 8, 0.88);
  --element-top: rgba(25, 28, 31, 0.88);
  --element-bottom: rgba(9, 11, 13, 0.94);
  --border: rgba(255, 255, 255, 0.13);
  --border-light: rgba(255, 255, 255, 0.22);
  --text-primary: #f2f2f2;
  --text-secondary: #aeb4b9;
  --text-muted: #777f84;
  --red: #e23a3a;
  --red-dark: #761518;
  --red-background: #421113;
  --green: #50c85f;
  --green-dark: #2f8f3d;
  --gold: #edc46a;
  --blue: #7aa8ff;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.58);
  --icon-size: 22px;
  --splash-logo-start-scale: 4.2;
  --splash-logo-start-shift: 170px;
  --splash-logo-start-y: 12vh;
  --stable-mobile-height: 100svh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #7d161b #050607;
}

html.is-launch-screen,
html.is-launch-screen body {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-launch-screen body {
  position: fixed;
  inset: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: transparent;
  color: var(--text-primary);
  font-family: "Science Gothic", "Sofia Sans Condensed", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

body.is-auth-panel-open {
  height: 100dvh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 82%, rgba(226, 58, 58, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.42) 76%, rgba(0, 0, 0, 0.82) 100%),
    image-set(
      url("./ext-design/images/nmz-cinematic-bg-desktop.jpg") 1x,
      url("./ext-design/images/nmz-cinematic-bg-desktop.png") 2x
    );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.06);
}

.ember-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ember-field::before,
.ember-field::after {
  content: "";
  position: absolute;
  inset: auto -12vw -18vh -12vw;
  height: 78vh;
  opacity: 0.96;
  background:
    radial-gradient(ellipse at 14% 100%, rgba(255, 198, 82, 0.9) 0 1px, rgba(255, 91, 28, 0.62) 2px, transparent 5px),
    radial-gradient(ellipse at 18% 94%, rgba(255, 226, 140, 0.82) 0 1px, rgba(226, 58, 58, 0.54) 2px, transparent 5px),
    radial-gradient(ellipse at 24% 100%, rgba(255, 140, 32, 0.88) 0 2px, transparent 6px),
    radial-gradient(ellipse at 44% 100%, rgba(255, 204, 90, 0.92) 0 1px, rgba(255, 94, 24, 0.58) 2px, transparent 5px),
    radial-gradient(ellipse at 50% 94%, rgba(255, 153, 48, 0.84) 0 2px, transparent 6px),
    radial-gradient(ellipse at 58% 100%, rgba(255, 230, 144, 0.78) 0 1px, transparent 5px),
    radial-gradient(ellipse at 78% 100%, rgba(255, 179, 64, 0.88) 0 1px, rgba(226, 58, 58, 0.58) 2px, transparent 5px),
    radial-gradient(ellipse at 84% 96%, rgba(255, 117, 34, 0.82) 0 2px, transparent 6px);
  background-size: 9vw 15vh, 11vw 20vh, 13vw 17vh, 10vw 18vh, 12vw 22vh, 14vw 18vh, 11vw 17vh, 13vw 20vh;
  background-repeat: repeat-y;
  filter: blur(0.2px) drop-shadow(0 0 16px rgba(255, 104, 24, 0.8));
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 36%, rgba(0, 0, 0, 0.44) 66%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, #000 36%, rgba(0, 0, 0, 0.44) 66%, transparent 100%);
  animation: emberColumn 2.45s linear infinite;
}

.ember-field::after {
  opacity: 0.78;
  transform: scaleX(-1) translateX(-4vw);
  animation-duration: 3.2s;
  animation-direction: reverse;
}

.ember-field span {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: -18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff1b8 0%, #ff9e2f 34%, rgba(226, 58, 58, 0.62) 58%, transparent 74%);
  box-shadow: 0 0 14px rgba(255, 144, 48, 0.86), 0 0 34px rgba(226, 58, 58, 0.42);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(var(--s)) rotate(var(--r));
  animation: emberFloat calc(var(--t) * 0.48) ease-out infinite;
  animation-delay: var(--d);
}

.ember-field span:nth-child(3n) {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 26px rgba(255, 178, 68, 1), 0 0 70px rgba(226, 58, 58, 0.68);
}

.ember-field span:nth-child(4n) {
  width: 7px;
  height: 7px;
  opacity: 0.22;
}

.ember-field span:nth-child(5n) {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #fff7cf 0%, #ffc04b 24%, rgba(255, 64, 24, 0.78) 55%, transparent 76%);
  box-shadow: 0 0 34px rgba(255, 191, 75, 0.95), 0 0 96px rgba(255, 60, 18, 0.72);
}

@keyframes emberFloat {
  0% {
    opacity: 1;
    transform: translate3d(0, 16px, 0) scale(calc(var(--s) * 1.25)) rotate(var(--r));
  }

  22% {
    opacity: 0.9;
    transform: translate3d(calc((var(--x) - 50) * 0.25px), -22vh, 0) scale(var(--s)) rotate(calc(var(--r) * 2));
  }

  62% {
    opacity: 0.38;
    transform: translate3d(calc((var(--x) - 50) * -0.8px), -58vh, 0) scale(calc(var(--s) * 0.62)) rotate(calc(var(--r) * 5));
  }

  100% {
    opacity: 0;
    transform: translate3d(calc((var(--x) - 50) * -1.7px), -98vh, 0) scale(calc(var(--s) * 0.28)) rotate(calc(var(--r) * 8));
  }
}

@keyframes emberColumn {
  0% {
    transform: translate3d(0, 20vh, 0) skewX(-7deg);
  }

  100% {
    transform: translate3d(-7vw, -54vh, 0) skewX(-13deg);
  }
}

.smoke-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.smoke-field::before,
.smoke-field::after {
  content: "";
  position: absolute;
  left: -12vw;
  right: -12vw;
  bottom: -28vh;
  height: 82vh;
  opacity: 0.63;
  background:
    radial-gradient(ellipse at 18% 92%, rgba(238, 232, 214, 0.34), rgba(124, 114, 102, 0.2) 36%, transparent 62%),
    radial-gradient(ellipse at 46% 100%, rgba(220, 218, 204, 0.32), rgba(102, 98, 92, 0.2) 42%, transparent 70%),
    radial-gradient(ellipse at 82% 96%, rgba(232, 218, 190, 0.28), rgba(118, 96, 82, 0.2) 38%, transparent 68%);
  filter: blur(30px);
  transform: translate3d(0, 0, 0) skewX(-8deg);
  animation: smokeBank 12s ease-in-out infinite;
}

.smoke-field::after {
  opacity: 0.48;
  filter: blur(42px);
  transform: translate3d(6vw, 0, 0) scaleX(-1) skewX(10deg);
  animation-duration: 15s;
  animation-direction: reverse;
}

.smoke-field span {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: -22vh;
  width: calc(var(--w) * 1.38px);
  height: calc(var(--w) * 0.78px);
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 48%, rgba(240, 236, 220, 0.34), rgba(132, 126, 114, 0.2) 38%, rgba(58, 52, 48, 0.08) 63%, transparent 78%),
    radial-gradient(circle at 62% 54%, rgba(255, 106, 38, 0.12), transparent 56%);
  filter: blur(20px);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(var(--r));
  animation: smokeDrift calc(var(--t) * 0.66) ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes smokeDrift {
  0% {
    opacity: 0.74;
    transform: translate3d(0, 10vh, 0) scale(0.68) rotate(var(--r));
  }

  24% {
    opacity: 0.58;
    transform: translate3d(calc((var(--x) - 50) * 0.85px), -18vh, 0) scale(1.03) rotate(calc(var(--r) + 10deg));
  }

  68% {
    opacity: 0.28;
    transform: translate3d(calc((var(--x) - 48) * -1.8px), -54vh, 0) scale(1.48) rotate(calc(var(--r) + 24deg));
  }

  100% {
    opacity: 0;
    transform: translate3d(calc((var(--x) - 48) * -2.45px), -88vh, 0) scale(1.85) rotate(calc(var(--r) + 38deg));
  }
}

@keyframes smokeBank {
  0% {
    opacity: 0.3;
    transform: translate3d(3vw, 8vh, 0) scale(0.88) skewX(-8deg);
  }

  38% {
    opacity: 0.48;
    transform: translate3d(-7vw, -18vh, 0) scale(1.05) skewX(-14deg);
  }

  100% {
    opacity: 0.17;
    transform: translate3d(-14vw, -50vh, 0) scale(1.28) skewX(-22deg);
  }
}

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

button {
  letter-spacing: 0;
}

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

::-webkit-scrollbar-track {
  background: #050607;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7d161b, #3f0a0d);
  border: 2px solid #15181a;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d92d35, #7c1217);
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: var(--icon-size);
  line-height: 1;
  display: inline-block;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.app-root {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding: 22px;
}

html.is-launch-screen .app-root {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-weight: 800;
}

.login-shell,
.account-shell {
  min-height: calc(100vh - 44px);
  display: grid;
  align-items: center;
  justify-content: center;
}

.login-shell {
  grid-template-columns: minmax(300px, 800px);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

html.is-launch-screen .login-shell {
  height: calc(100dvh - 44px);
  min-height: calc(100dvh - 44px);
  max-height: calc(100dvh - 44px);
  overflow: hidden;
}

html.is-launch-screen .brand-panel.is-launcher {
  max-height: 100%;
}

html.is-launch-screen .brand-panel.is-login-open {
  max-height: calc(100dvh - 44px);
  overflow: hidden;
}

.brand-panel,
.auth-panel,
.sidebar,
.topbar,
.section,
.account-panel {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--panel-top) 0%, rgba(10, 12, 14, 0.58) 55%, var(--panel-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.62),
    var(--shadow);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  overflow: hidden;
  animation: popupRise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-panel::before,
.auth-panel::before,
.section::before,
.account-panel::before,
.sidebar::before,
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.018) 30%, transparent 58%, rgba(255, 255, 255, 0.018) 100%);
  pointer-events: none;
}

.brand-panel > *,
.auth-panel > *,
.section > *,
.account-panel > *,
.sidebar > *,
.topbar > * {
  position: relative;
  z-index: 1;
}

.brand-panel {
  min-height: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  transform-style: preserve-3d;
  perspective: 1200px;
  animation: panelReveal 0.52s cubic-bezier(0.15, 0.92, 0.18, 1.18) both;
  background:
    radial-gradient(circle at 50% 0%, rgba(237, 196, 106, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(18, 20, 23, 0.76), rgba(4, 5, 6, 0.62));
}

.brand-panel.is-launcher {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  animation: none;
}

.brand-panel.is-launcher::before,
.brand-panel.is-launcher::after {
  content: none;
}

.brand-panel.is-launcher .brand-lockup {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.96);
}

.brand-panel.is-launcher .brand-lockup > div {
  transform-origin: left center;
}

.brand-panel.is-launcher .login-entry-actions,
.brand-panel.is-launcher .browser-stack {
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
}

.brand-panel.is-login-open > .browser-stack,
.brand-panel.is-login-open > .mobile-browser-links {
  display: none;
}

.brand-panel.is-launcher .login-entry-actions .btn,
.brand-panel.is-launcher .browser-chip {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.brand-panel.is-login-open {
  justify-content: center;
  padding-top: 74px;
  max-height: calc(100dvh - 44px);
  animation: panelReveal 0.38s cubic-bezier(0.15, 0.92, 0.18, 1.18) both;
}

.login-shell.is-splashing .brand-panel.is-splashing {
  animation: none;
}

.login-shell.is-splashing .brand-lockup {
  position: relative;
  z-index: 4;
  animation: splashLockupSettle 1.62s 0.16s cubic-bezier(0.16, 1, 0.2, 1) both;
}

.login-shell.is-splashing .brand-lockup img {
  transform-origin: center center;
  animation: splashLogoDock 1.62s 0.16s cubic-bezier(0.16, 1, 0.2, 1) both;
}

.login-shell.is-splashing .brand-lockup > div {
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  animation: splashTextReveal 0.8s 1.36s cubic-bezier(0.16, 1, 0.2, 1) both;
}

.login-shell.is-splashing .login-entry-actions,
.login-shell.is-splashing .brand-panel.is-launcher > .browser-stack {
  opacity: 0;
  transform: perspective(1100px) translateY(46px) rotateX(18deg) rotateZ(-1.4deg) scale(0.86);
  will-change: opacity, transform, filter;
}

.login-shell.is-splashing .login-entry-actions {
  pointer-events: none;
  animation: splashLift 0.72s 2.02s cubic-bezier(0.16, 1, 0.2, 1) both;
}

.login-shell.is-splashing .brand-panel.is-launcher > .browser-stack {
  animation: splashLift 0.68s 2.68s cubic-bezier(0.16, 1, 0.2, 1) both;
}

.login-shell.is-splashing [data-splash-locked] {
  cursor: wait;
}

.login-shell.is-ready .login-entry-actions,
.login-shell.is-ready .brand-panel.is-launcher > .browser-stack {
  pointer-events: auto;
}

.welcome-message {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  opacity: 0;
  transform: perspective(1100px) translateY(46px) rotateX(18deg) scale(0.86);
}

.welcome-message h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.1;
  text-shadow: 0 3px 8px #000000;
}

.welcome-message strong {
  max-width: min(100%, 620px);
  color: var(--red);
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: clamp(18px, 2.8vw, 24px);
  overflow-wrap: break-word;
}

.welcome-browser-row {
  display: grid;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: perspective(1100px) translateY(46px) rotateX(18deg) scale(0.86);
}

.welcome-browser-row .browser-stack {
  justify-content: center;
  width: min(100%, 430px);
}

.login-shell.is-splashing .welcome-message {
  animation: splashLift 0.72s 1.86s cubic-bezier(0.16, 1, 0.2, 1) both;
}

.login-shell.is-splashing .welcome-browser-row {
  animation: splashLift 0.68s 2.9s cubic-bezier(0.16, 1, 0.2, 1) both;
}

.brand-panel::after,
.section::after,
.account-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(237, 196, 106, 0.14), transparent 18%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.06) 42%, transparent 50%);
  opacity: 0.52;
  pointer-events: none;
  transform: translateZ(18px);
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: perspective(1200px) translateY(34px) rotateX(18deg) rotateZ(-1.8deg) scale(0.88);
  }

  to {
    opacity: 1;
    transform: perspective(1200px) translateY(0) rotateX(0) rotateZ(0) scale(1);
  }
}

@keyframes popupRise {
  from {
    opacity: 0;
    transform: perspective(1200px) translateY(30px) rotateX(16deg) rotateZ(-2.2deg) scale(0.9);
  }

  to {
    opacity: 1;
    transform: perspective(1200px) translateY(0) rotateX(0) rotateZ(0) scale(1);
  }
}

@keyframes splashLogoDock {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(var(--splash-logo-start-shift), var(--splash-logo-start-y), 0) scale(var(--splash-logo-start-scale));
  }

  14% {
    opacity: 1;
    filter: blur(0);
  }

  58% {
    opacity: 1;
    transform: translate3d(var(--splash-logo-start-shift), var(--splash-logo-start-y), 0) scale(var(--splash-logo-start-scale));
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes splashLockupSettle {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashLogoDockMobile {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(var(--splash-logo-start-shift), var(--splash-logo-start-y), 0) scale(3.2);
  }

  14% {
    opacity: 1;
    filter: blur(0);
  }

  58% {
    opacity: 1;
    transform: translate3d(var(--splash-logo-start-shift), var(--splash-logo-start-y), 0) scale(3.2);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes splashTextReveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px) scale(0.92);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes splashLift {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: perspective(1100px) translateY(46px) rotateX(18deg) rotateZ(-1.4deg) scale(0.86);
  }

  64% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1100px) translateY(-8px) rotateX(-4deg) rotateZ(0.5deg) scale(1.035);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1100px) translateY(0) rotateX(0) rotateZ(0) scale(1);
  }
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.brand-lockup img,
.sidebar-brand img,
.account-brand img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.brand-panel .brand-lockup img {
  width: 176px;
  height: 176px;
}

.brand-kicker {
  color: var(--red);
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  justify-content: center;
  align-items: center;
  text-align: right;
}

.brand-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 3px 5px #000000, 0 0 12px rgba(255, 255, 255, 0.18);
}

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

.metric,
.stat {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.74), rgba(9, 11, 13, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 5px 12px rgba(0, 0, 0, 0.3);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
}

.metric span,
.stat span,
.mini-label,
.user-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.auth-panel {
  min-height: 520px;
  padding: 30px;
}

.panel-heading {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(226, 58, 58, 0.42);
  border-radius: 999px;
  color: var(--red);
  background: rgba(66, 17, 19, 0.48);
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.panel-heading h2,
.topbar h1,
.section-title h2,
.account-grid h1 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9);
}

.panel-heading p,
.topbar p,
.section-title p,
.muted {
  color: var(--text-secondary);
  line-height: 1.45;
}

.login-entry-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(380px, 1.22fr);
  gap: 12px;
  align-items: center;
  margin: 6px 0 0;
  transform-style: preserve-3d;
}

.login-entry-actions .btn {
  min-height: 54px;
  font-size: 12px;
  letter-spacing: 0;
}

.login-entry-actions .install-extension-btn {
  min-width: 360px;
}

.login-entry-actions .install-extension-btn span:not(.material-symbols-outlined) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.05;
}

.login-entry-actions .material-symbols-outlined {
  font-size: 25px;
}

.login-entry-actions.is-open .login-open-btn {
  border-color: rgba(80, 200, 95, 0.46);
  color: #d9ffe1;
  background: linear-gradient(145deg, rgba(21, 72, 31, 0.6), rgba(8, 16, 10, 0.92));
}

.login-entry-actions.is-open {
  grid-template-columns: minmax(0, 1fr);
}

.login-entry-actions.is-open {
  display: none;
}

.login-entry-actions.is-open .install-extension-btn {
  display: none;
}

.login-form-panel,
.install-ui-panel {
  position: relative;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: perspective(1200px) translateY(54px) rotateX(-36deg) rotateY(13deg) rotateZ(3deg) scale(0.78);
  transform-origin: top center;
  pointer-events: none;
  transition:
    max-height 0.9s cubic-bezier(0.12, 1.05, 0.16, 1.12),
    opacity 0.26s ease,
    transform 0.9s cubic-bezier(0.12, 1.05, 0.16, 1.12);
}

.login-form-panel.is-open,
.install-ui-panel.is-open {
  max-height: clamp(260px, calc(100dvh - 220px), 760px);
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(237, 196, 106, 0.5) rgba(0, 0, 0, 0.28);
  opacity: 1;
  transform: perspective(1200px) translateY(0) rotateX(0) rotateY(0) rotateZ(0) scale(1);
  pointer-events: auto;
}

.login-form-panel.is-open::-webkit-scrollbar,
.install-ui-panel.is-open::-webkit-scrollbar {
  width: 8px;
}

.login-form-panel.is-open::-webkit-scrollbar-track,
.install-ui-panel.is-open::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.24);
}

.login-form-panel.is-open::-webkit-scrollbar-thumb,
.install-ui-panel.is-open::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(237, 196, 106, 0.7), rgba(226, 58, 58, 0.58));
}

.panel-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(226, 58, 58, 0.62);
  border-radius: var(--radius-small);
  border-color: rgba(226, 58, 58, 0.82);
  color: #ffffff;
  background: linear-gradient(145deg, rgba(174, 24, 31, 0.9), rgba(54, 12, 14, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 28px rgba(226, 58, 58, 0.38), 0 12px 28px rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.panel-close-btn:hover {
  transform: translateY(-1px) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 30px rgba(226, 58, 58, 0.5), 0 14px 30px rgba(0, 0, 0, 0.5);
}

.panel-close-btn .material-symbols-outlined {
  font-size: 27px;
}

.panel-shell-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

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

.install-step {
  min-height: 74px;
  padding: 11px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(237, 196, 106, 0.22);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(22, 24, 26, 0.76), rgba(6, 7, 8, 0.9));
}

.install-step .material-symbols-outlined {
  color: #ffe3a2;
  font-size: 28px;
}

.install-step span:last-child {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
}

.install-panel-link {
  min-height: 54px;
}

.feature-teaser {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(237, 196, 106, 0.18);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(20, 22, 24, 0.58), rgba(7, 8, 9, 0.78));
}

.feature-teaser h3 {
  margin: 7px 0 0;
  color: var(--text-primary);
  font-size: 18px;
}

.feature-teaser-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.feature-teaser-item {
  position: relative;
  min-width: 0;
  min-height: 76px;
  padding: 8px 6px;
  display: grid;
  gap: 5px;
  justify-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: linear-gradient(145deg, rgba(15, 17, 19, 0.72), rgba(4, 5, 6, 0.88));
}

.feature-teaser-status {
  position: absolute;
  top: 6px;
  right: 6px;
  max-width: calc(100% - 12px);
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

.feature-teaser-status.is-soon {
  color: #ffdddd;
  border-color: rgba(255, 58, 58, 0.58);
  background: linear-gradient(145deg, rgba(157, 16, 16, 0.92), rgba(54, 5, 5, 0.86));
}

.feature-teaser-status.is-admin {
  color: #ffe6aa;
  border-color: rgba(237, 196, 106, 0.52);
  background: linear-gradient(145deg, rgba(113, 78, 17, 0.92), rgba(36, 22, 4, 0.88));
}

.feature-teaser-item .feature-image {
  width: 42px;
  min-height: 38px;
  border-right: 0;
  border-radius: 8px;
}

.feature-teaser-item .feature-image img {
  width: 29px;
  height: 29px;
}

.feature-teaser-item small {
  max-width: 100%;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.browser-stack {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 11px;
  color: var(--text-secondary);
  font-size: 13px;
}

.browser-stack small {
  min-width: 0;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.64);
}

.browser-stack.is-compact {
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(237, 196, 106, 0.16);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(15, 17, 19, 0.56), rgba(4, 5, 6, 0.72));
}

.browser-stack.is-compact .browser-chip {
  width: 42px;
  height: 42px;
}

.browser-stack.is-compact .browser-chip img {
  width: 31px;
  height: 31px;
}

.browser-chip {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 1px 2px #000000;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 12px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.browser-chip:hover,
.browser-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(237, 196, 106, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 18px rgba(237, 196, 106, 0.18), 0 8px 16px rgba(0, 0, 0, 0.32);
}

.browser-chip.is-current {
  border-color: rgba(84, 214, 122, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 18px rgba(84, 214, 122, 0.16), 0 5px 12px rgba(0, 0, 0, 0.28);
}

.browser-chip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.72));
}

.browser-download-tools {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.admin-browser-tools,
.account-browser-tools {
  max-width: 860px;
}

.mobile-browser-links {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px;
  border: 1px solid rgba(237, 196, 106, 0.13);
  border-radius: var(--radius-small);
  background:
    radial-gradient(circle at 12% 0%, rgba(237, 196, 106, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(12, 15, 18, 0.42), rgba(4, 5, 6, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 5px 14px rgba(0, 0, 0, 0.18);
}

.mobile-browser-links.is-compact {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
}

.mobile-browser-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mobile-browser-copy .eyebrow {
  width: max-content;
  max-width: 100%;
  min-height: 20px;
  padding: 0 8px;
  font-size: 9px;
}

.mobile-browser-copy strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.12;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.mobile-browser-copy small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.mobile-browser-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.mobile-browser-card {
  min-width: 0;
  padding: 8px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(22, 25, 28, 0.66), rgba(7, 9, 11, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.mobile-browser-card:hover {
  transform: translateY(-1px);
  border-color: rgba(237, 196, 106, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px rgba(237, 196, 106, 0.12), 0 8px 18px rgba(0, 0, 0, 0.34);
}

.mobile-browser-card.is-edge-canary {
  border-color: rgba(72, 212, 255, 0.24);
}

.mobile-browser-card.is-orion {
  border-color: rgba(237, 196, 106, 0.3);
}

.mobile-browser-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 8px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.mobile-browser-link.is-current {
  color: #ffffff;
}

.mobile-browser-link.is-current .mobile-browser-icon {
  outline: 1px solid rgba(84, 214, 122, 0.58);
  box-shadow: 0 0 14px rgba(84, 214, 122, 0.16);
}

.mobile-browser-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-browser-icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.72));
}

.mobile-browser-card strong,
.mobile-browser-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-browser-card strong {
  font-size: 13px;
  font-weight: 900;
}

.mobile-browser-card small {
  color: var(--text-secondary);
  font-size: 10px;
  text-transform: uppercase;
}

.mobile-browser-card .material-symbols-outlined {
  --icon-size: 20px;
  color: rgba(237, 196, 106, 0.86);
}

.mobile-browser-steps {
  margin: 0;
  padding: 7px 0 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.28;
}

.mobile-browser-steps li {
  padding-left: 2px;
}

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

.field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.input {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  outline: none;
  color: var(--text-primary);
  background:
    linear-gradient(145deg, rgba(12, 14, 16, 0.92), rgba(5, 6, 7, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 5px 14px rgba(0, 0, 0, 0.28);
}

.input::placeholder {
  color: #747b80;
}

.input:focus {
  border-color: rgba(226, 58, 58, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(226, 58, 58, 0.13);
}

.code-input {
  font-family: "Audiowide", "Science Gothic", sans-serif;
}

.button-row,
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.check-row,
.remember-row {
  min-width: 0;
}

.remember-row {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.2);
}

.remember-row.is-disabled {
  opacity: 0.68;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.remember-row small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.btn {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: linear-gradient(145deg, var(--element-top) 0%, var(--element-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 5px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(226, 58, 58, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.36);
}

.btn:active {
  transform: translateY(0);
}

.btn span:not(.material-symbols-outlined) {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary {
  border-color: rgba(226, 58, 58, 0.72);
  background: linear-gradient(145deg, rgba(127, 22, 27, 0.95), rgba(66, 17, 19, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 20px rgba(226, 58, 58, 0.16),
    0 0 22px rgba(226, 58, 58, 0.22);
}

.btn-danger {
  border-color: rgba(226, 58, 58, 0.55);
  color: #ffd7d7;
}

.btn-green {
  border-color: rgba(80, 200, 95, 0.5);
  color: #d9ffe1;
}

.btn-gold {
  border-color: rgba(237, 196, 106, 0.5);
  color: #ffe5a9;
}

.install-extension-btn {
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(74, 55, 20, 0.76), rgba(15, 12, 7, 0.96)),
    radial-gradient(circle at 18% 20%, rgba(255, 230, 163, 0.22), transparent 34%);
}

.install-extension-btn:hover {
  border-color: rgba(237, 196, 106, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 18px rgba(237, 196, 106, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.36);
}

.account-install-btn {
  min-height: 34px;
}

.btn-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 11px;
}

.btn-small .material-symbols-outlined {
  --icon-size: 18px;
}

.message {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.app-layout {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
}

.sidebar {
  min-height: calc(100vh - 44px);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand,
.account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand {
  min-height: 78px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-brand img,
.account-brand img {
  width: 56px;
  height: 56px;
}

.sidebar-brand strong,
.account-brand strong {
  display: block;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}

.sidebar-brand span,
.account-brand span,
.sidebar-footer {
  color: var(--text-secondary);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-dock {
  display: none;
}

.mobile-overflow-menu {
  display: none;
}

@media (max-width: 760px) {
  body.is-mobile-menu-open .main,
  body.is-mobile-menu-open .account-panel,
  body.is-mobile-menu-open .sidebar {
    filter: blur(3px) brightness(0.74);
    transition: filter 0.18s ease;
  }
}

.nav-button {
  min-height: 48px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.56), rgba(9, 11, 13, 0.78));
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.nav-button span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
}

.nav-button:hover,
.nav-button.is-active {
  color: var(--text-primary);
  border-color: rgba(226, 58, 58, 0.52);
  background: linear-gradient(145deg, rgba(127, 22, 27, 0.42), rgba(13, 15, 17, 0.86));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.12), 0 0 18px rgba(226, 58, 58, 0.16);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  overflow-wrap: break-word;
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 86px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar .button-row,
.account-panel > .section-head .button-row {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.topbar .btn,
.account-panel > .section-head .btn {
  min-height: 38px;
  padding: 0 12px;
}

.topbar .account-install-btn,
.account-panel > .section-head .account-install-btn {
  min-width: 220px;
}

.topbar h1 {
  margin: 0 0 4px;
}

.topbar p {
  margin: 0;
}

.profile-chip,
.badge {
  min-height: 28px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chip,
.badge-admin {
  border-color: rgba(237, 196, 106, 0.42);
  color: #ffe2ad;
}

.badge-user {
  border-color: rgba(122, 168, 255, 0.4);
  color: #d9e5ff;
}

.badge-on {
  border-color: rgba(80, 200, 95, 0.44);
  color: #d8ffe1;
  box-shadow: inset 0 0 14px rgba(80, 200, 95, 0.08);
}

.badge-off {
  border-color: rgba(226, 58, 58, 0.48);
  color: #ffd4d4;
  box-shadow: inset 0 0 14px rgba(226, 58, 58, 0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-grid-eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 15px;
}

.stat span {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(226, 58, 58, 0.22);
}

.section {
  padding: 18px;
  margin-bottom: 14px;
}

.danger-zone {
  border-color: rgba(226, 58, 58, 0.46);
  background:
    linear-gradient(145deg, rgba(66, 17, 19, 0.72), rgba(5, 7, 8, 0.88)),
    url("./ext-design/images/button-off.png");
  background-size: cover;
  background-position: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 4px;
}

.section-title p {
  margin: 0;
}

.table-tools {
  width: min(100%, 310px);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(170px, 0.65fr) auto;
  gap: 8px;
  align-items: end;
}

.inline-form-simple {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.7fr) auto;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.segmented .seg-btn {
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.segmented .seg-btn:last-child {
  border-right: 0;
}

.segmented .seg-btn.is-active {
  color: var(--text-primary);
  background: rgba(226, 58, 58, 0.22);
}

.user-list,
.compact-list,
.all-user-list,
.profile-list,
.email-stack,
.history-list {
  display: grid;
  gap: 10px;
}

.user-row,
.all-user-row,
.profile-row,
.email-item,
.history-item,
.compact-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.62), rgba(9, 11, 13, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 5px 12px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.user-row:hover,
.all-user-row:hover,
.profile-row:hover,
.compact-item:hover {
  transform: translateY(-2px) rotateX(0.8deg);
  border-color: rgba(237, 196, 106, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 26px rgba(0, 0, 0, 0.34);
}

.user-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(180px, 0.65fr) minmax(230px, 0.75fr) minmax(360px, 1.6fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.all-user-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.54fr) minmax(0, 1.46fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.user-row.is-collapsed,
.all-user-row.is-collapsed,
.license-user.is-collapsed {
  padding: 9px 12px;
}

.user-row.is-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.all-user-row.is-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.user-row.is-collapsed .profile-open,
.all-user-row.is-collapsed .profile-open {
  grid-row: 1 / span 2;
}

.user-row.is-collapsed > :not(.user-main),
.user-row.is-collapsed .user-title-form,
.all-user-row.is-collapsed .all-user-details,
.all-user-row.is-collapsed .all-user-controls,
.all-user-row.is-collapsed .admin-password-form {
  display: none;
}

.user-row.is-expanded,
.all-user-row.is-expanded {
  border-color: rgba(226, 58, 58, 0.34);
  background: linear-gradient(145deg, rgba(34, 20, 21, 0.78), rgba(9, 11, 13, 0.9));
}

.user-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
}

.user-main > strong,
.user-main > span,
.user-main > .user-title-form {
  grid-column: 2;
}

.user-row.is-collapsed .user-main {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 4px 10px;
}

.user-row.is-collapsed .user-main > span {
  grid-column: 3;
  justify-self: end;
  max-width: 260px;
  text-align: right;
}

.all-user-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px 10px;
  align-content: start;
  align-items: center;
}

.all-user-main > strong,
.all-user-main > .user-meta,
.all-user-main > .button-row,
.all-user-main > .row-actions,
.all-user-main > .admin-password-form {
  grid-column: 2;
}

.all-user-main > .button-row,
.all-user-main > .row-actions {
  justify-content: flex-start;
}

.all-user-row.is-collapsed .all-user-main {
  grid-template-columns: 34px minmax(210px, 1fr) minmax(0, auto) auto;
  gap: 4px 10px;
}

.all-user-row.is-collapsed .all-user-main > .user-meta {
  grid-column: 2;
}

.all-user-row.is-collapsed .all-user-main > .button-row {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-content: flex-end;
}

.all-user-row.is-collapsed .all-user-main > .row-actions {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  margin-top: 0;
  justify-content: flex-end;
}

.all-user-row.is-collapsed .all-user-main .badge,
.all-user-row.is-collapsed .all-user-main .btn,
.topbar .btn,
.topbar .profile-chip,
.account-panel > .section-head .btn {
  white-space: nowrap;
}

.all-user-row.is-collapsed .all-user-main .row-actions {
  flex-wrap: nowrap;
}

.all-user-details {
  min-width: 0;
}

.all-user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.all-user-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.all-user-controls {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
  gap: 12px;
  margin-top: 12px;
}

.all-user-control-block {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.18);
}

.user-main[data-action],
.all-user-main[data-action],
.license-user-summary[data-action],
.license-user > .badge[data-action],
.profile-summary[data-action] {
  cursor: pointer;
}

.all-user-row .effective-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.all-user-control-block .device-item {
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
}

.all-user-control-block .device-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.all-user-control-block .device-item strong,
.all-user-control-block .device-item small {
  overflow-wrap: normal;
  word-break: normal;
}

.user-main strong,
.all-user-main strong,
.email-item strong,
.compact-item strong,
.profile-summary strong {
  display: block;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.user-main span,
.mini-label,
.user-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.user-title-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.user-title-form .input {
  min-height: 34px;
  font-size: 13px;
}

.admin-password-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  margin-top: 8px;
}

.admin-password-form .input {
  min-height: 34px;
  font-size: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.account-info-grid {
  margin: 14px 0 10px;
}

.profile-device-picker {
  margin-top: 12px;
}

.mini-info {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(12, 14, 16, 0.8), rgba(4, 5, 6, 0.82));
}

.mini-info.is-good {
  border-color: rgba(80, 200, 95, 0.34);
  box-shadow: inset 0 0 14px rgba(80, 200, 95, 0.06);
}

.mini-info.is-bad {
  border-color: rgba(226, 58, 58, 0.36);
  box-shadow: inset 0 0 14px rgba(226, 58, 58, 0.07);
}

.mini-info span,
.mini-info small {
  display: block;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 11px;
  overflow-wrap: break-word;
}

.mini-info strong {
  display: block;
  min-width: 0;
  margin: 3px 0 2px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: break-word;
}

.countdown {
  color: #ffe2ad;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 11px;
}

.device-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.device-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.028);
}

.device-item.is-active {
  border-color: rgba(80, 200, 95, 0.38);
  background: rgba(80, 200, 95, 0.055);
}

.device-item.is-blocked {
  border-color: rgba(226, 58, 58, 0.46);
  background: rgba(66, 17, 19, 0.28);
}

.device-item.is-empty {
  grid-template-columns: 1fr;
  color: var(--text-secondary);
  font-size: 12px;
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-muted);
}

.device-item.is-active .device-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(80, 200, 95, 0.6);
}

.device-item.is-blocked .device-dot {
  background: var(--red);
  box-shadow: 0 0 12px rgba(226, 58, 58, 0.6);
}

.device-item strong,
.device-item small {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}

.device-item strong {
  color: var(--text-primary);
  font-size: 12px;
}

.device-item small {
  color: var(--text-secondary);
  font-size: 11px;
}

.device-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.device-actions .btn {
  min-height: 30px;
}

.all-user-control-block .device-item strong,
.all-user-control-block .device-item small {
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-user-control-block .device-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.email-item .device-item,
.profile-device-picker .device-item {
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
}

.email-item .device-actions,
.profile-device-picker .device-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.license-form {
  grid-template-columns: minmax(150px, 0.45fr) minmax(220px, 1fr) auto;
}

.token-adjust-form {
  margin-top: 10px;
  grid-template-columns: minmax(210px, 1fr) minmax(110px, 0.32fr) minmax(190px, 0.8fr) auto;
}

.token-adjust-form[data-token-adjust-form] {
  grid-template-columns: minmax(110px, 0.32fr) minmax(190px, 0.75fr) auto;
}

.token-adjust-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
}

.token-adjust-actions .btn {
  min-height: 40px;
}

.generated-code,
.license-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(237, 196, 106, 0.28);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(54, 40, 14, 0.48), rgba(8, 9, 10, 0.84));
}

.paid-plan-panel {
  border-color: rgba(226, 58, 58, 0.34);
  background:
    linear-gradient(145deg, rgba(66, 17, 19, 0.68), rgba(9, 11, 13, 0.9)),
    url("./ext-design/images/button-off.png");
  background-size: cover;
  background-position: center;
}

.paid-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.paid-plan-head strong {
  color: #ff4a4a;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.paid-plan-panel .field label {
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
}

.paid-plan-panel .license-redeem-form {
  grid-template-columns: minmax(120px, 0.4fr) minmax(230px, 0.8fr);
  align-items: end;
}

.paid-plan-panel .input {
  min-height: 48px;
  font-family: "Audiowide", "Science Gothic", sans-serif;
}

.license-activate-btn {
  min-height: 48px;
  color: #fff7f7;
}

.license-activate-btn .material-symbols-outlined {
  color: #ffffff;
}

.license-help {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.license-slot-banner {
  min-height: 34px;
  margin-top: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(80, 200, 95, 0.35);
  border-radius: var(--radius-small);
  color: #d8ffe1;
  background: rgba(80, 200, 95, 0.065);
  font-size: 12px;
  font-weight: 900;
}

.license-slot-banner.is-large {
  min-height: 48px;
  margin-top: 0;
  justify-content: center;
  border-color: rgba(237, 196, 106, 0.4);
  color: #ffe5a9;
  background: linear-gradient(145deg, rgba(54, 40, 14, 0.56), rgba(8, 9, 10, 0.84));
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 13px;
}

.license-price-guide {
  margin-top: 12px;
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.24);
}

.license-price-guide.is-compact {
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
}

.price-main span,
.price-steps span {
  display: block;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.price-main strong {
  display: block;
  margin-top: 4px;
  color: #ffe5a9;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 15px;
}

.price-steps {
  display: grid;
  gap: 5px;
}

.price-steps span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: 1px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(226, 58, 58, 0.55);
}

.generated-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.generated-code strong {
  display: block;
  margin: 4px 0;
  color: #ffe5a9;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 18px;
  overflow-wrap: break-word;
}

.generated-code small {
  color: var(--text-secondary);
}

.license-redeem-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.license-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.license-feature-list.is-compact {
  margin-top: 8px;
}

.license-feature-pill {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 900;
}

.license-feature-pill.is-on {
  border-color: rgba(80, 200, 95, 0.36);
  color: #d8ffe1;
}

.license-feature-pill.is-off,
.license-feature-pill.is-empty {
  border-color: rgba(226, 58, 58, 0.35);
  color: #ffd4d4;
}

.license-feature-pill .feature-image {
  width: 30px;
  min-height: 30px;
  height: 30px;
  border-radius: 6px;
}

.license-feature-pill .feature-image img {
  width: 22px;
  height: 22px;
}

.license-feature-pill strong,
.license-feature-pill span {
  min-width: 0;
  overflow-wrap: break-word;
}

.token-history {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.24);
}

.token-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.token-history-head strong {
  display: block;
  margin-top: 3px;
  color: #ffe5a9;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 14px;
}

.token-history-list {
  display: grid;
  gap: 8px;
}

.token-history-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.66), rgba(9, 11, 13, 0.88));
}

.token-history-item strong,
.token-history-item .user-meta {
  min-width: 0;
  overflow-wrap: break-word;
}

.token-history-item > strong,
.token-history-item > .badge {
  justify-self: end;
}

.license-user {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
}

.license-user.is-expanded {
  border-color: rgba(237, 196, 106, 0.38);
  background: linear-gradient(145deg, rgba(50, 36, 14, 0.44), rgba(9, 11, 13, 0.9));
}

.license-user-summary {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.license-user-summary strong {
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.license-user-badges {
  justify-content: flex-start;
}

.license-user-details {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.license-user-details .token-adjust-form {
  margin-top: 0;
}

.license-code-row strong {
  color: #ffe5a9;
}

.feature-card-actions {
  min-width: 0;
  grid-column: 3;
  padding-right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

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

.effective-feature-grid {
  margin-top: 10px;
}

.feature-toggle {
  min-width: 0;
  min-height: 64px;
  padding: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.86), rgba(9, 11, 13, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-small);
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 5px 12px rgba(0, 0, 0, 0.3);
}

.feature-toggle:hover {
  border-color: rgba(226, 58, 58, 0.46);
}

.feature-toggle.is-on {
  border-color: rgba(226, 58, 58, 0.68);
  background: linear-gradient(145deg, rgba(60, 13, 15, 0.98), rgba(12, 14, 16, 0.92));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.18), 0 0 18px rgba(226, 58, 58, 0.16);
}

.feature-toggle.is-soon,
.feature-card.is-soon {
  cursor: not-allowed;
  opacity: 0.62;
  border-color: rgba(226, 58, 58, 0.28);
  filter: grayscale(0.3);
}

.feature-toggle.is-soon:hover {
  transform: none;
  border-color: rgba(226, 58, 58, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 5px 12px rgba(0, 0, 0, 0.3);
}

.feature-title {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1.12;
}

.feature-title > span {
  min-width: 0;
  overflow-wrap: break-word;
}

.soon-label {
  color: #ff3d3d;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(226, 58, 58, 0.55);
}

.source-label {
  color: var(--text-muted);
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.source-label.is-on {
  color: #ffe5a9;
  text-shadow: 0 0 10px rgba(237, 196, 106, 0.45);
}

.feature-image {
  width: 56px;
  height: 100%;
  min-height: 62px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
}

.feature-image img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: grayscale(0.2) drop-shadow(0 4px 7px rgba(0, 0, 0, 0.65));
}

.feature-toggle.is-on .feature-image img,
.feature-card.is-on .feature-image img {
  filter: drop-shadow(0 0 10px rgba(226, 58, 58, 0.58));
}

.feature-toggle > span:last-child {
  min-width: 0;
  padding: 8px 10px;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.12;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.profile-row {
  overflow: hidden;
}

.profile-row.is-email-warning,
.compact-item.is-email-warning {
  border-color: rgba(237, 196, 106, 0.58);
  background: linear-gradient(145deg, rgba(82, 62, 20, 0.42), rgba(9, 11, 13, 0.86));
  box-shadow: inset 0 0 18px rgba(237, 196, 106, 0.08), 0 5px 12px rgba(0, 0, 0, 0.25);
}

.profile-row.is-email-danger,
.compact-item.is-email-danger {
  border-color: rgba(226, 58, 58, 0.58);
  background: linear-gradient(145deg, rgba(66, 17, 19, 0.58), rgba(9, 11, 13, 0.88));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.11), 0 5px 12px rgba(0, 0, 0, 0.25);
}

.profile-row.is-banned {
  border-color: rgba(226, 58, 58, 0.48);
  background: linear-gradient(145deg, rgba(66, 17, 19, 0.5), rgba(9, 11, 13, 0.86));
}

.profile-summary {
  display: grid;
  grid-template-columns: 38px minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}

.profile-open {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.profile-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.profile-details,
.all-user-details,
.all-user-controls,
.license-user-details,
.user-row.is-expanded > :not(.user-main) {
  animation: expandPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes expandPop {
  from {
    opacity: 0;
    transform: perspective(900px) translateY(10px) rotateX(-7deg) scale(0.985);
  }

  to {
    opacity: 1;
    transform: perspective(900px) translateY(0) rotateX(0) scale(1);
  }
}

.profile-details h3 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 14px;
}

.email-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
}

.email-item .info-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.email-item .feature-grid,
.email-item .effective-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.email-item .row-actions {
  justify-content: flex-start;
}

.email-item .row-actions .btn {
  min-width: 148px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 120px 80px 150px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.history-item span,
.compact-item span {
  min-width: 0;
  overflow-wrap: break-word;
}

.compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.account-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.account-panel {
  width: 100%;
  padding: 22px;
}

.account-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.account-nav-button {
  flex: 1 0 128px;
  min-width: 116px;
  min-height: 44px;
  padding: 0 9px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.62), rgba(9, 11, 13, 0.86));
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-nav-button:hover,
.account-nav-button.is-active {
  color: var(--text-primary);
  border-color: rgba(226, 58, 58, 0.54);
  background: linear-gradient(145deg, rgba(127, 22, 27, 0.42), rgba(13, 15, 17, 0.9));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.12), 0 0 16px rgba(226, 58, 58, 0.13);
}

.account-nav-button span:last-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-logout-btn {
  flex-basis: 100%;
  justify-self: flex-end;
  width: min(100%, 260px);
}

.account-header-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  justify-items: stretch;
  align-content: start;
  width: min(100%, 290px);
}

.account-header-actions .account-install-btn,
.account-header-actions .account-logout-btn {
  width: 100%;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 14px;
}

.settings-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(14, 16, 18, 0.72), rgba(4, 5, 6, 0.82));
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h3 {
  margin: 6px 0 10px;
  color: var(--text-primary);
  font-size: 19px;
  overflow-wrap: break-word;
}

.settings-password-form {
  margin-top: 8px;
}

.settings-cookie-actions {
  margin-top: 12px;
}

.feature-control-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.feature-control-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.028);
}

.feature-control-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.feature-control-title .feature-image {
  width: 42px;
  min-height: 38px;
  border-right: 0;
  border-radius: 7px;
}

.feature-control-title .feature-image img {
  width: 28px;
  height: 28px;
}

.feature-control-title strong {
  min-width: 0;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-control-title small {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.25;
}

.feature-control-title .feature-image .material-symbols-outlined {
  color: var(--gold);
}

.feature-control-segment {
  min-width: 226px;
}

.account-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.account-feature-shell {
  display: grid;
  gap: 12px;
}

.account-note,
.account-next-row {
  margin-top: 12px;
}

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

.feature-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.82), rgba(9, 11, 13, 0.94));
  overflow: hidden;
}

.feature-card.is-on {
  border-color: rgba(226, 58, 58, 0.64);
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.14);
}

.feature-card h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.12;
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(80, 200, 95, 0.38);
  border-radius: var(--radius-small);
  color: #d8ffe1;
  background: rgba(5, 8, 6, 0.94);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-error {
  border-color: rgba(226, 58, 58, 0.45);
  color: #ffd4d4;
  background: rgba(30, 7, 8, 0.96);
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(430px, calc(100vw - 36px));
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(226, 58, 58, 0.42);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(20, 22, 24, 0.97), rgba(5, 6, 7, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cookie-consent h3 {
  margin: 3px 0 5px;
  font-size: 16px;
}

.cookie-consent p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.38;
}

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

.pwa-install-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pwa-install-card {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 121;
  display: grid;
  gap: 13px;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(237, 196, 106, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 8%, rgba(237, 196, 106, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(25, 28, 31, 0.94), rgba(4, 5, 6, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: mobilePopupRise 0.28s cubic-bezier(0.18, 0.9, 0.2, 1.12) both;
}

.pwa-install-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.pwa-install-head img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(237, 196, 106, 0.3);
}

.pwa-install-head h3,
.pwa-install-card p {
  margin: 0;
}

.pwa-install-head h3 {
  color: var(--text-primary);
  font-size: 18px;
}

.pwa-install-card p {
  color: var(--text-secondary);
  line-height: 1.35;
}

.pwa-install-steps {
  display: grid;
  gap: 7px;
}

.pwa-install-steps div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.045);
}

.pwa-install-steps strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #1b1203;
  background: var(--gold);
  font-size: 12px;
}

.pwa-install-steps span {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 850;
  line-height: 1.2;
}

.pwa-install-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@keyframes mobilePopupRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96) rotateX(10deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

@media (max-width: 1200px) {
  body::before {
    background:
      radial-gradient(circle at 70% 82%, rgba(226, 58, 58, 0.22), transparent 34%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0.52) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.44) 76%, rgba(0, 0, 0, 0.86) 100%),
      image-set(
        url("./ext-design/images/nmz-cinematic-bg-desktop.jpg") 1x,
        url("./ext-design/images/nmz-cinematic-bg-desktop.png") 2x
      );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .app-root {
    padding: 14px;
  }

  .login-shell,
  .app-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
  }

  .sidebar {
    min-height: auto;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .topbar,
  .account-panel > .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar .button-row,
  .account-panel > .section-head .button-row {
    justify-content: flex-start;
  }

  .stat-grid,
  .stat-grid-five,
  .stat-grid-six,
  .stat-grid-eight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-row,
  .all-user-row,
  .all-user-controls,
  .profile-details,
  .account-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html.has-mobile-dock,
  html.has-mobile-dock body {
    min-height: 100svh;
    overflow-x: hidden;
  }

  html {
    min-height: 100%;
    background: #000;
  }

  :root {
    --splash-logo-start-scale: 4.75;
    --splash-logo-start-shift: 99px;
    --splash-logo-start-y: 12vh;
  }

  body::before {
    background:
      radial-gradient(circle at 52% 82%, rgba(226, 58, 58, 0.2), transparent 36%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.36) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.28) 72%, rgba(0, 0, 0, 0.78) 100%),
      image-set(
        url("./ext-design/images/nmz-cinematic-bg-mobile.jpg") 1x,
        url("./ext-design/images/nmz-cinematic-bg-mobile.png") 2x
      );
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  body::after {
    background: rgba(0, 0, 0, 0.02);
  }

  body {
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .app-root {
    min-height: 100dvh;
    padding: 10px max(8px, env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  html.is-launch-screen .app-root {
    height: 100dvh;
    min-height: 100dvh;
    padding: max(10px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    overflow: hidden;
  }

  .login-shell {
    min-height: calc(100vh - 20px);
    align-items: center;
  }

  html.is-launch-screen .login-shell,
  html.is-launch-screen .welcome-shell {
    height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    min-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    overflow: hidden;
  }

  .brand-panel,
  .auth-panel,
  .section,
  .account-panel,
  .topbar,
  .sidebar {
    padding: 12px;
  }

  .app-layout {
    gap: 10px;
  }

  .sidebar {
    position: static;
    z-index: 8;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .sidebar::before,
  .sidebar::after,
  .sidebar-brand {
    display: none;
  }

  .sidebar-brand img,
  .account-brand img {
    width: 46px;
    height: 46px;
  }

  .sidebar-brand strong,
  .account-brand strong {
    font-size: 16px;
  }

  .sidebar-footer {
    display: none;
  }

  .mobile-menu-toggle,
  .account-menu-toggle {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    top: calc(var(--stable-mobile-height, 100svh) - 84px - env(safe-area-inset-bottom));
    bottom: auto;
    z-index: 150;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 4px;
    height: 76px;
    padding: 8px 8px 9px;
    border: 1px solid rgba(237, 196, 106, 0.24);
    border-radius: 24px;
    background:
      radial-gradient(circle at 50% 0%, rgba(237, 196, 106, 0.18), transparent 34%),
      linear-gradient(145deg, rgba(18, 20, 23, 0.88), rgba(3, 4, 5, 0.96));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    contain: layout paint style;
    overscroll-behavior: contain;
    backface-visibility: hidden;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 148;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px) saturate(115%);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    animation: mobileBackdropFade 0.18s ease both;
  }

  .mobile-dock-item {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    height: 56px;
    display: grid;
    grid-template-rows: 24px 24px;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.66);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    overflow: hidden;
    transform: none !important;
  }

  .mobile-dock-item:hover,
  .mobile-dock-item:active,
  .mobile-dock-item.is-active {
    transform: none !important;
  }

  .mobile-dock-item .material-symbols-outlined {
    --icon-size: 23px;
  }

  .mobile-dock-label {
    max-width: 100%;
    min-width: 0;
    height: 24px;
    display: grid;
    place-items: center;
    align-content: center;
    line-height: 1.05;
    overflow: hidden;
  }

  .mobile-dock-label span {
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-dock-label.is-split {
    grid-template-rows: repeat(2, 12px);
  }

  .mobile-dock-label.is-tight {
    font-size: 8px;
    letter-spacing: 0;
  }

  .mobile-dock-item.is-active {
    color: #ffffff;
    background: linear-gradient(145deg, rgba(127, 22, 27, 0.4), rgba(11, 12, 14, 0.54));
    box-shadow: inset 0 0 20px rgba(226, 58, 58, 0.16);
  }

  .mobile-dock-logo {
    position: relative;
    grid-template-rows: 52px 12px;
    gap: 2px;
    min-height: 66px;
    height: 66px;
    margin-top: -22px;
    color: #ffe7af;
    overflow: visible;
  }

  .mobile-dock-logo::before {
    content: "";
    position: absolute;
    top: -4px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(237, 196, 106, 0.36), rgba(226, 58, 58, 0.14) 44%, transparent 68%);
    filter: blur(2px);
  }

  .mobile-dock-logo img {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(237, 196, 106, 0.38), 0 0 22px rgba(237, 196, 106, 0.32), 0 10px 20px rgba(0, 0, 0, 0.62);
  }

  .mobile-dock-logo span {
    position: relative;
    z-index: 1;
  }

  .mobile-dock-logo .mobile-dock-label {
    height: 12px;
    font-size: 8px;
  }

  .mobile-overflow-menu {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: calc(var(--stable-mobile-height, 100svh) - min(54vh, 430px) - 102px - env(safe-area-inset-bottom));
    bottom: auto;
    z-index: 149;
    max-height: min(54vh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid rgba(237, 196, 106, 0.28);
    border-radius: 18px;
    background:
      radial-gradient(circle at 18% 0%, rgba(237, 196, 106, 0.16), transparent 36%),
      linear-gradient(145deg, rgba(20, 22, 25, 0.96), rgba(3, 4, 5, 0.98));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    animation: mobileMenuRise 0.22s ease both;
  }

  @supports not (height: 100svh) {
    .mobile-dock {
      top: auto;
      bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-overflow-menu {
      top: auto;
      bottom: calc(92px + env(safe-area-inset-bottom));
    }
  }

  .mobile-overflow-item {
    min-height: 52px;
    height: auto;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: 1fr;
    place-items: center start;
    padding: 0 10px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(24, 27, 30, 0.76), rgba(8, 9, 11, 0.84));
    text-align: left;
  }

  .mobile-overflow-item .material-symbols-outlined {
    grid-row: 1;
  }

  .mobile-overflow-item .mobile-dock-label {
    height: auto;
    place-items: center start;
    text-align: left;
    font-size: 11px;
    line-height: 1.05;
  }

  .nav,
  .account-nav {
    display: none;
  }

  .nav.is-open {
    display: none;
  }

  .account-nav.is-open {
    display: none;
  }

  .nav {
    margin: 10px 0 0;
  }

  .nav-button,
  .account-nav-button {
    min-height: 42px;
  }

  @keyframes mobileMenuRise {
    from {
      opacity: 0;
      transform: translateY(8px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes mobileBackdropFade {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .brand-panel {
    min-height: auto;
  }

  .brand-panel .brand-lockup img {
    width: 114px;
    height: 114px;
  }

  .login-shell.is-splashing .brand-lockup img {
    animation-name: splashLogoDockMobile;
  }

  .login-form-panel.is-open,
  .install-ui-panel.is-open {
    max-height: calc(100dvh - 168px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  html.is-launch-screen .login-form-panel.is-open,
  html.is-launch-screen .install-ui-panel.is-open {
    max-height: calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .brand-title {
    font-size: 30px;
  }

  .user-row.is-collapsed .user-main,
  .all-user-row.is-collapsed .all-user-main {
    grid-template-columns: 1fr;
  }

  .login-entry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .login-entry-actions .btn {
    min-height: 48px;
    padding: 0 10px;
    font-size: 10px;
  }

  .login-entry-actions .install-extension-btn {
    min-width: 0;
  }

  .login-entry-actions .btn span:not(.material-symbols-outlined) {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.08;
  }

  .btn-back {
    min-height: 46px;
    padding: 0 14px;
    font-size: 12px;
  }

  .install-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .install-step {
    min-height: 58px;
  }

  .feature-teaser-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-teaser-item {
    min-height: 68px;
  }

  .feature-teaser-status {
    top: 5px;
    right: 5px;
    padding: 2px 5px;
    font-size: 7px;
  }

  .browser-chip {
    width: 40px;
    height: 40px;
  }

  .browser-chip img {
    width: 29px;
    height: 29px;
  }

  .browser-stack {
    gap: 7px;
  }

  .mobile-browser-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .mobile-browser-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-browser-card {
    padding: 8px;
  }

  .mobile-browser-link {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
  }

  .mobile-browser-icon {
    width: 38px;
    height: 38px;
  }

  .mobile-browser-icon img {
    width: 31px;
    height: 31px;
  }

  .browser-stack.is-compact {
    justify-content: center;
    gap: 7px;
    padding: 8px;
  }

  .browser-stack.is-compact .browser-chip {
    width: 38px;
    height: 38px;
  }

  .browser-stack.is-compact .browser-chip img {
    width: 28px;
    height: 28px;
  }

  .browser-stack small {
    display: none;
  }

  .user-main > strong,
  .user-main > span,
  .user-main > .user-title-form,
  .all-user-main > strong,
  .all-user-main > .user-meta,
  .all-user-main > .button-row,
  .all-user-main > .row-actions,
  .all-user-main > .admin-password-form,
  .user-row.is-collapsed .user-main > span,
  .all-user-row.is-collapsed .all-user-main > .user-meta,
  .all-user-row.is-collapsed .all-user-main > .button-row,
  .all-user-row.is-collapsed .all-user-main > .row-actions {
    grid-column: 1;
  }

  .user-row.is-collapsed .user-main > span,
  .all-user-row.is-collapsed .all-user-main > .button-row {
    justify-self: stretch;
    text-align: left;
  }

  .all-user-row.is-collapsed .all-user-main .row-actions,
  .all-user-row.is-collapsed .all-user-main .button-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 2px;
  }

  .paid-plan-panel .license-redeem-form {
    grid-template-columns: 1fr;
  }

  .license-price-guide,
  .license-price-guide.is-compact {
    grid-template-columns: 1fr;
  }

  .brand-metrics,
  .stat-grid,
  .stat-grid-five,
  .stat-grid-six,
  .stat-grid-eight,
  .info-grid,
  .inline-form,
  .inline-form-simple,
  .license-form,
  .admin-password-form,
  .token-adjust-form,
  .token-adjust-form[data-token-adjust-form],
  .token-history-item,
  .license-redeem-form,
  .generated-code,
  .all-user-row,
  .all-user-controls,
  .settings-grid,
  .feature-grid,
  .feature-cards,
  .profile-summary,
  .email-item,
  .history-item,
  .compact-item,
  .topbar {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .stat-grid-five,
  .stat-grid-six,
  .stat-grid-eight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    padding: 11px;
  }

  .stat strong {
    font-size: 24px;
  }

  .section {
    margin-bottom: 10px;
  }

  .section-head,
  .topbar {
    gap: 10px;
  }

  .topbar .button-row,
  .section-head .button-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .topbar .button-row .btn,
  .section-head .button-row .btn {
    flex: 0 0 auto;
  }

  .mini-info {
    padding: 8px;
  }

  .compact-list,
  .user-list,
  .all-user-list,
  .profile-list {
    gap: 8px;
  }

  .license-user {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .license-user > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .license-user-badges .badge {
    min-height: 25px;
  }

  .license-user-details .info-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1 1 160px;
  }

  .profile-summary {
    cursor: default;
  }

  .section-head,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools {
    width: 100%;
  }

  .feature-toggle,
  .feature-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .feature-card-actions {
    grid-column: 2;
    justify-content: flex-start;
    padding: 0 10px 10px 0;
  }

  .feature-card > .badge {
    margin: 0 10px 10px 56px;
    justify-self: start;
  }

  .device-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .device-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .token-history-item > .badge {
    justify-self: start;
  }
}

/* Responsive comfort pass: keep controls readable instead of cramped. */
.segmented .seg-btn {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-action-button.is-danger,
.account-nav-action-button.is-danger,
.mobile-action-item.is-danger {
  color: #ffd9d9;
  border-color: rgba(226, 58, 58, 0.5);
  background: linear-gradient(145deg, rgba(82, 17, 20, 0.54), rgba(13, 15, 17, 0.9));
}

.feature-control-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

.user-main strong,
.all-user-main strong,
.email-item strong,
.compact-item strong,
.profile-summary strong,
.license-user-summary strong,
.generated-code strong,
.token-history-item strong {
  overflow-wrap: break-word;
  word-break: normal;
}

.ip-text {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.profile-summary .user-meta,
.all-user-main .user-meta,
.compact-item .user-meta,
.email-item .user-meta,
.history-item,
.mini-info small {
  overflow-wrap: normal;
  word-break: normal;
}

.profile-summary .badge,
.compact-item .badge,
.history-item .badge {
  justify-self: start;
}

@media (max-width: 900px) {
  .profile-summary,
  .all-user-main,
  .license-user,
  .token-history-item,
  .generated-code {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .profile-summary > div,
  .all-user-main > strong,
  .all-user-main > .user-meta,
  .all-user-main > .admin-password-form,
  .license-user-summary {
    grid-column: 2;
    min-width: 0;
  }

  .profile-summary > .badge,
  .profile-summary > .btn,
  .profile-summary > .row-actions,
  .all-user-main > .button-row,
  .all-user-main > .row-actions,
  .license-user > .badge,
  .generated-code > .button-row,
  .generated-code > .btn,
  .token-history-item > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .profile-summary > .row-actions,
  .all-user-main > .button-row,
  .all-user-main > .row-actions {
    grid-row: auto;
    align-self: start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .license-form,
  .token-adjust-form,
  .token-adjust-form[data-token-adjust-form],
  .admin-password-form,
  .user-title-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .device-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .device-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .account-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
  }

  .account-nav-button {
    flex: 1 1 150px;
  }

  .profile-summary strong,
  .all-user-main strong,
  .license-user-summary strong,
  .email-item strong,
  .compact-item strong {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .feature-control-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .feature-control-title {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .feature-control-title strong {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .feature-control-segment {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .topbar .button-row,
  .account-panel > .section-head .button-row {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
  }

  .topbar .account-install-btn,
  .account-panel > .section-head .account-install-btn {
    width: 100%;
    min-width: 0;
  }

  .all-user-row.is-collapsed .all-user-main .row-actions,
  .all-user-row.is-collapsed .all-user-main .button-row {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
  }

  .all-user-row.is-collapsed .all-user-main .btn,
  .email-item .row-actions .btn,
  .device-actions .btn,
  .feature-card-actions .btn {
    flex: 1 1 min(100%, 148px);
  }

  .feature-control-row {
    padding: 10px;
  }

  .profile-summary,
  .all-user-main,
  .license-user,
  .compact-item,
  .email-item,
  .history-item {
    gap: 8px;
  }

  .profile-summary,
  .compact-item {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }

  .profile-summary > div,
  .compact-item > div {
    grid-column: 2;
    min-width: 0;
  }

  .profile-summary > .badge,
  .profile-summary > .btn,
  .profile-summary > .row-actions,
  .compact-item > .badge,
  .compact-item > .btn,
  .compact-item > .row-actions {
    grid-column: 2;
    justify-self: start;
  }

  .profile-summary > .badge {
    max-width: 100%;
  }

  .profile-summary > .btn {
    width: auto;
    max-width: 100%;
  }

  .profile-summary .profile-open,
  .all-user-main .profile-open,
  .license-user > .profile-open {
    grid-column: 1;
    justify-self: start;
  }

  .profile-summary > .row-actions,
  .all-user-main > .button-row,
  .all-user-main > .row-actions,
  .email-item .row-actions,
  .device-actions,
  .license-user-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-summary > .row-actions .btn,
  .all-user-main > .button-row .btn,
  .all-user-main > .row-actions .btn,
  .email-item .row-actions .btn,
  .device-actions .btn {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .all-user-main,
  .license-user,
  .email-item,
  .token-history-item,
  .generated-code {
    grid-template-columns: minmax(0, 1fr);
  }

  .all-user-main > *,
  .license-user > *,
  .token-history-item > *,
  .generated-code > *,
  .email-item > * {
    grid-column: 1 !important;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
  }

  .feature-card,
  .feature-toggle {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .feature-card h3,
  .feature-toggle strong,
  .feature-toggle span {
    overflow-wrap: break-word;
    word-break: normal;
  }
}

@media (max-width: 520px) {
  .profile-summary,
  .compact-item {
    padding: 10px;
  }

  .profile-summary .user-meta,
  .compact-item .user-meta,
  .all-user-main .user-meta,
  .email-item .user-meta,
  .mini-info small,
  .device-item small {
    font-size: 11px;
    line-height: 1.35;
  }

  .profile-summary .badge,
  .compact-item .badge,
  .profile-summary .btn {
    min-height: 30px;
    padding-inline: 9px;
  }

  .history-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .history-item span {
    display: block;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .app-root {
    padding-inline: max(6px, env(safe-area-inset-left));
  }

  .brand-panel,
  .auth-panel,
  .section,
  .account-panel,
  .topbar,
  .sidebar {
    padding: 10px;
  }

  .panel-heading h2,
  .topbar h1,
  .section-title h2,
  .account-grid h1 {
    font-size: 21px;
    line-height: 1.12;
  }

  .panel-heading p,
  .topbar p,
  .section-title p,
  .muted {
    font-size: 13px;
    line-height: 1.5;
  }

  .feature-control-list {
    gap: 10px;
  }

  .feature-control-title {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .feature-control-title .feature-image {
    width: 38px;
    min-height: 36px;
  }

  .feature-control-title .feature-image img {
    width: 25px;
    height: 25px;
  }

  .feature-control-segment {
    min-height: 42px;
  }

  .feature-control-segment .seg-btn {
    min-height: 42px;
    padding: 0 6px;
    font-size: 11px;
  }

  .mobile-dock {
    left: max(5px, env(safe-area-inset-left));
    right: max(5px, env(safe-area-inset-right));
    gap: 2px;
    padding-inline: 6px;
  }

  .mobile-dock-item {
    font-size: 8px;
    border-radius: 14px;
  }

  .mobile-dock-item .material-symbols-outlined {
    --icon-size: 21px;
  }

  .mobile-dock-label.is-tight {
    font-size: 7px;
  }
}

.custom-logo-text-shadow {
  text-shadow: 0 1px 1px rgb(0, 0, 0), 0 1px 2px rgb(7, 7, 7), 0 1px 1px rgb(8, 8, 8);
}
