
:root {
  color-scheme: dark;

  --bg-0: #060606;
  --bg-1: #0a0a0a;
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(255, 255, 255, .075);
  --panel-hover: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .085);
  --line-soft: rgba(255, 255, 255, .05);

  --text: #f8f8f8;
  --text-soft: rgba(255, 255, 255, .68);
  --muted: rgba(255, 255, 255, .38);

  --blue: #868686;
  --blue-soft: #b6b6b6;
  --green: #b6b6b6;
  --orange: #b5b5b5;
  --red: #8b8b8b;
  --purple: #888888;

  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  --inner: inset 0 1px 0 rgba(255, 255, 255, .08);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;

  --sidebar: 250px;
  --topbar: 88px;
  --mobile-nav: 78px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  min-height: 100%;
  background: var(--bg-0);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -8%, rgba(134, 134, 134, .14), transparent 33%),
    radial-gradient(circle at 94% 105%, rgba(104, 104, 104, .10), transparent 34%),
    linear-gradient(180deg, #060606, #080808 65%, #060606);
  font-family: var(--font-thai-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(134, 134, 134, .72);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(134, 134, 134, .38);
  color: white;
}

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

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  background-clip: padding-box;
}

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .15;
  will-change: transform;
}

.orb-a {
  top: -250px;
  left: -220px;
  background: #868686;
}

.orb-b {
  right: -260px;
  bottom: -240px;
  background: #636363;
}

.ambient-noise {
  position: absolute;
  inset: 0;
  opacity: .30;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .018) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 31%, rgba(255, 255, 255, .014) 0 1px, transparent 1.8px),
    radial-gradient(circle at 62% 78%, rgba(255, 255, 255, .012) 0 1px, transparent 1.8px);
  background-size: 190px 190px, 230px 230px, 270px 270px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.glass-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .032));
  box-shadow: var(--inner), var(--shadow);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .028));
  box-shadow: var(--inner), 0 18px 46px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px 150px at 30% -10%, rgba(134, 134, 134, .12), transparent 72%);
  transition: opacity .28s var(--ease);
}

.card:hover::before {
  opacity: 1;
}

.login-view {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  box-shadow: var(--inner), 0 36px 100px rgba(0, 0, 0, .42);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.login-shell h1 {
  margin: 10px 0 4px;
  font-size: clamp(34px, 8vw, 50px);
  letter-spacing: -.04em;
}

.login-copy {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.app-view {
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 14px auto 14px 14px;
  width: var(--sidebar);
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
}

.sidebar-brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 16px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 13px;
  letter-spacing: .04em;
}

.sidebar-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.topbar {
  position: fixed;
  z-index: 15;
  left: calc(var(--sidebar) + 42px);
  right: 28px;
  top: 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.topbar h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.03em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-root {
  min-height: 100vh;
  padding:
    calc(var(--topbar) + 10px)
    28px
    42px
    calc(var(--sidebar) + 42px);
}

.page {
  width: min(1500px, 100%);
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.page-section + .page-section {
  margin-top: 18px;
}

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

.section-head h3 {
  margin: 0;
  font-size: 14px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mobile-nav {
  display: none;
}

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

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

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

.stack {
  display: grid;
  gap: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.toolbar .grow {
  flex: 1 1 240px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .055));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: var(--inner), 0 14px 34px rgba(0, 0, 0, .28);
  font-weight: 900;
  font-size: 20px;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 13px;
}

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

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

.span-2 {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
}

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

.field input,
.field select,
.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  padding: 0 13px;
  outline: 0;
  transition:
    border-color .18s var(--ease),
    background .18s var(--ease),
    box-shadow .18s var(--ease);
}

.field input:hover,
.field select:hover,
.search-input:hover {
  background: rgba(255, 255, 255, .055);
}

.field input:focus,
.field select:focus,
.search-input:focus {
  border-color: rgba(134, 134, 134, .45);
  box-shadow: 0 0 0 4px rgba(134, 134, 134, .08);
  background: rgba(255, 255, 255, .06);
}

.field select option {
  background: #131313;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 50px;
}

.password-field .icon-button {
  position: absolute;
  right: 4px;
  top: 4px;
}

.form-error {
  min-height: 16px;
  margin: 0;
  color: #b0b0b0;
  font-size: 10px;
  line-height: 1.5;
}

.button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .035em;
  transition:
    transform .16s var(--ease),
    background .18s var(--ease),
    border-color .18s var(--ease),
    opacity .18s var(--ease);
}

.button:active {
  transform: scale(.975);
}

.button:disabled {
  opacity: .5;
  cursor: wait;
}

.button.wide {
  width: 100%;
}

.button.primary {
  border-color: rgba(165, 165, 165, .24);
  background: linear-gradient(180deg, #8c8c8c, #7b7b7b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 9px 24px rgba(120, 120, 120, .16);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, .045);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, .075);
}

.button.danger {
  color: #b6b6b6;
  border-color: rgba(139, 139, 139, .16);
  background: rgba(139, 139, 139, .075);
}

.button.subtle {
  box-shadow: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
}

.icon-button svg,
.nav-item svg,
.mobile-nav-item svg,
.mobile-create svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.ghost {
  color: var(--text-soft);
}

.glass-button {
  border-color: var(--line);
  background: var(--panel);
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
  text-align: left;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, .045);
}

.nav-item.active {
  color: white;
  border-color: rgba(134, 134, 134, .15);
  background: linear-gradient(135deg, rgba(134, 134, 134, .21), rgba(134, 134, 134, .08));
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .032);
  border: 1px solid var(--line-soft);
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #909090, #6d6d6d);
  font-size: 10px;
  font-weight: 900;
}

.admin-copy {
  min-width: 0;
}

.admin-copy strong,
.admin-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-copy strong {
  font-size: 9px;
}

.admin-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill {
  min-height: 32px;
  padding: 0 10px;
  color: #cecece;
  border: 1px solid rgba(182, 182, 182, .12);
  background: rgba(182, 182, 182, .055);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.status-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text-soft);
  font-size: 7px;
  font-weight: 850;
}

.badge.green {
  color: #cfcfcf;
  border-color: rgba(182, 182, 182, .12);
  background: rgba(182, 182, 182, .06);
}

.badge.red {
  color: #b5b5b5;
  border-color: rgba(139, 139, 139, .13);
  background: rgba(139, 139, 139, .065);
}

.badge.blue {
  color: #bbbbbb;
  border-color: rgba(134, 134, 134, .13);
  background: rgba(134, 134, 134, .065);
}

.badge.orange {
  color: #d0d0d0;
  border-color: rgba(181, 181, 181, .13);
  background: rgba(181, 181, 181, .06);
}

.sheet-dialog,
.confirm-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.sheet-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.sheet {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: min(520px, calc(100% - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, #131313, #0b0b0b);
  box-shadow: var(--inner), 0 40px 120px rgba(0, 0, 0, .6);
}

.sheet-dialog.compact .sheet {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  max-height: calc(100% - 36px);
}

.sheet-handle {
  display: none;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.sheet-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.sheet-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.profile-preview {
  margin-top: 14px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .026);
}

.profile-preview:empty {
  display: none;
}

.confirm-dialog {
  display: none;
  place-items: center;
}

.confirm-dialog[open] {
  display: grid;
}

.confirm-card {
  width: min(390px, calc(100% - 32px));
  padding: 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(155deg, #131313, #0a0a0a);
  box-shadow: var(--inner), 0 40px 120px rgba(0, 0, 0, .6);
}

.confirm-card h3 {
  margin: 14px 0 7px;
}

.confirm-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
}

.confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 15px;
  color: #b6b6b6;
  border: 1px solid rgba(139, 139, 139, .14);
  background: rgba(139, 139, 139, .07);
}

.toast-root {
  position: fixed;
  z-index: 220;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 13px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(19, 19, 19, .92);
  box-shadow: var(--inner), 0 18px 55px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 9px;
  line-height: 1.45;
}

.toast.error {
  border-color: rgba(139, 139, 139, .16);
  color: #c0c0c0;
}

.toast {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  transform: translateY(12px) scale(.97);
  opacity: 0;
  animation: toastIn .34s cubic-bezier(.22,.9,.25,1) forwards;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(137, 137, 137, .95), rgba(208, 208, 208, .92));
  transform-origin: left center;
  animation: toastProgress 2.15s linear forwards;
}

.toast-root.copy-center-active {
  inset: 0;
  right: 0;
  bottom: 0;
  width: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-root.copy-center-active .toast.copy {
  width: min(320px, calc(100vw - 48px));
  margin: auto;
}

.toast.copy {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  border-color: rgba(129, 129, 129, .22);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(135, 135, 135, .12) 0%, rgba(135, 135, 135, 0) 48%),
    rgba(16, 16, 16, .94);
  box-shadow: var(--inner), 0 18px 55px rgba(0, 0, 0, .38), 0 0 0 1px rgba(129, 129, 129, .08);
}

.toast.copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .075) 18%, transparent 36%);
  transform: translateX(-120%);
  animation: toastSweep 1.2s ease-out forwards;
  pointer-events: none;
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #f2f2f2;
  background: linear-gradient(180deg, rgba(130, 130, 130, .92), rgba(114, 114, 114, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px rgba(102, 102, 102, .32);
}

.toast-copy-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.toast-copy-title {
  color: rgba(249, 249, 249, .98);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.toast-copy-sub {
  color: rgba(191, 191, 191, .82);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: .07em;
  word-break: break-word;
}

.sheet-toast-host {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  padding: 24px;
  pointer-events: none;
}

.sheet-toast-host.has-toast {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* R7F3-B — reseller MANAGE copy feedback must stay inside the open sheet. */
#resellerManageToastHost.reseller-manage-toast-host {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 12;
  width: 100%;
  padding: 0 0 12px;
  margin: 0;
  pointer-events: none;
}

#resellerManageToastHost.reseller-manage-toast-host.has-toast {
  display: block;
}

#resellerManageToastHost .sheet-toast {
  width: 100%;
  max-width: none;
}

.sheet-toast {
  width: min(100%, 320px);
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(129, 129, 129, .22);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(135, 135, 135, .12) 0%, rgba(135, 135, 135, 0) 48%),
    rgba(16, 16, 16, .96);
  box-shadow: var(--inner), 0 18px 45px rgba(0, 0, 0, .34), 0 0 0 1px rgba(129, 129, 129, .08);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  animation: toastIn .34s cubic-bezier(.22,.9,.25,1) forwards;
  position: relative;
  overflow: hidden;
}

.sheet-toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(137, 137, 137, .95), rgba(208, 208, 208, .92));
  transform-origin: left center;
  animation: toastProgress 2.15s linear forwards;
}

.sheet-toast .toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.config-copy-chip.copy-done,
#configDialog [data-copy-field].copy-done,
#configDialog #configCopyAll.copy-done {
  color: #f7f7f7 !important;
  border-color: rgba(182, 182, 182, .30) !important;
  background:
    linear-gradient(180deg, rgba(182, 182, 182, .18), rgba(182, 182, 182, .08)),
    rgba(24, 24, 24, .96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(182, 182, 182, .08),
    0 10px 24px rgba(182, 182, 182, .10) !important;
  transform: translateY(-1px) scale(1.02);
  animation: copyDonePulse .48s cubic-bezier(.2,.9,.25,1);
}

@keyframes copyDonePulse {
  0% { transform: scale(.97); }
  55% { transform: scale(1.045); }
  100% { transform: scale(1.02); }
}

.copy-burst {
  animation: copyPulse .42s cubic-bezier(.2,.9,.25,1);
}

@keyframes toastIn {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastProgress {
  from { transform: scaleX(1); opacity: 1; }
  to { transform: scaleX(0); opacity: .85; }
}

@keyframes toastSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes copyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(137, 137, 137, .0); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(137, 137, 137, .12); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(137, 137, 137, .0); }
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 80px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .035);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  animation: shimmer 1.4s infinite;
}

.profile-block-reason { margin-top: 10px; }
.backup-hash { margin-top: 12px; }
.section-inline-title { margin: 0; font-size: 14px; }
.section-inline-copy { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.danger-more-icon { color: #b7b7b7; background: rgba(139, 139, 139, .065); }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; opacity: 0; pointer-events: none; }

.hero {
  padding: 24px;
  min-height: 210px;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -.045em;
  line-height: 1.03;
}

.hero-copy {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.hero-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  right: -170px;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 134, 134, .18), transparent 66%);
  pointer-events: none;
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}

.metric {
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .027);
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 750;
}

.metric strong {
  margin-top: 5px;
  font-size: 19px;
  letter-spacing: -.025em;
}

.quick-card {
  min-height: 110px;
  padding: 15px;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .12);
}

.quick-card .quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--blue-soft);
  background: rgba(134, 134, 134, .08);
  border: 1px solid rgba(134, 134, 134, .11);
}

.quick-card strong {
  display: block;
  margin-top: 13px;
  font-size: 10px;
}

.quick-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.user-card,
.profile-card,
.service-card,
.audit-card,
.backup-card {
  padding: 16px;
}

.user-head,
.profile-head,
.service-head,
.backup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.user-title,
.profile-title {
  min-width: 0;
}

.user-title strong,
.profile-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.user-title span,
.profile-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.user-stats,
.profile-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.stat-box {
  min-width: 0;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .025);
}

.stat-box span,
.stat-box strong {
  display: block;
}

.stat-box span {
  color: var(--muted);
  font-size: 7px;
}

.stat-box strong {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}

.user-actions,
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.mini-button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--text-soft);
  font-size: 7px;
  font-weight: 850;
}

.mini-button:hover {
  color: white;
  background: rgba(255, 255, 255, .06);
}

.mini-button.blue {
  color: #bebebe;
  border-color: rgba(134, 134, 134, .13);
  background: rgba(134, 134, 134, .065);
}

.mini-button.red {
  color: #b7b7b7;
  border-color: rgba(139, 139, 139, .13);
  background: rgba(139, 139, 139, .06);
}

.platform-wrap {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

.platform-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-soft);
  font-size: 7px;
  font-weight: 800;
}

.configured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(182, 182, 182, .65);
}

.configured-dot.off {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(181, 181, 181, .45);
}

.service-card strong {
  font-size: 11px;
}

.service-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}

.audit-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(134, 134, 134, .55);
}

.audit-copy {
  min-width: 0;
}

.audit-copy strong {
  display: block;
  font-size: 9px;
}

.audit-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-time {
  color: var(--muted);
  font-size: 7px;
}

.empty-state {
  padding: 34px 20px;
  text-align: center;
}

.empty-state strong {
  display: block;
  font-size: 12px;
}

.empty-state p {
  max-width: 450px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.config-code {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid var(--line-soft);
  background: #080808;
  color: #e8e8e8;
  font: 8px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
}

.qr-wrap {
  display: grid;
  place-items: center;
  margin-top: 13px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .025);
}

.qr-wrap img {
  display: block;
  width: min(280px, 80vw);
  aspect-ratio: 1;
  border-radius: 12px;
  background: white;
}

.config-fields {
  display: grid;
  gap: 8px;
}

.config-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .026);
}

.config-field span,
.config-field code {
  display: block;
}

.config-field span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.config-field code {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--text);
  font: 8px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.more-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .035);
  text-align: left;
}

.more-row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-soft);
  background: rgba(134, 134, 134, .07);
}

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

.more-row strong {
  font-size: 9px;
}

.more-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

/* IP Limit Management — observe-only staging */
.user-card .ip-limit-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
  opacity: 1;
  font-size: 11px;
  line-height: 1.4;
}

.user-card .ip-note-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.user-card .ip-note-label {
  color: rgba(205, 205, 205, .70);
  font-size: 10px;
  letter-spacing: .06em;
}

.user-card .ip-note-item strong {
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.user-card .ip-note-disclaimer {
  grid-column: 1 / -1;
  color: rgba(205, 205, 205, .62);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .035em;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes floatA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(26px,18px,0) scale(1.03); }
}

@keyframes floatB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-22px,-16px,0) scale(1.04); }
}

.orb-a {
  animation: floatA 15s ease-in-out infinite;
}

.orb-b {
  animation: floatB 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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

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

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

@media (max-width: 760px) {
  :root {
    --topbar: 72px;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    left: 16px;
    right: 16px;
    height: var(--topbar);
  }

  .topbar h2 {
    font-size: 20px;
  }

  .status-pill {
    display: none;
  }

  .page-root {
    padding:
      calc(var(--topbar) + 7px)
      12px
      calc(var(--mobile-nav) + 26px);
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: var(--mobile-nav);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 7px 9px;
    border-radius: 24px;
  }

  .mobile-nav-item,
  .mobile-create {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    font-size: 6.5px;
    font-weight: 850;
  }

  .mobile-nav-item.active {
    color: white;
    background: rgba(255, 255, 255, .052);
  }

  .mobile-create {
    width: 54px;
    height: 54px;
    min-height: 54px;
    justify-self: center;
    align-self: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(145deg, #8c8c8c, #797979);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 28px rgba(120, 120, 120, .24);
  }

  .mobile-create svg {
    width: 20px;
    height: 20px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 19px;
  }

  .hero-top {
    display: block;
  }

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

  .toolbar {
    align-items: stretch;
  }

  .toolbar .grow,
  .toolbar .button {
    flex: 1 1 100%;
  }

  .section-head {
    align-items: flex-start;
  }

  .sheet {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100dvh - 22px);
    padding: 18px;
    border-radius: 26px;
  }

  .sheet-dialog.compact .sheet {
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    transform: none;
  }

  .sheet-handle {
    display: block;
    width: 38px;
    height: 4px;
    margin: -4px auto 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
  }

  .sheet-actions {
    position: sticky;
    bottom: -18px;
    padding: 14px 0 1px;
    background: linear-gradient(180deg, transparent, #0d0d0d 35%);
  }

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

  .span-2 {
    grid-column: auto;
  }

  .login-view {
    padding: 15px;
  }

  .login-shell {
    padding: 25px 20px;
    border-radius: 27px;
  }

  .audit-card {
    grid-template-columns: auto 1fr;
  }

  .audit-time {
    grid-column: 2;
  }

  .glass-panel,
  .login-shell,
  .toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

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

  .metric strong {
    font-size: 16px;
  }

  .user-stats,
  .profile-specs {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   NPXSHOP ScriptX 1.1.9 — PHASE 2 FRONTEND CONSOLIDATION
   R5C2 V2 visual baseline preserved.

   Canonical core ownership now lives in:
   tokens.css / base.css / layout.css / components.css /
   pages.css / motion.css / responsive.css

   This file intentionally contains only the approved preview/
   production compatibility patch train that still depends on
   late cascade position. Do not move rules from this layer
   without visual + regression gates.
   ========================================================= */

/* ===== PREVIEW R2 — REQUESTED ICON / LOGOUT FIXES ONLY ===== */

  .quick-card .quick-icon {
    color: #b2b2b2;
  }

  .quick-card .quick-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  #desktopLogout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aeaeae;
    border-color: rgba(139, 139, 139, .24);
    background:
      linear-gradient(180deg, rgba(139, 139, 139, .10), rgba(139, 139, 139, .065));
  }

  #desktopLogout svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #desktopLogout span {
    display: inline-block;
    color: inherit;
  }

  #desktopLogout:hover {
    color: #c0c0c0;
    border-color: rgba(139, 139, 139, .38);
    background:
      linear-gradient(180deg, rgba(139, 139, 139, .15), rgba(139, 139, 139, .09));
  }


  /* ===== PREVIEW R3 — MORE MENU ICON FIXES ONLY ===== */

  .more-row .more-row-icon {
    color: #b2b2b2;
  }

  .more-row .more-row-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .more-row > span:last-child {
    color: rgba(217, 217, 217, .58);
  }

  .more-row > span:last-child svg {
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .more-row .danger-more-icon {
    color: #aeaeae;
    border-color: rgba(139, 139, 139, .18);
    background:
      linear-gradient(180deg, rgba(139, 139, 139, .10), rgba(139, 139, 139, .055));
  }

  .more-row:hover .more-row-icon:not(.danger-more-icon) {
    color: #c5c5c5;
  }

  .more-row:hover .danger-more-icon {
    color: #c0c0c0;
  }


  /* ===== PREVIEW R4 — MORE PAGE FINAL POLISH ===== */

  .more-list {
    gap: 10px;
  }

  .more-row {
    position: relative;
    isolation: isolate;
    min-height: 74px;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: 12px;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(182, 182, 182, .15);
    border-radius: 19px;
    background:
      radial-gradient(110% 130% at 4% 0%, rgba(126, 126, 126, .055), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .027));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .035),
      0 8px 26px rgba(0, 0, 0, .09);
    transition:
      transform .18s ease,
      border-color .18s ease,
      background-color .18s ease;
  }

  .more-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(105deg, rgba(255, 255, 255, .035), transparent 28%, transparent 72%, rgba(146, 146, 146, .025));
    opacity: .85;
  }

  .more-row .more-row-icon {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(161, 161, 161, .15);
    border-radius: 13px;
    color: #b7b7b7;
    background:
      radial-gradient(circle at 35% 22%, rgba(186, 186, 186, .16), transparent 42%),
      linear-gradient(180deg, rgba(134, 134, 134, .13), rgba(134, 134, 134, .075));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .055),
      0 7px 18px rgba(76, 76, 76, .10);
  }

  .more-row .more-row-icon::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    pointer-events: none;
  }

  .more-row .more-row-icon svg {
    width: 20px;
    height: 20px;
    margin: 0;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.72;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .more-row > span:nth-child(2) {
    min-width: 0;
    margin: 0;
  }

  .more-row > span:nth-child(2) > strong {
    margin: 0 0 3px;
    color: rgba(246, 246, 246, .92);
    font-size: 10.5px;
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: -.012em;
  }

  .more-row > span:nth-child(2) > span {
    margin: 0;
    color: rgba(166, 166, 166, .72);
    font-size: 7.4px;
    font-weight: 540;
    line-height: 1.32;
    letter-spacing: 0;
  }

  .more-row > span:last-child {
    width: 26px;
    height: 26px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 9px;
    color: rgba(196, 196, 196, .52);
    background: rgba(255, 255, 255, .018);
    transition: color .18s ease, border-color .18s ease, transform .18s ease;
  }

  .more-row > span:last-child svg {
    width: 14px;
    height: 14px;
    margin: 0;
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .more-row .danger-more-icon {
    color: #acacac;
    border-color: rgba(148, 148, 148, .17);
    background:
      radial-gradient(circle at 35% 22%, rgba(179, 179, 179, .11), transparent 42%),
      linear-gradient(180deg, rgba(139, 139, 139, .11), rgba(139, 139, 139, .06));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .045),
      0 7px 18px rgba(54, 54, 54, .08);
  }

  .more-row:active {
    transform: scale(.988);
  }

  @media (hover: hover) and (pointer: fine) {
    .more-row:hover {
      transform: translateY(-1px);
      border-color: rgba(163, 163, 163, .25);
      background:
        radial-gradient(110% 130% at 4% 0%, rgba(126, 126, 126, .075), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, .058), rgba(255, 255, 255, .033));
    }

    .more-row:hover .more-row-icon:not(.danger-more-icon) {
      color: #cccccc;
      border-color: rgba(171, 171, 171, .25);
    }

    .more-row:hover > span:last-child {
      color: rgba(221, 221, 221, .82);
      border-color: rgba(255, 255, 255, .075);
      transform: translateX(1px);
    }

    .more-row:hover .danger-more-icon {
      color: #c0c0c0;
      border-color: rgba(154, 154, 154, .25);
    }
  }

  @media (max-width: 760px) {
    .more-list {
      gap: 9px;
    }

    .more-row {
      min-height: 72px;
      grid-template-columns: 43px minmax(0, 1fr) 27px;
      gap: 11px;
      padding: 10px 11px;
      border-radius: 18px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    }

    .more-row .more-row-icon {
      width: 41px;
      height: 41px;
      border-radius: 12px;
    }

    .more-row .more-row-icon svg {
      width: 19px;
      height: 19px;
    }

    .more-row > span:nth-child(2) > strong {
      font-size: 10.3px;
    }

    .more-row > span:nth-child(2) > span {
      font-size: 7.2px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .more-row,
    .more-row > span:last-child {
      transition: none;
    }
  }

  /* ===== PREVIEW R55 — MORE / ALL PROMOTIONS TUNING ===== */
  .more-stack {
    display:grid;
    gap:10px;
  }

  .more-row.more-expand-trigger[aria-expanded="true"] {
    border-color: rgba(168, 168, 168, .28);
    background:
      radial-gradient(110% 130% at 4% 0%, rgba(126, 126, 126, .085), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .038));
  }

  .more-row.more-expand-trigger[aria-expanded="true"] > span:last-child {
    color: rgba(230, 230, 230, .9);
    border-color: rgba(255, 255, 255, .08);
    transform: rotate(90deg);
  }

  .more-expand {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .34s cubic-bezier(.2,.8,.2,1), opacity .24s ease, transform .28s ease;
  }

  .more-expand.open {
    max-height: 720px;
    opacity: 1;
    transform: translateY(0);
  }

  .promo-board {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(182, 182, 182, .14);
    background:
      radial-gradient(120% 130% at 0% 0%, rgba(131, 131, 131, .08), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .026));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 12px 32px rgba(0, 0, 0, .12);
  }

  .promo-board::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .035), transparent 26%, transparent 72%, rgba(146, 146, 146, .03));
  }

  .promo-board-head {
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom: 12px;
  }

  .promo-board-eyebrow {
    display:block;
    margin-bottom:4px;
    color:#c0c0c0;
    font-size:7px;
    font-weight:700;
    letter-spacing:.18em;
  }

  .promo-board h3 {
    margin:0;
    color:rgba(248, 248, 248, .96);
    font-size:13px;
    font-weight:750;
    letter-spacing:.01em;
  }

  .promo-board p {
    margin:4px 0 0;
    color:rgba(176, 176, 176, .76);
    font-size:8px;
    line-height:1.55;
  }


  .promo-detail-board {
    overflow:hidden;
  }

  .promo-detail-scroll {
    position:relative;
    max-height:min(58vh, 560px);
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:4px;
    margin-right:-4px;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color: rgba(163, 163, 163, .44) rgba(255, 255, 255, .03);
  }

  .promo-detail-scroll::-webkit-scrollbar {
    width:8px;
  }

  .promo-detail-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
    border-radius:999px;
  }

  .promo-detail-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(165, 165, 165, .74), rgba(139, 139, 139, .34));
    border-radius:999px;
    border:1px solid rgba(255, 255, 255, .04);
  }

  .promo-count-pill {
    flex:0 0 auto;
    padding:9px 12px;
    border-radius:999px;
    border:1px solid rgba(161, 161, 161, .16);
    background: rgba(255, 255, 255, .03);
    color:#cccccc;
    font-size:7px;
    font-weight:700;
    letter-spacing:.16em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }

  .promo-carrier-grid {
    position:relative;
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:12px;
  }

  .promo-carrier-card {
    position:relative;
    overflow:hidden;
    padding:14px 13px;
    border-radius:20px;
    border:1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .036), 0 10px 22px rgba(0, 0, 0, .10);
    display:grid;
    gap:10px;
    animation: promoFloatIn .34s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--promo-index, 0) * 60ms);
  }

  .promo-carrier-card::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background: radial-gradient(120px 60px at 100% 0%, rgba(255, 255, 255, .06), transparent 62%);
  }

  .promo-carrier-card.ais {
    border-color: rgba(200, 200, 200, .18);
    background: linear-gradient(180deg, rgba(158, 158, 158, .08), rgba(255, 255, 255, .02));
  }
  .promo-carrier-card.true {
    border-color: rgba(151, 151, 151, .18);
    background: linear-gradient(180deg, rgba(141, 141, 141, .08), rgba(255, 255, 255, .02));
  }
  .promo-carrier-card.dtac {
    border-color: rgba(171, 171, 171, .18);
    background: linear-gradient(180deg, rgba(140, 140, 140, .09), rgba(255, 255, 255, .02));
  }

  .carrier-badge {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:14px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    border:1px solid rgba(255, 255, 255, .08);
    color:rgba(251, 251, 251, .98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  .promo-carrier-card.ais .carrier-badge { background: linear-gradient(180deg, rgba(158, 158, 158, .34), rgba(158, 158, 158, .18)); }
  .promo-carrier-card.true .carrier-badge { background: linear-gradient(180deg, rgba(141, 141, 141, .34), rgba(141, 141, 141, .18)); }
  .promo-carrier-card.dtac .carrier-badge { background: linear-gradient(180deg, rgba(140, 140, 140, .34), rgba(140, 140, 140, .18)); }

  .carrier-meta strong {
    display:block;
    margin:0 0 5px;
    color:rgba(247, 247, 247, .97);
    font-size:11px;
    font-weight:760;
    letter-spacing:.01em;
  }

  .carrier-meta span {
    display:block;
    color:rgba(180, 180, 180, .78);
    font-size:7.4px;
    line-height:1.55;
  }

  .carrier-tag-row {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  .carrier-tag {
    padding:5px 8px;
    border-radius:999px;
    border:1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .03);
    color:rgba(218, 218, 218, .82);
    font-size:6.8px;
    font-weight:700;
    letter-spacing:.12em;
  }

  .carrier-cta {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top:8px;
    border-top:1px solid rgba(255, 255, 255, .05);
    color:rgba(196, 196, 196, .9);
    font-size:7px;
    font-weight:700;
    letter-spacing:.14em;
  }

  .carrier-cta svg {
    width:14px;
    height:14px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.7;
  }


  .promo-selector-shell,
  .promo-detail-shell {
    display:grid;
    gap:14px;
  }

  .promo-selector-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:14px 14px 2px;
  }

  .promo-selector-head h3 {
    margin:0;
    color:rgba(252, 252, 252, .98);
    font-size:13px;
    font-weight:800;
    letter-spacing:.01em;
  }

  .promo-selector-head p {
    margin:5px 0 0;
    color:rgba(198, 198, 198, .84);
    font-size:7.8px;
    line-height:1.55;
  }

  .promo-selector-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    padding:0 2px 2px;
  }

  .promo-selector-card {
    appearance:none;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    display:grid;
    gap:14px;
    min-height:198px;
    padding:17px;
    text-align:left;
    border-radius:24px;
    border:1px solid rgba(255, 255, 255, .09);
    color:var(--text);
    cursor:pointer;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .08),
      inset 0 -1px 0 rgba(255, 255, 255, .03),
      0 18px 36px rgba(0, 0, 0, .14);
    transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,filter .22s ease;
    animation:
      promoFloatIn .38s cubic-bezier(.2,.8,.2,1) both,
      promoCardBreath 5.6s ease-in-out infinite;
    animation-delay:calc(var(--promo-index,0) * 70ms), calc(var(--promo-index,0) * 70ms + 420ms);
    will-change:transform;
    transform:translateZ(0);
    backdrop-filter:saturate(1.06);
  }

  .promo-selector-card::before,
  .promo-selector-card::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;
  }

  .promo-selector-card::before {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 34%),
      radial-gradient(65% 58% at 84% 16%, rgba(255, 255, 255, .18), transparent 62%),
      linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
    opacity:.75;
    z-index:0;
  }

  .promo-selector-card::after {
    background:linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .09) 46%, transparent 64%);
    transform:translateX(-140%);
    opacity:.55;
    z-index:0;
  }

  .promo-selector-card:hover::after,
  .promo-selector-card:focus-visible::after {
    animation:promoSheen 1.15s ease forwards;
  }

  .promo-selector-card > * {
    position:relative;
    z-index:1;
  }

  .promo-selector-card.ais {
    border-color:rgba(209, 209, 209, .25);
    background:
      radial-gradient(120% 150% at 100% 0%, rgba(216, 216, 216, .28), transparent 42%),
      radial-gradient(130% 140% at 0% 100%, rgba(117, 117, 117, .18), transparent 56%),
      linear-gradient(180deg, rgba(46, 46, 46, .92), rgba(12, 12, 12, .98));
    box-shadow:
      inset 0 1px 0 rgba(240, 240, 240, .09),
      0 18px 40px rgba(50, 50, 50, .26),
      0 0 0 1px rgba(203, 203, 203, .06);
  }

  .promo-selector-card.true {
    border-color:rgba(159, 159, 159, .24);
    background:
      radial-gradient(120% 150% at 100% 0%, rgba(159, 159, 159, .22), transparent 42%),
      radial-gradient(125% 135% at 0% 100%, rgba(67, 67, 67, .18), transparent 58%),
      linear-gradient(180deg, rgba(24, 24, 24, .94), rgba(12, 12, 12, .98));
    box-shadow:
      inset 0 1px 0 rgba(218, 218, 218, .08),
      0 18px 40px rgba(33, 33, 33, .24),
      0 0 0 1px rgba(159, 159, 159, .05);
  }

  .promo-selector-card.dtac {
    border-color:rgba(168, 168, 168, .25);
    background:
      radial-gradient(120% 150% at 100% 0%, rgba(173, 173, 173, .26), transparent 42%),
      radial-gradient(130% 140% at 0% 100%, rgba(85, 85, 85, .20), transparent 58%),
      linear-gradient(180deg, rgba(29, 29, 29, .94), rgba(12, 12, 12, .98));
    box-shadow:
      inset 0 1px 0 rgba(223, 223, 223, .08),
      0 18px 40px rgba(39, 39, 39, .24),
      0 0 0 1px rgba(168, 168, 168, .05);
  }

  .promo-selector-card:hover,
  .promo-selector-card:focus-visible {
    transform:translateY(-3px) scale(1.01);
    filter:brightness(1.06);
    border-color:rgba(221, 221, 221, .34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .10),
      0 24px 48px rgba(0, 0, 0, .18),
      0 0 0 1px rgba(201, 201, 201, .08);
    outline:none;
  }

  .promo-selector-top,
  .promo-selector-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .promo-selector-status {
    padding:6px 10px;
    border-radius:999px;
    border:1px solid rgba(255, 255, 255, .09);
    background:rgba(255, 255, 255, .08);
    color:rgba(250, 250, 250, .94);
    font-size:6.4px;
    font-weight:780;
    letter-spacing:.16em;
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .promo-selector-copy {
    display:grid;
    gap:5px;
  }

  .promo-selector-copy strong {
    color:rgba(252, 252, 252, .99);
    font-size:18px;
    line-height:1;
    letter-spacing:.01em;
    text-shadow:0 1px 0 rgba(0, 0, 0, .18);
  }

  .promo-selector-copy span {
    color:rgba(230, 230, 230, .92);
    font-size:7.6px;
    font-weight:780;
    letter-spacing:.16em;
  }

  .promo-selector-copy p {
    margin:5px 0 0;
    color:rgba(215, 215, 215, .84);
    font-size:7.15px;
    line-height:1.62;
    max-width:92%;
  }

  .promo-selector-footer {
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid rgba(255, 255, 255, .10);
    color:rgba(238, 238, 238, .96);
    font-size:7px;
    font-weight:780;
    letter-spacing:.16em;
  }

  .promo-selector-footer svg {
    width:16px;
    height:16px;
    opacity:.9;
    transition:transform .2s ease, opacity .2s ease;
  }

  .promo-selector-card:hover .promo-selector-footer svg,
  .promo-selector-card:focus-visible .promo-selector-footer svg {
    transform:translateX(2px);
    opacity:1;
  }

  .promo-count-pill {
    background:linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .035));
    border:1px solid rgba(255, 255, 255, .08);
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, .06);
    color:rgba(243, 243, 243, .9);
  }

  .promo-empty-card {
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:14px;
    padding:18px;
    border-radius:22px;
    border:1px solid rgba(255, 255, 255, .08);
    background:linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .022));
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, .04);
    animation:promoFloatIn .3s cubic-bezier(.2,.8,.2,1) both;
  }

  .promo-empty-card h3 {
    margin:0;
    font-size:13px;
  }

  .promo-empty-card p {
    margin:5px 0 0;
    color:rgba(195, 195, 195, .78);
    font-size:7.4px;
    line-height:1.55;
  }

  .promo-empty-status {
    padding:7px 10px;
    border-radius:999px;
    border:1px solid rgba(255, 255, 255, .08);
    background:rgba(255, 255, 255, .04);
    color:rgba(236, 236, 236, .84);
    font-size:6.8px;
    font-weight:780;
    letter-spacing:.14em;
  }

  .promo-back-button {
    appearance:none;
    align-self:start;
    display:inline-flex;
    align-items:center;
    gap:9px;
    width:max-content;
    max-width:100%;
    padding:11px 14px;
    border-radius:16px;
    border:1px solid rgba(255, 255, 255, .08);
    background:linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .024));
    color:rgba(242, 242, 242, .94);
    font-size:7.4px;
    font-weight:800;
    letter-spacing:.16em;
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .12);
    cursor:pointer;
    transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  }

  .promo-back-button svg {
    width:14px;
    height:14px;
    transform:rotate(180deg);
    opacity:.9;
    flex:0 0 auto;
  }

  .promo-back-button:hover,
  .promo-back-button:focus-visible {
    transform:translateY(-1px);
    border-color:rgba(182, 182, 182, .24);
    background:linear-gradient(180deg, rgba(138, 138, 138, .10), rgba(255, 255, 255, .03));
    color:rgba(248, 248, 248, .98);
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, .075), 0 14px 28px rgba(37, 37, 37, .16);
    outline:none;
  }

  @keyframes promoCardBreath {
    0%, 100% { transform:translateY(0) scale(1); }
    50% { transform:translateY(-1px) scale(1.004); }
  }

  @keyframes promoSheen {
    0% { transform:translateX(-140%); }
    100% { transform:translateX(140%); }
  }

  @media(max-width:760px){
    .promo-selector-head{padding:12px 6px 0}
    .promo-selector-grid{grid-template-columns:1fr;gap:12px}
    .promo-selector-card{min-height:165px;padding:16px;border-radius:22px;box-shadow:inset 0 1px 0 rgba(255, 255, 255, .08),0 14px 26px rgba(0, 0, 0, .16)}
    .promo-selector-copy strong{font-size:19px}
    .promo-selector-copy p{max-width:100%;font-size:7.2px}
    .promo-empty-card{grid-template-columns:auto 1fr;padding:15px}
    .promo-empty-status{grid-column:1/-1;width:max-content}
  }

  .promo-plan-list {
    display:grid;
    gap:14px;
  }

  .promo-plan-item {
    position:relative;
    overflow:hidden;
    padding:16px;
    border-radius:22px;
    border:1px solid rgba(207, 207, 207, .16);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(200, 200, 200, .10), transparent 46%),
      radial-gradient(120% 120% at 0% 100%, rgba(151, 151, 151, .07), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .12);
    animation: promoFloatIn .42s ease both;
    animation-delay: calc(var(--promo-index, 0) * .05s);
  }

  .promo-plan-item::before {
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    background:linear-gradient(180deg, rgba(231, 231, 231, .98), rgba(176, 176, 176, .56));
    border-radius:999px;
  }

  .promo-plan-top {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
  }

  .promo-plan-title-wrap {
    display:grid;
    gap:6px;
  }

  .promo-plan-kicker {
    color:#e0e0e0;
    font-size:7px;
    font-weight:800;
    letter-spacing:.22em;
  }

  .promo-plan-name {
    color:rgba(249, 249, 249, .98);
    font-size:12px;
    font-weight:820;
    letter-spacing:.05em;
    line-height:1.08;
  }

  .promo-plan-price {
    flex:0 0 auto;
    padding:7px 11px;
    border-radius:999px;
    border:1px solid rgba(209, 209, 209, .22);
    background:linear-gradient(180deg, rgba(208, 208, 208, .13), rgba(141, 141, 141, .08));
    color:#f4f4f4;
    font-size:7px;
    font-weight:850;
    letter-spacing:.15em;
    white-space:nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  .promo-plan-variants {
    display:grid;
    gap:10px;
  }

  .promo-variant-row {
    display:grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px 13px;
    border-radius:18px;
    border:1px solid rgba(255, 255, 255, .06);
    background:linear-gradient(180deg, rgba(13, 13, 13, .42), rgba(15, 15, 15, .28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
  }

  .promo-variant-row:hover {
    transform: translateY(-1px);
    border-color: rgba(208, 208, 208, .18);
    background:linear-gradient(180deg, rgba(17, 17, 17, .46), rgba(18, 18, 18, .34));
  }

  .promo-variant-meta {
    display:grid;
    gap:5px;
    min-width:0;
  }

  .promo-variant-label {
    color:rgba(208, 208, 208, .82);
    font-size:7px;
    font-weight:800;
    letter-spacing:.22em;
  }

  .promo-variant-code {
    color:rgba(251, 251, 251, .98);
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:none;
    word-break:break-all;
    line-height:1.22;
  }

  .promo-variant-caption {
    color:rgba(162, 162, 162, .74);
    font-size:6.5px;
    font-weight:700;
    letter-spacing:.16em;
  }

  .promo-variant-side {
    display:grid;
    justify-items:end;
    gap:8px;
    flex:0 0 auto;
  }

  .promo-copy-button,
  .promo-copy-all {
    appearance:none;
    border:1px solid rgba(208, 208, 208, .18);
    background:rgba(208, 208, 208, .09);
    color:#fafafa;
    border-radius:13px;
    padding:9px 12px;
    min-width:78px;
    font-size:7px;
    font-weight:850;
    letter-spacing:.16em;
    cursor:pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    white-space:nowrap;
  }

  .promo-copy-button:hover,
  .promo-copy-button:focus-visible,
  .promo-copy-all:hover,
  .promo-copy-all:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(231, 231, 231, .28);
    background: rgba(208, 208, 208, .14);
    box-shadow: 0 10px 20px rgba(143, 143, 143, .12), inset 0 1px 0 rgba(255, 255, 255, .05);
    outline:none;
  }

  .promo-web-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px 13px;
    border-radius:18px;
    border:1px solid rgba(168, 168, 168, .14);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(145, 145, 145, .10), transparent 48%),
      linear-gradient(180deg, rgba(15, 15, 15, .48), rgba(14, 14, 14, .30));
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, .025);
  }

  .promo-web-meta {
    min-width:0;
    display:grid;
    gap:5px;
  }

  .promo-web-label {
    color:rgba(198, 198, 198, .92);
    font-size:7px;
    font-weight:820;
    letter-spacing:.18em;
  }

  .thai-thonburi {
    font-family: var(--font-thai-ui) !important;
    font-size: 8.4px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.55 !important;
    text-transform: none !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }

  .promo-web-url {
    color:rgba(242, 242, 242, .96);
    font-size:8px;
    font-weight:740;
    text-transform:none;
    word-break:break-all;
    line-height:1.45;
  }

  .promo-web-actions {
    display:flex;
    gap:8px;
    align-items:center;
  }

  .promo-web-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:88px;
    padding:9px 12px;
    border-radius:13px;
    border:1px solid rgba(167, 167, 167, .20);
    background:rgba(142, 142, 142, .10);
    color:#f0f0f0;
    font-size:7px;
    font-weight:850;
    letter-spacing:.14em;
    text-decoration:none;
    transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
  }

  .promo-web-link:hover,
  .promo-web-link:focus-visible {
    transform:translateY(-1px);
    border-color:rgba(182, 182, 182, .34);
    background:rgba(142, 142, 142, .16);
    box-shadow:0 10px 22px rgba(104, 104, 104, .14);
    outline:none;
  }

  .promo-plan-footer {
    display:grid;
    gap:12px;
    margin-top:12px;
  }

  .promo-plan-note {
    color:rgba(184, 184, 184, .78);
    font-size:7px;
    line-height:1.6;
    letter-spacing:.06em;
  }

  .promo-copy-all-row {
    display:flex;
    justify-content:flex-end;
    margin-top:2px;
  }


  .promo-detail-board.ais-theme {
    border-color: rgba(211, 211, 211, .18);
    background:
      radial-gradient(120% 135% at 0% 0%, rgba(182, 182, 182, .10), transparent 44%),
      radial-gradient(125% 150% at 100% 100%, rgba(105, 105, 105, .10), transparent 56%),
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .024));
  }

  .promo-detail-board.true-theme {
    border-color: rgba(157, 157, 157, .22);
    background:
      radial-gradient(120% 135% at 0% 0%, rgba(146, 146, 146, .13), transparent 44%),
      radial-gradient(125% 150% at 100% 100%, rgba(65, 65, 65, .13), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .024));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 34px rgba(41, 41, 41, .16);
  }

  .promo-detail-board.dtac-theme {
    border-color: rgba(168, 168, 168, .20);
    background:
      radial-gradient(120% 135% at 0% 0%, rgba(149, 149, 149, .13), transparent 44%),
      radial-gradient(125% 150% at 100% 100%, rgba(77, 77, 77, .14), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .024));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 34px rgba(46, 46, 46, .17);
  }

  .promo-detail-board.ais-theme .promo-board-eyebrow { color: #d5d5d5; }
  .promo-detail-board.true-theme .promo-board-eyebrow { color: #b4b4b4; }
  .promo-detail-board.dtac-theme .promo-board-eyebrow { color: #c3c3c3; }

  .promo-detail-board.ais-theme .promo-count-pill {
    border-color: rgba(211, 211, 211, .18);
    color: #f1f1f1;
    background: rgba(158, 158, 158, .10);
  }

  .promo-detail-board.true-theme .promo-count-pill {
    border-color: rgba(158, 158, 158, .22);
    color: #e0e0e0;
    background: rgba(146, 146, 146, .11);
  }

  .promo-detail-board.dtac-theme .promo-count-pill {
    border-color: rgba(168, 168, 168, .20);
    color: #e4e4e4;
    background: rgba(143, 143, 143, .11);
  }

  .promo-plan-item.true-tone {
    border-color: rgba(159, 159, 159, .18);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(153, 153, 153, .13), transparent 46%),
      radial-gradient(120% 120% at 0% 100%, rgba(70, 70, 70, .11), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(22, 22, 22, .14);
  }
  .promo-plan-item.true-tone::before {
    background: linear-gradient(180deg, rgba(170, 170, 170, .98), rgba(126, 126, 126, .58));
  }
  .promo-plan-item.true-tone .promo-plan-kicker { color: #c6c6c6; }
  .promo-plan-item.true-tone .promo-plan-price {
    border-color: rgba(159, 159, 159, .22);
    background: linear-gradient(180deg, rgba(153, 153, 153, .13), rgba(82, 82, 82, .10));
    color: #e9e9e9;
  }
  .promo-plan-item.true-tone .promo-variant-row:hover {
    border-color: rgba(159, 159, 159, .20);
    background: linear-gradient(180deg, rgba(15, 15, 15, .50), rgba(15, 15, 15, .38));
  }
  .promo-plan-item.true-tone .promo-copy-button,
  .promo-plan-item.true-tone .promo-copy-all {
    border-color: rgba(159, 159, 159, .22);
    background: rgba(146, 146, 146, .10);
    color: #f3f3f3;
  }
  .promo-plan-item.true-tone .promo-copy-button:hover,
  .promo-plan-item.true-tone .promo-copy-button:focus-visible,
  .promo-plan-item.true-tone .promo-copy-all:hover,
  .promo-plan-item.true-tone .promo-copy-all:focus-visible {
    border-color: rgba(173, 173, 173, .30);
    background: rgba(146, 146, 146, .16);
    box-shadow: 0 10px 20px rgba(63, 63, 63, .16), inset 0 1px 0 rgba(255, 255, 255, .05);
  }
  .promo-plan-item.true-tone .promo-web-row {
    border-color: rgba(159, 159, 159, .16);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(153, 153, 153, .10), transparent 48%),
      linear-gradient(180deg, rgba(16, 16, 16, .50), rgba(13, 13, 13, .34));
  }
  .promo-plan-item.true-tone .promo-web-label { color: #d0d0d0; }
  .promo-plan-item.true-tone .promo-web-link {
    border-color: rgba(159, 159, 159, .20);
    background: rgba(146, 146, 146, .12);
    color: #f3f3f3;
  }

  .promo-plan-item.dtac-tone {
    border-color: rgba(168, 168, 168, .18);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(161, 161, 161, .13), transparent 46%),
      radial-gradient(120% 120% at 0% 100%, rgba(83, 83, 83, .12), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(23, 23, 23, .14);
  }
  .promo-plan-item.dtac-tone::before {
    background: linear-gradient(180deg, rgba(187, 187, 187, .98), rgba(133, 133, 133, .58));
  }
  .promo-plan-item.dtac-tone .promo-plan-kicker { color: #d1d1d1; }
  .promo-plan-item.dtac-tone .promo-plan-price {
    border-color: rgba(168, 168, 168, .22);
    background: linear-gradient(180deg, rgba(161, 161, 161, .13), rgba(95, 95, 95, .10));
    color: #f0f0f0;
  }
  .promo-plan-item.dtac-tone .promo-variant-row:hover {
    border-color: rgba(168, 168, 168, .22);
    background: linear-gradient(180deg, rgba(16, 16, 16, .50), rgba(16, 16, 16, .36));
  }
  .promo-plan-item.dtac-tone .promo-copy-button,
  .promo-plan-item.dtac-tone .promo-copy-all {
    border-color: rgba(168, 168, 168, .22);
    background: rgba(143, 143, 143, .11);
    color: #f5f5f5;
  }
  .promo-plan-item.dtac-tone .promo-copy-button:hover,
  .promo-plan-item.dtac-tone .promo-copy-button:focus-visible,
  .promo-plan-item.dtac-tone .promo-copy-all:hover,
  .promo-plan-item.dtac-tone .promo-copy-all:focus-visible {
    border-color: rgba(182, 182, 182, .32);
    background: rgba(143, 143, 143, .17);
    box-shadow: 0 10px 20px rgba(79, 79, 79, .16), inset 0 1px 0 rgba(255, 255, 255, .05);
  }
  .promo-plan-item.dtac-tone .promo-web-row {
    border-color: rgba(168, 168, 168, .18);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(161, 161, 161, .10), transparent 48%),
      linear-gradient(180deg, rgba(15, 15, 15, .48), rgba(14, 14, 14, .30));
  }
  .promo-plan-item.dtac-tone .promo-web-label { color: #d8d8d8; }
  .promo-plan-item.dtac-tone .promo-web-link {
    border-color: rgba(167, 167, 167, .20);
    background: rgba(142, 142, 142, .12);
    color: #f0f0f0;
  }

  .promo-detail-board.true-theme .promo-detail-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(171, 171, 171, .82), rgba(99, 99, 99, .42));
  }
  .promo-detail-board.dtac-theme .promo-detail-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(186, 186, 186, .82), rgba(127, 127, 127, .42));
  }

  @keyframes promoFloatIn {
    from { opacity:0; transform: translateY(12px) scale(.985); }
    to { opacity:1; transform: translateY(0) scale(1); }
  }

  @media (max-width: 760px) {
    .promo-board { padding: 12px; border-radius: 20px; }
    .promo-board h3 { font-size: 12px; }
    .promo-carrier-grid { grid-template-columns: 1fr; gap: 10px; }
    .promo-carrier-card { padding: 13px 12px; border-radius: 18px; }
    .carrier-badge { width:40px; height:40px; border-radius:13px; }
    .promo-plan-item { padding: 13px; border-radius: 20px; }
    .promo-plan-top { gap: 10px; }
    .promo-plan-name { font-size: 10.5px; }
    .promo-variant-row { grid-template-columns: 1fr; gap: 10px; padding: 11px 11px; }
    .promo-variant-side { width:100%; grid-template-columns: 1fr auto; justify-items:stretch; align-items:center; }
    .promo-variant-price { justify-self:start; }
    .promo-copy-button { min-width: 72px; justify-self:end; }
    .promo-web-row { grid-template-columns:1fr; gap:10px; padding:11px; }
    .promo-web-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }
    .promo-web-link, .promo-web-actions .promo-copy-button { width:100%; min-width:0; }
    .promo-detail-scroll { max-height: 62vh; padding-right:2px; margin-right:-2px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .more-expand,
    .promo-carrier-card,
    .more-row.more-expand-trigger[aria-expanded="true"] > span:last-child {
      transition: none;
      animation: none;
    }
  }


  /* =========================================================
     PREVIEW R5 — SIDEBAR ICONS + LIVE SERVER RUNTIME
     Preview-only. No production/source mutation.
     ========================================================= */

  /* Requested Services / Audit / Backups sidebar glyphs */
  .nav-item .nav-glyph {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 18px;
  }

  .nav-item .nav-glyph svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.72;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-item .nav-glyph-premium {
    position: relative;
    color: rgba(218, 218, 218, .72);
  }

  .nav-item .nav-glyph-premium::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    right: -2px;
    bottom: -2px;
    border: 1.5px solid rgba(18, 18, 18, .9);
    border-radius: 50%;
    background: rgba(171, 171, 171, .82);
    box-shadow: 0 0 8px rgba(150, 150, 150, .35);
    opacity: .72;
  }

  .nav-item:hover .nav-glyph-premium,
  .nav-item.active .nav-glyph-premium {
    color: #c5c5c5;
  }

  .nav-item.active .nav-glyph-premium::after {
    background: #e7e7e7;
    box-shadow: 0 0 10px rgba(225, 225, 225, .42);
    opacity: 1;
  }

  /* Runtime host area */
  #hostCard {
    overflow: hidden;
  }

  #hostCard .user-head {
    position: relative;
    z-index: 2;
  }

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

  .runtime-stat {
    position: relative;
    min-width: 0;
    min-height: 96px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(181, 181, 181, .13);
    border-radius: 16px;
    background:
      radial-gradient(95% 130% at 6% 0%, rgba(143, 143, 143, .06), transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .028),
      0 8px 24px rgba(0, 0, 0, .08);
  }

  .runtime-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, .028) 38%, transparent 63%);
    transform: translateX(-70%);
    animation: runtimeSheen 6.8s ease-in-out infinite;
  }

  .runtime-stat:nth-child(2)::before { animation-delay: -1.3s; }
  .runtime-stat:nth-child(3)::before { animation-delay: -2.6s; }
  .runtime-stat:nth-child(4)::before { animation-delay: -3.9s; }

  .runtime-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(164, 164, 164, .18);
    border-radius: 13px;
    color: #bababa;
    background:
      radial-gradient(circle at 34% 25%, rgba(196, 196, 196, .17), transparent 43%),
      linear-gradient(180deg, rgba(134, 134, 134, .13), rgba(134, 134, 134, .065));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 7px 18px rgba(81, 81, 81, .08);
  }

  .runtime-icon svg {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .runtime-pulse {
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(169, 169, 169, .18);
    border-radius: 9px;
    animation: runtimePulse 2.4s ease-out infinite;
  }

  .runtime-icon-cpu svg {
    animation: runtimeCpuBreathe 1.75s ease-in-out infinite;
  }

  .runtime-icon-ram {
    color: #cdcdcd;
  }

  .runtime-icon-ram svg {
    animation: runtimeRamGlow 2.1s ease-in-out infinite;
  }

  .runtime-icon-ssd {
    color: #c3c3c3;
  }

  .runtime-icon-ssd .runtime-pulse {
    animation-duration: 3s;
  }

  .runtime-icon-time {
    color: #cfcfcf;
  }

  .runtime-clock-hand {
    position: absolute;
    z-index: 3;
    width: 1.5px;
    height: 7px;
    left: 50%;
    top: 50%;
    border-radius: 999px;
    background: #ebebeb;
    box-shadow: 0 0 6px rgba(197, 197, 197, .55);
    transform-origin: 50% 0;
    animation: runtimeClock 6s linear infinite;
  }

  .runtime-copy {
    min-width: 0;
    position: relative;
    z-index: 2;
  }

  .runtime-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    color: rgba(169, 169, 169, .72);
    font-size: 7px;
    font-weight: 760;
    letter-spacing: .105em;
  }

  .runtime-copy > strong {
    display: block;
    margin: 0 0 8px;
    color: rgba(248, 248, 248, .95);
    font-size: 15px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
  }

  .runtime-live,
  .runtime-health {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(213, 213, 213, .78);
    font-size: 6.1px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .runtime-live i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d7d7d7;
    box-shadow: 0 0 7px rgba(225, 225, 225, .48);
    animation: runtimeLiveDot 1.2s ease-in-out infinite;
  }

  .runtime-meter {
    position: relative;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
  }

  .runtime-meter > span {
    --meter: var(--level, 30%);
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--meter);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(138, 138, 138, .58), rgba(190, 190, 190, .9));
    box-shadow: 0 0 9px rgba(155, 155, 155, .24);
    transition: width .65s cubic-bezier(.2,.8,.2,1);
  }

  .runtime-ram .runtime-meter > span {
    background: linear-gradient(90deg, rgba(147, 147, 147, .54), rgba(206, 206, 206, .88));
  }

  .runtime-ssd .runtime-meter > span {
    background: linear-gradient(90deg, rgba(139, 139, 139, .50), rgba(181, 181, 181, .86));
  }

  .runtime-wave {
    position: absolute;
    right: 9px;
    bottom: 8px;
    display: flex;
    align-items: end;
    gap: 2px;
    height: 13px;
    opacity: .34;
  }

  .runtime-wave i {
    display: block;
    width: 2px;
    height: 5px;
    border-radius: 999px;
    background: #b3b3b3;
    transform-origin: bottom;
    animation: runtimeBars 1.15s ease-in-out infinite;
  }

  .runtime-wave i:nth-child(2) { animation-delay: -.18s; }
  .runtime-wave i:nth-child(3) { animation-delay: -.36s; }
  .runtime-wave i:nth-child(4) { animation-delay: -.54s; }

  .ram-wave i {
    background: #cccccc;
    animation-duration: 1.45s;
  }

  .runtime-disk-led {
    position: absolute;
    right: 10px;
    bottom: 9px;
    display: flex;
    gap: 3px;
  }

  .runtime-disk-led i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(184, 184, 184, .28);
    animation: runtimeDiskLed 1.8s ease-in-out infinite;
  }

  .runtime-disk-led i:nth-child(2) { animation-delay: -.6s; }
  .runtime-disk-led i:nth-child(3) { animation-delay: -1.2s; }

  .runtime-uptime-line {
    position: relative;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
  }

  .runtime-uptime-line span {
    position: absolute;
    inset: 0;
    width: 34%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(194, 194, 194, .9), transparent);
    animation: runtimeScan 2.8s ease-in-out infinite;
  }

  .runtime-ticks {
    position: absolute;
    right: 10px;
    bottom: 8px;
    display: flex;
    gap: 3px;
  }

  .runtime-ticks i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(199, 199, 199, .55);
    animation: runtimeLiveDot 1.4s ease-in-out infinite;
  }

  .runtime-ticks i:nth-child(2) { animation-delay: -.45s; }
  .runtime-ticks i:nth-child(3) { animation-delay: -.9s; }

  @keyframes runtimeSheen {
    0%, 72%, 100% { transform: translateX(-75%); opacity: 0; }
    82% { opacity: .8; }
    95% { transform: translateX(90%); opacity: 0; }
  }

  @keyframes runtimePulse {
    0% { transform: scale(.78); opacity: .55; }
    70%,100% { transform: scale(1.18); opacity: 0; }
  }

  @keyframes runtimeCpuBreathe {
    0%,100% { transform: scale(.96); opacity: .78; }
    50% { transform: scale(1.04); opacity: 1; }
  }

  @keyframes runtimeRamGlow {
    0%,100% { opacity: .72; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-.5px); }
  }

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

  @keyframes runtimeLiveDot {
    0%,100% { opacity: .35; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1.18); }
  }

  @keyframes runtimeBars {
    0%,100% { transform: scaleY(.45); opacity: .35; }
    50% { transform: scaleY(1); opacity: .95; }
  }

  @keyframes runtimeDiskLed {
    0%,100% { opacity: .22; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.18); }
  }

  @keyframes runtimeScan {
    0% { transform: translateX(-115%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(290%); opacity: 0; }
  }

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

  @media (max-width: 760px) {
    .runtime-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 9px;
    }

    .runtime-stat {
      min-height: 86px;
      grid-template-columns: 37px minmax(0, 1fr);
      gap: 8px;
      padding: 9px;
      border-radius: 14px;
    }

    .runtime-icon {
      width: 37px;
      height: 37px;
      border-radius: 11px;
    }

    .runtime-icon svg {
      width: 18px;
      height: 18px;
    }

    .runtime-copy > strong {
      margin-bottom: 7px;
      font-size: 12.5px;
    }

    .runtime-meta {
      font-size: 6.3px;
      letter-spacing: .075em;
    }

    .runtime-live,
    .runtime-health {
      font-size: 5.6px;
    }

    .runtime-wave,
    .runtime-disk-led,
    .runtime-ticks {
      opacity: .25;
    }
  }

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

  @media (prefers-reduced-motion: reduce) {
    .runtime-stat::before,
    .runtime-pulse,
    .runtime-icon-cpu svg,
    .runtime-icon-ram svg,
    .runtime-clock-hand,
    .runtime-live i,
    .runtime-wave i,
    .runtime-disk-led i,
    .runtime-uptime-line span,
    .runtime-ticks i {
      animation: none !important;
    }

    .runtime-meter > span {
      transition: none;
    }
  }


  /* =========================================================
     PREVIEW R6 — DASHBOARD / HERO / QUICK ACTIONS POLISH
     ========================================================= */

  /* Top bar */
  .app-shell > .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -6px -6px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(165, 165, 165, .12);
    border-radius: 22px;
    background:
      radial-gradient(100% 150% at 10% 0%, rgba(120, 120, 120, .075), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .018));
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 10px 28px rgba(0, 0, 0, .12);
  }

  .topbar-title .eyebrow {
    letter-spacing: .18em;
    color: rgba(165, 165, 165, .86);
  }

  .topbar-title h2 {
    letter-spacing: -.03em;
    color: rgba(248, 248, 248, .96);
  }

  .status-pill {
    position: relative;
    min-height: 40px;
    padding-inline: 14px;
    border: 1px solid rgba(169, 169, 169, .18);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(39, 39, 39, .68), rgba(24, 24, 24, .48));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 6px 18px rgba(0, 0, 0, .10);
  }

  .status-pill span {
    box-shadow: 0 0 14px rgba(225, 225, 225, .45);
    animation: statusGlow 1.8s ease-in-out infinite;
  }

  .glass-button {
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  .glass-button:hover {
    transform: translateY(-1px);
  }

  /* Sidebar premium icons */
  .nav-item .nav-glyph-premium {
    width: 18px;
    height: 18px;
    border-radius: 8px;
  }

  .nav-item .nav-glyph-premium svg {
    width: 17px;
    height: 17px;
  }

  .nav-item .nav-glyph-premium::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 10px;
    background:
      radial-gradient(circle at 35% 25%, rgba(157, 157, 157, .12), transparent 50%);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .nav-item:hover .nav-glyph-premium::before,
  .nav-item.active .nav-glyph-premium::before {
    opacity: 1;
  }

  .nav-item.active .nav-glyph-dashboard,
  .nav-item.active .nav-glyph-users,
  .nav-item.active .nav-glyph-profiles {
    color: #cbcbcb;
  }

  /* Hero redesign */
  .hero-premium {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 20px;
    border-radius: 28px;
    background:
      radial-gradient(95% 140% at 85% 14%, rgba(124, 124, 124, .14), transparent 36%),
      radial-gradient(75% 120% at 0% 100%, rgba(67, 67, 67, .10), transparent 38%),
      linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .02));
  }

  .hero-gridline {
    position: absolute;
    inset: auto 0 0 0;
    height: 52%;
    opacity: .13;
    background-image:
      linear-gradient(rgba(151, 151, 151, .18) 1px, transparent 1px),
      linear-gradient(90deg, rgba(151, 151, 151, .14) 1px, transparent 1px);
    background-size: 100% 18px, 18px 100%;
    mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88));
    pointer-events: none;
  }

  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
    opacity: .55;
  }

  .hero-orb-a {
    width: 180px;
    height: 180px;
    top: -30px;
    right: 140px;
    background: rgba(127, 127, 127, .18);
    animation: heroFloatA 7s ease-in-out infinite;
  }

  .hero-orb-b {
    width: 140px;
    height: 140px;
    right: 40px;
    bottom: 15px;
    background: rgba(112, 112, 112, .12);
    animation: heroFloatB 8s ease-in-out infinite;
  }

  .hero-top-premium {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
  }

  .hero-copy-wrap {
    min-width: 0;
  }

  .hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(172, 172, 172, .14);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .024));
    color: rgba(225, 225, 225, .92);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  .hero-pill i,
  .hero-pill b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e3e3e3;
    box-shadow: 0 0 10px rgba(226, 226, 226, .45);
    animation: statusGlow 1.8s ease-in-out infinite;
  }

  .hero-pill.ghost {
    color: rgba(196, 196, 196, .95);
  }

  .hero-pill.ghost b {
    background: #bababa;
    box-shadow: 0 0 10px rgba(181, 181, 181, .34);
    animation-duration: 2.2s;
  }

  .hero-premium h3 {
    margin: 0 0 12px;
    max-width: 12ch;
    font-size: clamp(32px, 4vw, 48px);
    line-height: .96;
    letter-spacing: -.05em;
    color: rgba(250, 250, 250, .97);
    text-wrap: balance;
  }

  .hero-copy {
    max-width: 760px;
    margin: 0 0 14px;
    color: rgba(207, 207, 207, .80);
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-live-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-live-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(217, 217, 217, .76);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
  }

  .hero-live-strip b {
    width: 28px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    position: relative;
  }

  .hero-live-strip b::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(155, 155, 155, .75), rgba(206, 206, 206, .95));
    animation: heroScan 2.6s ease-in-out infinite;
  }

  .hero-side {
    display: grid;
    gap: 12px;
    align-items: start;
    justify-items: end;
  }

  .hero-cta {
    min-width: 126px;
    min-height: 44px;
    border-radius: 18px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .12),
      0 12px 26px rgba(95, 95, 95, .26);
  }

  .hero-mini-panel {
    width: 220px;
    padding: 12px;
    border: 1px solid rgba(149, 149, 149, .10);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  .hero-mini-head,
  .hero-mini-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(172, 172, 172, .68);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  .hero-mini-good {
    color: rgba(215, 215, 215, .84);
  }

  .hero-mini-graph {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 40px;
    margin: 10px 0;
  }

  .hero-mini-graph i {
    display: block;
    width: 8px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(183, 183, 183, .95), rgba(127, 127, 127, .48));
    box-shadow: 0 0 12px rgba(150, 150, 150, .12);
    animation: heroGraph 1.8s ease-in-out infinite;
    transform-origin: bottom;
  }

  .hero-mini-graph i:nth-child(2) { animation-delay: -.15s; height: 22px; }
  .hero-mini-graph i:nth-child(3) { animation-delay: -.30s; height: 27px; }
  .hero-mini-graph i:nth-child(4) { animation-delay: -.45s; height: 19px; }
  .hero-mini-graph i:nth-child(5) { animation-delay: -.60s; height: 31px; }
  .hero-mini-graph i:nth-child(6) { animation-delay: -.75s; height: 24px; }
  .hero-mini-graph i:nth-child(7) { animation-delay: -.90s; height: 34px; }
  .hero-mini-graph i:nth-child(8) { animation-delay: -1.05s; height: 20px; }

  .metric-grid-premium .metric {
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  }

  /* Quick action cards redesign */
  .quick-grid-premium {
    gap: 12px;
  }

  .quick-card-premium {
    position: relative;
    min-height: 106px;
    padding: 16px 16px 14px;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    border-radius: 24px;
    background:
      radial-gradient(90% 140% at 8% 0%, rgba(125, 125, 125, .06), transparent 45%),
      linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .016));
  }

  .quick-card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 14%, rgba(255, 255, 255, .028) 42%, transparent 65%);
    transform: translateX(-65%);
    animation: quickSweep 7s ease-in-out infinite;
    pointer-events: none;
  }

  .quick-card-premium:nth-child(2)::before { animation-delay: -1.7s; }
  .quick-card-premium:nth-child(3)::before { animation-delay: -3.2s; }
  .quick-card-premium:nth-child(4)::before { animation-delay: -4.8s; }

  .quick-card-premium .quick-icon {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 0 14px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid rgba(153, 153, 153, .18);
    color: #b7b7b7;
    background:
      radial-gradient(circle at 35% 25%, rgba(192, 192, 192, .15), transparent 45%),
      linear-gradient(180deg, rgba(134, 134, 134, .13), rgba(134, 134, 134, .06));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 8px 20px rgba(83, 83, 83, .08);
  }

  .quick-card-premium .quick-icon svg {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.72;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .quick-icon-live .quick-ring {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(169, 169, 169, .18);
    border-radius: 10px;
    animation: runtimePulse 2.4s ease-out infinite;
  }

  .quick-icon-live .quick-dot {
    position: absolute;
    right: -1px;
    top: -1px;
    width: 8px;
    height: 8px;
    border: 1.5px solid rgba(17, 17, 17, .88);
    border-radius: 50%;
    background: #d9d9d9;
    box-shadow: 0 0 10px rgba(227, 227, 227, .42);
    animation: statusGlow 1.5s ease-in-out infinite;
  }

  .quick-card-premium .quick-bars {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: flex;
    align-items: end;
    gap: 3px;
    height: 14px;
    opacity: .34;
  }

  .quick-card-premium .quick-bars i {
    display: block;
    width: 2px;
    height: 6px;
    border-radius: 999px;
    background: rgba(191, 191, 191, .95);
    animation: runtimeBars 1.2s ease-in-out infinite;
  }

  .quick-card-premium .quick-bars i:nth-child(2) { animation-delay: -.16s; }
  .quick-card-premium .quick-bars i:nth-child(3) { animation-delay: -.32s; }
  .quick-card-premium .quick-bars i:nth-child(4) { animation-delay: -.48s; }

  .quick-card-premium strong {
    margin: 0 0 6px;
    color: rgba(248, 248, 248, .96);
    font-size: 14px;
    font-weight: 720;
    letter-spacing: -.02em;
  }

  .quick-card-premium span {
    color: rgba(176, 176, 176, .74);
    font-size: 11px;
    line-height: 1.35;
    max-width: 24ch;
  }

  .quick-card-premium:hover {
    transform: translateY(-1px);
    border-color: rgba(159, 159, 159, .24);
  }

  /* Extra keyframes */
  @keyframes heroFloatA {
    0%,100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(10px) translateX(-6px); }
  }

  @keyframes heroFloatB {
    0%,100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-8px) translateX(5px); }
  }

  @keyframes heroScan {
    0% { transform: translateX(-120%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(220%); opacity: 0; }
  }

  @keyframes heroGraph {
    0%,100% { transform: scaleY(.72); opacity: .45; }
    50% { transform: scaleY(1.06); opacity: 1; }
  }

  @keyframes quickSweep {
    0%,72%,100% { transform: translateX(-72%); opacity: 0; }
    82% { opacity: .8; }
    95% { transform: translateX(86%); opacity: 0; }
  }

  @keyframes statusGlow {
    0%,100% { opacity: .58; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.08); }
  }

  /* mobile/tablet adjustments */
  @media (max-width: 1100px) {
    .hero-top-premium {
      grid-template-columns: 1fr;
    }

    .hero-side {
      justify-items: start;
    }

    .hero-mini-panel {
      width: 100%;
      max-width: 320px;
    }
  }

  @media (max-width: 760px) {
    .app-shell > .topbar {
      margin: -2px 0 14px;
      padding: 10px 12px;
      border-radius: 18px;
      backdrop-filter: none;
    }

    .hero-premium {
      padding: 18px 16px 16px;
      border-radius: 24px;
    }

    .hero-premium h3 {
      max-width: 100%;
      font-size: 32px;
    }

    .hero-copy {
      font-size: 12px;
    }

    .hero-live-strip span {
      font-size: 10px;
    }

    .hero-mini-panel {
      max-width: none;
    }

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

    .quick-card-premium {
      min-height: 112px;
      padding: 14px 12px;
      border-radius: 20px;
    }

    .quick-card-premium strong {
      font-size: 13px;
    }

    .quick-card-premium span {
      font-size: 10px;
    }
  }

  @media (max-width: 420px) {
    .quick-grid-premium {
      grid-template-columns: 1fr 1fr;
    }

    .hero-premium h3 {
      font-size: 28px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .status-pill span,
    .hero-orb-a,
    .hero-orb-b,
    .hero-pill i,
    .hero-pill b,
    .hero-live-strip b::after,
    .hero-mini-graph i,
    .quick-card-premium::before,
    .quick-icon-live .quick-ring,
    .quick-icon-live .quick-dot,
    .quick-card-premium .quick-bars i {
      animation: none !important;
    }
  }


  /* =========================================================
     PREVIEW R8 — TOP BAR ACTUAL REDESIGN
     ========================================================= */

  .topbar.topbar-premium-header {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin: 0 0 16px;
    padding: 16px 16px 15px;
    overflow: hidden;
    border: 1px solid rgba(168, 168, 168, .13);
    border-radius: 26px;
    background:
      radial-gradient(110% 140% at 8% -14%, rgba(135, 135, 135, .12), transparent 38%),
      radial-gradient(90% 120% at 100% 100%, rgba(70, 70, 70, .08), transparent 36%),
      linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .016));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 14px 34px rgba(0, 0, 0, .13);
  }

  .topbar.topbar-premium-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(115deg, rgba(255, 255, 255, .03), transparent 28%, transparent 72%, rgba(144, 144, 144, .035));
    opacity: 1;
  }

  .topbar.topbar-premium-header::after {
    content: "";
    position: absolute;
    inset: auto 16px 0 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(175, 175, 175, .16), transparent);
    pointer-events: none;
  }

  .topbar-main,
  .topbar-actions {
    position: relative;
    z-index: 1;
  }

  .topbar-main {
    min-width: 0;
  }

  .topbar-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .eyebrow.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(157, 157, 157, .14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
    color: rgba(195, 195, 195, .94);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  .eyebrow.eyebrow-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bebebe;
    box-shadow: 0 0 12px rgba(195, 195, 195, .38);
    flex: 0 0 auto;
  }

  .topbar-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(174, 174, 174, .14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(39, 39, 39, .58), rgba(22, 22, 22, .42));
    color: rgba(225, 225, 225, .92);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
  }

  .topbar-live-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d5d5d5;
    box-shadow: 0 0 10px rgba(225, 225, 225, .42);
    animation: statusGlow 1.6s ease-in-out infinite;
  }

  .topbar-copy {
    min-width: 0;
  }

  .topbar-copy h2 {
    margin: 0 0 6px;
    color: rgba(249, 249, 249, .97);
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: .98;
    letter-spacing: -.045em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .04);
  }

  .topbar-subtitle {
    margin: 0;
    max-width: 62ch;
    color: rgba(191, 191, 191, .78);
    font-size: 12.5px;
    line-height: 1.5;
  }

  .topbar-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    min-width: 104px;
    min-height: 36px;
    justify-content: center;
    border: 1px solid rgba(169, 169, 169, .16);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(39, 39, 39, .64), rgba(23, 23, 23, .42));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 8px 18px rgba(0, 0, 0, .10);
    color: rgba(236, 236, 236, .92);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
  }

  .topbar.topbar-premium-header #apiStatus span {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 12px rgba(226, 226, 226, .44);
    animation: statusGlow 1.6s ease-in-out infinite;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 18px;
    background:
      radial-gradient(110% 125% at 28% 18%, rgba(166, 166, 166, .10), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .045),
      0 10px 24px rgba(0, 0, 0, .13);
  }

  .topbar.topbar-premium-header #refreshButton.glass-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-top: 1px solid rgba(255, 255, 255, .04);
    border-radius: 17px;
    pointer-events: none;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button svg {
    width: 22px;
    height: 22px;
  }

  /* Mobile refinement so the change is clearly visible */
  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      padding: 14px 14px 14px;
      border-radius: 24px;
      margin: 0 0 14px;
    }

    .topbar-kicker {
      margin-bottom: 10px;
    }

    .eyebrow.eyebrow-chip {
      padding: 7px 10px;
      font-size: 9px;
      letter-spacing: .18em;
    }

    .topbar-live-chip {
      min-height: 28px;
      padding: 0 10px;
      font-size: 8px;
      letter-spacing: .10em;
    }

    .topbar-copy h2 {
      font-size: clamp(24px, 8vw, 34px);
      margin-bottom: 7px;
    }

    .topbar-subtitle {
      font-size: 11px;
      line-height: 1.45;
      max-width: 30ch;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-width: auto;
      min-height: 32px;
      padding-inline: 10px;
      font-size: 8.5px;
      letter-spacing: .10em;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 54px;
      height: 54px;
      min-width: 54px;
      min-height: 54px;
      border-radius: 20px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 19px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 24px;
      height: 24px;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      gap: 10px;
      padding: 13px 12px 13px;
    }

    .topbar-copy h2 {
      font-size: 22px;
    }

    .topbar-subtitle {
      font-size: 10.5px;
      max-width: 26ch;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 50px;
      height: 50px;
      min-width: 50px;
      min-height: 50px;
      border-radius: 18px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 22px;
      height: 22px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .topbar-live-chip i,
    .topbar.topbar-premium-header #apiStatus span {
      animation: none !important;
    }
  }


  /* =========================================================
     PREVIEW R9 — TOP BAR PROPORTION TUNING
     Compact, more balanced mobile composition
     ========================================================= */

  .topbar.topbar-premium-header {
    gap: 12px;
    padding: 14px 14px 14px;
    border-radius: 24px;
  }

  .topbar-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .topbar-kicker {
    gap: 7px;
    margin-bottom: 9px;
  }

  .eyebrow.eyebrow-chip {
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: .16em;
  }

  .eyebrow.eyebrow-chip::before {
    width: 5px;
    height: 5px;
  }

  .topbar-live-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 8px;
    letter-spacing: .09em;
  }

  .topbar-live-chip i {
    width: 5px;
    height: 5px;
  }

  .topbar-copy h2 {
    margin: 0 0 3px;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  .topbar-subtitle {
    max-width: 54ch;
    font-size: 11.5px;
    line-height: 1.42;
    color: rgba(187, 187, 187, .74);
  }

  .topbar.topbar-premium-header #apiStatus {
    min-width: 98px;
    min-height: 34px;
    font-size: 9px;
    letter-spacing: .09em;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 17px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button::after {
    border-radius: 16px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button svg {
    width: 21px;
    height: 21px;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      padding: 12px 12px 13px;
      border-radius: 22px;
      margin: 0 0 13px;
    }

    .topbar-kicker {
      gap: 6px;
      margin-bottom: 8px;
    }

    .eyebrow.eyebrow-chip {
      padding: 6px 9px;
      font-size: 8.5px;
      letter-spacing: .15em;
    }

    .topbar-live-chip {
      min-height: 26px;
      padding: 0 9px;
      font-size: 7.5px;
      letter-spacing: .08em;
    }

    .topbar-copy h2 {
      font-size: clamp(20px, 7vw, 30px);
      margin-bottom: 0;
    }

    .topbar-subtitle {
      display: none;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-height: 30px;
      padding-inline: 9px;
      font-size: 8px;
      letter-spacing: .08em;
    }

    .topbar.topbar-premium-header #apiStatus span {
      width: 6px;
      height: 6px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 48px;
      height: 48px;
      min-width: 48px;
      min-height: 48px;
      border-radius: 18px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 17px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 22px;
      height: 22px;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      gap: 9px;
      padding: 11px 11px 12px;
      border-radius: 20px;
    }

    .topbar-kicker {
      gap: 5px;
      margin-bottom: 7px;
    }

    .eyebrow.eyebrow-chip {
      padding: 5px 8px;
      font-size: 8px;
      letter-spacing: .13em;
    }

    .topbar-live-chip {
      min-height: 24px;
      padding: 0 8px;
      font-size: 7px;
      letter-spacing: .07em;
    }

    .topbar-copy h2 {
      font-size: 18px;
      line-height: 1.04;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-height: 28px;
      padding-inline: 8px;
      font-size: 7.5px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      border-radius: 16px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 15px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 20px;
      height: 20px;
    }
  }


  /* =========================================================
     PREVIEW R10 — TOP BAR FINAL SIZE/PADDING + LOGOUT
     ========================================================= */

  .topbar.topbar-premium-header {
    gap: 11px;
    margin: 8px 8px 16px;
    padding: 12px 13px 13px;
    border-radius: 22px;
  }

  .topbar-kicker {
    gap: 6px;
    margin-bottom: 7px;
  }

  .eyebrow.eyebrow-chip {
    padding: 5px 9px;
    font-size: 8.5px;
    letter-spacing: .14em;
  }

  .eyebrow.eyebrow-chip::before {
    width: 5px;
    height: 5px;
  }

  .topbar-live-chip {
    min-height: 25px;
    padding: 0 9px;
    font-size: 7.4px;
    letter-spacing: .075em;
  }

  .topbar-live-chip i {
    width: 5px;
    height: 5px;
  }

  .topbar-copy h2 {
    margin: 0;
    font-size: clamp(22px, 3.3vw, 32px);
    line-height: 1.02;
  }

  .topbar-subtitle {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    min-width: 86px;
    min-height: 30px;
    padding-inline: 9px;
    font-size: 8px;
    letter-spacing: .08em;
  }

  .topbar.topbar-premium-header #apiStatus span {
    width: 6px;
    height: 6px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 16px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button::after {
    border-radius: 15px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button svg {
    width: 20px;
    height: 20px;
  }

  .topbar-logout {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(151, 151, 151, .18);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(32, 32, 32, .62), rgba(19, 19, 19, .42));
    color: rgba(208, 208, 208, .95);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .025),
      0 8px 16px rgba(0, 0, 0, .10);
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
    cursor: pointer;
  }

  .topbar-logout:hover {
    transform: translateY(-1px);
    border-color: rgba(162, 162, 162, .28);
    color: rgba(226, 226, 226, .98);
  }

  .topbar-logout:active {
    transform: scale(.985);
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      gap: 9px;
      margin: 8px 8px 14px;
      padding: 11px 11px 12px;
      border-radius: 20px;
    }

    .topbar-kicker {
      gap: 5px;
      margin-bottom: 6px;
    }

    .eyebrow.eyebrow-chip {
      padding: 5px 8px;
      font-size: 8px;
      letter-spacing: .13em;
    }

    .topbar-live-chip {
      min-height: 24px;
      padding: 0 8px;
      font-size: 7px;
      letter-spacing: .07em;
    }

    .topbar-copy h2 {
      font-size: clamp(18px, 6.4vw, 28px);
    }

    .topbar.topbar-premium-header #apiStatus {
      min-height: 28px;
      padding-inline: 8px;
      font-size: 7.3px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      border-radius: 15px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 14px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 19px;
      height: 19px;
    }

    .topbar-logout {
      min-height: 28px;
      padding: 0 9px;
      font-size: 7.3px;
      letter-spacing: .10em;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      margin: 9px 9px 14px;
      padding: 10px 10px 11px;
      border-radius: 19px;
    }

    .topbar-kicker {
      gap: 4px;
      margin-bottom: 6px;
    }

    .eyebrow.eyebrow-chip {
      padding: 4px 7px;
      font-size: 7.6px;
      letter-spacing: .12em;
    }

    .topbar-live-chip {
      min-height: 22px;
      padding: 0 7px;
      font-size: 6.6px;
      letter-spacing: .06em;
    }

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

    .topbar.topbar-premium-header #apiStatus {
      min-height: 26px;
      padding-inline: 7px;
      font-size: 7px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      border-radius: 14px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 13px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 18px;
      height: 18px;
    }

    .topbar-logout {
      min-height: 26px;
      padding: 0 8px;
      font-size: 6.9px;
      letter-spacing: .09em;
    }
  }


  /* =========================================================
     PREVIEW R11 — TOP BAR LOGOUT POSITION FIX
     ========================================================= */

  /* Put action items into a stable 2-column grid so LOGOUT sits inside the header */
  .topbar-actions {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "status refresh"
      "logout refresh";
    align-items: start;
    justify-items: end;
    gap: 8px 8px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    grid-area: status;
    justify-self: end;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    grid-area: refresh;
    align-self: stretch;
    justify-self: end;
  }

  .topbar-logout {
    grid-area: logout;
    justify-self: end;
    width: 100%;
    min-width: 86px;
    text-align: center;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      align-items: start;
    }

    .topbar-actions {
      grid-template-columns: auto auto;
      grid-template-areas:
        "status refresh"
        "logout refresh";
      gap: 7px 7px;
    }

    .topbar-logout {
      min-width: 82px;
    }
  }

  @media (max-width: 420px) {
    .topbar-actions {
      gap: 6px 6px;
    }

    .topbar-logout {
      min-width: 78px;
    }
  }


  /* =========================================================
     PREVIEW R12 — REMOVE REFRESH + BALANCED LOGOUT
     ========================================================= */

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "logout";
    align-items: start;
    justify-items: end;
    gap: 9px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    grid-area: status;
    justify-self: end;
  }

  /* Hide any legacy refresh button if still present from cached rendering */
  .topbar.topbar-premium-header #refreshButton {
    display: none !important;
  }

  .topbar-logout {
    grid-area: logout;
    justify-self: end;
    width: auto;
    min-width: 102px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 8.6px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      gap: 10px;
    }

    .topbar-actions {
      gap: 8px;
    }

    .topbar-logout {
      min-width: 104px;
      min-height: 36px;
      padding: 0 15px;
      font-size: 8.2px;
      letter-spacing: .11em;
    }
  }

  @media (max-width: 420px) {
    .topbar-actions {
      gap: 7px;
    }

    .topbar-logout {
      min-width: 98px;
      min-height: 34px;
      padding: 0 13px;
      font-size: 7.8px;
      letter-spacing: .10em;
    }
  }


  /* =========================================================
     PREVIEW R14 — REDUCE EMPTY SPACE UNDER TOP BAR
     Make header-to-hero spacing more proportional on mobile
     ========================================================= */

  /* tighten general spacing a bit */
  .topbar.topbar-premium-header {
    margin-bottom: 10px;
  }

  /* dashboard page overall rhythm */
  .page.page-dashboard {
    gap: 10px;
  }

  /* reduce blank gap before first hero section */
  .page.page-dashboard > .page-section:first-child {
    margin-top: -2px;
  }

  .page.page-dashboard > .page-section {
    margin-bottom: 0;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      margin: 8px 9px 10px;
    }

    .page.page-dashboard {
      gap: 8px;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: -4px;
    }

    /* slightly tighten the hero wrapper so the page feels more compact */
    .page.page-dashboard .hero-premium {
      margin-top: 0;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      margin: 8px 8px 9px;
    }

    .page.page-dashboard {
      gap: 7px;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: -5px;
    }
  }


  /* =========================================================
     PREVIEW R15 — LOCK APPROVED MOBILE HEADER → HERO SPACING
     ========================================================= */

  @media (max-width: 760px) {
    /* Header stays in normal document flow, but remains sticky when scrolling. */
    .topbar.topbar-premium-header {
      position: sticky;
      top: 8px;
      margin: 8px 8px 0;
    }

    /*
      The original frontend reserved --topbar space because its header was fixed.
      R15's redesigned header is in flow, so remove that old reservation.
      This creates the compact, proportional gap shown in the approved reference.
    */
    .page-root {
      padding-top: 12px !important;
    }

    .page.page-dashboard {
      gap: 8px;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: 0 !important;
    }

    .page.page-dashboard .hero-premium {
      margin-top: 0 !important;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      top: 7px;
      margin: 7px 8px 0;
    }

    .page-root {
      padding-top: 11px !important;
    }
  }


  /* =========================================================
     PREVIEW R16 — DESKTOP TOPBAR FIX ONLY
     Mobile <=760px remains exactly as R15.
     ========================================================= */

  @media (min-width: 761px) {
    /*
      Restore the original desktop layout contract:
      fixed header lives to the RIGHT of the fixed sidebar.
    */
    .topbar.topbar-premium-header {
      position: fixed !important;
      z-index: 25;
      left: calc(var(--sidebar) + 42px) !important;
      right: 28px !important;
      top: 12px !important;

      width: auto !important;
      height: 72px !important;
      min-height: 72px !important;
      margin: 0 !important;
      padding: 10px 14px !important;

      display: grid !important;
      grid-template-columns: minmax(0, 1fr) auto !important;
      align-items: center !important;
      gap: 16px !important;

      overflow: hidden;
      border-radius: 22px !important;
      pointer-events: auto !important;
    }

    .topbar-main {
      min-width: 0;
      display: grid !important;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 14px;
    }

    .topbar-kicker {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 7px;
      margin: 0 !important;
      white-space: nowrap;
    }

    .eyebrow.eyebrow-chip {
      margin: 0 !important;
      padding: 5px 9px !important;
      font-size: 8px !important;
      letter-spacing: .13em !important;
    }

    .topbar-live-chip {
      min-height: 25px !important;
      padding: 0 9px !important;
      font-size: 7px !important;
      letter-spacing: .07em !important;
    }

    .topbar-copy {
      min-width: 0;
    }

    .topbar-copy h2 {
      margin: 0 !important;
      font-size: 25px !important;
      line-height: 1 !important;
      letter-spacing: -.035em !important;
      white-space: nowrap;
    }

    .topbar-subtitle {
      display: none !important;
    }

    .topbar-actions {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: flex-end !important;
      gap: 9px !important;
      min-width: max-content;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-width: 86px !important;
      min-height: 30px !important;
      padding-inline: 10px !important;
      font-size: 7.5px !important;
      letter-spacing: .08em !important;
      margin: 0 !important;
    }

    .topbar-logout {
      width: auto !important;
      min-width: 96px !important;
      min-height: 32px !important;
      padding: 0 13px !important;
      margin: 0 !important;
      font-size: 7.8px !important;
      letter-spacing: .10em !important;
      justify-self: auto !important;
    }

    /*
      Header is fixed again on desktop, so use the original reserved space.
      This keeps Dashboard/Hero below the header and to the right of sidebar.
    */
    .page-root {
      padding-top: calc(var(--topbar) + 10px) !important;
      padding-right: 28px !important;
      padding-bottom: 42px !important;
      padding-left: calc(var(--sidebar) + 42px) !important;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: 0 !important;
    }
  }

  /* Preserve R15 mobile behavior explicitly. */
  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      position: sticky !important;
      left: auto !important;
      right: auto !important;
      width: auto !important;
      height: auto !important;
      min-height: 0 !important;
    }
  }


  /* =========================================================
     PREVIEW R17 — USERS BOX + CREATE USER BOX REDESIGN
     Scope: Users cards + Create User dialog only
     ========================================================= */

  @keyframes userBoxSheen {
    0% { transform: translateX(-120%); opacity: 0; }
    20% { opacity: .18; }
    100% { transform: translateX(140%); opacity: 0; }
  }

  @keyframes softRealtimePulse {
    0%, 100% { opacity: .48; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
  }

  @keyframes statLineFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }

  @keyframes sheetFloatIn {
    0% { opacity: 0; transform: translateY(18px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ---------- USERS PAGE: cards ---------- */
  #userGrid .user-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(167, 167, 167, .13);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(134, 134, 134, .10), transparent 42%),
      radial-gradient(110% 110% at 0% 100%, rgba(99, 99, 99, .09), transparent 45%),
      linear-gradient(180deg, rgba(20, 20, 20, .97), rgba(11, 11, 11, .97));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 16px 44px rgba(0, 0, 0, .33);
    transition:
      transform .22s var(--ease),
      border-color .22s var(--ease),
      box-shadow .22s var(--ease),
      background .22s var(--ease);
  }

  #userGrid .user-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
  }

  #userGrid .user-card:hover {
    transform: translateY(-3px);
    border-color: rgba(169, 169, 169, .24);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .06),
      0 22px 54px rgba(0, 0, 0, .42),
      0 0 0 1px rgba(134, 134, 134, .05);
  }

  #userGrid .user-card:hover::before {
    animation: userBoxSheen 1.2s ease-out 1;
  }

  #userGrid .user-head {
    align-items: center;
    gap: 12px;
  }

  #userGrid .user-badge-stack {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 0 auto;
    max-width: 58%;
  }

  #userGrid .presence-badge {
    min-width: 66px;
    justify-content: center;
    transition:
      color .18s var(--ease),
      border-color .18s var(--ease),
      background .18s var(--ease),
      opacity .18s var(--ease);
  }

  #userGrid .presence-badge.presence-online {
    color: #cfcfcf;
    border-color: rgba(182, 182, 182, .15);
    background: rgba(182, 182, 182, .065);
  }

  #userGrid .presence-badge.presence-offline {
    color: rgba(198, 198, 198, .72);
    border-color: rgba(198, 198, 198, .10);
    background: rgba(198, 198, 198, .045);
  }

  #userGrid .presence-badge.presence-unknown {
    color: rgba(208, 208, 208, .76);
    border-color: rgba(181, 181, 181, .11);
    background: rgba(181, 181, 181, .045);
  }

  #userGrid .presence-badge.presence-offline::before,
  #userGrid .presence-badge.presence-unknown::before {
    animation: none;
    opacity: .48;
  }

  #userGrid .user-title strong {
    font-size: 16px;
    letter-spacing: -.03em;
  }

  #userGrid .user-title span {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .52);
  }

  #userGrid .badge {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  #userGrid .badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
    display: inline-block;
    vertical-align: middle;
    animation: softRealtimePulse 1.8s ease-in-out infinite;
  }

  #userGrid .user-stats {
    gap: 10px;
    margin-top: 16px;
  }

  #userGrid .user-stats .stat-box {
    position: relative;
    overflow: hidden;
    min-height: 74px;
    padding: 12px 12px 11px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, .07);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .022)),
      rgba(17, 17, 17, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  #userGrid .user-stats .stat-box::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 9px;
    height: 2px;
    border-radius: 999px;
    background:
      linear-gradient(90deg,
        rgba(134, 134, 134, .10) 0%,
        rgba(134, 134, 134, .62) 26%,
        rgba(175, 175, 175, .95) 42%,
        rgba(134, 134, 134, .12) 58%,
        rgba(134, 134, 134, .06) 100%);
    background-size: 180% 100%;
    animation: statLineFlow 4.5s linear infinite;
    opacity: .68;
  }

  #userGrid .user-stats .stat-box span {
    font-size: 7.3px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .42);
  }

  #userGrid .user-stats .stat-box strong {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.2;
    color: rgba(255, 255, 255, .96);
  }

  #userGrid .user-actions {
    gap: 8px;
    margin-top: 16px;
  }

  #userGrid .user-actions .mini-button {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 11px;
    border-color: rgba(255, 255, 255, .09);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    transition:
      transform .18s var(--ease),
      border-color .18s var(--ease),
      background .18s var(--ease),
      box-shadow .18s var(--ease);
  }

  #userGrid .user-actions .mini-button:hover {
    transform: translateY(-1px);
    border-color: rgba(166, 166, 166, .18);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  }

  #userGrid .user-actions .mini-button.blue {
    border-color: rgba(134, 134, 134, .18);
    background: linear-gradient(180deg, rgba(134, 134, 134, .14), rgba(134, 134, 134, .07));
  }

  #userGrid .user-actions .mini-button.red {
    border-color: rgba(139, 139, 139, .16);
    background: linear-gradient(180deg, rgba(139, 139, 139, .10), rgba(139, 139, 139, .05));
  }

  /* ---------- CREATE USER DIALOG ---------- */
  #createDialog::backdrop {
    background: rgba(6, 6, 6, .70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #createDialog .sheet {
    position: absolute;
    overflow: auto;
    border-radius: 30px;
    border: 1px solid rgba(156, 156, 156, .18);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(134, 134, 134, .11), transparent 44%),
      radial-gradient(120% 110% at 0% 100%, rgba(100, 100, 100, .10), transparent 48%),
      linear-gradient(180deg, rgba(18, 18, 18, .985), rgba(10, 10, 10, .985));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 42px 110px rgba(0, 0, 0, .55);
    animation: sheetFloatIn .26s ease-out;
  }

  #createDialog .sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 24%),
      radial-gradient(80% 60% at 18% 0%, rgba(255, 255, 255, .045), transparent 70%);
    opacity: .85;
  }

  #createDialog .sheet > * {
    position: relative;
    z-index: 1;
  }

  #createDialog .sheet-header {
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  #createDialog .sheet-header .eyebrow {
    margin-bottom: 8px;
    letter-spacing: .16em;
    color: rgba(186, 186, 186, .62);
  }

  #createDialog .sheet-header h3 {
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.04em;
  }

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

  #createDialog .field {
    gap: 8px;
  }

  #createDialog .field > span {
    font-size: 8px;
    letter-spacing: .13em;
    color: rgba(255, 255, 255, .48);
  }

  #createDialog .field input,
  #createDialog .field select {
    min-height: 52px;
    border-radius: 17px;
    border-color: rgba(255, 255, 255, .09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03)),
      rgba(16, 16, 16, .74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  #createDialog .field input:hover,
  #createDialog .field select:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .035)),
      rgba(16, 16, 16, .80);
  }

  #createDialog .field input:focus,
  #createDialog .field select:focus {
    border-color: rgba(134, 134, 134, .45);
    box-shadow:
      0 0 0 4px rgba(134, 134, 134, .08),
      0 10px 24px rgba(134, 134, 134, .06);
  }

  #createDialog .field small {
    margin-top: -1px;
    font-size: 8px;
    color: rgba(255, 255, 255, .36);
  }

  #createDialog .profile-preview {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(155, 155, 155, .14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .022)),
      rgba(13, 13, 13, .84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  #createDialog .profile-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .06) 22%, transparent 44%);
    transform: translateX(-120%);
    animation: userBoxSheen 5.8s ease-in-out infinite;
    opacity: .4;
  }

  #createDialog .profile-preview .profile-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #createDialog .profile-preview .profile-head {
    align-items: center;
  }

  #createDialog .profile-preview .profile-title strong {
    font-size: 13px;
    letter-spacing: -.02em;
  }

  #createDialog .profile-preview .profile-title span {
    font-size: 8px;
    color: rgba(255, 255, 255, .46);
  }

  #createDialog .profile-preview .profile-specs {
    gap: 10px;
    margin-top: 14px;
  }

  #createDialog .profile-preview .stat-box {
    position: relative;
    overflow: hidden;
    min-height: 74px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03)),
      rgba(20, 20, 20, .75);
  }

  #createDialog .profile-preview .stat-box::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 9px;
    height: 2px;
    border-radius: 999px;
    background:
      linear-gradient(90deg,
        rgba(182, 182, 182, .10) 0%,
        rgba(182, 182, 182, .55) 28%,
        rgba(229, 229, 229, .95) 46%,
        rgba(182, 182, 182, .10) 68%,
        rgba(182, 182, 182, .04) 100%);
    background-size: 180% 100%;
    animation: statLineFlow 5.1s linear infinite;
    opacity: .75;
  }

  #createDialog .platform-wrap {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  #createDialog .platform-chip {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
    border-color: rgba(255, 255, 255, .08);
  }

  #createDialog .sheet-actions {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
  }

  #createDialog .button {
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 16px;
  }

  @media (max-width: 760px) {
    #userGrid .user-card {
      border-radius: 22px;
      padding: 16px;
    }

    #userGrid .user-title strong {
      font-size: 15px;
    }

    #userGrid .user-badge-stack {
      max-width: 62%;
      gap: 5px;
    }

    #userGrid .presence-badge {
      min-width: 61px;
      padding-inline: 7px;
    }

    #userGrid .user-stats .stat-box {
      min-height: 68px;
      padding: 11px;
    }

    #createDialog .sheet {
      border-radius: 28px;
    }

    #createDialog .sheet-header h3 {
      font-size: 28px;
    }

    #createDialog .field input,
    #createDialog .field select {
      min-height: 50px;
      border-radius: 16px;
    }
  }


  /* =========================================================
     PREVIEW R18 — CREATE USER PREMIUM REDESIGN
     Scope: Create User dialog only
     ========================================================= */

  @keyframes createGlowSweep {
    0% { transform: translateX(-110%) skewX(-16deg); opacity: 0; }
    15% { opacity: .18; }
    100% { transform: translateX(165%) skewX(-16deg); opacity: 0; }
  }

  @keyframes createFieldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(134, 134, 134, .0); }
    50% { box-shadow: 0 0 0 8px rgba(134, 134, 134, .06); }
  }

  @keyframes createDropdownIn {
    0% { opacity: 0; transform: translateY(8px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes stepperPress {
    0% { transform: scale(1); }
    50% { transform: scale(.96); }
    100% { transform: scale(1); }
  }

  #createDialog.r18-create-dialog::backdrop {
    background:
      radial-gradient(120% 80% at 50% 100%, rgba(134, 134, 134, .08), transparent 60%),
      rgba(6, 6, 6, .76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  #createDialog.r18-create-dialog .sheet {
    overflow: visible;
    border-radius: 32px;
    border: 1px solid rgba(163, 163, 163, .18);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(134, 134, 134, .12), transparent 44%),
      radial-gradient(130% 120% at 0% 100%, rgba(100, 100, 100, .09), transparent 50%),
      linear-gradient(180deg, rgba(18, 18, 18, .985), rgba(11, 11, 11, .985));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 44px 120px rgba(0, 0, 0, .58);
  }

  #createDialog.r18-create-dialog .sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 28%),
      radial-gradient(80% 55% at 14% 0%, rgba(255, 255, 255, .05), transparent 72%);
    opacity: .88;
  }

  #createDialog.r18-create-dialog .sheet::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -24%;
    width: 26%;
    border-radius: 40px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    transform: skewX(-18deg);
    animation: createGlowSweep 5.8s ease-in-out infinite;
    pointer-events: none;
    opacity: .35;
  }

  #createDialog.r18-create-dialog .sheet > * {
    position: relative;
    z-index: 1;
  }

  #createDialog.r18-create-dialog .sheet-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  #createDialog.r18-create-dialog .sheet-header h3 {
    font-size: 34px;
    line-height: .98;
    letter-spacing: -.045em;
  }

  #createDialog.r18-create-dialog .sheet-header .icon-button.ghost {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, .10);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
  }

  #createDialog.r18-create-dialog .form-grid {
    gap: 14px;
  }

  #createDialog.r18-create-dialog .field {
    gap: 8px;
  }

  #createDialog.r18-create-dialog .field > span {
    color: rgba(255, 255, 255, .50);
  }

  #createDialog.r18-create-dialog .field input,
  #createDialog.r18-create-dialog .field select {
    min-height: 54px;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, .09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03)),
      rgba(16, 16, 16, .76);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 0 0 0 rgba(134, 134, 134, 0);
    transition:
      border-color .18s var(--ease),
      background .18s var(--ease),
      box-shadow .18s var(--ease),
      transform .18s var(--ease);
  }

  #createDialog.r18-create-dialog .field input:hover,
  #createDialog.r18-create-dialog .field select:hover {
    border-color: rgba(255, 255, 255, .14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .035)),
      rgba(16, 16, 16, .82);
  }

  #createDialog.r18-create-dialog .field input:focus,
  #createDialog.r18-create-dialog .field select:focus {
    border-color: rgba(134, 134, 134, .42);
    box-shadow:
      0 0 0 4px rgba(134, 134, 134, .08),
      0 14px 28px rgba(134, 134, 134, .06);
  }

  #createDialog.r18-create-dialog .field.stepper-field input {
    text-align: center;
    font-weight: 700;
    letter-spacing: -.02em;
    padding-inline: 54px;
  }

  #createDialog.r18-create-dialog .r18-stepper-wrap {
    position: relative;
  }

  #createDialog.r18-create-dialog .r18-stepper-button {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03)),
      rgba(23, 23, 23, .84);
    color: rgba(255, 255, 255, .92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition:
      transform .18s var(--ease),
      border-color .18s var(--ease),
      background .18s var(--ease),
      opacity .18s var(--ease);
    z-index: 2;
  }

  #createDialog.r18-create-dialog .r18-stepper-button:hover {
    border-color: rgba(134, 134, 134, .22);
    background:
      linear-gradient(180deg, rgba(134, 134, 134, .12), rgba(134, 134, 134, .06)),
      rgba(23, 23, 23, .94);
    transform: translateY(-50%) translateY(-1px);
  }

  #createDialog.r18-create-dialog .r18-stepper-button:active {
    animation: stepperPress .18s ease-out;
  }

  #createDialog.r18-create-dialog .r18-stepper-button:disabled {
    opacity: .4;
    pointer-events: none;
  }

  #createDialog.r18-create-dialog .r18-stepper-button.minus { left: 8px; }
  #createDialog.r18-create-dialog .r18-stepper-button.plus { right: 8px; }

  #createDialog.r18-create-dialog #createProfile {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  #createDialog.r18-create-dialog .r18-profile-select {
    position: relative;
  }

  #createDialog.r18-create-dialog .r18-profile-trigger {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03)),
      rgba(16, 16, 16, .78);
    color: rgba(255, 255, 255, .96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    transition:
      border-color .18s var(--ease),
      box-shadow .18s var(--ease),
      transform .18s var(--ease),
      background .18s var(--ease);
  }

  #createDialog.r18-create-dialog .r18-profile-trigger:hover {
    border-color: rgba(255, 255, 255, .14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .035)),
      rgba(16, 16, 16, .84);
  }

  #createDialog.r18-create-dialog .r18-profile-select.open .r18-profile-trigger,
  #createDialog.r18-create-dialog .r18-profile-trigger:focus-visible {
    border-color: rgba(134, 134, 134, .42);
    box-shadow:
      0 0 0 4px rgba(134, 134, 134, .08),
      0 14px 28px rgba(134, 134, 134, .06);
  }

  #createDialog.r18-create-dialog .r18-profile-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  #createDialog.r18-create-dialog .r18-profile-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(180deg, #c5c5c5, #868686);
    box-shadow: 0 0 14px rgba(134, 134, 134, .32);
    flex: 0 0 auto;
  }

  #createDialog.r18-create-dialog .r18-profile-copy {
    min-width: 0;
    text-align: left;
  }

  #createDialog.r18-create-dialog .r18-profile-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #createDialog.r18-create-dialog .r18-profile-copy span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .42);
    text-transform: uppercase;
  }

  #createDialog.r18-create-dialog .r18-profile-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-right: 2px solid rgba(197, 197, 197, .86);
    border-bottom: 2px solid rgba(197, 197, 197, .86);
    transform: rotate(45deg);
    transition: transform .18s var(--ease), opacity .18s var(--ease);
    opacity: .88;
    margin-right: 4px;
  }

  #createDialog.r18-create-dialog .r18-profile-select.open .r18-profile-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  #createDialog.r18-create-dialog .r18-profile-menu {
    position: absolute;
    z-index: 30;
    inset: calc(100% + 10px) 0 auto 0;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(162, 162, 162, .18);
    background:
      linear-gradient(180deg, rgba(38, 38, 38, .98), rgba(24, 24, 24, .98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 24px 70px rgba(0, 0, 0, .48);
    display: none;
    max-height: min(46vh, 320px);
    overflow: auto;
    animation: createDropdownIn .18s ease-out;
  }

  #createDialog.r18-create-dialog .r18-profile-select.open .r18-profile-menu {
    display: block;
  }

  #createDialog.r18-create-dialog .r18-profile-option {
    width: 100%;
    min-height: 62px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, .96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    transition:
      background .18s var(--ease),
      border-color .18s var(--ease),
      transform .18s var(--ease),
      opacity .18s var(--ease);
  }

  #createDialog.r18-create-dialog .r18-profile-option:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .07);
    transform: translateY(-1px);
  }

  #createDialog.r18-create-dialog .r18-profile-option.selected {
    background:
      linear-gradient(180deg, rgba(134, 134, 134, .12), rgba(134, 134, 134, .06)),
      rgba(255, 255, 255, .02);
    border-color: rgba(134, 134, 134, .26);
  }

  #createDialog.r18-create-dialog .r18-profile-option[disabled],
  #createDialog.r18-create-dialog .r18-profile-option.locked,
  #createDialog.r18-create-dialog .r18-profile-option[aria-disabled="true"] {
    opacity: .68;
    filter: none;
    -webkit-filter: none;
    pointer-events: none;
  }

  #createDialog.r18-create-dialog .r18-profile-option .left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  #createDialog.r18-create-dialog .r18-profile-option .name {
    min-width: 0;
    text-align: left;
  }

  #createDialog.r18-create-dialog .r18-profile-option .name strong {
    display: block;
    font-size: 14px;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #createDialog.r18-create-dialog .r18-profile-option .name span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .42);
    text-transform: uppercase;
  }

  #createDialog.r18-create-dialog .r18-profile-option .status {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .10em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .88);
  }

  #createDialog.r18-create-dialog .r18-profile-option .status.ready {
    color: #d8d8d8;
    background: rgba(182, 182, 182, .08);
    border-color: rgba(182, 182, 182, .14);
  }

  #createDialog.r18-create-dialog .r18-profile-option .status.locked {
    color: #c6c6c6;
    background: rgba(181, 181, 181, .08);
    border-color: rgba(181, 181, 181, .14);
  }

  #createDialog.r18-create-dialog .profile-preview {
    margin-top: 18px;
    border-radius: 22px;
    border-color: rgba(159, 159, 159, .15);
    background:
      radial-gradient(100% 90% at 100% 0%, rgba(134, 134, 134, .09), transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .022)),
      rgba(13, 13, 13, .90);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 20px 40px rgba(0, 0, 0, .20);
  }

  #createDialog.r18-create-dialog .profile-preview .badge.green,
  #createDialog.r18-create-dialog .profile-preview .badge.orange {
    animation: createFieldPulse 2.2s ease-in-out infinite;
  }

  #createDialog.r18-create-dialog .sheet-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  #createDialog.r18-create-dialog .button {
    min-height: 46px;
    border-radius: 15px;
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog .sheet {
      border-radius: 30px 30px 28px 28px;
    }

    #createDialog.r18-create-dialog .sheet-header {
      margin-bottom: 18px;
      padding-bottom: 14px;
    }

    #createDialog.r18-create-dialog .sheet-header h3 {
      font-size: 30px;
    }

    #createDialog.r18-create-dialog .r18-profile-trigger {
      min-height: 56px;
      border-radius: 17px;
      padding-inline: 14px;
    }

    #createDialog.r18-create-dialog .r18-profile-copy strong {
      font-size: 14px;
    }

    #createDialog.r18-create-dialog .r18-profile-option {
      min-height: 58px;
      padding: 11px 12px;
      border-radius: 15px;
    }

    #createDialog.r18-create-dialog .field.stepper-field input {
      padding-inline: 50px;
    }

    #createDialog.r18-create-dialog .r18-stepper-button {
      width: 36px;
      height: 36px;
      border-radius: 11px;
    }

    #createDialog.r18-create-dialog .sheet-actions {
      gap: 10px;
      flex-wrap: wrap;
    }

    #createDialog.r18-create-dialog .sheet-actions .button {
      flex: 1 1 160px;
    }
  }


  /* =========================================================
     PREVIEW R19 — CREATE USER REFINEMENT + PERFORMANCE TUNE
     ========================================================= */

  #createDialog.r18-create-dialog.r19-create-dialog::backdrop {
    background:
      radial-gradient(110% 80% at 50% 100%, rgba(134, 134, 134, .05), transparent 60%),
      rgba(6, 6, 6, .68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 24px 56px rgba(0, 0, 0, .42);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet::after {
    display: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet::before {
    opacity: .62;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-header h3 {
    font-size: 33px;
    letter-spacing: -.05em;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .field {
    gap: 7px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .field input,
  #createDialog.r18-create-dialog.r19-create-dialog .field select,
  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger {
    transition:
      border-color .16s var(--ease),
      box-shadow .16s var(--ease),
      background .16s var(--ease),
      transform .16s var(--ease);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .field.stepper-field input {
    padding-inline: 52px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-stepper-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .028)),
      rgba(23, 23, 23, .84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-stepper-button:hover {
    transform: translateY(-50%);
    border-color: rgba(134, 134, 134, .18);
    background:
      linear-gradient(180deg, rgba(134, 134, 134, .10), rgba(134, 134, 134, .05)),
      rgba(23, 23, 23, .92);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger {
    min-height: 60px;
    padding: 0 12px 0 16px;
    border-radius: 20px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-main {
    gap: 11px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 10px rgba(134, 134, 134, .24);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-copy strong {
    font-size: 14px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-copy span {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: .13em;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-chevron {
    width: 38px;
    height: 38px;
    margin-right: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)),
      rgba(22, 22, 22, .72);
    position: relative;
    opacity: 1;
    transform: none !important;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-chevron::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(204, 204, 204, .92);
    border-bottom: 2px solid rgba(204, 204, 204, .92);
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .16s var(--ease);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-select.open .r18-profile-chevron::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-menu {
    margin-top: 2px;
    border-radius: 18px;
    padding: 8px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 18px 40px rgba(0, 0, 0, .34);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-option {
    min-height: 56px;
    padding: 10px 12px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview {
    margin-top: 16px;
    margin-bottom: 6px;
    padding: 14px;
    border-radius: 20px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 14px 28px rgba(0, 0, 0, .14);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview::before {
    animation: none;
    opacity: .14;
    transform: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview .badge.green,
  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview .badge.orange {
    animation: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog #createError {
    margin: 8px 2px 0;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 16px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, rgba(11, 11, 11, 0) 0%, rgba(11, 11, 11, .90) 24%, rgba(11, 11, 11, .98) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    pointer-events: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button {
    min-height: 52px;
    border-radius: 17px;
    letter-spacing: .06em;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button.secondary {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .022)),
      rgba(20, 20, 20, .90);
    border-color: rgba(255, 255, 255, .08);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button.primary {
    box-shadow:
      0 12px 26px rgba(134, 134, 134, .18),
      inset 0 1px 0 rgba(255, 255, 255, .10);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button:hover {
    transform: translateY(-1px);
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r19-create-dialog .sheet {
      padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-header {
      margin-bottom: 14px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-header h3 {
      font-size: 30px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger {
      min-height: 58px;
      padding-inline: 12px;
      border-radius: 18px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-chevron {
      width: 36px;
      height: 36px;
      border-radius: 12px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions {
      gap: 10px;
      margin-top: 12px;
      padding-top: 14px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button {
      min-height: 50px;
      border-radius: 16px;
      font-size: 12px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #createDialog.r18-create-dialog.r19-create-dialog .sheet,
    #createDialog.r18-create-dialog.r19-create-dialog .field input,
    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger,
    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-option,
    #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button {
      transition: none !important;
      animation: none !important;
    }
  }


  /* =========================================================
     PREVIEW R22 — TRUE MOBILE BOTTOM-SCROLL FIX + PERF TUNE
     ========================================================= */

  @media (max-width: 760px) {
    /* Remove expensive modal blur on mobile; keep visual depth with solid overlay. */
    #createDialog.r18-create-dialog.r20-create-dialog::backdrop {
      background:
        radial-gradient(90% 60% at 50% 100%, rgba(134, 134, 134, .04), transparent 58%),
        rgba(6, 6, 6, .80) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    /* One real scroll container for the entire create form. */
    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      scroll-padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
      padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
      contain: layout paint style;
    }

    /* When the custom profile menu is open, freeze only the sheet;
       the dropdown itself remains the active scroll region. */
    #createDialog.r18-create-dialog.r20-create-dialog.profile-menu-open .sheet {
      overflow-y: hidden !important;
      touch-action: none;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      overflow-y: auto !important;
      overflow-x: hidden !important;
      overscroll-behavior: contain !important;
      touch-action: pan-y !important;
      -webkit-overflow-scrolling: touch;
      max-height: min(38dvh, 310px) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 14px 28px rgba(0, 0, 0, .28) !important;
    }

    /* Important: actions are part of normal document flow.
       This guarantees the profile card can be scrolled fully above them. */
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      position: static !important;
      inset: auto !important;
      z-index: auto !important;
      margin-top: 18px !important;
      padding: 14px 0 calc(6px + env(safe-area-inset-bottom, 0px)) !important;
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border-top: 1px solid rgba(255, 255, 255, .065);
      contain: none !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions::before {
      display: none !important;
    }

    /* Remove artificial spacer from R21 now that footer is no longer overlaying content. */
    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
      margin-bottom: 0 !important;
      scroll-margin-bottom: 20px !important;
    }

    /* Lighter effects on controls for smoother low/mid-range mobile GPUs. */
    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-trigger,
    #createDialog.r18-create-dialog.r20-create-dialog .r18-stepper-button,
    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview,
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary {
      box-shadow:
        0 8px 18px rgba(134, 134, 134, .14),
        inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option:hover,
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:hover {
      transform: none !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #createDialog.r18-create-dialog.r20-create-dialog *,
    #createDialog.r18-create-dialog.r20-create-dialog *::before,
    #createDialog.r18-create-dialog.r20-create-dialog *::after {
      animation: none !important;
      transition-duration: .01ms !important;
    }
  }


  /* =========================================================
     PREVIEW R23 — DESKTOP PROFILE DROPDOWN SCROLL / STACK FIX
     Mobile behavior from R22 remains unchanged.
     ========================================================= */

  @media (min-width: 761px) {
    /* Raise the form grid above the profile preview stacking context.
       This prevents the preview card from painting over the dropdown. */
    #createDialog.r18-create-dialog.r20-create-dialog .form-grid {
      position: relative !important;
      z-index: 20 !important;
      overflow: visible !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .field:has(.r18-profile-select) {
      position: relative !important;
      z-index: 30 !important;
      overflow: visible !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select {
      position: relative !important;
      z-index: 40 !important;
      overflow: visible !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open {
      z-index: 80 !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      z-index: 120 !important;
      display: none;
      max-height: min(46vh, 360px) !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior: contain !important;
      touch-action: auto !important;
      pointer-events: auto !important;
      scrollbar-gutter: stable;
      contain: layout paint;
      isolation: isolate;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 18px 42px rgba(0, 0, 0, .36) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-menu {
      display: block !important;
    }

    /* The preview must stay under the open menu. */
    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
      position: relative !important;
      z-index: 1 !important;
    }

    /* Keep the create sheet stable while menu is open.
       Only the dropdown should consume wheel input. */
    #createDialog.r18-create-dialog.r20-create-dialog.profile-menu-open .sheet {
      overflow: hidden !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option {
      pointer-events: auto !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu::-webkit-scrollbar {
      width: 8px;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: rgba(177, 177, 177, .28);
      background-clip: padding-box;
    }
  }


  /* =========================================================
     PREVIEW R27 — CREATE USER ACTION BAR POLISH
     Performance-safe: no heavy blur, no continuous animation.
     ========================================================= */

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 15px 0 2px;
    border-top: 0;
    background: transparent;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions::before {
    content: "";
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background:
      linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, .055) 12%,
        rgba(164, 164, 164, .13) 50%,
        rgba(255, 255, 255, .055) 88%,
        transparent 100%
      );
    pointer-events: none;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
    position: relative;
    min-width: 0;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1;
    white-space: nowrap;
    transform: translateZ(0);
    transition:
      transform .14s ease,
      border-color .14s ease,
      background-color .14s ease,
      box-shadow .14s ease,
      filter .14s ease;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.secondary {
    color: rgba(241, 241, 241, .92);
    border: 1px solid rgba(163, 163, 163, .13);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .037), rgba(255, 255, 255, .018)),
      rgba(21, 21, 21, .94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 7px 14px rgba(0, 0, 0, .10);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary {
    color: #ffffff;
    border: 1px solid rgba(169, 169, 169, .46);
    background:
      linear-gradient(180deg, #959595 0%, #868686 58%, #7a7a7a 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .20),
      0 9px 20px rgba(134, 134, 134, .16);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary::before {
    content: "";
    position: absolute;
    inset: 1px 10px auto;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
    pointer-events: none;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:hover {
    transform: translateY(-1px);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:active {
    transform: scale(.985);
    filter: brightness(.97);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:focus-visible {
    outline: none;
    box-shadow:
      0 0 0 3px rgba(134, 134, 134, .12),
      inset 0 1px 0 rgba(255, 255, 255, .10);
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
      gap: 10px !important;
      margin-top: 16px !important;
      padding:
        14px 0
        calc(8px + env(safe-area-inset-bottom, 0px)) !important;
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      min-height: 52px !important;
      border-radius: 16px !important;
      padding-inline: 12px !important;
      font-size: 10px !important;
      letter-spacing: .065em !important;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025),
        0 6px 12px rgba(0, 0, 0, .09) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary {
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 8px 16px rgba(134, 134, 134, .14) !important;
    }

    /* Avoid hover work on touch devices. */
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:hover {
      transform: none !important;
    }
  }

  @media (max-width: 390px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      gap: 8px !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      min-height: 50px !important;
      font-size: 9px !important;
      letter-spacing: .055em !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      transition: none !important;
    }
  }


  /* =========================================================
     PREVIEW R28 — PROFILES + SERVICES CARD REDESIGN
     Scope: Profile Inbounds cards + Services cards only
     Performance-safe: lightweight transitions and subtle pulse only
     ========================================================= */

  .profile-card,
  .service-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    border: 1px solid rgba(143, 143, 143, .16);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .014)),
      linear-gradient(135deg, rgba(19, 19, 19, .96), rgba(12, 12, 12, .98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .028),
      0 12px 28px rgba(0, 0, 0, .18);
    transition:
      transform .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      background-color .18s ease;
  }

  .profile-card::before,
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      radial-gradient(1200px 240px at 0% 0%, rgba(134, 134, 134, .10), transparent 38%),
      radial-gradient(800px 260px at 100% 100%, rgba(96, 96, 96, .08), transparent 32%);
    opacity: .9;
    z-index: -2;
  }

  .profile-card::after,
  .service-card::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
      rgba(152, 152, 152, .0) 0%,
      rgba(153, 153, 153, .55) 16%,
      rgba(203, 203, 203, .42) 50%,
      rgba(153, 153, 153, .55) 84%,
      rgba(152, 152, 152, .0) 100%);
    opacity: .72;
    transform: translateY(-0.5px);
    pointer-events: none;
  }

  .profile-card:hover,
  .service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(163, 163, 163, .28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 16px 34px rgba(0, 0, 0, .22);
  }

  .profile-head,
  .service-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .profile-title strong,
  .service-head strong {
    display: block;
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: rgba(250, 250, 250, .98);
  }

  .profile-title span,
  .service-meta {
    display: block;
    margin-top: 4px;
    color: rgba(176, 176, 176, .72);
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .profile-specs,
  .service-card .user-stats {
    margin-top: 12px;
    gap: 8px;
  }

  .profile-card .stat-box,
  .service-card .stat-box {
    position: relative;
    min-height: 58px;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(137, 137, 137, .12);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .012)),
      rgba(255, 255, 255, .018);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
    transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
  }

  .profile-card:hover .stat-box,
  .service-card:hover .stat-box {
    border-color: rgba(163, 163, 163, .18);
  }

  .profile-card .stat-box span,
  .service-card .stat-box span {
    color: rgba(167, 167, 167, .7);
    font-size: 7px;
    letter-spacing: .09em;
  }

  .profile-card .stat-box strong,
  .service-card .stat-box strong {
    margin-top: 5px;
    font-size: 9px;
    color: rgba(251, 251, 251, .98);
    letter-spacing: .02em;
  }

  .platform-wrap {
    position: relative;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .05);
  }

  .platform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .platform-head span:first-child,
  .platform-head span:last-child {
    color: rgba(169, 169, 169, .68);
    font-size: 7px;
    letter-spacing: .1em;
  }

  .platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .platform-chip {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 10px;
    border: 1px solid rgba(142, 142, 142, .14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .022)),
      rgba(22, 22, 22, .82);
    color: rgba(241, 241, 241, .92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
  }

  .profile-card .badge,
  .service-card .badge {
    position: relative;
    min-height: 22px;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .09em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }

  .profile-card .badge::before,
  .service-card .badge::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: currentColor;
    opacity: .92;
  }

  .profile-card .badge.green,
  .service-card .badge.green {
    animation: r28StatusPulse 2.2s ease-in-out infinite;
  }

  .service-actions {
    gap: 7px;
    margin-top: 14px;
  }

  .service-card .mini-button {
    min-height: 31px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(137, 137, 137, .14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)),
      rgba(25, 25, 25, .92);
    font-size: 7px;
    letter-spacing: .06em;
    transition:
      transform .16s ease,
      border-color .16s ease,
      background-color .16s ease,
      box-shadow .16s ease;
  }

  .service-card .mini-button:hover {
    transform: translateY(-1px);
    border-color: rgba(169, 169, 169, .24);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025)),
      rgba(30, 30, 30, .96);
    box-shadow: 0 8px 14px rgba(0, 0, 0, .10);
  }

  .service-card .mini-button.blue {
    background:
      linear-gradient(180deg, rgba(126, 126, 126, .18), rgba(126, 126, 126, .10)),
      rgba(28, 28, 28, .96);
    border-color: rgba(146, 146, 146, .24);
  }

  .service-card .mini-button.red {
    background:
      linear-gradient(180deg, rgba(145, 145, 145, .10), rgba(145, 145, 145, .045)),
      rgba(24, 24, 24, .96);
    border-color: rgba(148, 148, 148, .16);
  }

  .profile-block-reason {
    margin: 10px 0 2px;
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid rgba(185, 185, 185, .10);
    background: rgba(185, 185, 185, .04);
    color: rgba(215, 215, 215, .85);
    font-size: 7px;
    line-height: 1.45;
  }

  @keyframes r28StatusPulse {
    0%, 100% {
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 0 0 0 rgba(194, 194, 194, .10);
    }
    50% {
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 0 0 4px rgba(194, 194, 194, 0);
    }
  }

  @media (max-width: 1024px) {
    .profile-card,
    .service-card {
      border-radius: 22px;
    }

    .profile-title strong,
    .service-head strong {
      font-size: 12px;
    }
  }

  @media (max-width: 760px) {
    .profile-card,
    .service-card {
      border-radius: 20px;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .024),
        0 10px 18px rgba(0, 0, 0, .14);
    }

    .profile-card:hover,
    .service-card:hover {
      transform: none;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .024),
        0 10px 18px rgba(0, 0, 0, .14);
    }

    .profile-head,
    .service-head {
      margin-bottom: 10px;
    }

    .profile-card .badge,
    .service-card .badge {
      min-height: 21px;
      padding-left: 17px;
    }

    .platform-chip {
      min-height: 25px;
      padding: 0 8px;
    }

    .service-card .mini-button:hover {
      transform: none;
      box-shadow: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .profile-card,
    .service-card,
    .profile-card .stat-box,
    .service-card .stat-box,
    .service-card .mini-button {
      transition: none !important;
    }

    .profile-card .badge.green,
    .service-card .badge.green {
      animation: none !important;
    }
  }



/* =========================================================
   PREVIEW R29 — GLOBAL UPPERCASE + PREMIUM POLISH
   Scope: entire site typography + refined profile/service visuals
   Performance-safe: CSS only, lightweight effects
   ========================================================= */

body,
button,
input,
select,
textarea,
option,
label,
small,
strong,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
.card,
.badge,
.nav-item,
.pill,
.tab-pill,
.mini-button,
.primary-button,
.secondary-button,
.ghost,
.section-head,
.stat-box,
.field,
.sheet,
.table-shell,
.audit-card,
.backup-card {
  text-transform: uppercase;
}

input::placeholder,
textarea::placeholder {
  text-transform: uppercase;
  letter-spacing: .06em;
}

body {
  letter-spacing: .015em;
}

h1, h2, h3, .hero-copy h2, .sheet-header h3 {
  letter-spacing: -.015em;
  text-transform: uppercase;
}

h1, .hero-copy h2 {
  line-height: .96;
}

p, .text-muted, .section-head p, .service-meta, .user-title span, .profile-title span {
  letter-spacing: .055em;
}

.nav-item,
.mini-button,
.primary-button,
.secondary-button,
.ghost,
.badge,
.tab-pill,
.top-status,
.platform-chip {
  font-weight: 800;
  letter-spacing: .08em;
}

.nav-brand strong,
.sidebar-brand strong,
.brand-copy strong,
.user-title strong,
.profile-title strong,
.service-head strong,
.sheet-header h3,
.section-head h3 {
  text-transform: uppercase;
}

input,
select,
textarea,
.field input,
.field select,
.field textarea {
  letter-spacing: .04em;
}

.profile-card,
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(149, 149, 149, .18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .012)),
    linear-gradient(145deg, rgba(17, 17, 17, .98), rgba(10, 10, 10, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 18px 34px rgba(0, 0, 0, .20),
    0 0 0 1px rgba(49, 49, 49, .18);
  transition:
    transform .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease),
    background .22s var(--ease);
}

.profile-card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(900px 220px at -5% -10%, rgba(129, 129, 129, .16), transparent 36%),
    radial-gradient(900px 260px at 110% 115%, rgba(103, 103, 103, .10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 28%);
  opacity: .95;
}

.profile-card::after,
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(144, 144, 144, .55) 16%,
    rgba(200, 200, 200, .35) 50%,
    rgba(144, 144, 144, .55) 84%,
    rgba(255, 255, 255, 0) 100%);
  opacity: .85;
}

.profile-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 162, 162, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 26px 46px rgba(0, 0, 0, .24),
    0 0 0 1px rgba(90, 90, 90, .16);
}

.profile-head,
.service-head {
  position: relative;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-head > div:first-child,
.service-head > div:first-child {
  min-width: 0;
}

.profile-title strong,
.service-head strong {
  font-size: 14px;
  line-height: 1.08;
  color: rgba(252, 252, 252, .985);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .02);
}

.profile-title span,
.service-meta {
  margin-top: 5px;
  color: rgba(183, 183, 183, .80);
  font-size: 8px;
  letter-spacing: .14em;
}

.profile-specs,
.service-card .user-stats {
  gap: 9px;
  margin-top: 13px;
}

.profile-card .stat-box,
.service-card .stat-box {
  position: relative;
  min-height: 62px;
  padding: 11px 12px;
  border-radius: 15px;
  border: 1px solid rgba(144, 144, 144, .13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .014)),
    rgba(255, 255, 255, .020);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .022);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.profile-card:hover .stat-box,
.service-card:hover .stat-box {
  border-color: rgba(165, 165, 165, .20);
}

.profile-card .stat-box span,
.service-card .stat-box span {
  color: rgba(175, 175, 175, .74);
  font-size: 7px;
  letter-spacing: .12em;
}

.profile-card .stat-box strong,
.service-card .stat-box strong {
  margin-top: 6px;
  color: rgba(250, 250, 250, .98);
  font-size: 9px;
  letter-spacing: .045em;
}

.platform-wrap {
  position: relative;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.platform-wrap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 148, 148, .75), rgba(148, 148, 148, 0));
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-head span {
  color: rgba(175, 175, 175, .72);
  font-size: 7px;
  letter-spacing: .13em;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.platform-chip {
  min-height: 27px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(142, 142, 142, .15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .022)),
    rgba(21, 21, 21, .88);
  color: rgba(242, 242, 242, .94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.profile-card .badge,
.service-card .badge {
  position: relative;
  min-height: 22px;
  padding: 0 11px 0 19px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.profile-card .badge::before,
.service-card .badge::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.profile-card .badge.green,
.service-card .badge.green {
  animation: r29StatusPulse 2.4s ease-in-out infinite;
}

.service-actions {
  gap: 8px;
  margin-top: 14px;
}

.service-card .mini-button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid rgba(141, 141, 141, .15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .018)),
    rgba(22, 22, 22, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.service-card .mini-button:hover {
  transform: translateY(-1px);
  border-color: rgba(160, 160, 160, .26);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .10);
}

.service-card .mini-button.blue {
  background:
    linear-gradient(180deg, rgba(130, 130, 130, .18), rgba(130, 130, 130, .10)),
    rgba(25, 25, 25, .96);
  border-color: rgba(146, 146, 146, .25);
}

.service-card .mini-button.red {
  background:
    linear-gradient(180deg, rgba(145, 145, 145, .11), rgba(145, 145, 145, .05)),
    rgba(24, 24, 24, .94);
  border-color: rgba(150, 150, 150, .16);
}

.page-section .section-head h3,
.sheet-header h3,
.hero-copy .eyebrow,
.page-top .title,
.page-head h1 {
  text-transform: uppercase;
}

.page-section .section-head h3 {
  letter-spacing: .01em;
}

.page-section .section-head p {
  opacity: .9;
}

@keyframes r29StatusPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 0 0 0 rgba(194, 194, 194, .10);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .06),
      0 0 0 5px rgba(194, 194, 194, 0);
  }
}

@media (max-width: 1100px) {
  .profile-card,
  .service-card {
    border-radius: 24px;
  }

  .profile-title strong,
  .service-head strong {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  body {
    letter-spacing: .012em;
  }

  .profile-card,
  .service-card {
    border-radius: 22px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 12px 20px rgba(0, 0, 0, .14),
      0 0 0 1px rgba(49, 49, 49, .14);
  }

  .profile-card:hover,
  .service-card:hover,
  .service-card .mini-button:hover {
    transform: none;
    box-shadow: inherit;
  }

  .profile-title strong,
  .service-head strong {
    font-size: 13px;
  }

  .profile-card .stat-box,
  .service-card .stat-box {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .service-card,
  .profile-card .stat-box,
  .service-card .stat-box,
  .service-card .mini-button {
    transition: none !important;
  }

  .profile-card .badge.green,
  .service-card .badge.green {
    animation: none !important;
  }
}


  /* =========================================================
     PREVIEW R30 — PROFILE PICKER REOPEN STABILITY FIX
     ========================================================= */

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      overflow-anchor: none;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select {
      overflow-anchor: none;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      overflow-anchor: none;
    }
  }


  /* =========================================================
     PREVIEW R32 — 17 REFERENCE CONFIGS / QR + COPY ALL
     ========================================================= */
  #configDialog .reference-qr-shell {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(156, 156, 156, .15);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  }
  #configDialog .reference-qr-head {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    margin-bottom:12px; color:rgba(187, 187, 187, .72); font-size:8px; letter-spacing:.12em;
  }
  #configDialog .reference-qr-wrap {
    width:min(280px,78vw); aspect-ratio:1; margin:0 auto; padding:12px; border-radius:18px;
    background:#ffffff; box-shadow:0 14px 34px rgba(0, 0, 0, .24);
  }
  #configDialog .reference-qr-wrap img { display:block; width:100%; height:100%; object-fit:contain; }
  #configDialog .reference-config-block {
    overflow:hidden; border-radius:20px; border:1px solid rgba(156, 156, 156, .14);
    background:rgba(14, 14, 14, .90); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .025);
  }
  #configDialog .reference-config-block .config-label {
    padding:12px 14px; border-bottom:1px solid rgba(255, 255, 255, .055);
  }
  #configDialog .reference-config-block .config-value {
    margin:0; padding:15px; min-height:120px; max-height:34vh; overflow:auto;
    white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word;
    text-transform:none !important; font-size:9px; line-height:1.55; letter-spacing:.01em;
    user-select:text; color:rgba(241, 241, 241, .95); background:transparent;
  }
  #configDialog .reference-warning {
    margin-top:10px; padding:10px 12px; border-radius:12px;
    border:1px solid rgba(181, 181, 181, .10); background:rgba(181, 181, 181, .035);
    color:rgba(213, 213, 213, .72); font-size:7px; line-height:1.5; letter-spacing:.08em;
  }
  @media (max-width:760px) {
    #configDialog .reference-qr-wrap { width:min(260px,72vw); padding:10px; }
    #configDialog .reference-config-block .config-value { max-height:31dvh; font-size:8px; }
  }


  /* =========================================================
     PREVIEW R33 — CONFIG BOX REFRESH (UDP CUSTOM / UDP ZIVPN)
     lightweight animation, per-field copy actions
     ========================================================= */
  #configDialog .config-structured-shell {
    display:grid;
    gap:12px;
  }
  #configDialog .config-structured-hero {
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:15px 16px;
    border-radius:20px;
    border:1px solid rgba(139, 139, 139, .14);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(143, 143, 143, .10) 0%, rgba(143, 143, 143, 0) 46%),
      linear-gradient(180deg, rgba(23, 23, 23, .94), rgba(14, 14, 14, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    overflow:hidden;
    animation: configCardReveal .28s cubic-bezier(.2,.8,.2,1) both;
  }
  #configDialog .config-structured-hero::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent, rgba(158, 158, 158, .05), transparent);
    pointer-events:none;
  }
  #configDialog .config-structured-meta {
    display:grid;
    gap:6px;
  }
  #configDialog .config-structured-kicker {
    color:rgba(180, 180, 180, .76);
    font-size:8px;
    letter-spacing:.16em;
  }
  #configDialog .config-structured-title {
    color:rgba(245, 245, 245, .96);
    font-size:13px;
    font-weight:700;
    letter-spacing:.05em;
  }
  #configDialog .config-structured-sub {
    color:rgba(188, 188, 188, .70);
    font-size:8px;
    line-height:1.6;
    letter-spacing:.08em;
  }
  #configDialog .config-structured-count {
    flex:0 0 auto;
    align-self:center;
    padding:10px 12px;
    border-radius:999px;
    border:1px solid rgba(145, 145, 145, .15);
    background:rgba(255, 255, 255, .03);
    color:rgba(195, 195, 195, .96);
    font-size:8px;
    font-weight:700;
    letter-spacing:.16em;
    text-align:center;
    white-space:nowrap;
  }
  #configDialog .config-fields-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  #configDialog .config-field-card {
    position:relative;
    overflow:hidden;
    display:grid;
    gap:10px;
    padding:15px;
    border-radius:20px;
    border:1px solid rgba(139, 139, 139, .14);
    background:linear-gradient(180deg, rgba(21, 21, 21, .98), rgba(13, 13, 13, .95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .12);
    animation: configCardReveal .34s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--field-index, 0) * 45ms);
    will-change: transform, opacity;
  }
  #configDialog .config-field-card::before {
    content:"";
    position:absolute;
    inset:0 auto auto 0;
    width:100%;
    height:1px;
    background:linear-gradient(90deg, rgba(146, 146, 146, .45), rgba(146, 146, 146, 0));
    opacity:.8;
    pointer-events:none;
  }
  #configDialog .config-field-card.span-2 {
    grid-column:1 / -1;
  }
  #configDialog .config-field-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  #configDialog .config-field-index {
    color:rgba(159, 159, 159, .66);
    font-size:8px;
    letter-spacing:.18em;
  }
  #configDialog .config-copy-chip {
    appearance:none;
    border:1px solid rgba(255, 255, 255, .06);
    background:rgba(255, 255, 255, .03);
    color:rgba(237, 237, 237, .92);
    border-radius:12px;
    padding:9px 11px;
    min-width:78px;
    font-size:8px;
    font-weight:700;
    letter-spacing:.14em;
    cursor:pointer;
    transition:transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
  }
  #configDialog .config-copy-chip:hover,
  #configDialog .config-copy-chip:focus-visible {
    transform:translateY(-1px);
    border-color:rgba(148, 148, 148, .26);
    background:rgba(128, 128, 128, .09);
    color:rgba(255, 255, 255, .98);
    outline:none;
  }
  #configDialog .config-field-label {
    color:rgba(178, 178, 178, .82);
    font-size:8px;
    letter-spacing:.16em;
  }
  #configDialog .config-field-value {
    text-transform:none !important;
    word-break:break-word;
    overflow-wrap:anywhere;
    color:rgba(247, 247, 247, .97);
    font-size:13px;
    line-height:1.55;
    letter-spacing:.02em;
    padding:14px 15px;
    border-radius:16px;
    border:1px solid rgba(255, 255, 255, .045);
    background:linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, .025);
    user-select:text;
  }
  #configDialog .config-copy-all-inline {
    display:flex;
    justify-content:flex-end;
  }
  #configDialog .config-copy-all-inline .mini-button {
    min-width:102px;
  }
  #configDialog .sr-config-preview {
    position:absolute !important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:pre;
    border:0;
  }
  @keyframes configCardReveal {
    from { opacity:0; transform:translateY(10px) scale(.985); }
    to { opacity:1; transform:translateY(0) scale(1); }
  }
  @media (max-width:760px) {
    #configDialog .config-structured-hero {
      padding:14px;
    }
    #configDialog .config-structured-count {
      justify-self:flex-start;
      align-self:flex-start;
    }
    #configDialog .config-fields-grid {
      grid-template-columns:1fr;
      gap:10px;
    }
    #configDialog .config-field-card,
    #configDialog .config-field-card.span-2 {
      grid-column:auto;
      padding:14px;
    }
    #configDialog .config-field-value {
      font-size:11px;
      line-height:1.6;
    }
  }



  /* =========================================================
     PREVIEW R34 — CONFIG BOX REFRESH FOR ALL PROFILES
     unified styling for QR / URI / ALL modes
     ========================================================= */
  #configDialog .reference-qr-shell,
  #configDialog .reference-config-block {
    display:none !important;
  }
  #configDialog .config-top-grid {
    display:grid;
    grid-template-columns:minmax(0, .94fr) minmax(0, 1.06fr);
    gap:12px;
  }
  #configDialog .config-info-card {
    position:relative;
    overflow:hidden;
    display:grid;
    gap:10px;
    padding:15px;
    border-radius:20px;
    border:1px solid rgba(139, 139, 139, .14);
    background:
      radial-gradient(140% 140% at 100% 0%, rgba(140, 140, 140, .08) 0%, rgba(140, 140, 140, 0) 42%),
      linear-gradient(180deg, rgba(20, 20, 20, .98), rgba(12, 12, 12, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .12);
    animation: configCardReveal .32s cubic-bezier(.2,.8,.2,1) both;
  }
  #configDialog .config-info-card::before {
    content:"";
    position:absolute;
    inset:0 auto auto 0;
    width:100%;
    height:1px;
    background:linear-gradient(90deg, rgba(146, 146, 146, .52), rgba(146, 146, 146, 0));
    pointer-events:none;
  }
  #configDialog .config-info-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  #configDialog .config-info-title {
    color:rgba(245, 245, 245, .96);
    font-size:11px;
    font-weight:700;
    letter-spacing:.12em;
  }
  #configDialog .config-info-note {
    color:rgba(184, 184, 184, .70);
    font-size:8px;
    line-height:1.55;
    letter-spacing:.08em;
  }
  #configDialog .config-info-chip {
    flex:0 0 auto;
    padding:8px 10px;
    border-radius:999px;
    border:1px solid rgba(142, 142, 142, .18);
    background:rgba(255, 255, 255, .04);
    color:rgba(195, 195, 195, .95);
    font-size:7px;
    font-weight:700;
    letter-spacing:.15em;
    white-space:nowrap;
  }
  #configDialog .config-qr-frame {
    width:min(230px, 100%);
    aspect-ratio:1;
    margin-inline:auto;
    padding:12px;
    border-radius:18px;
    background:#ffffff;
    box-shadow:0 14px 34px rgba(0, 0, 0, .22);
  }
  #configDialog .config-qr-frame img {
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
  }
  #configDialog .config-mini-stat-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  #configDialog .config-mini-stat {
    padding:12px;
    border-radius:16px;
    border:1px solid rgba(255, 255, 255, .05);
    background:linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  }
  #configDialog .config-mini-label {
    color:rgba(167, 167, 167, .74);
    font-size:7px;
    letter-spacing:.16em;
  }
  #configDialog .config-mini-value {
    margin-top:7px;
    color:rgba(246, 246, 246, .96);
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
  }
  #configDialog .config-field-card.span-2 .config-field-value {
    min-height:92px;
  }
  #configDialog .config-field-value.code-mode {
    font-size:10px;
    line-height:1.7;
    letter-spacing:.01em;
  }
  @media (max-width:760px) {
    #configDialog .config-top-grid,
    #configDialog .config-mini-stat-grid {
      grid-template-columns:1fr;
    }
    #configDialog .config-qr-frame {
      width:min(220px, 100%);
      padding:10px;
    }
    #configDialog .config-info-card {
      padding:14px;
    }
  }




/* ===== PREVIEW R60 — LOGIN REDESIGN ===== */
.login-view {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.login-view::before,
.login-view::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  filter: blur(10px);
  opacity: .75;
}

.login-view::before {
  top: 7%;
  left: max(-80px, -8vw);
  width: min(420px, 52vw);
  height: min(420px, 52vw);
  background: radial-gradient(circle, rgba(128, 128, 128, .18) 0%, rgba(128, 128, 128, 0) 72%);
}

.login-view::after {
  right: max(-110px, -10vw);
  bottom: 4%;
  width: min(460px, 56vw);
  height: min(460px, 56vw);
  background: radial-gradient(circle, rgba(109, 109, 109, .16) 0%, rgba(109, 109, 109, 0) 70%);
}

.login-shell-premium {
  width: min(1120px, 100%);
  padding: clamp(16px, 2vw, 22px) !important;
  border-radius: 34px !important;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(16px, 2.1vw, 22px);
  align-items: stretch;
}

.login-hero-panel,
.login-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)),
    radial-gradient(110% 120% at 0% 0%, rgba(128, 128, 128, .10), transparent 52%),
    radial-gradient(100% 90% at 100% 100%, rgba(104, 104, 104, .08), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 20px 60px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.login-hero-panel {
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
}

.login-hero-panel::before,
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .06) 28%, transparent 52%);
  transform: translateX(-128%);
  animation: loginSweepLight 1.25s .16s ease-out both;
}

.login-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-hero-subbrand,
.login-kicker,
.login-panel-kicker,
.login-panel-copy,
.login-stat-label,
.login-stat-meta,
.login-mini-note,
.login-chip,
.login-field > span {
  letter-spacing: .12em;
}

.login-hero-subbrand {
  margin: 0;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 700;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(178, 178, 178, .18);
  background: rgba(255, 255, 255, .035);
  color: #cccccc;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 18px;
}

.login-hero-main h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5.3vw, 72px);
  line-height: .94;
  letter-spacing: -.06em;
}

.login-copy {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.74;
  color: rgba(234, 234, 234, .76);
}

.login-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 245, 245, .88);
  font-size: 11px;
  font-weight: 800;
}

.login-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d7d7d7, #8d8d8d);
  box-shadow: 0 0 0 4px rgba(141, 141, 141, .14);
}

.login-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.login-stat-card {
  min-height: 118px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.login-stat-wide { grid-column: 1 / -1; }

.login-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: rgba(184, 184, 184, .78);
  margin-bottom: 12px;
}

.login-stat-value {
  display: block;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.login-stat-meta {
  display: block;
  font-size: 11px;
  color: rgba(205, 205, 205, .64);
  font-weight: 700;
}

.login-panel {
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-panel-head {
  margin-bottom: 22px;
}

.login-panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #c5c5c5;
  font-size: 11px;
  font-weight: 800;
}

.login-panel-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.05em;
}

.login-panel-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(220, 220, 220, .68);
  font-weight: 700;
}

.login-form {
  gap: 16px;
}

.login-field {
  gap: 10px;
}

.login-field > span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(221, 221, 221, .76);
}

.login-shell .login-field input {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(180deg, rgba(10, 10, 10, .74), rgba(16, 16, 16, .6));
  color: #f7f7f7;
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.login-shell .login-field input::placeholder {
  color: rgba(165, 165, 165, .42);
  letter-spacing: .06em;
}

.login-password-wrap {
  position: relative;
}

.login-visibility-toggle {
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .03) !important;
}

.login-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 2px;
}

.login-mini-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .03);
  color: rgba(231, 231, 231, .76);
  font-size: 10px;
  font-weight: 800;
}

.login-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c7c7c7;
  box-shadow: 0 0 0 4px rgba(199, 199, 199, .12);
}

.login-dot-blue {
  background: #b3b3b3;
  box-shadow: 0 0 0 4px rgba(179, 179, 179, .12);
}

.login-submit {
  min-height: 60px !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.login-submit span,
.login-submit small {
  position: relative;
  z-index: 1;
}

.login-submit span {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
}

.login-submit small {
  font-size: 10px;
  letter-spacing: .16em;
  opacity: .74;
}

#loginError {
  min-height: 18px;
  margin-top: 2px;
  font-size: 12px;
}

@keyframes loginSweepLight {
  from { transform: translateX(-128%); }
  to { transform: translateX(128%); }
}

@media (max-width: 980px) {
  .login-shell-premium {
    width: min(780px, 100%);
  }

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

  .login-hero-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-view {
    padding: 14px;
  }

  .login-shell-premium {
    padding: 12px !important;
    border-radius: 28px !important;
  }

  .login-hero-panel,
  .login-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .login-hero-main h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .login-copy {
    font-size: 13px;
    line-height: 1.65;
  }

  .login-chip-row {
    gap: 8px;
  }

  .login-chip,
  .login-mini-note {
    font-size: 9.5px;
  }

  .login-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-stat-card {
    min-height: auto;
  }

  .login-field > span {
    font-size: 10px;
  }

  .login-shell .login-field input {
    min-height: 54px;
    font-size: 14px;
    padding: 0 16px;
  }

  .login-submit {
    min-height: 58px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero-panel::before,
  .login-panel::before,
  .login-view.logout-return,
  .login-view.logout-return .login-shell,
  #loginButton::after,
  .topbar-logout::before {
    animation: none !important;
    transition: none !important;
  }
}



/* ===== PREVIEW R61 — REMOVE LOGIN STATS / DETAIL POLISH ===== */
.login-hero-panel {
  min-height: 520px;
}

.login-hero-main {
  margin-top: auto;
  margin-bottom: auto;
}

.login-hero-divider {
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(143, 143, 143, 0), rgba(143, 143, 143, .36), rgba(255, 255, 255, .1), rgba(143, 143, 143, 0));
  opacity: .9;
}

.login-copy {
  max-width: 58ch;
}

@media (max-width: 980px) {
  .login-hero-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-hero-panel {
    gap: 14px;
  }

  .login-hero-divider {
    margin-top: 8px;
  }
}



/* ===== PREVIEW R62 — APPLE / IPHONE LUXURY LOGIN ===== */
#loginView.login-view { position:relative; overflow:hidden; background: radial-gradient(78rem 46rem at 8% -6%, rgba(129, 129, 129, .22), transparent 55%), radial-gradient(62rem 34rem at 100% 0%, rgba(164, 164, 164, .14), transparent 50%), radial-gradient(42rem 32rem at 50% 100%, rgba(110, 110, 110, .10), transparent 55%), linear-gradient(180deg, #060606 0%, #090909 38%, #070707 100%); }
#loginView.login-view::before,#loginView.login-view::after { content:""; position:absolute; pointer-events:none; filter:blur(24px); opacity:.95; z-index:0; }
#loginView.login-view::before { width:420px; height:420px; left:-90px; top:8%; border-radius:50%; background:radial-gradient(circle, rgba(153, 153, 153, .26) 0%, rgba(153, 153, 153, .08) 35%, transparent 72%); animation:loginOrbDriftA 18s ease-in-out infinite; }
#loginView.login-view::after { width:360px; height:360px; right:-110px; bottom:5%; border-radius:50%; background:radial-gradient(circle, rgba(119, 119, 119, .16) 0%, rgba(119, 119, 119, .08) 36%, transparent 74%); animation:loginOrbDriftB 22s ease-in-out infinite; }
.login-shell-premium { position:relative; z-index:1; max-width:1280px; padding:clamp(24px, 3vw, 40px); }
.login-layout { align-items:stretch; gap:clamp(22px, 2.6vw, 32px); grid-template-columns:minmax(0, 1.12fr) minmax(420px, .88fr); }
.login-hero-panel,.login-panel { position:relative; overflow:hidden; border-radius:38px; border:1px solid rgba(255, 255, 255, .12); background:linear-gradient(180deg, rgba(29, 29, 29, .80) 0%, rgba(13, 13, 13, .88) 100%); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(255, 255, 255, .03), 0 28px 80px rgba(0, 0, 0, .42), 0 0 0 1px rgba(139, 139, 139, .03); backdrop-filter:blur(28px) saturate(155%); -webkit-backdrop-filter:blur(28px) saturate(155%); }
.login-hero-panel::before,.login-panel::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .02) 16%, transparent 36%), radial-gradient(52rem 24rem at 8% 0%, rgba(169, 169, 169, .18), transparent 45%), radial-gradient(36rem 24rem at 100% 100%, rgba(109, 109, 109, .16), transparent 55%); opacity:.9; }
.login-hero-panel::after,.login-panel::after { content:""; position:absolute; width:70%; height:56%; right:-14%; top:-16%; border-radius:50%; background:radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02) 30%, transparent 60%); filter:blur(10px); opacity:.8; pointer-events:none; }
.login-hero-panel { padding:clamp(30px, 4vw, 46px); min-height:560px; }
.login-panel { padding:clamp(28px, 3vw, 36px); }
.login-hero-top,.login-panel-head,.login-hero-main,.login-form { position:relative; z-index:2; }
#loginView .brand-mark { width:72px; height:72px; border-radius:24px; border:1px solid rgba(255, 255, 255, .16); background:linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)), linear-gradient(135deg, rgba(136, 136, 136, .40), rgba(18, 18, 18, .30) 68%, rgba(18, 18, 18, .16)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .20), 0 16px 34px rgba(0, 0, 0, .26), 0 0 0 1px rgba(144, 144, 144, .08); font-size:1.52rem; font-weight:800; letter-spacing:.08em; }
.login-brand-copy .eyebrow { margin-bottom:6px; letter-spacing:.24em; }
.login-hero-subbrand { color:rgba(222, 222, 222, .88); letter-spacing:.20em; }
.login-kicker,.login-panel-kicker { display:inline-flex; align-items:center; min-height:38px; padding:0 16px; border-radius:999px; border:1px solid rgba(255, 255, 255, .10); background:linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .08); color:rgba(213, 213, 213, .92); letter-spacing:.2em; }
.login-hero-main { display:grid; gap:18px; margin-top:auto; margin-bottom:auto; }
.login-hero-main h1 { max-width:9.5ch; font-size:clamp(3rem, 6.4vw, 5.55rem); line-height:.92; letter-spacing:-.05em; text-wrap:balance; text-shadow:0 6px 24px rgba(0, 0, 0, .34); }
.login-copy { max-width:60ch; font-size:clamp(1rem, 1.25vw, 1.1rem); line-height:1.75; color:rgba(221, 221, 221, .74); }
.login-hero-divider { width:min(100%, 520px); height:4px; margin-top:10px; border-radius:999px; background:linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(164, 164, 164, .12), rgba(255, 255, 255, .40), rgba(164, 164, 164, .12), rgba(255, 255, 255, 0)); box-shadow:0 0 20px rgba(152, 152, 152, .18); }
.login-panel-head { margin-bottom:18px; padding-bottom:18px; }
.login-panel-head::after { content:""; display:block; width:100%; height:1px; margin-top:16px; background:linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(146, 146, 146, .18), rgba(255, 255, 255, .04)); }
.login-panel-title { font-size:clamp(2rem, 4.2vw, 2.85rem); letter-spacing:-.04em; }
.login-panel-copy { max-width:36ch; color:rgba(219, 219, 219, .72); }
.login-form { gap:18px; }
.login-field > span { margin-bottom:10px; color:rgba(217, 217, 217, .76); letter-spacing:.18em; }
.login-shell .login-field input { height:68px; padding-inline:22px; border-radius:24px; border:1px solid rgba(255, 255, 255, .11); background:linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025)), rgba(16, 16, 16, .84); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 26px rgba(0, 0, 0, .18), 0 0 0 0 rgba(152, 152, 152, 0); transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease; }
.login-shell .login-field input:focus { border-color:rgba(164, 164, 164, .64); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .10), 0 0 0 4px rgba(142, 142, 142, .13), 0 18px 34px rgba(12, 12, 12, .24); background:linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)), rgba(16, 16, 16, .92); transform:translateY(-1px); }
.login-shell .login-field input::placeholder { color:rgba(191, 191, 191, .30); letter-spacing:.12em; }
.login-password-wrap { position:relative; }
.login-visibility-toggle { width:52px; height:52px; right:8px; top:8px; border-radius:18px; border:1px solid rgba(255, 255, 255, .08); background:linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .08); }
.login-meta-row { margin-top:4px; padding:14px 16px; border:1px solid rgba(255, 255, 255, .08); border-radius:22px; background:linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)); }
.login-mini-note { color:rgba(220, 220, 220, .70); }
.login-dot,.login-dot-blue { box-shadow:0 0 0 4px rgba(151, 151, 151, .11), 0 0 16px rgba(151, 151, 151, .26); }
.login-submit { position:relative; overflow:hidden; min-height:78px; border-radius:28px; border:1px solid rgba(177, 177, 177, .30); background:linear-gradient(180deg, rgba(159, 159, 159, 1) 0%, rgba(129, 129, 129, 1) 52%, rgba(108, 108, 108, 1) 100%); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .30), 0 20px 40px rgba(107, 107, 107, .32), 0 10px 24px rgba(0, 0, 0, .24); transition:transform .24s ease, box-shadow .24s ease, filter .24s ease; }
.login-submit::before { content:""; position:absolute; inset:-40% auto -40% -20%; width:48%; background:linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent); transform:translateX(-130%) skewX(-16deg); animation:loginButtonSheen 5.2s ease-in-out infinite; }
.login-submit:hover { transform:translateY(-2px); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .34), 0 26px 46px rgba(107, 107, 107, .36), 0 14px 28px rgba(0, 0, 0, .28); filter:saturate(1.06); }
.login-submit span,.login-submit small { position:relative; z-index:1; }
.login-submit small { color:rgba(237, 237, 237, .82); }
.login-hero-panel { animation:loginGlassFloat .84s cubic-bezier(.16,.84,.24,1) both; }
.login-panel { animation:loginGlassFloat .92s cubic-bezier(.16,.84,.24,1) .08s both; }
@keyframes loginGlassFloat { 0% { opacity:0; transform:translateY(18px) scale(.985); } 100% { opacity:1; transform:translateY(0) scale(1); } }
@keyframes loginButtonSheen { 0%,15% { transform:translateX(-145%) skewX(-16deg); opacity:0; } 24% { opacity:1; } 40% { transform:translateX(250%) skewX(-16deg); opacity:.7; } 41%,100% { transform:translateX(250%) skewX(-16deg); opacity:0; } }
@keyframes loginOrbDriftA { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(24px,14px,0) scale(1.06); } }
@keyframes loginOrbDriftB { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(-20px,-16px,0) scale(1.08); } }
@media (max-width:1160px) { .login-layout { grid-template-columns:1fr; } .login-hero-panel { min-height:auto; } .login-hero-main h1 { max-width:12ch; } }
@media (max-width:640px) { .login-shell-premium { padding:16px; } .login-hero-panel,.login-panel { padding:24px 20px; border-radius:30px; } #loginView .brand-mark { width:60px; height:60px; border-radius:20px; } .login-kicker,.login-panel-kicker { min-height:34px; padding:0 13px; letter-spacing:.16em; } .login-hero-main { gap:14px; } .login-hero-main h1 { font-size:clamp(2.6rem, 12vw, 3.8rem); max-width:8.8ch; } .login-copy,.login-panel-copy { font-size:.95rem; line-height:1.68; } .login-shell .login-field input { height:62px; border-radius:22px; } .login-submit { min-height:72px; border-radius:24px; } }



/* ===== PREVIEW R63 — MOBILE LOGIN PROPORTION FIX ===== */
@media (max-width: 760px) {
  #loginView.login-view {
    min-height: 100dvh;
    padding:
      max(10px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom));
    display:grid;
    place-items:center;
    overflow:hidden;
  }

  #loginView .login-shell-premium {
    width:100%;
    max-width:520px;
    padding:10px !important;
    border-radius:28px !important;
    max-height:calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  }

  #loginView .login-layout {
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  #loginView .login-hero-panel {
    min-height:0;
    padding:15px 16px 14px;
    border-radius:22px;
    display:grid;
    gap:12px;
  }

  #loginView .login-hero-top {
    gap:10px;
  }

  #loginView .brand-mark {
    width:44px;
    height:44px;
    border-radius:15px;
    font-size:1rem;
    flex:0 0 44px;
  }

  #loginView .login-brand-copy .eyebrow {
    margin:0 0 2px;
    font-size:8px;
    letter-spacing:.18em;
  }

  #loginView .login-hero-subbrand {
    margin:0;
    font-size:7px;
    letter-spacing:.14em;
  }

  #loginView .login-hero-main {
    margin:0;
    display:grid;
    gap:7px;
  }

  #loginView .login-kicker {
    min-height:26px;
    width:max-content;
    max-width:100%;
    margin:0;
    padding:0 10px;
    font-size:7px;
    letter-spacing:.13em;
  }

  #loginView .login-hero-main h1 {
    margin:0;
    max-width:none;
    font-size:clamp(28px, 8.8vw, 36px);
    line-height:.96;
    letter-spacing:-.045em;
    white-space:normal;
  }

  #loginView .login-copy,
  #loginView .login-hero-divider {
    display:none;
  }

  #loginView .login-panel {
    padding:16px;
    border-radius:22px;
  }

  #loginView .login-panel-head {
    margin:0 0 12px;
    padding:0 0 10px;
  }

  #loginView .login-panel-kicker {
    min-height:0;
    padding:0;
    margin:0 0 5px;
    border:0;
    background:none;
    box-shadow:none;
    font-size:7px;
    letter-spacing:.14em;
    color:rgba(196, 196, 196, .9);
  }

  #loginView .login-panel-title {
    margin:0 0 5px;
    font-size:27px;
    line-height:1;
  }

  #loginView .login-panel-copy {
    margin:0;
    max-width:none;
    font-size:10px;
    line-height:1.45;
    letter-spacing:.03em;
  }

  #loginView .login-panel-head::after {
    margin-top:10px;
  }

  #loginView .login-form {
    gap:11px;
  }

  #loginView .login-field {
    gap:6px;
  }

  #loginView .login-field > span {
    margin:0;
    font-size:8px;
    letter-spacing:.13em;
  }

  #loginView .login-shell .login-field input {
    height:50px;
    min-height:50px;
    padding:0 15px;
    border-radius:16px;
    font-size:13px;
  }

  #loginView .login-visibility-toggle {
    width:38px;
    height:38px;
    right:6px;
    top:6px;
    border-radius:12px;
  }

  #loginView .login-meta-row {
    display:none;
  }

  #loginView .login-submit {
    min-height:54px !important;
    height:54px;
    margin-top:1px;
    border-radius:17px !important;
    gap:2px;
  }

  #loginView .login-submit span {
    font-size:12px;
    letter-spacing:.10em;
  }

  #loginView .login-submit small {
    font-size:7px;
    letter-spacing:.12em;
  }

  #loginView #loginError {
    min-height:12px;
    margin:0;
    font-size:10px;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  #loginView.login-view {
    padding-top:8px;
    padding-bottom:8px;
  }

  #loginView .login-shell-premium {
    padding:8px !important;
    border-radius:24px !important;
  }

  #loginView .login-layout {
    gap:8px;
  }

  #loginView .login-hero-panel {
    padding:12px 14px;
    gap:9px;
    border-radius:19px;
  }

  #loginView .brand-mark {
    width:38px;
    height:38px;
    flex-basis:38px;
    border-radius:13px;
  }

  #loginView .login-hero-main h1 {
    font-size:26px;
  }

  #loginView .login-kicker {
    min-height:23px;
    font-size:6.4px;
  }

  #loginView .login-panel {
    padding:13px 14px;
    border-radius:19px;
  }

  #loginView .login-panel-head {
    margin-bottom:9px;
    padding-bottom:8px;
  }

  #loginView .login-panel-title {
    font-size:24px;
  }

  #loginView .login-panel-copy {
    display:none;
  }

  #loginView .login-form {
    gap:9px;
  }

  #loginView .login-shell .login-field input {
    height:46px;
    min-height:46px;
    border-radius:15px;
  }

  #loginView .login-visibility-toggle {
    width:34px;
    height:34px;
    top:6px;
    right:6px;
  }

  #loginView .login-submit {
    height:50px;
    min-height:50px !important;
    border-radius:16px !important;
  }
}



/* ===== PREVIEW R64 — LOGIN HERO + INPUT POLISH ===== */
#loginView .login-hero-panel {
  position: relative;
  isolation: isolate;
}

#loginView .login-hero-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 8% 0%, rgba(185, 185, 185, .16), transparent 48%),
    radial-gradient(90% 90% at 100% 0%, rgba(255, 255, 255, .07), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
  opacity: .95;
  z-index: -1;
}

#loginView .login-hero-top {
  align-items: center;
  gap: 16px;
}

#loginView .login-brand-copy {
  gap: 6px;
}

#loginView .login-brand-copy .eyebrow {
  color: rgba(242, 242, 242, .84);
  font-size: 13px;
  letter-spacing: .18em;
}

#loginView .login-hero-subbrand {
  color: rgba(202, 202, 202, .82);
  font-size: 12px;
  letter-spacing: .16em;
}

#loginView .login-kicker {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border-color: rgba(188, 188, 188, .24);
  color: #e9e9e9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 30px rgba(19, 19, 19, .22);
}

#loginView .login-hero-main h1 {
  text-wrap: balance;
}

#loginView .login-panel-head {
  position: relative;
}

#loginView .login-panel-head::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(162, 162, 162, 0), rgba(162, 162, 162, .34), rgba(255, 255, 255, .12), rgba(162, 162, 162, 0));
}

#loginView .login-field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 232, 232, .80);
}

#loginView .login-field > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c5c5c5, #8c8c8c);
  box-shadow: 0 0 0 5px rgba(140, 140, 140, .12);
}

#loginView .login-shell .login-field input {
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}

#loginView .login-shell .login-field input::placeholder {
  color: transparent;
}

#loginView .login-shell .login-field input:focus {
  border-color: rgba(166, 166, 166, .42);
  background: linear-gradient(180deg, rgba(15, 15, 15, .92), rgba(18, 18, 18, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 4px rgba(134, 134, 134, .10), 0 16px 36px rgba(16, 16, 16, .24);
  transform: translateY(-1px);
}

#loginView .login-shell .login-field input:not(:placeholder-shown),
#loginView .login-shell .login-field input:-webkit-autofill {
  color: #fafafa;
}

@media (max-width: 760px) {
  #loginView .login-shell-premium {
    max-width: 540px;
  }

  #loginView .login-hero-panel {
    padding: 18px 18px 16px;
    border-radius: 24px;
    gap: 14px;
    background:
      linear-gradient(180deg, rgba(29, 29, 29, .88) 0%, rgba(14, 14, 14, .92) 100%),
      radial-gradient(120% 120% at 0% 0%, rgba(144, 144, 144, .20), transparent 48%);
  }

  #loginView .login-hero-top {
    gap: 12px;
  }

  #loginView .brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 18px;
    font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 28px rgba(29, 29, 29, .24);
  }

  #loginView .login-brand-copy .eyebrow {
    font-size: 9px;
    margin: 0 0 3px;
    letter-spacing: .18em;
  }

  #loginView .login-hero-subbrand {
    font-size: 8px;
    letter-spacing: .16em;
  }

  #loginView .login-kicker {
    min-height: 28px;
    padding: 0 11px;
    font-size: 7px;
    letter-spacing: .16em;
  }

  #loginView .login-hero-main {
    display: grid;
    gap: 9px;
  }

  #loginView .login-hero-main h1 {
    font-size: clamp(24px, 8.5vw, 34px);
    line-height: .96;
    letter-spacing: -.05em;
    max-width: 9.6ch;
  }

  #loginView .login-panel {
    padding: 18px 18px 17px;
    border-radius: 24px;
  }

  #loginView .login-panel-kicker {
    font-size: 8px;
    letter-spacing: .16em;
  }

  #loginView .login-panel-title {
    font-size: 29px;
  }

  #loginView .login-panel-copy {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(227, 227, 227, .70);
  }

  #loginView .login-field {
    gap: 7px;
  }

  #loginView .login-field > span {
    font-size: 9px;
    letter-spacing: .15em;
  }

  #loginView .login-shell .login-field input {
    height: 54px;
    min-height: 54px;
    border-radius: 18px;
    padding: 0 16px;
    font-size: 14px;
    background: linear-gradient(180deg, rgba(13, 13, 13, .92), rgba(16, 16, 16, .78));
  }

  #loginView .login-visibility-toggle {
    width: 40px;
    height: 40px;
    top: 7px;
    right: 7px;
    border-radius: 13px;
  }

  #loginView .login-submit {
    min-height: 56px !important;
    height: 56px;
    border-radius: 18px !important;
  }

  #loginView .login-submit span {
    font-size: 13px;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  #loginView .login-hero-panel {
    padding: 16px 16px 14px;
    gap: 12px;
  }

  #loginView .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  #loginView .login-hero-main h1 {
    font-size: 22px;
    max-width: 10.2ch;
  }

  #loginView .login-panel {
    padding: 16px;
  }

  #loginView .login-panel-title {
    font-size: 27px;
  }

  #loginView .login-shell .login-field input {
    height: 50px;
    min-height: 50px;
  }
}



/* ===== PREVIEW R65 — DESKTOP SIDEBAR ALL PROMOTIONS ===== */
@media (min-width: 961px) {
  #desktopNav [data-route="more"] .nav-glyph {
    background: linear-gradient(180deg, rgba(127, 127, 127, .22), rgba(34, 34, 34, .58));
    border-color: rgba(168, 168, 168, .30);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 24px rgba(20, 20, 20, .24);
  }

  #desktopNav [data-route="more"] span:last-child {
    letter-spacing: .08em;
    font-size: 12.5px;
  }
}



/* ===== PREVIEW R66 — RESELLER / MULTI-ADMIN PANEL ===== */
@media (min-width: 961px) {
  #desktopNav [data-route="resellers"] .nav-glyph {
    background: linear-gradient(180deg, rgba(114, 114, 114, .23), rgba(38, 38, 38, .52));
    border-color: rgba(150, 150, 150, .25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 24px rgba(26, 26, 26, .18);
  }
}

.reseller-page { --reseller-accent:#828282; --reseller-blue:#a3a3a3; }
.reseller-hero {
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px;
  border-color:rgba(130, 130, 130, .15);
  background:
    radial-gradient(80% 150% at 0% 0%, rgba(125, 125, 125, .16), transparent 52%),
    radial-gradient(60% 120% at 100% 100%, rgba(158, 158, 158, .08), transparent 56%),
    linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .026));
}
.reseller-hero::after { content:""; position:absolute; width:320px; height:120px; right:-40px; top:-55px; border-radius:50%; background:rgba(125, 125, 125, .13); filter:blur(45px); pointer-events:none; }
.reseller-hero-copy { position:relative; z-index:1; max-width:780px; }
.reseller-hero-kicker { display:inline-flex; margin-bottom:8px; color:#c7c7c7; font-size:9px; font-weight:850; letter-spacing:.18em; }
.reseller-hero h3 { margin:0 0 7px; font-size:clamp(22px,3vw,34px); letter-spacing:-.035em; }
.reseller-hero p { margin:0; max-width:70ch; color:rgba(213, 213, 213, .68); font-size:10px; line-height:1.65; letter-spacing:.04em; }
.reseller-add-button { position:relative; z-index:1; min-height:48px; padding-inline:18px; display:inline-flex; align-items:center; gap:9px; border-radius:16px; white-space:nowrap; }
.reseller-add-button svg { width:17px; height:17px; }

.reseller-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.reseller-metric-card { padding:17px 18px; border:1px solid rgba(255, 255, 255, .065); border-radius:20px; background:linear-gradient(180deg,rgba(255, 255, 255, .04),rgba(255, 255, 255, .022)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .035); }
.reseller-metric-card span,.reseller-metric-card small { display:block; color:rgba(179, 179, 179, .68); font-size:7px; font-weight:800; letter-spacing:.16em; }
.reseller-metric-card strong { display:block; margin:8px 0 4px; font-size:24px; letter-spacing:-.035em; }
.reseller-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:12px; }
.reseller-section-head > div span { color:#bebebe; font-size:8px; font-weight:800; letter-spacing:.18em; }
.reseller-section-head h3 { margin:4px 0 0; font-size:18px; }
.reseller-super-pill,.reseller-isolation-pill { display:inline-flex; align-items:center; min-height:30px; padding:0 10px; border:1px solid rgba(182, 182, 182, .15); border-radius:999px; background:rgba(159, 159, 159, .07); color:#d5d5d5; font-size:6.8px; font-weight:850; letter-spacing:.15em; }
.reseller-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.reseller-card { position:relative; overflow:hidden; padding:20px; border-color:rgba(133, 133, 133, .12); }
.reseller-card-glow { position:absolute; width:170px; height:100px; right:-45px; top:-50px; border-radius:50%; background:rgba(118, 118, 118, .12); filter:blur(38px); pointer-events:none; }
.reseller-card-head { position:relative; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.reseller-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.reseller-avatar { width:46px; height:46px; flex:0 0 46px; display:grid; place-items:center; border-radius:15px; border:1px solid rgba(170, 170, 170, .16); background:linear-gradient(180deg,rgba(134, 134, 134, .21),rgba(42, 42, 42, .36)); color:#eeeeee; font-size:12px; font-weight:900; letter-spacing:.06em; box-shadow:inset 0 1px 0 rgba(255, 255, 255, .07); }
.reseller-identity > div:last-child { display:grid; gap:3px; min-width:0; }
.reseller-id { color:#b9b9b9; font-size:6.8px; font-weight:850; letter-spacing:.16em; }
.reseller-identity strong { font-size:14px; letter-spacing:.02em; }
.reseller-identity small { color:rgba(183, 183, 183, .62); font-size:6.5px; font-weight:750; letter-spacing:.12em; }
.reseller-scope-line { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; margin:15px 0 12px; padding:10px 11px; border:1px solid rgba(173, 173, 173, .10); border-radius:14px; background:rgba(127, 127, 127, .045); }
.reseller-scope-line span { color:rgba(167, 167, 167, .68); font-size:6.5px; font-weight:800; letter-spacing:.14em; }
.reseller-scope-line strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:rgba(229, 229, 229, .82); font-size:7px; letter-spacing:.08em; }
.reseller-scope-line i { color:#d0d0d0; font-style:normal; font-size:6.5px; font-weight:900; letter-spacing:.13em; }
.reseller-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.reseller-stat { padding:11px; border:1px solid rgba(255, 255, 255, .055); border-radius:14px; background:rgba(255, 255, 255, .025); min-width:0; }
.reseller-stat span,.reseller-stat small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:rgba(163, 163, 163, .62); font-size:6.2px; font-weight:800; letter-spacing:.13em; }
.reseller-stat strong { display:block; margin:6px 0 4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.reseller-capacity { display:grid; gap:7px; margin-top:12px; }
.reseller-capacity > div:first-child { display:flex; justify-content:space-between; color:rgba(177, 177, 177, .68); font-size:6.6px; font-weight:800; letter-spacing:.14em; }
.reseller-capacity-track { height:5px; border-radius:999px; overflow:hidden; background:rgba(255, 255, 255, .05); }
.reseller-capacity-track i { display:block; width:var(--usage); height:100%; border-radius:inherit; background:linear-gradient(90deg,#878787,#afafaf); box-shadow:0 0 12px rgba(155, 155, 155, .24); }
.reseller-permission-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.reseller-permission-chips span { padding:6px 8px; border:1px solid rgba(159, 159, 159, .10); border-radius:999px; background:rgba(106, 106, 106, .055); color:rgba(210, 210, 210, .76); font-size:6.2px; font-weight:800; letter-spacing:.11em; }
.reseller-card-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid rgba(255, 255, 255, .05); }
.reseller-architecture-note { display:flex; align-items:flex-start; gap:10px; padding:13px 15px; border:1px solid rgba(197, 197, 197, .10); border-radius:16px; background:rgba(180, 180, 180, .035); color:rgba(211, 211, 211, .68); }
.reseller-architecture-note svg { flex:0 0 17px; color:#cccccc; }
.reseller-architecture-note p { margin:0; font-size:7px; line-height:1.6; letter-spacing:.05em; }
.reseller-architecture-note strong { color:#d8d8d8; }

.reseller-create-sheet,.reseller-manage-sheet { width:min(720px,calc(100vw - 24px)); }
.reseller-permission-box { margin-top:14px; padding:14px; border:1px solid rgba(159, 159, 159, .10); border-radius:18px; background:linear-gradient(180deg,rgba(95, 95, 95, .06),rgba(255, 255, 255, .018)); }
.reseller-permission-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.reseller-permission-head > div { display:grid; gap:3px; }
.reseller-permission-head span:first-child { color:#bebebe; font-size:7px; font-weight:850; letter-spacing:.17em; }
.reseller-permission-head strong { font-size:11px; }
.reseller-permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.reseller-check { display:flex; align-items:center; gap:9px; min-height:40px; padding:0 10px; border:1px solid rgba(255, 255, 255, .055); border-radius:13px; background:rgba(255, 255, 255, .025); color:rgba(229, 229, 229, .82); font-size:7px; font-weight:800; letter-spacing:.11em; }
.reseller-check input { accent-color:#898989; }
.reseller-permission-box p { margin:10px 0 0; color:rgba(172, 172, 172, .62); font-size:6.7px; line-height:1.55; letter-spacing:.04em; }
.reseller-manage-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.reseller-manage-summary > div { padding:12px; border:1px solid rgba(255, 255, 255, .06); border-radius:15px; background:rgba(255, 255, 255, .025); }
.reseller-manage-summary span { display:block; color:rgba(167, 167, 167, .64); font-size:6.4px; font-weight:800; letter-spacing:.13em; }
.reseller-manage-summary strong { display:block; margin-top:7px; font-size:12px; }
.reseller-manage-scope { display:flex; align-items:flex-start; gap:10px; margin-top:12px; padding:13px; border:1px solid rgba(173, 173, 173, .11); border-radius:16px; background:rgba(127, 127, 127, .045); }
.reseller-manage-scope svg { flex:0 0 18px; color:#d0d0d0; }
.reseller-manage-scope strong { font-size:8px; color:#dddddd; letter-spacing:.10em; }
.reseller-manage-scope p { margin:4px 0 0; color:rgba(199, 199, 199, .70); font-size:7px; line-height:1.5; }
.reseller-manage-section { margin-top:14px; }
.reseller-manage-heading { display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; color:#bebebe; font-size:7px; font-weight:850; letter-spacing:.14em; }
.reseller-manage-heading small { color:rgba(172, 172, 172, .58); }
.reseller-customer-list { display:grid; gap:7px; }
.reseller-customer-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 11px; border:1px solid rgba(255, 255, 255, .055); border-radius:13px; background:rgba(255, 255, 255, .024); }
.reseller-customer-row > div { display:grid; gap:3px; }
.reseller-customer-row strong { font-size:9px; }
.reseller-customer-row span { color:rgba(169, 169, 169, .65); font-size:6.3px; font-weight:750; letter-spacing:.08em; }
.reseller-permission-chips.manage { margin-top:0; }

@media (max-width:1050px) { .reseller-grid { grid-template-columns:1fr; } .reseller-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .reseller-hero { align-items:stretch; flex-direction:column; padding:18px; border-radius:22px; }
  .reseller-add-button { width:100%; justify-content:center; }
  .reseller-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .reseller-metric-card { padding:13px; border-radius:16px; }
  .reseller-metric-card strong { font-size:20px; }
  .reseller-section-head { align-items:flex-start; flex-direction:column; }
  .reseller-card { padding:14px; border-radius:20px; }
  .reseller-card-head { align-items:flex-start; }
  .reseller-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reseller-scope-line { grid-template-columns:auto 1fr; }
  .reseller-scope-line i { grid-column:1/-1; width:max-content; }
  .reseller-card-actions { justify-content:stretch; }
  .reseller-card-actions .mini-button { flex:1; }
  .reseller-permission-grid,.reseller-manage-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reseller-permission-head { align-items:flex-start; flex-direction:column; }
  .reseller-customer-row { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) { .reseller-card,.reseller-add-button { transition:none !important; animation:none !important; } }



/* ===== PREVIEW R67 — RESELLER PANEL LINK + SUPER ADMIN VIEW-AS ===== */
.reseller-card-actions-extended{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.reseller-card-actions-extended .mini-button{width:100%;justify-content:center}.reseller-panel-open{border-color:rgba(162, 162, 162, .18)!important;background:linear-gradient(180deg,rgba(128, 128, 128, .13),rgba(56, 56, 56, .13))!important;color:#d0d0d0!important}
.reseller-panel-access{margin-top:14px;padding:15px;border:1px solid rgba(156, 156, 156, .12);border-radius:18px;background:radial-gradient(100% 100% at 0% 0%,rgba(135, 135, 135, .08),transparent 50%),linear-gradient(180deg,rgba(93, 93, 93, .055),rgba(255, 255, 255, .018));box-shadow:inset 0 1px 0 rgba(255, 255, 255, .035)}
.reseller-panel-access-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.reseller-panel-access-head>div{display:grid;gap:4px}.reseller-panel-access-head span:first-child{color:#bebebe;font-size:7px;font-weight:850;letter-spacing:.17em}.reseller-panel-access-head strong{font-size:11px}.reseller-panel-status{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;font-size:6.5px;font-weight:900;letter-spacing:.13em}.reseller-panel-status.active{color:#d4d4d4;border:1px solid rgba(186, 186, 186, .14);background:rgba(149, 149, 149, .07)}.reseller-panel-status.inactive{color:#b8b8b8;border:1px solid rgba(148, 148, 148, .13);background:rgba(98, 98, 98, .07)}
.reseller-panel-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px}.reseller-panel-url-copy{min-width:0;padding:11px 12px;border:1px solid rgba(255, 255, 255, .055);border-radius:14px;background:rgba(10, 10, 10, .35)}.reseller-panel-url-copy span{display:block;margin-bottom:5px;color:rgba(171, 171, 171, .65);font-size:6.2px;font-weight:800;letter-spacing:.14em}.reseller-panel-url-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e6e6e6;font-size:8px;letter-spacing:.025em;text-transform:none!important}.reseller-panel-access>p{margin:10px 0 0;color:rgba(179, 179, 179, .62);font-size:6.5px;line-height:1.55;letter-spacing:.04em}.reseller-panel-access-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.reseller-panel-access-actions .button{min-height:42px;border-radius:14px;font-size:7px;letter-spacing:.1em}.reseller-empty-owned{padding:14px;border:1px dashed rgba(255, 255, 255, .07);border-radius:13px;text-align:center;color:rgba(173, 173, 173, .55);font-size:7px;font-weight:800;letter-spacing:.12em}
.reseller-panel-dialog{padding:12px}.reseller-panel-sheet{width:min(940px,calc(100vw - 24px));max-height:min(92dvh,900px);overflow:auto}.reseller-preview-banner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:-2px -2px 14px;padding:10px 12px;border:1px solid rgba(158, 158, 158, .13);border-radius:15px;background:linear-gradient(90deg,rgba(84, 84, 84, .14),rgba(41, 41, 41, .13))}.reseller-preview-pulse{width:8px;height:8px;border-radius:999px;background:#b1b1b1;box-shadow:0 0 0 5px rgba(177, 177, 177, .10),0 0 18px rgba(177, 177, 177, .32)}.reseller-preview-banner>div{display:grid;gap:2px}.reseller-preview-banner strong{color:#d9d9d9;font-size:7px;letter-spacing:.16em}.reseller-preview-banner small{color:rgba(206, 206, 206, .66);font-size:6.2px;letter-spacing:.09em}.reseller-preview-audit{color:#d3d3d3;font-size:6px;font-weight:850;letter-spacing:.13em}.reseller-panel-head{margin-bottom:12px}.reseller-panel-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px;border:1px solid rgba(152, 152, 152, .10);border-radius:19px;background:linear-gradient(180deg,rgba(95, 95, 95, .065),rgba(255, 255, 255, .022))}.reseller-panel-hero>div{display:grid;gap:5px}.reseller-panel-hero>div>span{color:#bcbcbc;font-size:7px;font-weight:850;letter-spacing:.16em}.reseller-panel-hero h4{margin:0;font-size:24px;letter-spacing:-.03em}.reseller-panel-hero p{margin:0;max-width:66ch;color:rgba(192, 192, 192, .66);font-size:7px;line-height:1.55;letter-spacing:.04em}.reseller-panel-metrics-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px}.reseller-panel-metrics-preview>div{padding:14px;border:1px solid rgba(255, 255, 255, .055);border-radius:15px;background:rgba(255, 255, 255, .025)}.reseller-panel-metrics-preview span,.reseller-panel-metrics-preview small{display:block;color:rgba(167, 167, 167, .64);font-size:6.3px;font-weight:800;letter-spacing:.13em}.reseller-panel-metrics-preview strong{display:block;margin:7px 0 4px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reseller-panel-capacity-preview,.reseller-panel-quick-preview,.reseller-panel-customers-preview{margin-top:12px;padding:14px;border:1px solid rgba(255, 255, 255, .055);border-radius:17px;background:rgba(255, 255, 255, .018)}.reseller-panel-capacity-preview>div:first-child{display:flex;justify-content:space-between;margin-bottom:8px;color:rgba(178, 178, 178, .7);font-size:6.5px;font-weight:800;letter-spacing:.14em}.reseller-panel-guardrail{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:13px 14px;border:1px solid rgba(197, 197, 197, .10);border-radius:16px;background:rgba(180, 180, 180, .035)}.reseller-panel-guardrail svg{flex:0 0 18px;color:#cccccc}.reseller-panel-guardrail strong{color:#d9d9d9;font-size:7px;letter-spacing:.14em}.reseller-panel-guardrail p{margin:4px 0 0;color:rgba(198, 198, 198, .65);font-size:6.6px;line-height:1.55}.reseller-panel-footer{margin-top:14px}
@media(max-width:760px){.reseller-card-actions-extended{grid-template-columns:1fr 1fr}.reseller-panel-url-row{grid-template-columns:1fr}.reseller-panel-url-row .mini-button{width:100%;justify-content:center}.reseller-panel-access-actions{grid-template-columns:1fr}.reseller-panel-sheet{width:min(100%,calc(100vw - 16px));max-height:92dvh;border-radius:24px}.reseller-preview-banner{grid-template-columns:auto 1fr}.reseller-preview-audit{grid-column:2}.reseller-panel-hero{flex-direction:column}.reseller-panel-metrics-preview{grid-template-columns:1fr 1fr}}



/* ===== PREVIEW R68 — TRUE RESELLER WORKSPACE PREVIEW ===== */
.app-view.reseller-workspace-mode .sidebar,
.app-view.reseller-workspace-mode .mobile-nav {
  display: none !important;
}

.app-view.reseller-workspace-mode .topbar {
  left: 14px !important;
  right: 14px !important;
  width: auto !important;
}

.app-view.reseller-workspace-mode .page-root {
  margin-left: 0 !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  max-width: 1440px;
  margin-right: auto !important;
  margin-inline: auto !important;
}

.reseller-workspace-page {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}

.reseller-preview-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid rgba(174, 174, 174, .24);
  border-radius: 24px;
  background:
    radial-gradient(70% 140% at 0% 0%, rgba(144, 144, 144, .15), transparent 60%),
    linear-gradient(180deg, rgba(27, 27, 27, .93), rgba(15, 15, 15, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 54px rgba(0, 0, 0, .20);
}

.reseller-preview-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .055) 38%, transparent 66%);
  transform: translateX(-125%);
  animation: resellerPreviewSweep 1.05s .12s ease-out both;
}

.reseller-preview-banner-copy,
.reseller-preview-banner-actions {
  position: relative;
  z-index: 1;
}

.reseller-preview-banner-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.reseller-preview-shield {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(183, 183, 183, .20);
  background: rgba(145, 145, 145, .09);
  color: #c6c6c6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.reseller-preview-shield svg { width: 19px; height: 19px; }

.reseller-preview-banner-copy span,
.reseller-workspace-label,
.reseller-workspace-card span,
.reseller-workspace-cap-head span,
.reseller-workspace-section-head span,
.reseller-panel-link-box span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(193, 193, 193, .72);
}

.reseller-preview-banner-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: .03em;
}

.reseller-preview-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reseller-back-button {
  min-height: 42px !important;
  border-radius: 15px !important;
  gap: 8px;
  white-space: nowrap;
}

.reseller-back-button svg { width: 15px; height: 15px; }

.reseller-workspace-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 28px;
  background:
    radial-gradient(80% 110% at 0% 0%, rgba(138, 138, 138, .12), transparent 56%),
    radial-gradient(50% 100% at 100% 100%, rgba(101, 101, 101, .08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .022));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 56px rgba(0, 0, 0, .18);
}

.reseller-workspace-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.reseller-workspace-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reseller-workspace-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(171, 171, 171, .20);
  background: linear-gradient(145deg, rgba(125, 125, 125, .24), rgba(35, 35, 35, .64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 14px 34px rgba(16, 16, 16, .20);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reseller-workspace-identity h3 {
  margin: 4px 0 5px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}

.reseller-workspace-identity p {
  margin: 0;
  color: rgba(205, 205, 205, .62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.reseller-workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
}

.reseller-workspace-card {
  min-height: 116px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.reseller-workspace-card strong {
  display: block;
  margin: 13px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
}

.reseller-workspace-card small {
  color: rgba(193, 193, 193, .58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
}

.reseller-workspace-content {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: 18px;
}

.reseller-workspace-section {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 44px rgba(0, 0, 0, .14);
}

.reseller-workspace-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.reseller-workspace-section-head h4 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.reseller-workspace-quick-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.reseller-workspace-action {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .022));
  color: #f4f4f4;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.reseller-workspace-action:hover,
.reseller-workspace-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(165, 165, 165, .25);
  background: linear-gradient(180deg, rgba(140, 140, 140, .08), rgba(255, 255, 255, .025));
  outline: none;
}

.reseller-workspace-action span {
  display: block;
  margin-bottom: 7px;
  color: rgba(190, 190, 190, .92);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}

.reseller-workspace-action strong {
  font-size: 13px;
  letter-spacing: .04em;
}

.reseller-workspace-customer-list {
  display: grid;
  gap: 9px;
}

.reseller-workspace-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}

.reseller-workspace-customer strong {
  display: block;
  font-size: 13px;
}

.reseller-workspace-customer span {
  display: block;
  margin-top: 4px;
  color: rgba(189, 189, 189, .58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

.reseller-workspace-customer > small {
  color: #c9c9c9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.reseller-workspace-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: 20px;
  color: rgba(194, 194, 194, .52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.reseller-panel-link-box {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid rgba(160, 160, 160, .14);
  border-radius: 18px;
  background: rgba(43, 43, 43, .20);
}

.reseller-panel-link-box strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}

.reseller-panel-link-box .mini-button { justify-self: start; }

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

.reseller-workspace-cap-head strong { font-size: 13px; }

.reseller-workspace-cap-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

.reseller-workspace-cap-track i {
  display: block;
  width: var(--usage,0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #767676, #bbbbbb);
  box-shadow: 0 0 18px rgba(187, 187, 187, .24);
}

.reseller-workspace-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.reseller-workspace-perms span {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(132, 132, 132, .16);
  border-radius: 999px;
  background: rgba(111, 111, 111, .055);
  color: rgba(221, 221, 221, .82);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
}

@keyframes resellerPreviewSweep {
  from { transform: translateX(-125%); }
  to { transform: translateX(125%); }
}

@media (max-width: 900px) {
  .app-view.reseller-workspace-mode .topbar {
    left: 10px !important;
    right: 10px !important;
  }

  .app-view.reseller-workspace-mode .page-root {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: max(22px, env(safe-area-inset-bottom)) !important;
  }

  .reseller-workspace-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reseller-workspace-content { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .reseller-workspace-page { gap: 12px; }
  .reseller-preview-banner { align-items: flex-start; padding: 13px; border-radius: 20px; }
  .reseller-preview-banner-copy { gap: 10px; }
  .reseller-preview-shield { width: 37px; height: 37px; flex-basis: 37px; border-radius: 13px; }
  .reseller-preview-banner-copy span { font-size: 8px; }
  .reseller-preview-banner-copy strong { font-size: 11px; }
  .reseller-back-button { min-height: 38px !important; padding-inline: 11px !important; font-size: 9px !important; }

  .reseller-workspace-hero { padding: 17px; border-radius: 22px; }
  .reseller-workspace-hero-top { align-items: flex-start; }
  .reseller-workspace-avatar { width: 50px; height: 50px; flex-basis: 50px; border-radius: 17px; font-size: 16px; }
  .reseller-workspace-identity { gap: 11px; }
  .reseller-workspace-identity h3 { font-size: 25px; }
  .reseller-workspace-identity p { font-size: 9px; }
  .reseller-workspace-grid { gap: 9px; margin-top: 16px; }
  .reseller-workspace-card { min-height: 96px; padding: 13px; border-radius: 18px; }
  .reseller-workspace-card span { font-size: 8px; }
  .reseller-workspace-card strong { margin: 9px 0 5px; font-size: 21px; }
  .reseller-workspace-card small { font-size: 8px; }

  .reseller-workspace-section { padding: 15px; border-radius: 21px; }
  .reseller-workspace-section-head h4 { font-size: 17px; }
  .reseller-workspace-quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .reseller-workspace-action { min-height: 66px; border-radius: 16px; }
  .reseller-workspace-customer { min-height: 58px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reseller-preview-banner::before { animation: none !important; }
}



/* ===== PREVIEW R69 — COMPLETE RESELLER PANEL PREVIEW ===== */
.app-view.reseller-workspace-mode .topbar { display:none !important; }
.app-view.reseller-workspace-mode .page-root {
  min-height:100dvh !important;
  padding:0 !important;
  margin:0 !important;
  max-width:none !important;
  background:
    radial-gradient(70rem 40rem at 0% 0%, rgba(120, 120, 120, .12), transparent 52%),
    radial-gradient(50rem 32rem at 100% 100%, rgba(97, 97, 97, .08), transparent 56%),
    #080808;
}

.reseller-panel-preview-shell { min-height:100dvh; position:relative; padding:14px; }
.reseller-panel-preview-strip {
  position:relative; z-index:50; min-height:54px; padding:9px 12px 9px 15px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid rgba(159, 159, 159, .20); border-radius:18px;
  background:linear-gradient(180deg,rgba(31, 31, 31, .96),rgba(16, 16, 16, .96));
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .06),0 14px 38px rgba(0, 0, 0, .22);
}
.reseller-panel-preview-strip>div { display:flex; align-items:center; gap:9px; min-width:0; }
.reseller-panel-preview-strip>div>svg { color:#bfbfbf; flex:0 0 16px; }
.reseller-panel-preview-strip span { color:#c4c4c4; font-size:9px; font-weight:900; letter-spacing:.14em; }
.reseller-panel-preview-strip strong { color:rgba(234, 234, 234, .84); font-size:9px; letter-spacing:.10em; white-space:nowrap; }
.reseller-panel-preview-strip button { min-height:34px; padding:0 12px; display:inline-flex; align-items:center; gap:7px; border:1px solid rgba(255, 255, 255, .08); border-radius:12px; background:rgba(255, 255, 255, .035); color:#f1f1f1; font-size:8px; font-weight:850; letter-spacing:.10em; }
.reseller-panel-preview-strip button svg { transform:rotate(180deg); }

.reseller-panel-frame { min-height:calc(100dvh - 82px); margin-top:12px; display:grid; grid-template-columns:238px minmax(0,1fr); gap:12px; }
.reseller-panel-sidebar {
  position:sticky; top:80px; align-self:start; min-height:calc(100dvh - 96px); padding:15px;
  display:flex; flex-direction:column; border:1px solid rgba(255, 255, 255, .075); border-radius:25px;
  background:linear-gradient(180deg,rgba(23, 23, 23, .94),rgba(12, 12, 12, .96));
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .055),0 24px 60px rgba(0, 0, 0, .22);
}
.reseller-panel-brand { min-height:58px; display:flex; align-items:center; gap:11px; }
.reseller-panel-brand-mark { width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(171, 171, 171, .22); border-radius:14px; background:linear-gradient(145deg,rgba(128, 128, 128, .24),rgba(28, 28, 28, .60)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .09); font-size:13px; font-weight:900; }
.reseller-panel-brand>div:last-child { display:grid; gap:2px; }
.reseller-panel-brand strong { font-size:11px; letter-spacing:.10em; }
.reseller-panel-brand span { color:rgba(172, 172, 172, .58); font-size:7px; font-weight:850; letter-spacing:.16em; }
.reseller-panel-owner { display:flex; align-items:center; gap:10px; margin:9px 0 15px; padding:11px; border:1px solid rgba(255, 255, 255, .06); border-radius:17px; background:rgba(255, 255, 255, .025); }
.reseller-panel-owner-avatar,.reseller-panel-mini-avatar { display:grid; place-items:center; border:1px solid rgba(166, 166, 166, .20); background:linear-gradient(145deg,rgba(123, 123, 123, .22),rgba(35, 35, 35, .62)); color:#f3f3f3; font-weight:900; }
.reseller-panel-owner-avatar { width:39px; height:39px; flex:0 0 39px; border-radius:13px; font-size:11px; }
.reseller-panel-owner>div:last-child { min-width:0; display:grid; gap:2px; }
.reseller-panel-owner span,.reseller-panel-owner small { color:rgba(166, 166, 166, .58); font-size:6px; font-weight:800; letter-spacing:.14em; }
.reseller-panel-owner strong { overflow:hidden; text-overflow:ellipsis; font-size:10px; }
.reseller-panel-nav { display:grid; gap:5px; }
.reseller-panel-nav-item { width:100%; min-height:46px; padding:0 11px; display:flex; align-items:center; gap:10px; border:1px solid transparent; border-radius:14px; background:transparent; color:rgba(184, 184, 184, .62); font-size:8px; font-weight:850; letter-spacing:.10em; text-align:left; transition:transform .17s ease,border-color .17s ease,background .17s ease,color .17s ease; }
.reseller-panel-nav-item:hover,.reseller-panel-nav-item:focus-visible { color:#f5f5f5; border-color:rgba(159, 159, 159, .12); background:rgba(113, 113, 113, .055); outline:none; }
.reseller-panel-nav-item.active { color:#f9f9f9; border-color:rgba(165, 165, 165, .18); background:linear-gradient(90deg,rgba(131, 131, 131, .14),rgba(93, 93, 93, .055)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .035); }
.reseller-panel-nav-icon { width:28px; height:28px; display:grid; place-items:center; border:1px solid rgba(255, 255, 255, .06); border-radius:9px; background:rgba(255, 255, 255, .025); }
.reseller-panel-nav-item.active .reseller-panel-nav-icon { color:#c2c2c2; border-color:rgba(175, 175, 175, .15); background:rgba(143, 143, 143, .10); }
.reseller-panel-sidebar-foot { margin-top:auto; padding-top:14px; border-top:1px solid rgba(255, 255, 255, .05); display:grid; gap:10px; }
.reseller-panel-sidebar-foot>div { padding:11px; border:1px solid rgba(255, 255, 255, .055); border-radius:14px; background:rgba(255, 255, 255, .02); }
.reseller-panel-sidebar-foot span,.reseller-panel-sidebar-foot small { display:block; color:rgba(163, 163, 163, .58); font-size:6px; font-weight:800; letter-spacing:.12em; }
.reseller-panel-sidebar-foot strong { display:block; margin:5px 0 4px; font-size:9px; }
.reseller-panel-sidebar-foot button { min-height:36px; border:1px solid rgba(152, 152, 152, .12); border-radius:12px; background:rgba(65, 65, 65, .10); color:#c6c6c6; font-size:7px; font-weight:850; letter-spacing:.10em; }

.reseller-panel-main { min-width:0; border:1px solid rgba(255, 255, 255, .07); border-radius:27px; background:linear-gradient(180deg,rgba(14, 14, 14, .87),rgba(11, 11, 11, .92)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .035); }
.reseller-panel-main-inner { width:min(1400px,100%); margin:0 auto; padding:clamp(20px,2.4vw,32px); }
.reseller-panel-mobile-head { display:none; }
.reseller-panel-page-head { min-height:86px; display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(255, 255, 255, .055); }
.reseller-panel-page-head>div:first-child>span { color:#bababa; font-size:8px; font-weight:850; letter-spacing:.18em; }
.reseller-panel-page-head h2 { margin:6px 0 5px; font-size:clamp(27px,3vw,38px); line-height:1; letter-spacing:-.045em; }
.reseller-panel-page-head p { margin:0; color:rgba(187, 187, 187, .58); font-size:8px; font-weight:700; letter-spacing:.07em; line-height:1.5; }
.reseller-panel-page-head-actions { display:flex; align-items:center; gap:9px; }
.reseller-panel-role-pill { min-height:30px; padding:0 10px; display:inline-flex; align-items:center; border:1px solid rgba(178, 178, 178, .13); border-radius:999px; background:rgba(149, 149, 149, .065); color:#d1d1d1; font-size:7px; font-weight:900; letter-spacing:.13em; }
.reseller-panel-mini-avatar { width:38px; height:38px; border-radius:13px; font-size:10px; }

.reseller-panel-hero-card { position:relative; overflow:hidden; min-height:220px; padding:clamp(22px,3vw,32px); display:flex; align-items:center; justify-content:space-between; gap:24px; border:1px solid rgba(152, 152, 152, .13); border-radius:28px; background:radial-gradient(65% 130% at 0% 0%,rgba(131, 131, 131, .16),transparent 62%),radial-gradient(50% 100% at 100% 100%,rgba(101, 101, 101, .09),transparent 68%),linear-gradient(180deg,rgba(255, 255, 255, .04),rgba(255, 255, 255, .018)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .055),0 24px 60px rgba(0, 0, 0, .16); }
.reseller-panel-hero-card::after { content:""; position:absolute; width:330px; height:160px; right:-70px; top:-80px; border-radius:50%; background:rgba(140, 140, 140, .11); filter:blur(45px); pointer-events:none; }
.reseller-panel-hero-copy,.reseller-panel-hero-status { position:relative; z-index:1; }
.reseller-panel-hero-copy { max-width:760px; }
.reseller-panel-hero-copy>span { color:#bababa; font-size:8px; font-weight:850; letter-spacing:.17em; }
.reseller-panel-hero-copy h3 { margin:8px 0 9px; font-size:clamp(32px,5vw,54px); line-height:.95; letter-spacing:-.055em; }
.reseller-panel-hero-copy p { margin:0; max-width:64ch; color:rgba(202, 202, 202, .65); font-size:9px; line-height:1.65; letter-spacing:.055em; }
.reseller-panel-hero-actions { display:flex; gap:9px; margin-top:18px; }
.reseller-panel-hero-actions .button { min-height:42px; border-radius:14px; display:inline-flex; align-items:center; gap:7px; }
.reseller-panel-hero-status { min-width:190px; padding:17px; border:1px solid rgba(255, 255, 255, .07); border-radius:20px; background:rgba(11, 11, 11, .38); }
.reseller-panel-hero-status>span:not(.badge) { display:block; margin-top:16px; color:rgba(172, 172, 172, .62); font-size:7px; font-weight:800; letter-spacing:.14em; }
.reseller-panel-hero-status>strong { display:block; margin:6px 0 4px; font-size:15px; }
.reseller-panel-hero-status>small { color:rgba(169, 169, 169, .60); font-size:7px; font-weight:800; letter-spacing:.10em; }

.reseller-panel-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-top:13px; }
.reseller-panel-stat-grid article { min-height:112px; padding:16px; border:1px solid rgba(255, 255, 255, .065); border-radius:20px; background:linear-gradient(180deg,rgba(255, 255, 255, .035),rgba(255, 255, 255, .018)); }
.reseller-panel-stat-grid span,.reseller-panel-stat-grid small { display:block; color:rgba(168, 168, 168, .60); font-size:7px; font-weight:800; letter-spacing:.13em; }
.reseller-panel-stat-grid strong { display:block; margin:11px 0 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(22px,3vw,31px); letter-spacing:-.04em; }

.reseller-panel-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:13px; margin-top:13px; }
.reseller-panel-side-stack { display:grid; gap:13px; align-content:start; }
.reseller-panel-card { padding:18px; border:1px solid rgba(255, 255, 255, .07); border-radius:23px; background:linear-gradient(180deg,rgba(255, 255, 255, .032),rgba(255, 255, 255, .016)); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .03); }
.reseller-panel-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.reseller-panel-card-head>div>span,.reseller-panel-card-head>span { color:#bababa; font-size:7px; font-weight:850; letter-spacing:.15em; }
.reseller-panel-card-head h3 { margin:4px 0 0; font-size:14px; }
.reseller-panel-card-head>button { border:0; background:none; color:#bebebe; font-size:7px; font-weight:850; letter-spacing:.12em; }
.reseller-panel-card-head>strong { font-size:11px; }
.reseller-panel-card-copy { margin:0; color:rgba(183, 183, 183, .60); font-size:8px; line-height:1.65; letter-spacing:.05em; }
.reseller-panel-cap-track { height:7px; overflow:hidden; border-radius:999px; background:rgba(255, 255, 255, .055); }
.reseller-panel-cap-track i { display:block; width:var(--usage); height:100%; border-radius:inherit; background:linear-gradient(90deg,#808080,#bbbbbb); box-shadow:0 0 16px rgba(178, 178, 178, .25); }
.reseller-panel-cap-copy { margin-top:8px; display:flex; justify-content:space-between; color:rgba(164, 164, 164, .58); font-size:6.5px; font-weight:800; letter-spacing:.11em; }
.reseller-panel-permission-grid { display:flex; flex-wrap:wrap; gap:7px; }
.reseller-panel-permission-grid span { min-height:29px; padding:0 9px; display:inline-flex; align-items:center; gap:6px; border:1px solid rgba(159, 159, 159, .10); border-radius:999px; background:rgba(113, 113, 113, .05); color:rgba(218, 218, 218, .74); font-size:6.5px; font-weight:850; letter-spacing:.09em; }
.reseller-panel-permission-grid span svg { color:#c4c4c4; }
.reseller-panel-permission-grid.large { margin-top:15px; }

.reseller-panel-customer-list { display:grid; gap:8px; }
.reseller-panel-customer-row { min-height:62px; padding:9px 10px; display:grid; grid-template-columns:minmax(0,1fr) 88px 104px auto; align-items:center; gap:10px; border:1px solid rgba(255, 255, 255, .055); border-radius:15px; background:rgba(255, 255, 255, .018); }
.reseller-panel-customer-main { min-width:0; display:flex; align-items:center; gap:10px; }
.reseller-panel-customer-avatar { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border:1px solid rgba(155, 155, 155, .13); border-radius:11px; background:rgba(107, 107, 107, .08); color:#e8e8e8; font-size:8px; font-weight:900; }
.reseller-panel-customer-main>div { min-width:0; }
.reseller-panel-customer-main strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; }
.reseller-panel-customer-main span,.reseller-panel-customer-expire span { display:block; margin-top:3px; color:rgba(162, 162, 162, .58); font-size:6px; font-weight:800; letter-spacing:.08em; }
.reseller-panel-customer-expire strong { font-size:8px; }
.reseller-panel-customer-state { justify-self:start; min-height:26px; padding:0 8px; display:inline-flex; align-items:center; border-radius:999px; font-size:6px; font-weight:900; letter-spacing:.10em; }
.reseller-panel-customer-state.active { border:1px solid rgba(183, 183, 183, .12); background:rgba(160, 160, 160, .06); color:#cecece; }
.reseller-panel-customer-state.renew { border:1px solid rgba(193, 193, 193, .13); background:rgba(176, 176, 176, .06); color:#cccccc; }
.reseller-panel-customer-actions { display:flex; justify-content:flex-end; gap:5px; }
.reseller-panel-customer-actions button { min-height:29px; padding:0 8px; border:1px solid rgba(153, 153, 153, .10); border-radius:9px; background:rgba(114, 114, 114, .05); color:#d6d6d6; font-size:6px; font-weight:850; letter-spacing:.08em; }
.reseller-panel-empty { min-height:150px; display:grid; place-items:center; align-content:center; gap:6px; border:1px dashed rgba(255, 255, 255, .07); border-radius:18px; color:rgba(178, 178, 178, .50); text-align:center; }
.reseller-panel-empty svg { color:#8b8b8b; }
.reseller-panel-empty strong { font-size:8px; letter-spacing:.12em; }
.reseller-panel-empty small { font-size:6.5px; letter-spacing:.08em; }

.reseller-panel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.reseller-panel-search { height:42px; min-width:280px; flex:1; display:flex; align-items:center; gap:9px; padding:0 12px; border:1px solid rgba(255, 255, 255, .065); border-radius:13px; background:rgba(255, 255, 255, .022); color:rgba(164, 164, 164, .72); }
.reseller-panel-search input { width:100%; border:0; outline:0; background:transparent; color:#f4f4f4; font-size:8px; font-weight:800; letter-spacing:.10em; }
.reseller-panel-list-head { display:grid; grid-template-columns:minmax(0,1fr) 88px 104px auto; gap:10px; padding:0 11px 8px; color:rgba(156, 156, 156, .48); font-size:6px; font-weight:850; letter-spacing:.11em; }

.reseller-panel-create-layout,.reseller-panel-account-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:13px; }
.reseller-panel-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.reseller-panel-form-grid label { display:grid; gap:7px; }
.reseller-panel-form-grid label>span { color:rgba(193, 193, 193, .70); font-size:7px; font-weight:850; letter-spacing:.12em; }
.reseller-panel-form-grid input,.reseller-panel-form-grid select { width:100%; min-height:47px; padding:0 12px; border:1px solid rgba(255, 255, 255, .07); border-radius:13px; outline:none; background:#111111; color:#f4f4f4; font-size:9px; }
.reseller-panel-form-grid input:focus,.reseller-panel-form-grid select:focus { border-color:rgba(160, 160, 160, .30); box-shadow:0 0 0 3px rgba(129, 129, 129, .08); }
.reseller-panel-form-grid input:disabled { color:rgba(184, 184, 184, .46); }
.reseller-panel-create-note { margin-top:13px; padding:13px; display:flex; align-items:flex-start; gap:9px; border:1px solid rgba(172, 172, 172, .10); border-radius:15px; background:rgba(141, 141, 141, .04); }
.reseller-panel-create-note svg { color:#cacaca; flex:0 0 18px; }
.reseller-panel-create-note strong { color:#d5d5d5; font-size:7px; letter-spacing:.12em; }
.reseller-panel-create-note p { margin:4px 0 0; color:rgba(190, 190, 190, .62); font-size:6.5px; line-height:1.55; }
.reseller-panel-create-actions { margin-top:14px; display:flex; justify-content:flex-end; gap:8px; }
.reseller-panel-create-actions .button { min-height:42px; border-radius:13px; }

.reseller-panel-profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.reseller-panel-profile-card { min-height:165px; padding:17px; border:1px solid rgba(255, 255, 255, .065); border-radius:21px; background:linear-gradient(180deg,rgba(255, 255, 255, .033),rgba(255, 255, 255, .015)); }
.reseller-panel-profile-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.reseller-panel-profile-top>span:first-child { color:#bcbcbc; font-size:7px; font-weight:850; letter-spacing:.13em; }
.reseller-panel-profile-ready { min-height:25px; padding:0 8px; display:inline-flex; align-items:center; border:1px solid rgba(176, 176, 176, .11); border-radius:999px; background:rgba(153, 153, 153, .055); color:#cfcfcf; font-size:6px; font-weight:900; letter-spacing:.10em; }
.reseller-panel-profile-card h3 { margin:22px 0 6px; font-size:14px; }
.reseller-panel-profile-card p { margin:0; color:rgba(172, 172, 172, .58); font-size:7px; font-weight:750; letter-spacing:.08em; }
.reseller-panel-profile-card>div:last-child { margin-top:18px; padding-top:12px; border-top:1px solid rgba(255, 255, 255, .05); display:flex; justify-content:space-between; gap:8px; }
.reseller-panel-profile-card>div:last-child span { color:rgba(161, 161, 161, .50); font-size:6px; font-weight:800; letter-spacing:.10em; }
.reseller-panel-profile-card>div:last-child strong { font-size:7px; }

.reseller-panel-link { display:grid; gap:8px; padding:13px; border:1px solid rgba(151, 151, 151, .11); border-radius:15px; background:rgba(69, 69, 69, .10); }
.reseller-panel-link span { color:#bbbbbb; font-size:7px; font-weight:850; letter-spacing:.13em; }
.reseller-panel-link strong { overflow-wrap:anywhere; font-size:9px; line-height:1.5; }
.reseller-panel-link .mini-button { justify-self:start; }
.reseller-panel-account-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:13px; }
.reseller-panel-account-rows>div { padding:12px; border:1px solid rgba(255, 255, 255, .05); border-radius:13px; background:rgba(255, 255, 255, .018); }
.reseller-panel-account-rows span { display:block; color:rgba(163, 163, 163, .55); font-size:6px; font-weight:800; letter-spacing:.11em; }
.reseller-panel-account-rows strong { display:block; margin-top:6px; font-size:9px; }

.reseller-panel-mobile-nav { display:none; }

@media (max-width:1100px) {
  .reseller-panel-frame { grid-template-columns:210px minmax(0,1fr); }
  .reseller-panel-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reseller-panel-dashboard-grid,.reseller-panel-create-layout,.reseller-panel-account-grid { grid-template-columns:1fr; }
  .reseller-panel-profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:760px) {
  .app-view.reseller-workspace-mode .page-root { padding:0 !important; }
  .reseller-panel-preview-shell { padding:8px 8px calc(92px + env(safe-area-inset-bottom)); }
  .reseller-panel-preview-strip { min-height:50px; padding:8px 9px; border-radius:16px; }
  .reseller-panel-preview-strip>div { gap:7px; }
  .reseller-panel-preview-strip span { font-size:6.5px; }
  .reseller-panel-preview-strip strong { display:none; }
  .reseller-panel-preview-strip button { min-height:32px; padding:0 9px; font-size:6.5px; }
  .reseller-panel-frame { display:block; min-height:auto; margin-top:8px; }
  .reseller-panel-sidebar { display:none; }
  .reseller-panel-main { border-radius:23px; }
  .reseller-panel-main-inner { padding:14px 12px 18px; }
  .reseller-panel-mobile-head { min-height:55px; padding:7px 2px 12px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(255, 255, 255, .05); margin-bottom:13px; }
  .reseller-panel-mobile-head .reseller-panel-brand { min-height:0; }
  .reseller-panel-mobile-head .reseller-panel-brand-mark { width:37px; height:37px; border-radius:12px; }
  .reseller-panel-page-head { min-height:0; align-items:flex-end; margin-bottom:13px; padding-bottom:13px; }
  .reseller-panel-page-head h2 { font-size:25px; }
  .reseller-panel-page-head p { max-width:34ch; font-size:6.5px; }
  .reseller-panel-role-pill { display:none; }
  .reseller-panel-page-head-actions .reseller-panel-mini-avatar { display:none; }
  .reseller-panel-hero-card { min-height:auto; padding:17px; align-items:flex-start; border-radius:21px; }
  .reseller-panel-hero-copy>span { font-size:6.5px; }
  .reseller-panel-hero-copy h3 { font-size:31px; }
  .reseller-panel-hero-copy p { font-size:7px; line-height:1.55; }
  .reseller-panel-hero-actions { flex-wrap:wrap; margin-top:13px; }
  .reseller-panel-hero-actions .button { min-height:38px; font-size:7px; }
  .reseller-panel-hero-status { display:none; }
  .reseller-panel-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:9px; }
  .reseller-panel-stat-grid article { min-height:88px; padding:12px; border-radius:17px; }
  .reseller-panel-stat-grid span,.reseller-panel-stat-grid small { font-size:6px; }
  .reseller-panel-stat-grid strong { margin:8px 0 4px; font-size:20px; }
  .reseller-panel-dashboard-grid { margin-top:9px; gap:9px; }
  .reseller-panel-card { padding:13px; border-radius:18px; }
  .reseller-panel-card-head { margin-bottom:10px; }
  .reseller-panel-customer-row { min-height:61px; grid-template-columns:minmax(0,1fr) auto; gap:8px; border-radius:14px; }
  .reseller-panel-customer-expire { text-align:right; }
  .reseller-panel-customer-state { grid-column:1; }
  .reseller-panel-customer-actions { grid-column:2; grid-row:2; }
  .reseller-panel-list-head { display:none; }
  .reseller-panel-toolbar { align-items:stretch; flex-direction:column; }
  .reseller-panel-search { min-width:0; width:100%; }
  .reseller-panel-toolbar .button { width:100%; justify-content:center; }
  .reseller-panel-form-grid { grid-template-columns:1fr; }
  .reseller-panel-profile-grid { grid-template-columns:1fr; gap:9px; }
  .reseller-panel-account-rows { grid-template-columns:1fr 1fr; }
  .reseller-panel-mobile-nav { position:fixed; z-index:80; left:9px; right:9px; bottom:max(8px,env(safe-area-inset-bottom)); height:70px; display:grid; grid-template-columns:repeat(5,1fr); align-items:center; padding:6px 7px; border:1px solid rgba(255, 255, 255, .09); border-radius:23px; background:rgba(15, 15, 15, .94); box-shadow:inset 0 1px 0 rgba(255, 255, 255, .055),0 18px 54px rgba(0, 0, 0, .38); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
  .reseller-mobile-nav-item,.reseller-mobile-create { min-width:0; min-height:54px; display:grid; place-items:center; align-content:center; gap:4px; border:0; border-radius:15px; background:transparent; color:rgba(160, 160, 160, .60); }
  .reseller-mobile-nav-item span,.reseller-mobile-create span { font-size:5.5px; font-weight:850; letter-spacing:.08em; }
  .reseller-mobile-nav-item.active { color:#c2c2c2; background:rgba(132, 132, 132, .07); }
  .reseller-mobile-create { width:58px; height:58px; justify-self:center; margin-top:-22px; border:1px solid rgba(182, 182, 182, .28); border-radius:20px; background:linear-gradient(180deg,#989898,#777777); color:#ffffff; box-shadow:inset 0 1px 0 rgba(255, 255, 255, .23),0 14px 32px rgba(121, 121, 121, .30); }
  .reseller-mobile-create span { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  .reseller-panel-nav-item,.reseller-panel-customer-actions button { transition:none !important; }
}



/* ===== R70 — SAME MANAGEMENT PANEL / RESELLER RBAC PREVIEW ===== */
.app-view.reseller-role-mode #desktopNav [data-route="resellers"],
.app-view.reseller-role-mode #desktopNav [data-route="audit"],
.app-view.reseller-role-mode #pageRoot [data-route-jump="resellers"],
.app-view.reseller-role-mode #pageRoot [data-route-jump="audit"] { display:none !important; }

.app-view.reseller-role-mode .topbar {
  border-color: rgba(161, 161, 161, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 46px rgba(85, 85, 85, .07) !important;
}

.app-view.reseller-role-mode #apiStatus {
  border-color: rgba(173, 173, 173, .22);
  background: rgba(110, 110, 110, .08);
  color:#cdcdcd;
}

.app-view.reseller-role-mode #apiStatus span {
  background:#b5b5b5;
  box-shadow:0 0 0 4px rgba(181, 181, 181, .10),0 0 14px rgba(181, 181, 181, .34);
}

.service-readonly .service-actions button:disabled {
  opacity:.34 !important;
  cursor:not-allowed !important;
  filter:saturate(.45);
  transform:none !important;
  box-shadow:none !important;
}

.reseller-readonly-note {
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 2px;
  padding:10px 12px;
  border:1px solid rgba(165, 165, 165, .12);
  border-radius:13px;
  background:rgba(104, 104, 104, .055);
  color:rgba(203, 203, 203, .82);
  font-size:7px;
  font-weight:850;
  letter-spacing:.12em;
}

.reseller-readonly-note svg { flex:0 0 15px; }

.app-view.reseller-role-mode .admin-card {
  border-color:rgba(161, 161, 161, .12);
  background:linear-gradient(180deg,rgba(114, 114, 114, .08),rgba(255, 255, 255, .025));
}

@media (max-width:760px) {
  .app-view.reseller-role-mode .topbar-logout { min-width:106px !important; padding-inline:11px !important; }
  .app-view.reseller-role-mode .logout-label { font-size:7px !important; letter-spacing:.10em !important; }
  .reseller-readonly-note { font-size:7.5px; line-height:1.45; }
}


/* ===== UX/UI FINAL V2 — REMOVE MOBILE TAP HIGHLIGHT / BLUE FLASH ===== */
html,
body,
button,
a,
input,
select,
textarea,
[role="button"],
.nav-item,
.mobile-nav-item,
.mobile-create,
.mini-button,
.more-row,
.quick-action,
.quick-card,
.reseller-mobile-nav-item,
.reseller-mobile-create,
[data-route],
[data-global-action],
[data-user-action],
[data-service-action],
[data-backup-action],
[data-reseller-action],
[data-more-panel] {
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
}

button,
a,
[role="button"],
.nav-item,
.mobile-nav-item,
.mobile-create,
.mini-button,
.more-row,
.reseller-mobile-nav-item,
.reseller-mobile-create {
  touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
  button:focus,
  a:focus,
  [role="button"]:focus,
  .nav-item:focus,
  .mobile-nav-item:focus,
  .mobile-create:focus,
  .mini-button:focus,
  .more-row:focus,
  .reseller-mobile-nav-item:focus,
  .reseller-mobile-create:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-nav-item:active,
  .mobile-create:active,
  .nav-item:active,
  .mini-button:active,
  .more-row:active,
  .reseller-mobile-nav-item:active,
  .reseller-mobile-create:active {
    filter: none !important;
  }
}



  body.create-dialog-locked {
    overflow: hidden !important;
  }

  #createDialog.r18-create-dialog.r20-create-dialog::backdrop {
    background:
      radial-gradient(80% 70% at 50% 100%, rgba(134, 134, 134, .05), transparent 58%),
      rgba(8, 8, 8, .60);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    contain: layout paint style;
    will-change: transform, opacity;
  }

  #createDialog.r18-create-dialog.r20-create-dialog.profile-menu-open .sheet {
    overflow: hidden;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select {
    position: relative;
    z-index: 24;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-trigger {
    transform: translateZ(0);
    will-change: transform, border-color, box-shadow;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    contain: layout paint;
    will-change: scroll-position, transform, opacity;
    scrollbar-gutter: stable;
    max-height: min(42dvh, 340px);
    padding-right: 8px;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option {
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option:hover {
    transform: none;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
    contain: layout paint;
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      inset: calc(100% + 8px) 0 auto 0;
      max-height: min(38dvh, 320px);
      padding: 8px;
      border-radius: 18px;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 16px 34px rgba(0, 0, 0, .28);
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      margin-top: 12px;
      padding-top: 12px;
      padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      gap: 10px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      animation-duration: .14s;
    }
  }



  #createDialog.r18-create-dialog.r20-create-dialog .sheet {
    scroll-padding-bottom: calc(var(--r19-actions-height, 84px) + 28px + env(safe-area-inset-bottom, 0px));
  }

  #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
    margin-bottom: calc(var(--r19-actions-height, 84px) + 20px);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
    margin-top: 0;
    padding-top: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      scroll-padding-bottom: calc(var(--r19-actions-height, 94px) + 30px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
      margin-top: 14px;
      margin-bottom: calc(var(--r19-actions-height, 94px) + 22px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      gap: 10px;
      padding-top: 10px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
  }



  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog.r26-picker-open .sheet {
      overflow: hidden !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open {
      z-index: 160 !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-menu {
      position: fixed !important;
      max-height: none !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      padding: 8px !important;
      border-radius: 22px !important;
      border: 1px solid rgba(255, 255, 255, .08) !important;
      background: rgba(20, 20, 20, .985) !important;
      box-shadow: 0 18px 44px rgba(0, 0, 0, .36) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      overscroll-behavior: contain !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-gutter: stable !important;
      z-index: 180 !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-option {
      min-height: 74px;
      padding: 16px 18px;
      border-radius: 18px;
    }

    #createDialog.r18-create-dialog.r20-create-dialog.r26-picker-open .profile-preview {
      visibility: hidden !important;
      opacity: 0 !important;
      max-height: 0 !important;
      min-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      border-width: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog.r26-picker-open .sheet-actions {
      z-index: 10 !important;
    }
  }


/* ===== PREVIEW R59 — PREMIUM LOGOUT + LOGIN RETURN TRANSITION ===== */
.topbar-logout {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-width: 118px !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(154, 154, 154, .25) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(100% 140% at 18% 0%, rgba(165, 165, 165, .17), transparent 52%),
    linear-gradient(180deg, rgba(56, 56, 56, .48), rgba(24, 24, 24, .74)) !important;
  color: #ededed !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(255, 255, 255, .025),
    0 10px 28px rgba(40, 40, 40, .18) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease !important;
  -webkit-tap-highlight-color: transparent;
}

.topbar-logout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(108deg, transparent 0%, rgba(255, 255, 255, .10) 45%, transparent 68%);
  transform: translateX(-145%);
  opacity: .72;
  pointer-events: none;
}

.topbar-logout:hover,
.topbar-logout:focus-visible {
  transform: translateY(-1px) !important;
  border-color: rgba(167, 167, 167, .42) !important;
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 14px 34px rgba(51, 51, 51, .25),
    0 0 0 1px rgba(147, 147, 147, .05) !important;
  outline: none !important;
}

.topbar-logout:hover::before,
.topbar-logout:focus-visible::before {
  animation: logoutSweep .9s cubic-bezier(.2,.8,.2,1) forwards;
}

.topbar-logout:active,
.topbar-logout.is-pressed {
  transform: scale(.965) !important;
}

.logout-icon-shell {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(190, 190, 190, .16);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.logout-icon-shell svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logout-label {
  position: relative;
  z-index: 1;
  font-size: 7.8px;
  font-weight: 850;
  letter-spacing: .14em;
  white-space: nowrap;
}

.app-view.logout-exit {
  animation: appLogoutExit .26s cubic-bezier(.4,0,.6,1) forwards;
  pointer-events: none;
}

.login-view.logout-return {
  animation: loginSceneIn .36s cubic-bezier(.2,.82,.2,1) both;
}

.login-view.logout-return .login-shell {
  animation: loginCardIn .52s cubic-bezier(.18,.9,.22,1.08) both;
}

.login-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(173, 173, 173, .14) !important;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(142, 142, 142, .12), transparent 52%),
    radial-gradient(100% 90% at 100% 100%, rgba(107, 107, 107, .08), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .032)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .065),
    0 34px 90px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(140, 140, 140, .025) !important;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .055) 30%, transparent 56%);
  transform: translateX(-120%);
  animation: loginShellSheen 1.15s .18s ease-out both;
}

.login-shell .brand-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    0 12px 28px rgba(134, 134, 134, .18),
    0 0 0 1px rgba(159, 159, 159, .05);
}

.login-shell .field input {
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-shell .field input:focus {
  border-color: rgba(161, 161, 161, .38);
  background: rgba(24, 24, 24, .64);
  box-shadow: 0 0 0 3px rgba(134, 134, 134, .08), inset 0 1px 0 rgba(255, 255, 255, .04);
}

#loginButton {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 30px rgba(102, 102, 102, .22);
}

#loginButton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .13) 48%, transparent 68%);
  transform: translateX(-145%);
  pointer-events: none;
}

#loginButton:hover::after,
#loginButton:focus-visible::after {
  animation: logoutSweep .85s ease forwards;
}

@keyframes logoutSweep {
  from { transform: translateX(-145%); }
  to { transform: translateX(145%); }
}

@keyframes appLogoutExit {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(.988); filter: blur(2px); }
}

@keyframes loginSceneIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loginCardIn {
  0% { opacity: 0; transform: translateY(18px) scale(.965); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loginShellSheen {
  from { transform: translateX(-120%); opacity: 0; }
  25% { opacity: .85; }
  to { transform: translateX(130%); opacity: 0; }
}

@media (max-width: 760px) {
  .topbar-logout {
    min-width: 106px !important;
    min-height: 36px !important;
    padding: 0 13px !important;
    gap: 7px !important;
  }

  .logout-icon-shell {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 8px;
  }

  .logout-icon-shell svg {
    width: 12px;
    height: 12px;
  }

  .logout-label {
    font-size: 7.3px;
    letter-spacing: .12em;
  }

  .login-shell {
    width: min(100%, 430px) !important;
    padding: 28px 21px 24px !important;
    border-radius: 28px !important;
  }

  #loginButton {
    min-height: 48px;
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-logout,
  .topbar-logout::before,
  .app-view.logout-exit,
  .login-view.logout-return,
  .login-view.logout-return .login-shell,
  .login-shell::before,
  #loginButton::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* ===== PRODUCTION R2 COMPATIBILITY — visual-neutral safety/CSP adaptations ===== */
.page-root:focus,
.page-root:focus-visible { outline: none !important; }
.promo-selector-card[data-promo-index="0"], .promo-plan-item[data-promo-index="0"]{--promo-index:0;}
#configDialog .config-field-card[data-field-index="0"]{--field-index:0;}
.promo-selector-card[data-promo-index="1"], .promo-plan-item[data-promo-index="1"]{--promo-index:1;}
#configDialog .config-field-card[data-field-index="1"]{--field-index:1;}
.promo-selector-card[data-promo-index="2"], .promo-plan-item[data-promo-index="2"]{--promo-index:2;}
#configDialog .config-field-card[data-field-index="2"]{--field-index:2;}
.promo-selector-card[data-promo-index="3"], .promo-plan-item[data-promo-index="3"]{--promo-index:3;}
#configDialog .config-field-card[data-field-index="3"]{--field-index:3;}
.promo-selector-card[data-promo-index="4"], .promo-plan-item[data-promo-index="4"]{--promo-index:4;}
#configDialog .config-field-card[data-field-index="4"]{--field-index:4;}
.promo-selector-card[data-promo-index="5"], .promo-plan-item[data-promo-index="5"]{--promo-index:5;}
#configDialog .config-field-card[data-field-index="5"]{--field-index:5;}
.promo-selector-card[data-promo-index="6"], .promo-plan-item[data-promo-index="6"]{--promo-index:6;}
#configDialog .config-field-card[data-field-index="6"]{--field-index:6;}
.promo-selector-card[data-promo-index="7"], .promo-plan-item[data-promo-index="7"]{--promo-index:7;}
#configDialog .config-field-card[data-field-index="7"]{--field-index:7;}
.promo-selector-card[data-promo-index="8"], .promo-plan-item[data-promo-index="8"]{--promo-index:8;}
#configDialog .config-field-card[data-field-index="8"]{--field-index:8;}
.promo-selector-card[data-promo-index="9"], .promo-plan-item[data-promo-index="9"]{--promo-index:9;}
#configDialog .config-field-card[data-field-index="9"]{--field-index:9;}
.promo-selector-card[data-promo-index="10"], .promo-plan-item[data-promo-index="10"]{--promo-index:10;}
#configDialog .config-field-card[data-field-index="10"]{--field-index:10;}
.promo-selector-card[data-promo-index="11"], .promo-plan-item[data-promo-index="11"]{--promo-index:11;}
#configDialog .config-field-card[data-field-index="11"]{--field-index:11;}

#configDialog .config-delay-30{animation-delay:30ms;}
#configDialog .config-delay-60{animation-delay:60ms;}
#configDialog .config-info-wide{grid-column:1 / -1;}


/* RBAC contract override: RESELLER may VIEW Backups */
.app-view.reseller-role-mode #desktopNav [data-route="backups"] { display:flex !important; }
.app-view.reseller-role-mode .quick-card[data-route-jump="backups"] { display:grid !important; }


/* PRODUCTION CSP-SAFE EXACT RESELLER CAPACITY */
.reseller-capacity-track > i[data-usage="0"]{width:0%;}
.reseller-capacity-track > i[data-usage="1"]{width:1%;}
.reseller-capacity-track > i[data-usage="2"]{width:2%;}
.reseller-capacity-track > i[data-usage="3"]{width:3%;}
.reseller-capacity-track > i[data-usage="4"]{width:4%;}
.reseller-capacity-track > i[data-usage="5"]{width:5%;}
.reseller-capacity-track > i[data-usage="6"]{width:6%;}
.reseller-capacity-track > i[data-usage="7"]{width:7%;}
.reseller-capacity-track > i[data-usage="8"]{width:8%;}
.reseller-capacity-track > i[data-usage="9"]{width:9%;}
.reseller-capacity-track > i[data-usage="10"]{width:10%;}
.reseller-capacity-track > i[data-usage="11"]{width:11%;}
.reseller-capacity-track > i[data-usage="12"]{width:12%;}
.reseller-capacity-track > i[data-usage="13"]{width:13%;}
.reseller-capacity-track > i[data-usage="14"]{width:14%;}
.reseller-capacity-track > i[data-usage="15"]{width:15%;}
.reseller-capacity-track > i[data-usage="16"]{width:16%;}
.reseller-capacity-track > i[data-usage="17"]{width:17%;}
.reseller-capacity-track > i[data-usage="18"]{width:18%;}
.reseller-capacity-track > i[data-usage="19"]{width:19%;}
.reseller-capacity-track > i[data-usage="20"]{width:20%;}
.reseller-capacity-track > i[data-usage="21"]{width:21%;}
.reseller-capacity-track > i[data-usage="22"]{width:22%;}
.reseller-capacity-track > i[data-usage="23"]{width:23%;}
.reseller-capacity-track > i[data-usage="24"]{width:24%;}
.reseller-capacity-track > i[data-usage="25"]{width:25%;}
.reseller-capacity-track > i[data-usage="26"]{width:26%;}
.reseller-capacity-track > i[data-usage="27"]{width:27%;}
.reseller-capacity-track > i[data-usage="28"]{width:28%;}
.reseller-capacity-track > i[data-usage="29"]{width:29%;}
.reseller-capacity-track > i[data-usage="30"]{width:30%;}
.reseller-capacity-track > i[data-usage="31"]{width:31%;}
.reseller-capacity-track > i[data-usage="32"]{width:32%;}
.reseller-capacity-track > i[data-usage="33"]{width:33%;}
.reseller-capacity-track > i[data-usage="34"]{width:34%;}
.reseller-capacity-track > i[data-usage="35"]{width:35%;}
.reseller-capacity-track > i[data-usage="36"]{width:36%;}
.reseller-capacity-track > i[data-usage="37"]{width:37%;}
.reseller-capacity-track > i[data-usage="38"]{width:38%;}
.reseller-capacity-track > i[data-usage="39"]{width:39%;}
.reseller-capacity-track > i[data-usage="40"]{width:40%;}
.reseller-capacity-track > i[data-usage="41"]{width:41%;}
.reseller-capacity-track > i[data-usage="42"]{width:42%;}
.reseller-capacity-track > i[data-usage="43"]{width:43%;}
.reseller-capacity-track > i[data-usage="44"]{width:44%;}
.reseller-capacity-track > i[data-usage="45"]{width:45%;}
.reseller-capacity-track > i[data-usage="46"]{width:46%;}
.reseller-capacity-track > i[data-usage="47"]{width:47%;}
.reseller-capacity-track > i[data-usage="48"]{width:48%;}
.reseller-capacity-track > i[data-usage="49"]{width:49%;}
.reseller-capacity-track > i[data-usage="50"]{width:50%;}
.reseller-capacity-track > i[data-usage="51"]{width:51%;}
.reseller-capacity-track > i[data-usage="52"]{width:52%;}
.reseller-capacity-track > i[data-usage="53"]{width:53%;}
.reseller-capacity-track > i[data-usage="54"]{width:54%;}
.reseller-capacity-track > i[data-usage="55"]{width:55%;}
.reseller-capacity-track > i[data-usage="56"]{width:56%;}
.reseller-capacity-track > i[data-usage="57"]{width:57%;}
.reseller-capacity-track > i[data-usage="58"]{width:58%;}
.reseller-capacity-track > i[data-usage="59"]{width:59%;}
.reseller-capacity-track > i[data-usage="60"]{width:60%;}
.reseller-capacity-track > i[data-usage="61"]{width:61%;}
.reseller-capacity-track > i[data-usage="62"]{width:62%;}
.reseller-capacity-track > i[data-usage="63"]{width:63%;}
.reseller-capacity-track > i[data-usage="64"]{width:64%;}
.reseller-capacity-track > i[data-usage="65"]{width:65%;}
.reseller-capacity-track > i[data-usage="66"]{width:66%;}
.reseller-capacity-track > i[data-usage="67"]{width:67%;}
.reseller-capacity-track > i[data-usage="68"]{width:68%;}
.reseller-capacity-track > i[data-usage="69"]{width:69%;}
.reseller-capacity-track > i[data-usage="70"]{width:70%;}
.reseller-capacity-track > i[data-usage="71"]{width:71%;}
.reseller-capacity-track > i[data-usage="72"]{width:72%;}
.reseller-capacity-track > i[data-usage="73"]{width:73%;}
.reseller-capacity-track > i[data-usage="74"]{width:74%;}
.reseller-capacity-track > i[data-usage="75"]{width:75%;}
.reseller-capacity-track > i[data-usage="76"]{width:76%;}
.reseller-capacity-track > i[data-usage="77"]{width:77%;}
.reseller-capacity-track > i[data-usage="78"]{width:78%;}
.reseller-capacity-track > i[data-usage="79"]{width:79%;}
.reseller-capacity-track > i[data-usage="80"]{width:80%;}
.reseller-capacity-track > i[data-usage="81"]{width:81%;}
.reseller-capacity-track > i[data-usage="82"]{width:82%;}
.reseller-capacity-track > i[data-usage="83"]{width:83%;}
.reseller-capacity-track > i[data-usage="84"]{width:84%;}
.reseller-capacity-track > i[data-usage="85"]{width:85%;}
.reseller-capacity-track > i[data-usage="86"]{width:86%;}
.reseller-capacity-track > i[data-usage="87"]{width:87%;}
.reseller-capacity-track > i[data-usage="88"]{width:88%;}
.reseller-capacity-track > i[data-usage="89"]{width:89%;}
.reseller-capacity-track > i[data-usage="90"]{width:90%;}
.reseller-capacity-track > i[data-usage="91"]{width:91%;}
.reseller-capacity-track > i[data-usage="92"]{width:92%;}
.reseller-capacity-track > i[data-usage="93"]{width:93%;}
.reseller-capacity-track > i[data-usage="94"]{width:94%;}
.reseller-capacity-track > i[data-usage="95"]{width:95%;}
.reseller-capacity-track > i[data-usage="96"]{width:96%;}
.reseller-capacity-track > i[data-usage="97"]{width:97%;}
.reseller-capacity-track > i[data-usage="98"]{width:98%;}
.reseller-capacity-track > i[data-usage="99"]{width:99%;}
.reseller-capacity-track > i[data-usage="100"]{width:100%;}


/* ===== UI R3 — ACTION ICON / INTERACTION FIDELITY ===== */
.user-actions .mini-button,
.service-actions .mini-button,
.reseller-card-actions .mini-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.user-actions .mini-button svg,
.service-actions .mini-button svg,
.reseller-card-actions .mini-button svg {
  width:12px;
  height:12px;
  flex:0 0 12px;
  display:block;
}
.promo-back-button svg {
  transform:rotate(180deg);
  transform-origin:center;
}
@media (max-width:760px) {
  .user-actions .mini-button,
  .service-actions .mini-button,
  .reseller-card-actions .mini-button { gap:5px; }
}


/* ===== UI R4 — CENTERED SINGLE COPY FEEDBACK ===== */
@media (max-width: 760px) {
  .toast-root.copy-center-active {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
  .toast-root.copy-center-active .toast.copy {
    width: min(320px, calc(100vw - 32px));
  }
}

/* ===== UI R5 — DEDICATED CONFIG ROUTE + FULL RESELLER PREVIEW ===== */
.config-route-page {
  width:min(1500px,100%);
  margin:0 auto;
}
.config-route-head {
  min-height:92px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.config-route-head > div > span,
.config-route-title > div > span {
  color:#bcbcbc;
  font-size:8px;
  font-weight:850;
  letter-spacing:.16em;
}
.config-route-head h3,
.config-route-title h2 {
  margin:6px 0 4px;
  letter-spacing:-.04em;
}
.config-route-head h3 { font-size:23px; }
.config-route-title h2 { font-size:clamp(28px,4vw,42px); }
.config-route-head p,
.config-route-title p {
  margin:0;
  color:rgba(189, 189, 189, .60);
  font-size:8px;
  font-weight:700;
  letter-spacing:.07em;
  line-height:1.55;
}
.config-route-head .button {
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.config-route-head .button svg { transform:rotate(180deg); }
.config-route-shell {
  padding:20px;
  overflow:hidden;
}
.config-route-title {
  margin-bottom:16px;
  padding-bottom:15px;
  border-bottom:1px solid rgba(255, 255, 255, .055);
}
.config-route-actions {
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.reseller-panel-dialog.preview-workspace .reseller-panel-sheet {
  inset:0 !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  width:100% !important;
  max-width:none !important;
  max-height:none !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  overflow:auto !important;
  background:#080808 !important;
}
.reseller-panel-dialog.preview-workspace .reseller-preview-banner,
.reseller-panel-dialog.preview-workspace .reseller-panel-head,
.reseller-panel-dialog.preview-workspace .reseller-panel-footer {
  display:none !important;
}
.reseller-panel-dialog.preview-workspace #resellerPanelBody {
  min-height:100dvh;
}

@media (max-width:760px) {
  .config-route-head {
    min-height:76px;
    padding:14px;
    align-items:flex-start;
  }
  .config-route-head h3 { font-size:20px; }
  .config-route-head p { max-width:30ch; font-size:6.5px; }
  .config-route-head .button { min-height:36px; padding:0 10px; font-size:6.5px; }
  .config-route-shell { padding:12px; border-radius:22px; }
  .config-route-actions { display:grid; grid-template-columns:1fr 1fr; }
  .config-route-actions .button:last-child { grid-column:1 / -1; }
}


/* ===== UI R5 — RESELLER PREVIEW CAPACITY ATTR WIDTHS ===== */
.reseller-panel-cap-track > i[data-usage="0"]{width:0%;}
.reseller-panel-cap-track > i[data-usage="1"]{width:1%;}
.reseller-panel-cap-track > i[data-usage="2"]{width:2%;}
.reseller-panel-cap-track > i[data-usage="3"]{width:3%;}
.reseller-panel-cap-track > i[data-usage="4"]{width:4%;}
.reseller-panel-cap-track > i[data-usage="5"]{width:5%;}
.reseller-panel-cap-track > i[data-usage="6"]{width:6%;}
.reseller-panel-cap-track > i[data-usage="7"]{width:7%;}
.reseller-panel-cap-track > i[data-usage="8"]{width:8%;}
.reseller-panel-cap-track > i[data-usage="9"]{width:9%;}
.reseller-panel-cap-track > i[data-usage="10"]{width:10%;}
.reseller-panel-cap-track > i[data-usage="11"]{width:11%;}
.reseller-panel-cap-track > i[data-usage="12"]{width:12%;}
.reseller-panel-cap-track > i[data-usage="13"]{width:13%;}
.reseller-panel-cap-track > i[data-usage="14"]{width:14%;}
.reseller-panel-cap-track > i[data-usage="15"]{width:15%;}
.reseller-panel-cap-track > i[data-usage="16"]{width:16%;}
.reseller-panel-cap-track > i[data-usage="17"]{width:17%;}
.reseller-panel-cap-track > i[data-usage="18"]{width:18%;}
.reseller-panel-cap-track > i[data-usage="19"]{width:19%;}
.reseller-panel-cap-track > i[data-usage="20"]{width:20%;}
.reseller-panel-cap-track > i[data-usage="21"]{width:21%;}
.reseller-panel-cap-track > i[data-usage="22"]{width:22%;}
.reseller-panel-cap-track > i[data-usage="23"]{width:23%;}
.reseller-panel-cap-track > i[data-usage="24"]{width:24%;}
.reseller-panel-cap-track > i[data-usage="25"]{width:25%;}
.reseller-panel-cap-track > i[data-usage="26"]{width:26%;}
.reseller-panel-cap-track > i[data-usage="27"]{width:27%;}
.reseller-panel-cap-track > i[data-usage="28"]{width:28%;}
.reseller-panel-cap-track > i[data-usage="29"]{width:29%;}
.reseller-panel-cap-track > i[data-usage="30"]{width:30%;}
.reseller-panel-cap-track > i[data-usage="31"]{width:31%;}
.reseller-panel-cap-track > i[data-usage="32"]{width:32%;}
.reseller-panel-cap-track > i[data-usage="33"]{width:33%;}
.reseller-panel-cap-track > i[data-usage="34"]{width:34%;}
.reseller-panel-cap-track > i[data-usage="35"]{width:35%;}
.reseller-panel-cap-track > i[data-usage="36"]{width:36%;}
.reseller-panel-cap-track > i[data-usage="37"]{width:37%;}
.reseller-panel-cap-track > i[data-usage="38"]{width:38%;}
.reseller-panel-cap-track > i[data-usage="39"]{width:39%;}
.reseller-panel-cap-track > i[data-usage="40"]{width:40%;}
.reseller-panel-cap-track > i[data-usage="41"]{width:41%;}
.reseller-panel-cap-track > i[data-usage="42"]{width:42%;}
.reseller-panel-cap-track > i[data-usage="43"]{width:43%;}
.reseller-panel-cap-track > i[data-usage="44"]{width:44%;}
.reseller-panel-cap-track > i[data-usage="45"]{width:45%;}
.reseller-panel-cap-track > i[data-usage="46"]{width:46%;}
.reseller-panel-cap-track > i[data-usage="47"]{width:47%;}
.reseller-panel-cap-track > i[data-usage="48"]{width:48%;}
.reseller-panel-cap-track > i[data-usage="49"]{width:49%;}
.reseller-panel-cap-track > i[data-usage="50"]{width:50%;}
.reseller-panel-cap-track > i[data-usage="51"]{width:51%;}
.reseller-panel-cap-track > i[data-usage="52"]{width:52%;}
.reseller-panel-cap-track > i[data-usage="53"]{width:53%;}
.reseller-panel-cap-track > i[data-usage="54"]{width:54%;}
.reseller-panel-cap-track > i[data-usage="55"]{width:55%;}
.reseller-panel-cap-track > i[data-usage="56"]{width:56%;}
.reseller-panel-cap-track > i[data-usage="57"]{width:57%;}
.reseller-panel-cap-track > i[data-usage="58"]{width:58%;}
.reseller-panel-cap-track > i[data-usage="59"]{width:59%;}
.reseller-panel-cap-track > i[data-usage="60"]{width:60%;}
.reseller-panel-cap-track > i[data-usage="61"]{width:61%;}
.reseller-panel-cap-track > i[data-usage="62"]{width:62%;}
.reseller-panel-cap-track > i[data-usage="63"]{width:63%;}
.reseller-panel-cap-track > i[data-usage="64"]{width:64%;}
.reseller-panel-cap-track > i[data-usage="65"]{width:65%;}
.reseller-panel-cap-track > i[data-usage="66"]{width:66%;}
.reseller-panel-cap-track > i[data-usage="67"]{width:67%;}
.reseller-panel-cap-track > i[data-usage="68"]{width:68%;}
.reseller-panel-cap-track > i[data-usage="69"]{width:69%;}
.reseller-panel-cap-track > i[data-usage="70"]{width:70%;}
.reseller-panel-cap-track > i[data-usage="71"]{width:71%;}
.reseller-panel-cap-track > i[data-usage="72"]{width:72%;}
.reseller-panel-cap-track > i[data-usage="73"]{width:73%;}
.reseller-panel-cap-track > i[data-usage="74"]{width:74%;}
.reseller-panel-cap-track > i[data-usage="75"]{width:75%;}
.reseller-panel-cap-track > i[data-usage="76"]{width:76%;}
.reseller-panel-cap-track > i[data-usage="77"]{width:77%;}
.reseller-panel-cap-track > i[data-usage="78"]{width:78%;}
.reseller-panel-cap-track > i[data-usage="79"]{width:79%;}
.reseller-panel-cap-track > i[data-usage="80"]{width:80%;}
.reseller-panel-cap-track > i[data-usage="81"]{width:81%;}
.reseller-panel-cap-track > i[data-usage="82"]{width:82%;}
.reseller-panel-cap-track > i[data-usage="83"]{width:83%;}
.reseller-panel-cap-track > i[data-usage="84"]{width:84%;}
.reseller-panel-cap-track > i[data-usage="85"]{width:85%;}
.reseller-panel-cap-track > i[data-usage="86"]{width:86%;}
.reseller-panel-cap-track > i[data-usage="87"]{width:87%;}
.reseller-panel-cap-track > i[data-usage="88"]{width:88%;}
.reseller-panel-cap-track > i[data-usage="89"]{width:89%;}
.reseller-panel-cap-track > i[data-usage="90"]{width:90%;}
.reseller-panel-cap-track > i[data-usage="91"]{width:91%;}
.reseller-panel-cap-track > i[data-usage="92"]{width:92%;}
.reseller-panel-cap-track > i[data-usage="93"]{width:93%;}
.reseller-panel-cap-track > i[data-usage="94"]{width:94%;}
.reseller-panel-cap-track > i[data-usage="95"]{width:95%;}
.reseller-panel-cap-track > i[data-usage="96"]{width:96%;}
.reseller-panel-cap-track > i[data-usage="97"]{width:97%;}
.reseller-panel-cap-track > i[data-usage="98"]{width:98%;}
.reseller-panel-cap-track > i[data-usage="99"]{width:99%;}
.reseller-panel-cap-track > i[data-usage="100"]{width:100%;}

/* ===== UI R5C2 — SERIAL ROUTE HANDOFF + MOTION STABILITY ===== */
html {
  scrollbar-gutter: stable;
}

body,
button,
a,
[role="button"],
.nav-item,
.mobile-nav-item,
.mobile-create,
.mini-button,
.icon-button {
  -webkit-tap-highlight-color: transparent;
}

.page-root:focus,
.page-root:focus-visible,
.sheet-dialog:focus,
.sheet-dialog:focus-visible,
.confirm-dialog:focus,
.confirm-dialog:focus-visible,
dialog.sheet-dialog:focus,
dialog.sheet-dialog:focus-visible,
dialog.confirm-dialog:focus,
dialog.confirm-dialog:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.page {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

.page-root {
  overflow-anchor: none;
}

.page-root.route-transitioning {
  isolation: isolate;
}

/* Route animation is intentionally NEW-PAGE-ONLY. Browser View Transition
   snapshots are not used because old/new snapshots visually overlap while
   cross-fading. The page renderer commits once, then motion.js animates only
   the destination page on the compositor. */
.page-root > .page {
  transform-origin: 50% 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sheet-dialog[open]::backdrop,
.confirm-dialog[open]::backdrop {
  animation: npxBackdropIn 155ms ease-out both;
}

@keyframes npxBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav-item,
.mobile-nav-item,
.mobile-create,
.button,
.mini-button,
.icon-button,
.more-row,
.promo-back-button,
.promo-copy-button,
.promo-copy-all {
  transition-property: color, background-color, border-color, opacity, box-shadow, transform;
  transition-duration: 155ms;
  transition-timing-function: cubic-bezier(.2,.78,.2,1);
}

.nav-item:active,
.mobile-nav-item:active,
.mobile-create:active,
.button:active,
.mini-button:active,
.icon-button:active {
  transform: scale(.988) !important;
}

.sheet-dialog[open] .sheet,
.confirm-dialog[open] .confirm-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 760px) {
  .sheet-dialog[open]::backdrop,
  .confirm-dialog[open]::backdrop {
    animation-duration: 140ms;
  }

  .nav-item,
  .mobile-nav-item,
  .mobile-create,
  .button,
  .mini-button,
  .icon-button,
  .more-row,
  .promo-back-button,
  .promo-copy-button,
  .promo-copy-all {
    transition-duration: 140ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-dialog[open]::backdrop,
  .confirm-dialog[open]::backdrop {
    animation: none !important;
  }
}


/* ===== PHASE 4 — CREDENTIAL CASE PRESERVATION ===== */
.credential-case,
input.credential-case,
.user-title strong.credential-case,
.reseller-identity strong.credential-case {
  text-transform: none !important;
}

/* ===== R6C1 — LIVE RESELLER BEHAVIOR ONLY; PREVIEW GEOMETRY REMAINS AUTHORITATIVE ===== */
#resellerPortalView { min-height:100dvh; }
.reseller-live-shell .reseller-panel-sidebar-foot button { cursor:pointer; }
.reseller-live-shell .reseller-panel-search input:not(:disabled) { cursor:text; }
.reseller-live-shell .reseller-panel-customer-actions button { cursor:pointer; }
.reseller-live-shell #resellerLiveCreateForm { display:block; }
.reseller-live-shell #resellerLiveCreateError { margin:11px 0 0; }

/* R6 CSP-safe reseller capacity widths */
.reseller-panel-cap-track > i.usage-0{width:0%;}
.reseller-panel-cap-track > i.usage-1{width:1%;}
.reseller-panel-cap-track > i.usage-2{width:2%;}
.reseller-panel-cap-track > i.usage-3{width:3%;}
.reseller-panel-cap-track > i.usage-4{width:4%;}
.reseller-panel-cap-track > i.usage-5{width:5%;}
.reseller-panel-cap-track > i.usage-6{width:6%;}
.reseller-panel-cap-track > i.usage-7{width:7%;}
.reseller-panel-cap-track > i.usage-8{width:8%;}
.reseller-panel-cap-track > i.usage-9{width:9%;}
.reseller-panel-cap-track > i.usage-10{width:10%;}
.reseller-panel-cap-track > i.usage-11{width:11%;}
.reseller-panel-cap-track > i.usage-12{width:12%;}
.reseller-panel-cap-track > i.usage-13{width:13%;}
.reseller-panel-cap-track > i.usage-14{width:14%;}
.reseller-panel-cap-track > i.usage-15{width:15%;}
.reseller-panel-cap-track > i.usage-16{width:16%;}
.reseller-panel-cap-track > i.usage-17{width:17%;}
.reseller-panel-cap-track > i.usage-18{width:18%;}
.reseller-panel-cap-track > i.usage-19{width:19%;}
.reseller-panel-cap-track > i.usage-20{width:20%;}
.reseller-panel-cap-track > i.usage-21{width:21%;}
.reseller-panel-cap-track > i.usage-22{width:22%;}
.reseller-panel-cap-track > i.usage-23{width:23%;}
.reseller-panel-cap-track > i.usage-24{width:24%;}
.reseller-panel-cap-track > i.usage-25{width:25%;}
.reseller-panel-cap-track > i.usage-26{width:26%;}
.reseller-panel-cap-track > i.usage-27{width:27%;}
.reseller-panel-cap-track > i.usage-28{width:28%;}
.reseller-panel-cap-track > i.usage-29{width:29%;}
.reseller-panel-cap-track > i.usage-30{width:30%;}
.reseller-panel-cap-track > i.usage-31{width:31%;}
.reseller-panel-cap-track > i.usage-32{width:32%;}
.reseller-panel-cap-track > i.usage-33{width:33%;}
.reseller-panel-cap-track > i.usage-34{width:34%;}
.reseller-panel-cap-track > i.usage-35{width:35%;}
.reseller-panel-cap-track > i.usage-36{width:36%;}
.reseller-panel-cap-track > i.usage-37{width:37%;}
.reseller-panel-cap-track > i.usage-38{width:38%;}
.reseller-panel-cap-track > i.usage-39{width:39%;}
.reseller-panel-cap-track > i.usage-40{width:40%;}
.reseller-panel-cap-track > i.usage-41{width:41%;}
.reseller-panel-cap-track > i.usage-42{width:42%;}
.reseller-panel-cap-track > i.usage-43{width:43%;}
.reseller-panel-cap-track > i.usage-44{width:44%;}
.reseller-panel-cap-track > i.usage-45{width:45%;}
.reseller-panel-cap-track > i.usage-46{width:46%;}
.reseller-panel-cap-track > i.usage-47{width:47%;}
.reseller-panel-cap-track > i.usage-48{width:48%;}
.reseller-panel-cap-track > i.usage-49{width:49%;}
.reseller-panel-cap-track > i.usage-50{width:50%;}
.reseller-panel-cap-track > i.usage-51{width:51%;}
.reseller-panel-cap-track > i.usage-52{width:52%;}
.reseller-panel-cap-track > i.usage-53{width:53%;}
.reseller-panel-cap-track > i.usage-54{width:54%;}
.reseller-panel-cap-track > i.usage-55{width:55%;}
.reseller-panel-cap-track > i.usage-56{width:56%;}
.reseller-panel-cap-track > i.usage-57{width:57%;}
.reseller-panel-cap-track > i.usage-58{width:58%;}
.reseller-panel-cap-track > i.usage-59{width:59%;}
.reseller-panel-cap-track > i.usage-60{width:60%;}
.reseller-panel-cap-track > i.usage-61{width:61%;}
.reseller-panel-cap-track > i.usage-62{width:62%;}
.reseller-panel-cap-track > i.usage-63{width:63%;}
.reseller-panel-cap-track > i.usage-64{width:64%;}
.reseller-panel-cap-track > i.usage-65{width:65%;}
.reseller-panel-cap-track > i.usage-66{width:66%;}
.reseller-panel-cap-track > i.usage-67{width:67%;}
.reseller-panel-cap-track > i.usage-68{width:68%;}
.reseller-panel-cap-track > i.usage-69{width:69%;}
.reseller-panel-cap-track > i.usage-70{width:70%;}
.reseller-panel-cap-track > i.usage-71{width:71%;}
.reseller-panel-cap-track > i.usage-72{width:72%;}
.reseller-panel-cap-track > i.usage-73{width:73%;}
.reseller-panel-cap-track > i.usage-74{width:74%;}
.reseller-panel-cap-track > i.usage-75{width:75%;}
.reseller-panel-cap-track > i.usage-76{width:76%;}
.reseller-panel-cap-track > i.usage-77{width:77%;}
.reseller-panel-cap-track > i.usage-78{width:78%;}
.reseller-panel-cap-track > i.usage-79{width:79%;}
.reseller-panel-cap-track > i.usage-80{width:80%;}
.reseller-panel-cap-track > i.usage-81{width:81%;}
.reseller-panel-cap-track > i.usage-82{width:82%;}
.reseller-panel-cap-track > i.usage-83{width:83%;}
.reseller-panel-cap-track > i.usage-84{width:84%;}
.reseller-panel-cap-track > i.usage-85{width:85%;}
.reseller-panel-cap-track > i.usage-86{width:86%;}
.reseller-panel-cap-track > i.usage-87{width:87%;}
.reseller-panel-cap-track > i.usage-88{width:88%;}
.reseller-panel-cap-track > i.usage-89{width:89%;}
.reseller-panel-cap-track > i.usage-90{width:90%;}
.reseller-panel-cap-track > i.usage-91{width:91%;}
.reseller-panel-cap-track > i.usage-92{width:92%;}
.reseller-panel-cap-track > i.usage-93{width:93%;}
.reseller-panel-cap-track > i.usage-94{width:94%;}
.reseller-panel-cap-track > i.usage-95{width:95%;}
.reseller-panel-cap-track > i.usage-96{width:96%;}
.reseller-panel-cap-track > i.usage-97{width:97%;}
.reseller-panel-cap-track > i.usage-98{width:98%;}
.reseller-panel-cap-track > i.usage-99{width:99%;}
.reseller-panel-cap-track > i.usage-100{width:100%;}

/* ===== R7F3C — LOGIN CREDENTIAL EXACT-CASE DISPLAY ===== */
#loginView #loginUsername,
#loginView input[name="username"].credential-case {
  text-transform: none !important;
}


/* =========================================================
   R7F3G1 — MOBILE CREATE PROFILE PICKER CONTAINING-BLOCK FIX
   Shared by Super Admin and Reseller create-user dialogs.
   ========================================================= */
@media (max-width: 760px) {
  /* contain:layout/paint + will-change:transform made a fixed picker use
     the sheet as its containing block on Chromium-family mobile browsers.
     Release the containing block only while the picker is open so viewport
     coordinates from getBoundingClientRect()/visualViewport stay correct. */
  #createDialog.r18-create-dialog.r20-create-dialog.r26-picker-open .sheet {
    contain: none !important;
    will-change: auto !important;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-menu {
    max-height: var(--r7f3g1-picker-max-height, min(42dvh, 340px)) !important;
  }
}

/* =========================================================
   R7F3G2 — MOBILE ADMIN PROFILE PICKER LOCKED-ROW VISIBILITY
   Admin can receive a long mixed READY/LOCKED profile list. Native disabled
   buttons plus per-row compositing produced painted blank rows on Chromium
   mobile. Locked entries remain non-selectable, but render as aria-disabled
   rows; mobile picker rows are kept in one non-promoted scroll layer.
   Shared renderer remains compatible with the Reseller picker.
   ========================================================= */
@media (max-width: 760px) {
  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-menu {
    contain: none !important;
    will-change: auto !important;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-option {
    display: flex !important;
    visibility: visible !important;
    transform: none !important;
    backface-visibility: visible !important;
    will-change: auto !important;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-option.locked,
  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-option[aria-disabled="true"] {
    opacity: .72 !important;
    filter: none !important;
    -webkit-filter: none !important;
    color: rgba(255, 255, 255, .88) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-option.locked .name strong,
  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-option[aria-disabled="true"] .name strong {
    color: rgba(255, 255, 255, .88) !important;
  }
}


/* =========================================================
   NPXSHOP R9 IP OBSERVE R1 — UI HOTFIX 1
   Scope: Users page on mobile only
   ========================================================= */

@media (max-width: 760px) {

  /*
   * Keep the Users header in normal document flow.
   * This prevents it from covering account cards
   * while scrolling.
   */

  #appView:has(#userGrid)
  .topbar.topbar-premium-header {
    position: static !important;
    top: auto !important;
  }

  /*
   * Reserve sufficient space beneath the user list
   * so the floating bottom navigation cannot cover
   * the final account's action buttons.
   */

  #appView:has(#userGrid)
  .page-root {
    padding-bottom:
      calc(120px + env(safe-area-inset-bottom, 0px))
      !important;

    scroll-padding-bottom:
      calc(120px + env(safe-area-inset-bottom, 0px));
  }

}

/* UI HOTFIX 3 - HIDE NUMBER SPINNERS */
#createDialog input[name="days"],
#createDialog input[name="gb_limit"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#createDialog input[name="days"]::-webkit-inner-spin-button,
#createDialog input[name="days"]::-webkit-outer-spin-button,
#createDialog input[name="gb_limit"]::-webkit-inner-spin-button,
#createDialog input[name="gb_limit"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Standalone, offline preview — black one-color iOS-inspired smoked glass */
:root {
  --bg-0:#000000; --bg-1:#000000;
  --panel:rgba(20, 20, 20, .82); --panel-strong:rgba(29, 29, 29, .88);
  --panel-hover:rgba(255, 255, 255, .085); --line:rgba(255, 255, 255, .13);
  --line-soft:rgba(255, 255, 255, .08); --text:#f7f7f7;
  --text-soft:rgba(245, 245, 245, .77); --muted:rgba(234, 234, 234, .56);
  --blue:#b6b6b6; --blue-soft:#c1c1c1; --green:#c2c2c2;
  --red:#9b9b9b; --orange:#cbcbcb; --purple:#b6b6b6;
  --shadow:0 16px 44px rgba(0, 0, 0, .36);
  --inner:inset 0 1px 0 rgba(255, 255, 255, .12);
}
html,body {background:#000000 !important;background-image:none !important;color:var(--text)}
body::before,body::after {background:none !important;box-shadow:none !important}
.ambient,.ambient-orb,.ambient-noise,.hero-orb,.hero-glow,.hero-gridline,.reseller-card-glow {display:none !important}
body,.app-view,.login-view,.page-root {background:#000000 !important;background-image:none !important}
/* Real glass is applied only to top-level fixed surfaces to limit GPU cost. */
#appView .sidebar.glass-panel,
#appView .topbar.topbar-premium-header,
#appView .mobile-nav.glass-panel,
#loginView .login-shell-premium,
#loginView .login-hero-panel,
#loginView .login-panel,
.sheet-dialog .sheet,.confirm-dialog .confirm-card {
  background:linear-gradient(155deg,rgba(27, 27, 27, .86),rgba(11, 11, 11, .90)) !important;
  border:1px solid rgba(255, 255, 255, .17) !important;
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .16),0 18px 46px rgba(0, 0, 0, .46) !important;
  backdrop-filter:blur(14px) saturate(112%) !important;
  -webkit-backdrop-filter:blur(14px) saturate(112%) !important;
}
#appView .topbar.topbar-premium-header {background:transparent !important;box-shadow:none !important;border-color:transparent !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important}
#loginView .login-shell-premium {background:rgba(13, 13, 13, .54) !important}
#loginView .login-hero-panel::before,#loginView .login-panel::before {background:linear-gradient(140deg,rgba(255, 255, 255, .09),transparent 36%) !important;opacity:.5 !important}
#loginView .login-hero-panel::after,#loginView .login-panel::after {display:none !important}
#loginView .login-hero-panel,#loginView .login-panel {background:linear-gradient(153deg,rgba(33, 33, 33, .65),rgba(13, 13, 13, .75)) !important}
#appView .card,#appView .hero.card,#appView .hero-premium,#appView .quick-card.card,
#appView .user-card.card,#appView .service-card.card,#appView .profile-card.card,
#appView .reseller-card.card,#appView .backup-card.card,#appView .audit-card.card,
#appView .reseller-hero.card,#appView .reseller-metric-card {
  background:linear-gradient(155deg,rgba(255, 255, 255, .076),rgba(255, 255, 255, .029)) !important;
  border:1px solid rgba(255, 255, 255, .115) !important;
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .11),0 14px 30px rgba(0, 0, 0, .24) !important;
  backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
}
#appView .card::before,#appView .hero::before,#appView .quick-card::before {background:none !important;opacity:0 !important}
#appView .hero-mini-panel,#appView .stat-box,#appView .metric,#appView .runtime-stat,
#appView .reseller-stat,#appView .reseller-capacity,#appView .profile-specs > div {
  background:rgba(255, 255, 255, .034) !important;
  background-image:none !important;
  border:1px solid rgba(255, 255, 255, .09) !important;
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .055) !important;
}
#appView .nav-item,#appView .mobile-nav-item {background:transparent !important;border:1px solid transparent !important;color:rgba(235, 235, 235, .71) !important}
#appView .nav-item:hover,#appView .mobile-nav-item:hover {background:rgba(255, 255, 255, .07) !important;color:#ffffff !important}
#appView .nav-item.active,#appView .mobile-nav-item.active {
  background:rgba(255, 255, 255, .12) !important;border-color:rgba(255, 255, 255, .13) !important;
  color:#ffffff !important;box-shadow:inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}
#appView .nav-glyph-premium,#appView .nav-glyph {background:rgba(255, 255, 255, .06) !important;color:rgba(247, 247, 247, .88) !important;border-color:rgba(255, 255, 255, .10) !important}
#appView .nav-item.active .nav-glyph-premium {color:#ffffff !important;background:rgba(255, 255, 255, .12) !important}
#appView .brand-mark,#loginView .brand-mark {background:linear-gradient(145deg,rgba(255, 255, 255, .22),rgba(255, 255, 255, .05)) !important;border:1px solid rgba(255, 255, 255, .19) !important;color:#fefefe !important;box-shadow:inset 0 1px 0 rgba(255, 255, 255, .22) !important}
#appView .avatar {background:linear-gradient(150deg,#464646,#1a1a1a) !important;border:1px solid rgba(255, 255, 255, .16) !important}
#appView .button.primary,#loginView .button.primary,.sheet-dialog .button.primary,#appView .mobile-create {
  background:linear-gradient(180deg,#fafafa,#d1d1d1) !important;color:#0a0a0a !important;
  border:1px solid rgba(255, 255, 255, .52) !important;
  box-shadow:inset 0 1px 0 #ffffff,0 9px 24px rgba(255, 255, 255, .08) !important;
}
#appView .button.secondary,.sheet-dialog .button.secondary,#appView .topbar-logout {background:rgba(255, 255, 255, .055) !important;border:1px solid rgba(255, 255, 255, .13) !important;color:#f5f5f5 !important}
#appView .button.danger,.sheet-dialog .button.danger,#appView #desktopLogout,
#appView .mini-button.red,[data-demo-action="delete"],[data-demo-action="suspend"] {
  background:rgba(145, 145, 145, .13) !important;color:#b8b8b8 !important;border:1px solid rgba(145, 145, 145, .25) !important;box-shadow:none !important;
}
#appView .mini-button.blue {background:rgba(155, 155, 155, .12) !important;color:#c5c5c5 !important;border:1px solid rgba(155, 155, 155, .24) !important}
#appView .badge.green,#appView .hero-pill,#appView .status-pill {background:rgba(182, 182, 182, .095) !important;color:#d3d3d3 !important;border-color:rgba(182, 182, 182, .19) !important}
#appView .badge.orange {background:rgba(197, 197, 197, .10) !important;color:#d6d6d6 !important;border-color:rgba(197, 197, 197, .2) !important}
#appView .badge.red {background:rgba(145, 145, 145, .095) !important;color:#bababa !important;border-color:rgba(145, 145, 145, .2) !important}
#appView .hero-pill.ghost,#appView .topbar-live-chip,#appView .eyebrow-chip {background:rgba(255, 255, 255, .05) !important;border-color:rgba(255, 255, 255, .12) !important;color:rgba(249, 249, 249, .79) !important}
#appView .quick-icon,#appView .runtime-icon {background:rgba(255, 255, 255, .08) !important;color:#ebebeb !important;border:1px solid rgba(255, 255, 255, .12) !important}
#appView .hero-mini-graph i,#appView .quick-bars i {background:rgba(228, 228, 228, .55) !important}
#appView .runtime-meter,#appView .reseller-capacity-track {background:rgba(255, 255, 255, .10) !important}
#appView .runtime-meter>span,#appView .reseller-capacity-track>i {background:linear-gradient(90deg,#adadad,#e9e9e9) !important;box-shadow:none !important}
#loginView .field input,#appView .field input,#appView .search-input,.sheet-dialog .field input,.sheet-dialog .field select,
.sheet-dialog .field textarea {background:rgba(255, 255, 255, .045) !important;border:1px solid rgba(255, 255, 255, .15) !important;color:#fafafa !important}
#appView .field input:focus,.sheet-dialog .field input:focus,.sheet-dialog .field select:focus,#loginView .field input:focus {
 border-color:rgba(255, 255, 255, .48) !important;box-shadow:0 0 0 3px rgba(255, 255, 255, .1) !important
}
#appView .topbar-subtitle,#appView .hero-copy,#appView .user-title span,#appView .section-head p {color:rgba(239, 239, 239, .71) !important}
#appView .section-head h3,#appView .hero h3 {color:#fbfbfb !important}
.sheet-dialog::backdrop,.confirm-dialog::backdrop {background:rgba(0, 0, 0, .8) !important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#appView .hero-mini-panel::before,#appView .hero-mini-panel::after,#appView .runtime-stat::before {display:none !important}
.demo-badge {font:800 10px/1.3 system-ui,sans-serif;letter-spacing:.1em;color:#e5e5e5;background:rgba(255, 255, 255, .065);border:1px solid rgba(255, 255, 255, .16);border-radius:999px;padding:7px 11px;white-space:nowrap}
.demo-tool {position:fixed;z-index:70;right:18px;bottom:18px;display:flex;gap:6px;align-items:center;padding:6px;border-radius:999px;background:rgba(29, 29, 29, .86);border:1px solid rgba(255, 255, 255, .17);box-shadow:0 15px 35px #00000099;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.demo-tool button {border:0;border-radius:999px;background:transparent;color:#dadada;padding:9px 13px;font:700 11px system-ui;cursor:pointer;white-space:nowrap}
.demo-tool button.active {background:rgba(255, 255, 255, .16);color:#ffffff}
.demo-tool button:hover {background:rgba(255, 255, 255, .10)}
.demo-label {font:800 8px system-ui;letter-spacing:.13em;color:#ababab;padding:0 7px}
.preview-info {padding:10px 14px;border:1px solid rgba(255, 255, 255, .1);border-radius:14px;background:rgba(255, 255, 255, .035);color:#bbbbbb;font:600 10px/1.65 system-ui;margin-bottom:14px}
.preview-info strong {color:#eaeaea}
.demo-toast {position:fixed;z-index:200;left:50%;bottom:96px;transform:translateX(-50%);font:700 12px system-ui;background:rgba(34, 34, 34, .96);border:1px solid #ffffff40;color:#fafafa;padding:12px 18px;border-radius:14px;box-shadow:0 13px 32px #000000bb;max-width:min(400px,95vw);text-align:center}
.simple-top {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;flex-wrap:wrap}
.simple-top h3 {font-size:17px;margin:0 0 4px}.simple-top p {font-size:10px;color:var(--text-soft);margin:0}
.search-input {max-width:350px;min-width:180px}
.demo-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.demo-service {min-height:165px}.demo-service .service-meta {margin:6px 0 0}
.demo-service .service-actions,.demo-actions {display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.demo-meter {height:6px;background:#ffffff1a;border-radius:10px;overflow:hidden;margin-top:14px}
.demo-meter>span {display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7a7a7a,#e9e9e9)}
.demo-card-sub {color:var(--text-soft);font-size:10px;line-height:1.6;margin-top:8px}
.demo-list {display:grid;gap:10px}.demo-row {padding:16px;border-radius:18px;background:rgba(255, 255, 255, .035);border:1px solid rgba(255, 255, 255, .075);display:flex;align-items:center;justify-content:space-between;gap:12px}
.demo-row strong {font-size:11px}.demo-row small {display:block;color:var(--text-soft);font-size:9px;margin-top:5px}
.demo-row .badge {white-space:nowrap}
.demo-dialog-note {font-size:10px;color:rgba(255, 255, 255, .56);margin:8px 0 0}
@media(max-width:850px){.demo-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.demo-tool{right:50%;transform:translateX(50%);bottom:calc(85px + env(safe-area-inset-bottom,0px));padding:4px}.demo-tool button{padding:8px 9px;font-size:10px}.demo-label{display:none}.demo-grid{grid-template-columns:1fr}.simple-top .search-input{width:100%;max-width:none}.demo-toast{bottom:155px}#appView:has(#userGrid) .topbar.topbar-premium-header {background:transparent !important;border:none !important;box-shadow:none !important}}
@media(hover:none){.quick-card:hover,.button:hover,.nav-item:hover{transform:none !important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {#appView .sidebar.glass-panel,#appView .mobile-nav.glass-panel,#loginView .login-shell-premium,.sheet-dialog .sheet {background:rgba(25, 25, 25, .98) !important}}


/* ===== FONT-THAI-UI: Typographic refinement only. No layout rewrite. ===== */
:root {
  --font-thai-ui: "Noto Sans", "Noto Sans Thai Looped", "Noto Sans Thai", "Thonburi", Tahoma, sans-serif;
}
body,
button, input, select, textarea, option,
.demo-tool button, .demo-label, .demo-badge, .preview-info, .demo-toast,
.thai-thonburi {
  font-family: var(--font-thai-ui) !important;
}
body {
  font-synthesis: none;
  font-kerning: normal;
}
/* Thai needs enough vertical space for vowels/tonal marks on compact cards. */
.thai-thonburi {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}
.preview-info {font-size: 11px;line-height: 1.7;letter-spacing: 0}
.demo-toast {font-size: 12px;line-height: 1.65}
@media (max-width: 760px) {
  .thai-thonburi {font-size: 11px !important}
  .preview-info {font-size: 11.5px}
}
/* ===== End FONT-THAI-UI ===== */
/* Thai labels on compact UI elements: readability without modifying layout. */
.nav-item span, .mobile-nav-item span, .button, .mini-button,
.badge, .hero-pill, .metric span, .field span,
.login-kicker, .eyebrow, .topbar-live-chip, .demo-tool button {
  letter-spacing: 0 !important;
  line-height: 1.5;
}
.login-copy, .login-panel-copy, .hero-copy, .topbar-subtitle {
  line-height: 1.75;
}

/* ===== Header-only refinement: opaque smoked black glass =====
   Override the inherited preview rule that forced a fully transparent topbar.
   Isolated scope keeps card surfaces, interactions and page structure unchanged. */
#appView .topbar.topbar-premium-header {
  background: linear-gradient(155deg, rgba(27, 27, 27, .96), rgba(13, 13, 13, .97)) !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 12px 32px rgba(0, 0, 0, .36) !important;
  -webkit-backdrop-filter: blur(10px) saturate(108%) !important;
  backdrop-filter: blur(10px) saturate(108%) !important;
}
#appView .topbar.topbar-premium-header::before {
  background: linear-gradient(115deg, rgba(255, 255, 255, .04), transparent 44%) !important;
  opacity: .65 !important;
}
#appView .topbar.topbar-premium-header::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent) !important;
}
/* The Users view has a separate mobile transparent-topbar override. */
@media (max-width: 760px) {
  #appView .topbar.topbar-premium-header,
  #appView:has(#userGrid) .topbar.topbar-premium-header {
    background: linear-gradient(155deg, rgba(27, 27, 27, .96), rgba(13, 13, 13, .97)) !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 10px 26px rgba(0, 0, 0, .32) !important;
    -webkit-backdrop-filter: blur(8px) saturate(105%) !important;
    backdrop-filter: blur(8px) saturate(105%) !important;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #appView .topbar.topbar-premium-header {
    background: #161616 !important;
  }
}
/* ===== End header-only refinement ===== */
/* === NPXSHOP / Liquid Glass Icon Motion | Minimal visual patch ===
   Scope: Quick-action and runtime icon containers only.
   Compositor-friendly: transform / opacity; no animated blur or shadow. */
#appView .quick-card-premium .quick-icon,
#appView .runtime-stat .runtime-icon {
  transform-origin: 50% 54%;
  backface-visibility: hidden;
}
#appView .quick-card-premium .quick-icon svg,
#appView .runtime-stat .runtime-icon svg {
  transform-box: fill-box;
  transform-origin: center;
  backface-visibility: hidden;
}

/* Stagger prevents the icons from moving at the same time. */
#appView .quick-card-premium:nth-child(2) { --npx-icon-delay: -1.35s; }
#appView .quick-card-premium:nth-child(3) { --npx-icon-delay: -2.75s; }
#appView .quick-card-premium:nth-child(4) { --npx-icon-delay: -4.20s; }
#appView .runtime-stat:nth-child(2) { --npx-icon-delay: -1.90s; }
#appView .runtime-stat:nth-child(3) { --npx-icon-delay: -3.15s; }
#appView .runtime-stat:nth-child(4) { --npx-icon-delay: -4.65s; }

#appView .quick-card-premium.icon-in-view .quick-icon,
#appView .runtime-stat.icon-in-view .runtime-icon {
  animation: npxIconFloat 6.8s cubic-bezier(.45,0,.35,1) infinite;
  animation-delay: var(--npx-icon-delay, 0s);
}
#appView .quick-card-premium.icon-in-view .quick-icon svg {
  animation: npxIconWiggle 7.4s ease-in-out infinite;
  animation-delay: var(--npx-icon-delay, 0s);
}

/* Distinct movement for each status metric. */
#appView .runtime-stat:nth-child(1).icon-in-view .runtime-icon svg {
  animation: npxIconCpu 8s ease-in-out infinite;
}
#appView .runtime-stat:nth-child(2).icon-in-view .runtime-icon svg {
  animation: npxIconMemory 7.6s ease-in-out infinite;
  animation-delay: -.8s;
}
#appView .runtime-stat:nth-child(3).icon-in-view .runtime-icon svg {
  animation: npxIconDisk 7.9s ease-in-out infinite;
  animation-delay: -2s;
}
#appView .runtime-stat:nth-child(4).icon-in-view .runtime-icon svg {
  animation: npxIconClock 8.2s ease-in-out infinite;
  animation-delay: -3s;
}

/* Click/tap feedback is short and interruptible; does not change card layout. */
#appView .quick-card-premium.icon-poked .quick-icon,
#appView .runtime-stat.icon-poked .runtime-icon {
  animation: npxIconTap .54s cubic-bezier(.22,1,.36,1) both !important;
}
#appView .quick-card-premium.icon-poked .quick-icon svg,
#appView .runtime-stat.icon-poked .runtime-icon svg {
  animation: npxIconTapGlyph .54s cubic-bezier(.22,1,.36,1) both !important;
}
@media (hover: hover) and (pointer: fine) {
  #appView .quick-card-premium:hover .quick-icon,
  #appView .quick-card-premium:focus-visible .quick-icon,
  #appView .runtime-stat:hover .runtime-icon {
    animation: npxIconHover 1.15s cubic-bezier(.2,.8,.3,1) infinite alternate !important;
  }
  #appView .quick-card-premium:hover .quick-icon svg,
  #appView .quick-card-premium:focus-visible .quick-icon svg,
  #appView .runtime-stat:hover .runtime-icon svg {
    animation: npxIconHoverGlyph 1.15s ease-in-out infinite alternate !important;
  }
}

@keyframes npxIconFloat {
  0%, 56%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  18% { transform: translate3d(0, -2.8px, 0) rotate(-2deg); }
  37% { transform: translate3d(0, 1px, 0) rotate(1.4deg); }
}
@keyframes npxIconWiggle {
  0%, 55%, 100% { transform: translate3d(0,0,0) rotate(0); }
  17% { transform: translate3d(1px,-1px,0) rotate(5deg); }
  32% { transform: translate3d(-1px,0,0) rotate(-3deg); }
}
@keyframes npxIconCpu {
  0%, 48%, 100% { transform: scale(1) rotate(0); }
  18% { transform: scale(1.09) rotate(5deg); }
  32% { transform: scale(.99) rotate(-4deg); }
}
@keyframes npxIconMemory {
  0%, 56%, 100% { transform: translate3d(0,0,0) scaleX(1); }
  22% { transform: translate3d(0,-1px,0) scaleX(1.1); }
  34% { transform: translate3d(0,0,0) scaleX(.97); }
}
@keyframes npxIconDisk {
  0%, 55%, 100% { transform: translate3d(0,0,0) scale(1); }
  22% { transform: translate3d(0,-1.5px,0) scale(1.08); }
  36% { transform: translate3d(0,0,0) scale(.98); }
}
@keyframes npxIconClock {
  0%, 54%, 100% { transform: rotate(0); }
  16% { transform: rotate(12deg); }
  32% { transform: rotate(-7deg); }
}
@keyframes npxIconTap {
  0% { transform: scale(1) translateY(0); }
  28% { transform: scale(.89) translateY(1px); }
  67% { transform: scale(1.12) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}
@keyframes npxIconTapGlyph {
  0%,100% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-10deg) scale(.95); }
  70% { transform: rotate(8deg) scale(1.1); }
}
@keyframes npxIconHover {
  from { transform: translate3d(0, -1px, 0) rotate(-2deg) scale(1.04); }
  to { transform: translate3d(0, -3px, 0) rotate(2deg) scale(1.09); }
}
@keyframes npxIconHoverGlyph {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

/* Stop GPU work while tab is in background, or when icons leave viewport. */
html.npx-icons-background #appView .quick-icon,
html.npx-icons-background #appView .runtime-icon,
html.npx-icons-background #appView .quick-icon svg,
html.npx-icons-background #appView .runtime-icon svg {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  #appView .quick-card-premium .quick-icon,
  #appView .quick-card-premium .quick-icon svg,
  #appView .runtime-stat .runtime-icon,
  #appView .runtime-stat .runtime-icon svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
/* === End Icon Motion === */


/* NPXSHOP Users — Obsidian Glass Pro / iOS Settings hybrid. Scope: Users only. */
#appView .up-users-page {font-size:14px;color:#f4f4f4;max-width:1300px;overflow:visible}
#appView .up-users-page *,#appView .up-users-page *::before,#appView .up-users-page *::after{box-sizing:border-box}
#appView .up-users-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;margin:6px 0 22px}
#appView .up-users-heading{min-width:0}
#appView .up-overline{font-size:12px;font-weight:700;letter-spacing:.015em;color:#d3d3d3;display:inline-flex;align-items:center;gap:8px}
#appView .up-overline-dot{width:7px;height:7px;border-radius:100%;background:#bfbfbf;box-shadow:0 0 0 4px #bfbfbf13}
#appView .up-users-heading h3{font-size:clamp(24px,2.4vw,30px);letter-spacing:-.035em;line-height:1.35;margin:6px 0 4px;font-weight:750}
#appView .up-users-heading p{font-size:13px;line-height:1.6;color:#9b9b9b;margin:0}
#appView .up-create{min-height:46px;padding:0 20px !important;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:15px !important;white-space:nowrap;font-weight:750;font-size:13px}
#appView .up-create svg{stroke:#111111}
#appView .up-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
#appView .up-overview-item{border-radius:22px;padding:22px 24px;min-width:0;display:flex;align-items:center;gap:16px;background:linear-gradient(145deg,rgba(255, 255, 255, .08),rgba(255, 255, 255, .025));border:1px solid rgba(255, 255, 255, .11);box-shadow:inset 0 1px 0 #ffffff19,0 10px 30px #00000033}
#appView .up-overview-icon{width:50px;height:50px;flex:none;display:grid;place-items:center;border-radius:16px;background:linear-gradient(155deg,#3c3c3c,#252525);color:#f3f3f3;border:1px solid #ffffff22;box-shadow:inset 0 1px 0 #ffffff1a}
#appView .up-overview-icon.healthy{color:#d0d0d0}
#appView .up-overview-icon.warning{color:#c7c7c7}
#appView .up-overview-item>div{min-width:0;display:grid;gap:3px}
#appView .up-overview-item>div>span{font-size:12px;color:#b1b1b1}
#appView .up-overview-item strong{font-size:30px;line-height:1.15;letter-spacing:-.04em;font-weight:750;font-variant-numeric:tabular-nums}
#appView .up-overview-item small{font-size:11px;color:#898989}
#appView .up-main{border:1px solid #ffffff18;background:linear-gradient(160deg,rgba(255, 255, 255, .063),rgba(255, 255, 255, .018) 70%);border-radius:24px;overflow:hidden;box-shadow:inset 0 1px 0 #ffffff10,0 16px 45px #00000033;min-width:0}
#appView .up-tools{padding:20px 22px 0}
#appView .up-tools-primary{display:flex;gap:10px;align-items:center}
#appView .up-search-wrap{position:relative;display:flex;align-items:center;max-width:475px;flex:1;min-width:0}
#appView .up-search-wrap>span{position:absolute;left:15px;color:#929292;display:grid;place-items:center;pointer-events:none}
#appView .up-search-wrap input{border-radius:14px !important;min-width:0;width:100%;height:45px;padding:0 15px 0 44px;font-family:inherit;font-size:13px;font-weight:550;background:#ffffff0a !important;border:1px solid #ffffff1b !important;color:#f6f6f6 !important;outline:none;box-shadow:inset 0 1px 0 #ffffff0b !important}
#appView .up-search-wrap input::placeholder{color:#8d8d8d}
#appView .up-search-wrap input:focus-visible{border-color:#ffffff50 !important;box-shadow:0 0 0 3px #ffffff16 !important}
#appView .up-toolbar-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;min-width:0}
#appView .up-filters{display:flex;gap:5px;align-items:center;overflow-x:auto;min-width:0;scrollbar-width:none}
#appView .up-filters::-webkit-scrollbar{display:none}
#appView .up-filter{height:40px;display:inline-flex;align-items:center;gap:8px;flex:none;border:0 !important;border-bottom:2px solid transparent !important;border-radius:0 !important;padding:0 12px;background:transparent !important;color:#9d9d9d !important;box-shadow:none !important;font:650 12px inherit;cursor:pointer;transition:color .18s ease,border-color .18s ease;white-space:nowrap}
#appView .up-filter.selected{color:#f7f7f7 !important;border-bottom-color:#eaeaea !important}
#appView .up-filter:hover{color:#f5f5f5 !important;transform:none !important}
#appView .up-filter em{font:700 10px inherit;padding:3px 7px;border-radius:8px;background:#ffffff13;color:#dfdfdf;font-style:normal}
#appView .up-sort-label{display:flex;align-items:center;gap:8px;color:#989898;font-size:12px;white-space:nowrap}
#appView .up-sort-label select{min-height:34px;border-radius:10px;border:1px solid #ffffff16;background:#ffffff0e;color:#eeeeee;padding:0 10px;font:600 12px inherit;min-width:115px;outline:none}
#appView .up-sort-label option{background:#1b1b1b;color:#f4f4f4}
#appView .up-sort-mobile{display:none}
#appView .up-listbar{padding:20px 22px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px}
#appView .up-listbar h4{font-size:15px;font-weight:750;margin:0}
#appView .up-listbar span{font-size:12px;color:#949494}
#appView .up-desktop-table{overflow-x:auto;min-width:0}
#appView .up-table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}
#appView .up-table th{font-size:11px;font-weight:650;color:#949494;letter-spacing:0;padding:14px 14px;background:#ffffff07;border-top:1px solid #ffffff0a;border-bottom:1px solid #ffffff13}
#appView .up-table th:first-child,#appView .up-table td:first-child{padding-left:22px;width:27%}
#appView .up-table th:nth-child(2){width:16%}#appView .up-table th:nth-child(3){width:15%}#appView .up-table th:nth-child(4){width:24%}#appView .up-table th:nth-child(5){width:11%}
#appView .up-table th:last-child,#appView .up-table td:last-child{width:56px;text-align:right;padding-right:20px}
#appView .up-table td{padding:13px 14px;border-bottom:1px solid #ffffff0c;vertical-align:middle;font-size:12px}
#appView .up-table tr:last-child td{border-bottom:0}
#appView .up-data-row{transition:background-color .17s ease}
#appView .up-data-row:hover{background:#ffffff08}
#appView .up-identity{display:flex;align-items:center;gap:12px;max-width:100%;min-width:0;text-align:left;padding:0;border:0 !important;background:none !important;box-shadow:none !important;color:inherit !important;cursor:pointer}
#appView .up-identity:hover,#appView .up-identity:focus-visible{transform:none !important}
#appView .up-identity>span:last-child{min-width:0}
#appView .up-identity strong{font-size:13px;font-weight:750;color:#f6f6f6;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appView .up-identity small{font-size:11px;margin-top:3px;color:#939393;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#appView .up-avatar{width:42px;height:42px;flex:none;border-radius:14px;display:grid;place-items:center;background:linear-gradient(155deg,#393939,#1f1f1f);border:1px solid #ffffff23;color:#ededed;box-shadow:inset 0 1px 0 #ffffff24;transition:transform .22s ease}
#appView .up-identity:hover .up-avatar{transform:translateY(-2px) rotate(-3deg)}
#appView .up-state{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;font-weight:700;border-radius:999px;padding:7px 10px;background:#ffffff0c;color:#c6c6c6;border:1px solid #ffffff14}
#appView .up-state i{display:block;height:6px;width:6px;border-radius:50%;background:#909090;flex:none}
#appView .up-state.online{background:#a7a7a712;border-color:#aeaeae32;color:#cbcbcb}#appView .up-state.online i{background:#c1c1c1}
#appView .up-state.suspended{background:#a9a9a912;border-color:#a9a9a92b;color:#c4c4c4}#appView .up-state.suspended i{background:#b9b9b9}
#appView .up-days{font-size:12px;font-weight:750;color:#e9e9e9;font-variant-numeric:tabular-nums;white-space:nowrap}
#appView .up-days.near{color:#c8c8c8}
#appView .up-usage{max-width:220px;display:grid;gap:8px}
#appView .up-usage>span{font-size:11px;font-weight:650;color:#e2e2e2;white-space:nowrap}
#appView .up-meter{height:5px;border-radius:10px;background:#ffffff16;overflow:hidden}
#appView .up-meter i{display:block;height:100%;max-width:100%;background:linear-gradient(90deg,#afafaf,#e8e8e8);border-radius:inherit}
#appView .up-ip{font-size:13px;font-weight:750;font-variant-numeric:tabular-nums}#appView .up-ip small{font-size:10px;color:#a0a0a0}
#appView .up-detail-button{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:12px !important;color:#d2d2d2 !important;border:1px solid #ffffff20 !important;background:#ffffff0b !important;box-shadow:none !important}
#appView .up-detail-button:hover{background:#ffffff20 !important}
#appView .up-mobile-list{display:none}
#appView .up-empty:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:45px 10px;color:#979797;text-align:center}
#appView .up-empty[hidden]{display:none !important}
#appView .up-empty strong{color:#e7e7e7;font-size:14px}
#appView .up-empty span{font-size:12px}
#appView .up-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* User detail: centered on desktop, bottom sheet on touch-size viewports. */
.up-user-dialog{color:#f3f3f3;background:linear-gradient(155deg,#242424,#131313) !important;border:1px solid #ffffff2a !important;border-radius:26px;box-shadow:0 30px 90px #000000cc, inset 0 1px 0 #ffffff1b;width:min(465px,calc(100vw - 30px));max-height:min(90vh,800px);padding:0;overflow:auto;overscroll-behavior:contain;font-family:inherit}
.up-user-dialog::backdrop{background:#000000bb;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.up-user-dialog .up-dialog-inner{padding:23px}
.up-user-dialog .up-dialog-grabber{display:none}
.up-user-dialog .up-dialog-top{display:flex;align-items:center;justify-content:space-between;color:#b1b1b1;font-size:13px;font-weight:650;margin-bottom:21px}
.up-user-dialog .up-close{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;border:1px solid #ffffff18;background:#ffffff0c;color:#dfdfdf}
.up-user-dialog .up-dialog-person{display:flex;align-items:center;gap:13px;min-width:0;margin-bottom:20px}
.up-user-dialog .up-dialog-person .up-avatar{width:52px;height:52px;border-radius:17px}
.up-user-dialog .up-dialog-person>div{flex:1;min-width:0}
.up-user-dialog h3{font-size:17px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.up-user-dialog .up-dialog-person p{font-size:12px;color:#9f9f9f;margin:4px 0 0}
.up-user-dialog .up-state{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;font-weight:650;border-radius:999px;padding:6px 10px;border:1px solid #ffffff1b}
.up-user-dialog .up-state i{display:block;width:6px;height:6px;border-radius:50%;background:currentColor}
.up-user-dialog .up-state.online{color:#cbcbcb;background:#a3a3a31c}.up-user-dialog .up-state.offline{color:#b7b7b7;background:#ffffff12}.up-user-dialog .up-state.suspended{color:#c4c4c4;background:#b8b8b818}
.up-user-dialog .up-dialog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.up-user-dialog .up-dialog-grid>div{display:grid;gap:8px;padding:15px;background:#ffffff0c;border:1px solid #ffffff13;border-radius:15px}
.up-user-dialog .up-dialog-grid span,.up-user-dialog .up-dialog-usage span{font-size:11px;color:#aaaaaa}
.up-user-dialog .up-dialog-grid strong{font-size:16px}
.up-user-dialog .up-dialog-usage{padding:17px;border-radius:16px;border:1px solid #ffffff16;margin-top:12px;background:#ffffff0b}
.up-user-dialog .up-dialog-usage>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:12px}
.up-user-dialog .up-meter{height:5px;background:#ffffff19;border-radius:100px;overflow:hidden}
.up-user-dialog .up-meter i{display:block;height:100%;border-radius:inherit;background:#cacaca}
.up-user-dialog .up-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.up-user-dialog .up-dialog-actions button{display:flex;justify-content:center;gap:8px;align-items:center;min-height:45px;border:1px solid #ffffff25;border-radius:13px;background:#ffffff13;color:#fafafa;font:700 13px inherit;cursor:pointer}
.up-user-dialog .up-dialog-actions .up-dialog-primary{background:linear-gradient(#f4f4f4,#d0d0d0);color:#151515}
.up-user-dialog .up-dialog-danger{display:block;margin:16px auto 0;border:0;background:transparent;color:#b0b0b0;font:650 12px inherit;cursor:pointer;padding:8px 12px}
@media(max-width:980px){#appView .up-overview-item{padding:17px;gap:10px}#appView .up-overview-icon{width:44px;height:44px}#appView .up-table th,#appView .up-table td{padding-left:10px;padding-right:10px}}
@media(max-width:760px){
#appView .up-users-page {padding-bottom:12px}
#appView .up-users-header{margin:12px 0 18px;align-items:flex-end;gap:8px}
#appView .up-users-heading h3{font-size:23px;margin:3px 0 3px}
#appView .up-users-heading p{font-size:11px;line-height:1.5;max-width:250px}
#appView .up-overline{font-size:10px}
#appView .up-create{min-height:39px;border-radius:13px !important;padding:0 12px !important;font-size:11px;gap:4px}
#appView .up-create svg{width:16px;height:16px}
#appView .up-overview{gap:8px;margin-bottom:13px}
#appView .up-overview-item{display:block;padding:13px 10px;border-radius:17px;min-width:0}
#appView .up-overview-icon{width:33px;height:33px;border-radius:11px;margin-bottom:10px}
#appView .up-overview-icon svg{width:17px;height:17px}
#appView .up-overview-item>div>span{font-size:10px;white-space:nowrap}
#appView .up-overview-item strong{font-size:24px;margin-top:4px}
#appView .up-overview-item small{font-size:9px;white-space:nowrap}
#appView .up-main{border:0;background:none;box-shadow:none;border-radius:0;overflow:visible}
#appView .up-tools{padding:0}
#appView .up-search-wrap{max-width:none}
#appView .up-search-wrap input{height:44px;font-size:12px}
#appView .up-sort-mobile{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #ffffff20 !important;border-radius:14px;background:#ffffff0d !important;box-shadow:none !important;color:#d7d7d7 !important}
#appView .up-toolbar-bottom{margin-top:10px;gap:0}
#appView .up-filters{width:100%;gap:0}
#appView .up-filter{padding:0 12px;font-size:11px;height:41px}
#appView .up-sort-label{display:none}
#appView .up-listbar{padding:19px 2px 10px}
#appView .up-listbar h4{font-size:15px}
#appView .up-desktop-table{display:none}
#appView .up-mobile-list{display:grid;gap:11px}
#appView .up-mobile-card{min-width:0;padding:17px;border-radius:21px;background:linear-gradient(155deg,rgba(255, 255, 255, .079),rgba(255, 255, 255, .027));border:1px solid rgba(255, 255, 255, .15);box-shadow:inset 0 1px 0 #ffffff12,0 10px 26px #00000033}
#appView .up-mc-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
#appView .up-mc-account{display:flex;gap:10px;align-items:center;min-width:0}
#appView .up-mc-account>div{min-width:0}
#appView .up-avatar{width:41px;height:41px;border-radius:13px}
#appView .up-mc-account strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appView .up-mc-account span:not(.up-avatar){display:block;font-size:10px;color:#a4a4a4;margin-top:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#appView .up-mc-heading .up-state{font-size:10px;padding:6px 8px}
#appView .up-mc-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:17px}
#appView .up-mc-stats>div{padding:12px 13px;background:#ffffff08;border:1px solid #ffffff10;border-radius:13px;display:grid;gap:5px}
#appView .up-mc-stats span,#appView .up-mc-usage span{font-size:10px;color:#959595}
#appView .up-mc-stats strong{font-size:15px;font-weight:750}
#appView .up-mc-stats strong.near{color:#c6c6c6}
#appView .up-mc-usage{margin-top:16px}
#appView .up-mc-usage>div:first-child{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}
#appView .up-mc-usage strong{font-size:11px;color:#d1d1d1}
#appView .up-meter{height:5px}
#appView .up-mc-actions{display:grid;grid-template-columns:1.25fr 1fr;gap:8px;margin-top:17px}
#appView .up-mc-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;border-radius:13px;border:1px solid #ffffff1f;background:#ffffff0c;box-shadow:none;color:#ededed;font:700 11px inherit;cursor:pointer}
#appView .up-mc-actions .up-mc-main{background:linear-gradient(180deg,#f2f2f2,#c8c8c8);border-color:#ffffff6b;color:#171717}
#appView .up-empty:not([hidden]){padding:36px 10px}
.up-user-dialog{position:fixed;margin:auto 0 0 0;inset:auto 0 0 0;width:100vw;max-width:100vw;max-height:min(88dvh,760px);border-radius:26px 26px 0 0;border-bottom:0 !important;padding-bottom:env(safe-area-inset-bottom,0px);overflow:auto}
.up-user-dialog .up-dialog-grabber{width:38px;height:4px;border-radius:10px;background:#ffffff55;margin:0 auto 18px;display:block}
.up-user-dialog .up-dialog-inner{padding:12px 20px 20px}
}
@media(max-width:370px){#appView .up-overview-item{padding:10px 7px}#appView .up-overview-item strong{font-size:22px}#appView .up-filter{padding:0 9px}#appView .up-mc-usage>div:first-child{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#appView .up-identity .up-avatar,#appView .up-data-row,#appView .up-filter{transition:none !important}}

/* Reference match v2: intentionally limit changes to the Users view. */
#appView .up-users-page{max-width:1300px;margin-inline:auto;color:#f7f7f7}
#appView .up-reference-shell{background:#232323;border:1px solid rgba(255, 255, 255, .09);border-radius:30px;padding:24px;box-shadow:0 20px 60px rgba(0, 0, 0, .3),inset 0 1px 0 rgba(255, 255, 255, .07)}
#appView .up-users-header{margin:0 0 21px;gap:12px;align-items:center}
#appView .up-users-heading h3{font-size:34px;line-height:1.2;margin:0 0 4px;font-weight:780;letter-spacing:-.04em}
#appView .up-users-heading p{font-size:15px;color:#b4b4b4;margin:0}
#appView .up-create{border-radius:999px!important;min-height:48px;padding:0 19px!important;background:linear-gradient(180deg,#fcfcfc,#e7e7e7)!important;color:#131313!important;box-shadow:none!important}
#appView .up-overview{gap:12px;margin-bottom:16px}
#appView .up-overview-item{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:9px;background:#080808!important;border:1px solid #ffffff09!important;box-shadow:none!important;border-radius:19px;padding:21px 18px}
#appView .up-overview-item strong{font-size:32px;line-height:1;letter-spacing:-.02em;font-weight:760;color:#ffffff;order:0}
#appView .up-overview-item>span{font-size:13px;color:#b8b8b8;order:1}
#appView .up-main{background:transparent!important;border:none!important;border-radius:0;box-shadow:none!important;overflow:visible}
#appView .up-tools{padding:0}
#appView .up-tools-primary{width:100%;gap:0}
#appView .up-search-wrap{max-width:none;width:100%;flex:1}
#appView .up-search-wrap input{border-radius:16px!important;min-height:51px;height:51px;background:#080808!important;border:1px solid #ffffff14!important;padding:0 20px 0 49px;color:#f8f8f8!important;box-shadow:none!important;font-size:14px}
#appView .up-search-wrap input:focus-visible{border-color:#ffffff64!important;box-shadow:0 0 0 3px #ffffff14!important}
#appView .up-search-wrap>span{left:16px;color:#b9b9b9}
#appView .up-toolbar-bottom{margin-top:14px}
#appView .up-filters{gap:8px}
#appView .up-filter{border-radius:999px!important;border:1px solid transparent!important;height:36px;padding:0 14px!important;background:#3c3c3c!important;color:#e1e1e1!important;font-size:12px;box-shadow:none!important}
#appView .up-filter.selected{background:#555555!important;border-color:#ffffff15!important;color:#ffffff!important}
#appView .up-filter:hover{background:#555555!important;transform:none!important}
#appView .up-listbar{padding:22px 0 10px}
#appView .up-desktop-table{background:#070707;border:1px solid #ffffff24;border-radius:20px}
#appView .up-mobile-card{background:#050505!important;border:1px solid #ffffff30!important;border-radius:21px!important;box-shadow:none!important;padding:18px!important;min-width:0}
#appView .up-mobile-list{gap:12px}
#appView .up-mc-heading{align-items:center}
#appView .up-mc-account{gap:11px}
#appView .up-mc-account .up-avatar{background:#272727!important;border:1px solid #ffffff16!important;box-shadow:none!important;border-radius:13px!important;width:45px!important;height:45px!important}
#appView .up-mc-account strong{font-size:15px!important;color:#ffffff}
#appView .up-mc-account span:not(.up-avatar){font-size:11px!important;color:#a7a7a7}
#appView .up-mc-heading .up-state{background:none!important;border:0!important;color:#b6b6b6;padding:3px 0;font-size:11px}
#appView .up-mc-heading .up-state.online{color:#b4b4b4}
#appView .up-mc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:23px}
#appView .up-mc-stats>div{min-width:0;background:transparent!important;border:0!important;border-radius:0;padding:0!important;display:flex;flex-direction:column;gap:5px}
#appView .up-mc-stats span{font-size:11px;color:#a4a4a4;white-space:nowrap}
#appView .up-mc-stats strong{font-size:16px;white-space:nowrap;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
#appView .up-mc-usage{margin-top:18px}
#appView .up-mc-usage .up-meter{height:5px;background:#303030;border-radius:9px}
#appView .up-mc-usage .up-meter i{background:#a2a2a2}
#appView .up-mc-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:23px;border-top:1px solid #ffffff13;padding-top:18px}
#appView .up-mc-actions button{display:flex;justify-content:center;align-items:center;gap:6px;min-width:0;min-height:39px;border-radius:999px!important;background:transparent!important;border:1px solid #ffffff30!important;box-shadow:none!important;color:#e6e6e6!important;font:650 12px inherit!important;padding:0 8px!important;cursor:pointer}
#appView .up-mc-actions button svg{flex:none;width:17px;height:17px}
#appView .up-mc-actions button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appView .up-mc-actions .up-mc-config{background:#252525!important;border-color:transparent!important;color:#fafafa!important}
#appView .up-mc-actions button:hover{background:#373737!important;transform:none!important}
#appView .up-mc-actions button:active{transform:scale(.97)!important}
#appView .up-mc-actions button:focus-visible{outline:2px solid #c1c1c1;outline-offset:2px}
@media (max-width:760px){
 #appView .up-users-page{padding:0 0 12px}
 #appView .up-reference-shell{border-radius:25px;padding:16px 15px 17px;background:#242424;border-color:#ffffff13}
 #appView .up-users-header{margin:0 0 16px;align-items:center;gap:8px}
 #appView .up-users-heading h3{font-size:27px;margin:0 0 3px}
 #appView .up-users-heading p{font-size:11px;line-height:1.5}
 #appView .up-create{font-size:12px;min-height:38px;border-radius:999px!important;padding:0 11px!important;gap:4px}
 #appView .up-create svg{width:17px;height:17px}
 #appView .up-overview{gap:7px;margin-bottom:13px}
 #appView .up-overview-item{padding:13px 10px;border-radius:15px;gap:6px;display:flex}
 #appView .up-overview-item strong{font-size:28px;margin:0}
 #appView .up-overview-item>span{font-size:10px;white-space:nowrap}
 #appView .up-sort-mobile{display:grid;position:absolute;right:4px;z-index:1;width:39px;height:39px;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:12px;color:#a5a5a5!important}
 #appView .up-sort-mobile:hover{background:#ffffff09!important}
 #appView .up-tools-primary{position:relative}
 #appView .up-search-wrap input{height:47px;min-height:47px;padding-right:47px;font-size:12px}
 #appView .up-toolbar-bottom{margin-top:12px}
 #appView .up-filters{gap:5px}
 #appView .up-filter{height:32px;padding:0 10px!important;font-size:10px}
 #appView .up-listbar{display:none}
 #appView .up-mobile-list{margin-top:16px}
 #appView .up-mobile-card{padding:15px!important;border-radius:18px!important}
 #appView .up-mc-heading .up-state{font-size:10px;white-space:nowrap}
 #appView .up-mc-stats{margin-top:18px;gap:5px}
 #appView .up-mc-stats span{font-size:10px}
 #appView .up-mc-stats strong{font-size:15px}
 #appView .up-mc-actions{margin-top:19px;padding-top:15px;gap:6px}
 #appView .up-mc-actions button{font-size:11px!important;padding:0 5px!important}
}
@media(max-width:370px){
 #appView .up-reference-shell{padding:13px 11px}
 #appView .up-overview-item{padding:12px 7px}
 #appView .up-overview-item strong{font-size:26px}
 #appView .up-overview-item>span{font-size:9px}
 #appView .up-mc-stats span{font-size:9px}
 #appView .up-mc-stats strong{font-size:13px}
 #appView .up-mc-actions button svg{width:15px;height:15px}
}
@media(prefers-reduced-motion:reduce){#appView .up-mc-actions button{transition:none!important}}

/* Fullscreen user detail — scoped to the existing dialog only. */
.up-user-dialog.up-full-dialog {
 position:fixed!important;inset:0!important;margin:0!important;
 width:100vw!important;max-width:none!important;max-height:none!important;
 height:100vh!important;height:100dvh!important;
 border:0!important;border-radius:0!important;padding:0!important;
 background:#0a0a0a!important;color:#f5f5f5;
 box-shadow:none!important;overflow:hidden!important;
 overscroll-behavior:contain;
}
.up-full-dialog::backdrop{background:#000000!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.up-full-dialog .up-full-shell{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.up-full-dialog .up-full-header{flex:none;background:#121212;border-bottom:1px solid #ffffff15;padding:env(safe-area-inset-top,0px) 22px 0}
.up-full-dialog .up-full-header-content{height:75px;max-width:870px;margin:auto;display:flex;align-items:center;gap:15px}
.up-full-dialog .up-full-back{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid #ffffff21!important;border-radius:15px!important;background:#ffffff0c!important;color:#f7f7f7!important;box-shadow:inset 0 1px 0 #ffffff16!important;cursor:pointer}
.up-full-dialog .up-full-header-titles{display:grid;gap:1px;min-width:0}
.up-full-dialog .up-full-header-titles strong{font-size:17px;line-height:1.4;font-weight:750;color:#f9f9f9}
.up-full-dialog .up-full-header-titles span{font-size:11px;color:#a4a4a4}
.up-full-dialog .up-full-brand{margin-left:auto;font-weight:780;letter-spacing:.15em;font-size:10px;color:#a6a6a6}
.up-full-dialog .up-full-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.up-full-dialog .up-full-content{width:min(100% - 44px,870px);margin:0 auto;padding:34px 0 60px}
.up-full-dialog .up-full-intro{display:flex;align-items:center;gap:16px;padding:0 0 30px;margin-bottom:7px;border-bottom:1px solid #ffffff16;min-width:0}
.up-full-dialog .up-full-avatar{width:68px;height:68px;flex:none;display:grid;place-items:center;border-radius:20px;background:linear-gradient(145deg,#343434,#1c1c1c);border:1px solid #ffffff2a;box-shadow:inset 0 1px 0 #ffffff1a}
.up-full-dialog .up-full-identity{min-width:0;flex:1;display:grid;gap:4px}
.up-full-dialog .up-full-eyebrow{margin:0;color:#a0a0a0;font-size:11px;font-weight:650}
.up-full-dialog .up-full-identity h2{font-size:25px;font-weight:800;line-height:1.25;overflow-wrap:anywhere;letter-spacing:-.025em;margin:0}
.up-full-dialog .up-full-profile{font-size:13px;color:#b6b6b6;margin:0}
.up-full-dialog .up-state{flex:none;align-self:center}
.up-full-dialog .up-full-section{margin-top:32px}
.up-full-dialog .up-full-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:13px}
.up-full-dialog .up-full-section-title h3,.up-full-dialog .up-full-danger-zone h3{font-size:16px;font-weight:760;margin:0;color:#f7f7f7}
.up-full-dialog .up-full-section-title>span{font-size:11px;color:#a8a8a8}
.up-full-dialog .up-full-stat-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#1a1a1a;border:1px solid #ffffff1c;border-radius:21px;padding:18px 0;box-shadow:inset 0 1px 0 #ffffff09}
.up-full-dialog .up-full-stat{min-width:0;padding:4px 18px;display:grid;gap:9px}
.up-full-dialog .up-full-stat + .up-full-stat{border-left:1px solid #ffffff1c}
.up-full-dialog .up-full-stat span{font-size:11px;color:#ababab;white-space:nowrap}
.up-full-dialog .up-full-stat strong{font-size:22px;font-weight:800;letter-spacing:-.025em;white-space:nowrap}
.up-full-dialog .up-full-stat strong small{font-size:13px;color:#b9b9b9}
.up-full-dialog .online-text{color:#c0c0c0!important}
.up-full-dialog .warning-text,.up-full-dialog .near{color:#c6c6c6!important}
.up-full-dialog .up-full-usage{padding:21px 22px;background:#1a1a1a;border:1px solid #ffffff1c;border-radius:21px}
.up-full-dialog .up-full-usage-numbers{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:20px}
.up-full-dialog .up-full-usage-numbers>div{display:grid;gap:4px}
.up-full-dialog .up-full-usage-numbers>div>span{font-size:11px;color:#a6a6a6}
.up-full-dialog .up-full-usage-numbers strong{font-size:25px;color:#f5f5f5;line-height:1.2;font-variant-numeric:tabular-nums}
.up-full-dialog .up-full-usage-numbers strong small{font-size:13px;color:#b9b9b9}
.up-full-dialog .up-full-usage-numbers .up-full-quota{text-align:right}
.up-full-dialog .up-full-usage-numbers .up-full-quota strong{font-size:15px}
.up-full-dialog .up-full-meter{height:7px;background:#353535;border-radius:99px;overflow:hidden}
.up-full-dialog .up-full-meter span{display:block;height:100%;background:linear-gradient(90deg,#a9a9a9,#cfcfcf);border-radius:inherit}
.up-full-dialog .up-full-usage p{font-size:11px;color:#929292;margin:11px 0 0}
.up-full-dialog .up-full-info{overflow:hidden;background:#1a1a1a;border:1px solid #ffffff1c;border-radius:20px;padding:0 20px}
.up-full-dialog .up-full-info>div{min-height:58px;padding:14px 0;display:flex;justify-content:space-between;align-items:center;gap:14px}
.up-full-dialog .up-full-info>div+div{border-top:1px solid #ffffff10}
.up-full-dialog .up-full-info span{color:#b1b1b1;font-size:12px}
.up-full-dialog .up-full-info strong{color:#f5f5f5;font-size:13px;font-weight:700;text-align:right;overflow-wrap:anywhere}
.up-full-dialog .up-full-management-list{border-radius:20px;overflow:hidden;border:1px solid #ffffff1b;background:#1a1a1a}
.up-full-dialog .up-full-manage-row{width:100%;padding:16px;display:flex;align-items:center;gap:15px;text-align:left;border:0!important;background:transparent!important;color:#f5f5f5!important;box-shadow:none!important;cursor:pointer}
.up-full-dialog .up-full-manage-row+.up-full-manage-row{border-top:1px solid #ffffff12!important}
.up-full-dialog .up-full-manage-row:hover{background:#ffffff0b!important}
.up-full-dialog .up-full-manage-row>.up-full-action-icon{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:12px;border:1px solid #ffffff1a;background:#303030}
.up-full-dialog .up-full-action-copy{min-width:0;display:grid;gap:3px;flex:1}
.up-full-dialog .up-full-action-copy strong{font-size:13px}
.up-full-dialog .up-full-action-copy small{font-size:11px;color:#9f9f9f}
.up-full-dialog .up-full-manage-row>svg:last-child{color:#959595;flex:none}
.up-full-dialog .up-full-danger-zone{margin-top:36px}
.up-full-dialog .up-full-danger-zone h3{font-size:12px;color:#a6a6a6;margin-bottom:12px}
.up-full-dialog .up-full-danger-button{width:100%;display:flex;justify-content:space-between;align-items:center;background:#63636313!important;border:1px solid #9191913b!important;border-radius:16px;color:#c3c3c3!important;min-height:52px;padding:0 18px;box-shadow:none!important;font-size:13px;font-weight:720;cursor:pointer}
.up-full-dialog .up-full-danger-button:hover{background:#6f6f6f24!important}
.up-full-dialog .up-full-footer{flex:none;background:#121212;border-top:1px solid #ffffff1c;padding:14px 22px calc(14px + env(safe-area-inset-bottom,0px))}
.up-full-dialog .up-full-footer-content{max-width:870px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.up-full-dialog .up-full-footer button{min-height:54px;border-radius:16px!important;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-weight:760;font-size:14px;box-shadow:none!important}
.up-full-dialog .up-full-main-button{color:#151515!important;background:linear-gradient(180deg,#f8f8f8,#dbdbdb)!important;border:1px solid #ffffffc0!important}
.up-full-dialog .up-full-second-button{color:#f4f4f4!important;background:#262626!important;border:1px solid #ffffff24!important}
.up-full-dialog button:focus-visible{outline:2px solid #c5c5c5!important;outline-offset:3px}
.up-full-dialog button:active{transform:scale(.985)}
@media(max-width:760px){
 .up-user-dialog.up-full-dialog{position:fixed!important;inset:0!important;max-height:none!important;height:100dvh!important;width:100vw!important;border-radius:0!important;padding:0!important;overflow:hidden!important}
 .up-full-dialog .up-full-header{padding-inline:17px}
 .up-full-dialog .up-full-header-content{height:66px;gap:12px}
 .up-full-dialog .up-full-back{width:41px;height:41px;border-radius:13px!important}
 .up-full-dialog .up-full-header-titles strong{font-size:15px}
 .up-full-dialog .up-full-header-titles span{font-size:10px}
 .up-full-dialog .up-full-brand{font-size:9px;letter-spacing:.07em}
 .up-full-dialog .up-full-content{width:calc(100% - 36px);padding:28px 0 45px}
 .up-full-dialog .up-full-intro{gap:12px;padding-bottom:24px}
 .up-full-dialog .up-full-avatar{width:57px;height:57px;border-radius:18px}
 .up-full-dialog .up-full-avatar svg{width:27px;height:27px}
 .up-full-dialog .up-full-identity h2{font-size:19px}
 .up-full-dialog .up-full-profile{font-size:11px}
 .up-full-dialog .up-full-intro .up-state{font-size:10px;padding:5px 9px}
 .up-full-dialog .up-full-section{margin-top:27px}
 .up-full-dialog .up-full-section-title h3{font-size:15px}
 .up-full-dialog .up-full-stat-band{padding:14px 0;border-radius:18px}
 .up-full-dialog .up-full-stat{padding:3px 12px;gap:8px}
 .up-full-dialog .up-full-stat span{font-size:10px}
 .up-full-dialog .up-full-stat strong{font-size:18px}
 .up-full-dialog .up-full-usage{padding:19px;border-radius:19px}
 .up-full-dialog .up-full-usage-numbers strong{font-size:22px}
 .up-full-dialog .up-full-info{padding:0 16px}
 .up-full-dialog .up-full-footer{padding:11px 17px calc(11px + env(safe-area-inset-bottom,0px))}
 .up-full-dialog .up-full-footer-content{gap:10px}
 .up-full-dialog .up-full-footer button{min-height:49px;font-size:13px;border-radius:14px!important}
}
@media(max-width:370px){
 .up-full-dialog .up-full-content{width:calc(100% - 28px)}
 .up-full-dialog .up-full-avatar{width:50px;height:50px}
 .up-full-dialog .up-full-identity h2{font-size:17px}
 .up-full-dialog .up-full-stat{padding:3px 8px}
 .up-full-dialog .up-full-stat strong{font-size:16px}
 .up-full-dialog .up-full-stat span{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.up-full-dialog button{transition:none!important;transform:none!important}}


/* Desktop / Tablet: floating account details; retain mobile full-screen. */
@media (min-width: 761px) {
  .up-user-dialog.up-full-dialog {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(760px, calc(100vw - 64px)) !important;
    max-width: calc(100vw - 64px) !important;
    height: min(760px, calc(100dvh - 64px)) !important;
    max-height: calc(100dvh - 64px) !important;
    background: #131313 !important;
    border: 1px solid rgba(255, 255, 255, .19) !important;
    border-radius: 26px !important;
    box-shadow: 0 30px 95px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
    overflow: hidden !important;
    isolation: isolate;
  }
  .up-user-dialog.up-full-dialog::backdrop {
    background: rgba(0, 0, 0, .68) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
  }
  .up-full-dialog .up-full-header {
    padding-inline: 25px;
    background: linear-gradient(180deg,#212121,#181818);
  }
  .up-full-dialog .up-full-header-content {height: 70px;}
  .up-full-dialog .up-full-scroll {
    background: linear-gradient(180deg,#131313,#0d0d0d);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
  }
  .up-full-dialog .up-full-content {width: calc(100% - 52px); padding-top: 26px; padding-bottom: 34px;}
  .up-full-dialog .up-full-intro {padding-bottom: 23px;}
  .up-full-dialog .up-full-section {margin-top: 24px;}
  .up-full-dialog .up-full-footer {padding: 12px 25px; background: #1c1c1c;}
  .up-full-dialog .up-full-footer button {min-height: 48px;}
  .up-full-dialog .up-full-back:hover {background:#ffffff1d !important;}
}
@media (min-width: 761px) and (max-height: 550px) {
  .up-user-dialog.up-full-dialog {
    height: calc(100dvh - 30px) !important;
    max-height: calc(100dvh - 30px) !important;
  }
  .up-full-dialog .up-full-header-content {height: 55px;}
  .up-full-dialog .up-full-footer {padding-block: 7px;}
  .up-full-dialog .up-full-footer button {min-height: 40px;}
}


/* Hardware totals: value = installed/provisioned capacity, caption = current usage. */
#hostCard .runtime-stat.runtime-cpu,
#hostCard .runtime-stat.runtime-ram,
#hostCard .runtime-stat.runtime-ssd { min-height: 108px; }
#hostCard .runtime-copy > strong { margin-bottom: 4px; font-variant-numeric: tabular-nums; }
#hostCard .runtime-usage {
  display: block;
  margin-bottom: 9px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 520;
  color: rgba(214, 214, 214, .72);
  font-variant-numeric: tabular-nums;
}
@media (max-width:760px) {
  #hostCard .runtime-stat.runtime-cpu,
  #hostCard .runtime-stat.runtime-ram,
  #hostCard .runtime-stat.runtime-ssd { min-height: 101px; }
  #hostCard .runtime-usage { font-size: 9px; margin-bottom: 7px; }
}

/* Three distinct severity states for CPU, RAM, SSD. No motion for warnings. */
#hostCard .runtime-meta { flex-wrap: wrap; row-gap: 4px; column-gap: 6px; font-size: 9px; letter-spacing: 0; }
#hostCard .runtime-live {
  display: inline-flex;
  white-space: nowrap;
  gap: 5px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 10px !important;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: 0 !important;
}
#hostCard .runtime-live::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  flex: none; background: currentColor;
}
#hostCard .runtime-stat[data-health="normal"] .runtime-live { background: rgba(167, 167, 167, .10) !important; }
#hostCard .runtime-stat[data-health="watch"] .runtime-live { background: rgba(200, 200, 200, .10) !important; }
#hostCard .runtime-stat[data-health="abnormal"] .runtime-live { background: rgba(169, 169, 169, .10) !important; }

#hostCard .runtime-stat[data-health="normal"] .runtime-live { color: #c3c3c3 !important; }
#hostCard .runtime-stat[data-health="watch"] .runtime-live { color: #c8c8c8 !important; }
#hostCard .runtime-stat[data-health="abnormal"] .runtime-live { color: #a9a9a9 !important; }
#hostCard .runtime-stat[data-health="unknown"] .runtime-live { color: #afafaf !important; }
#hostCard .runtime-stat[data-health="watch"] {
  border-color: rgba(200, 200, 200, .35) !important;
  background: linear-gradient(180deg, rgba(200, 200, 200, .065), rgba(255, 255, 255, .017)) !important;
}
#hostCard .runtime-stat[data-health="abnormal"] {
  border-color: rgba(169, 169, 169, .42) !important;
  background: linear-gradient(180deg, rgba(153, 153, 153, .085), rgba(255, 255, 255, .017)) !important;
}
#hostCard .runtime-stat[data-health="watch"] .runtime-meter > span {
  background: linear-gradient(90deg, #9d9d9d, #c8c8c8) !important;
  box-shadow: none !important;
}
#hostCard .runtime-stat[data-health="abnormal"] .runtime-meter > span {
  background: linear-gradient(90deg, #7d7d7d, #a9a9a9) !important;
  box-shadow: none !important;
}
#hostCard .runtime-stat[data-health="unknown"] .runtime-meter > span { background: #6f6f6f !important; }
/* Status must remain legible at narrow mobile widths. */
@media (max-width: 760px) {
  #hostCard .runtime-meta { flex-wrap: wrap; column-gap: 6px; row-gap: 3px; }
  #hostCard .runtime-live { font-size: 10px !important; letter-spacing: 0; line-height: 1.25; }
}

/* Hardware health badges r2: compact signal light, no badge on uptime. */
#hostCard .runtime-meta {
  align-items: center;
  gap: 3px 5px;
}
#hostCard .runtime-stat.runtime-cpu .runtime-live,
#hostCard .runtime-stat.runtime-ram .runtime-live,
#hostCard .runtime-stat.runtime-ssd .runtime-live {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 8px !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none !important;
}
/* Explicitly suppress the old static pseudo-dot; our child dot animates instead. */
#hostCard .runtime-live::before { content: none !important; }
#hostCard .runtime-status-dot {
  display: inline-block;
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  transform-origin: center;
  animation: npxHardwareStatusPulse 2.4s ease-in-out infinite;
}
@keyframes npxHardwareStatusPulse {
  0%, 20%, 100% { opacity: 1; transform: scale(1); }
  55% { opacity: .28; transform: scale(.7); }
  75% { opacity: .9; transform: scale(1.12); }
}
/* Indicate severity through stable text and background as well as the animated light. */
#hostCard .runtime-stat[data-health="normal"] .runtime-live { background: rgba(167, 167, 167, .09) !important; }
#hostCard .runtime-stat[data-health="watch"] .runtime-live { background: rgba(200, 200, 200, .11) !important; }
#hostCard .runtime-stat[data-health="abnormal"] .runtime-live { background: rgba(169, 169, 169, .12) !important; }
@media (max-width: 760px) {
  #hostCard .runtime-meta { align-items: flex-start; row-gap: 3px; }
  #hostCard .runtime-stat.runtime-cpu .runtime-live,
  #hostCard .runtime-stat.runtime-ram .runtime-live,
  #hostCard .runtime-stat.runtime-ssd .runtime-live {
    font-size: 7.5px !important;
    gap: 3px;
    padding: 2px 4px;
  }
  #hostCard .runtime-status-dot { flex-basis: 3px; width: 3px; height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  #hostCard .runtime-status-dot { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Services — Obsidian Service Pro + iOS Settings */
.service-pro-shell{
  padding:18px;
  display:grid;
  gap:14px;
  background:linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
}
.service-pro-shell-copy h3{
  font-size:18px;
  letter-spacing:-.03em;
}
.service-pro-shell-copy p{
  margin-top:6px;
  color:var(--muted);
  font-size:10px;
  line-height:1.55;
}
.service-pro-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0 0 8px;
  color:#d8d8d8;
  font-size:8px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.service-pro-kicker::before{
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(134, 134, 134, .95);
  box-shadow:0 0 12px rgba(134, 134, 134, .45);
}
.service-overview-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.service-overview-stat{
  padding:12px;
  border-radius:16px;
  border:1px solid var(--line-soft);
  background:rgba(255, 255, 255, .028);
}
.service-overview-stat span,
.service-overview-stat strong,
.service-overview-stat small{display:block}
.service-overview-stat span{
  color:var(--muted);
  font-size:7px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.service-overview-stat strong{
  margin-top:5px;
  font-size:17px;
}
.service-overview-stat small{
  margin-top:5px;
  color:var(--muted);
  font-size:7px;
  line-height:1.45;
}
.service-pro-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.service-pro-card{
  padding:16px;
  background:linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .018));
}
.service-pro-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.service-pro-identity{
  min-width:0;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:12px;
  align-items:center;
}
.service-pro-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:15px;
  border:1px solid rgba(255, 255, 255, .08);
  background:linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  color:#f5f5f5;
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 24px rgba(0, 0, 0, .16);
}
.service-pro-headline strong,
.service-pro-headline span{display:block}
.service-pro-headline strong{
  font-size:14px;
  letter-spacing:.01em;
}
.service-pro-headline span{
  margin-top:4px;
  color:var(--muted);
  font-size:8px;
}
.service-version-row{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.service-version-chip,
.service-unit-chip{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--line-soft);
  background:rgba(255, 255, 255, .03);
  color:rgba(255, 255, 255, .86);
  font-size:7px;
  font-weight:850;
  letter-spacing:.1em;
}
.service-unit-chip{color:var(--muted)}
.service-pro-rows{
  margin-top:13px;
  display:grid;
  gap:8px;
}
.service-setting-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line-soft);
  background:rgba(255, 255, 255, .024);
}
.service-setting-row span,
.service-setting-row strong{display:block}
.service-setting-row span{
  color:var(--muted);
  font-size:7px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.service-setting-row strong{
  margin-top:4px;
  font-size:9px;
}
.service-row-value{
  color:var(--text);
  font-size:8px;
  font-weight:800;
  text-align:right;
}
.service-row-value.muted{color:var(--muted)}
.service-pro-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:13px;
}
.service-pro-actions .mini-button{
  justify-content:center;
  min-height:34px;
}
@media (max-width: 900px){
  .service-pro-grid{grid-template-columns:1fr;}
}
@media (max-width: 640px){
  .service-overview-stats{grid-template-columns:1fr 1fr;}
  .service-overview-stat:last-child{grid-column:1 / -1;}
  .service-pro-shell{padding:16px;}
  .service-version-row{flex-wrap:wrap;}
  .service-pro-identity{grid-template-columns:40px minmax(0,1fr);gap:10px;}
  .service-pro-icon{width:40px;height:40px;border-radius:13px;}
  .service-pro-actions{grid-template-columns:repeat(3,minmax(0,1fr));}
}



/* Hardware status indicators — transform/opacity-only LED + expanding light halos.
   Small static glass badges are retained; CPU/RAM/SSD only, uptime stays badge-free.
   Severity is expressed by both text and color; animation is decorative. */
#hostCard .runtime-stat[data-health="normal"] { --npx-pulse-color: #c3c3c3; }
#hostCard .runtime-stat[data-health="watch"] { --npx-pulse-color: #c8c8c8; }
#hostCard .runtime-stat[data-health="abnormal"] { --npx-pulse-color: #a9a9a9; }

#hostCard .runtime-stat[data-health] .runtime-live {
  isolation: isolate;
  /* The subtle illuminated rim stays stable while the LED animates. */
  border: 1px solid color-mix(in srgb, var(--npx-pulse-color) 17%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}
#hostCard .runtime-stat[data-health="normal"] .runtime-live { background-color: rgba(144, 144, 144, .11) !important; }
#hostCard .runtime-stat[data-health="watch"] .runtime-live { background-color: rgba(154, 154, 154, .12) !important; }
#hostCard .runtime-stat[data-health="abnormal"] .runtime-live { background-color: rgba(123, 123, 123, .13) !important; }

/* Use the same single, tiny LED for all severities; ring layers do not affect layout. */
#hostCard .runtime-stat[data-health] .runtime-status-dot {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  overflow: visible;
  border-radius: 50%;
  background: var(--npx-pulse-color);
  box-shadow: 0 0 6px color-mix(in srgb, var(--npx-pulse-color) 60%, transparent);
  animation: none; /* replace legacy status dot motion */
}
#hostCard .runtime-status-dot::before,
#hostCard .runtime-status-dot::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3px;
  border: 1px solid var(--npx-pulse-color);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(.55);
  transform-origin: center;
  will-change: auto;
}
#hostCard .runtime-status-dot::after {
  inset: -1px;
  border: 0;
  background: var(--npx-pulse-color);
}

/* GREEN: calm breathing light, one soft ripple. */
#hostCard .runtime-stat[data-health="normal"] .runtime-status-dot::before {
  animation: npxLedGreenRing 2.8s ease-out infinite;
}
#hostCard .runtime-stat[data-health="normal"] .runtime-status-dot::after {
  animation: npxLedGreenCore 2.8s ease-in-out infinite;
}
@keyframes npxLedGreenRing {
  0%, 12% { transform: scale(.60); opacity: 0; }
  22% { opacity: .62; }
  66%, 100% { transform: scale(2.55); opacity: 0; }
}
@keyframes npxLedGreenCore {
  0%, 100% { transform: scale(.95); opacity: .12; }
  34% { transform: scale(1.65); opacity: .30; }
  67% { transform: scale(1.05); opacity: .10; }
}

/* AMBER: two gentle attention beats per cycle, no text flicker. */
#hostCard .runtime-stat[data-health="watch"] .runtime-status-dot::before {
  animation: npxLedAmberRing 2.45s ease-out infinite;
}
#hostCard .runtime-stat[data-health="watch"] .runtime-status-dot::after {
  animation: npxLedAmberCore 2.45s ease-in-out infinite;
}
@keyframes npxLedAmberRing {
  0%, 4% { transform: scale(.65); opacity: 0; }
  13% { opacity: .82; }
  34% { transform: scale(2.25); opacity: 0; }
  45% { transform: scale(.65); opacity: 0; }
  55% { opacity: .64; }
  78%, 100% { transform: scale(2.25); opacity: 0; }
}
@keyframes npxLedAmberCore {
  0%, 40%, 100% { transform: scale(1); opacity: .13; }
  18%, 60% { transform: scale(1.65); opacity: .42; }
  80% { transform: scale(.95); opacity: .12; }
}

/* RED: a clear, faster double alert. Still confined to a small LED. */
#hostCard .runtime-stat[data-health="abnormal"] .runtime-status-dot::before {
  animation: npxLedRedRing 1.7s ease-out infinite;
}
#hostCard .runtime-stat[data-health="abnormal"] .runtime-status-dot::after {
  animation: npxLedRedCore 1.7s ease-in-out infinite;
}
@keyframes npxLedRedRing {
  0%, 5% { transform: scale(.60); opacity: 0; }
  15% { opacity: .9; }
  35% { transform: scale(2.65); opacity: 0; }
  44% { transform: scale(.60); opacity: 0; }
  55% { opacity: .77; }
  78%, 100% { transform: scale(2.65); opacity: 0; }
}
@keyframes npxLedRedCore {
  0%, 40%, 100% { transform: scale(.95); opacity: .12; }
  18%, 60% { transform: scale(1.85); opacity: .52; }
  82% { transform: scale(1); opacity: .10; }
}

/* The demo switch visually echoes the selected LED without flashing all options. */
#hostCard .runtime-state-choice[aria-pressed="true"] .runtime-state-light {
  position: relative;
  isolation: isolate;
  background: var(--status-color);
}
#hostCard .runtime-state-choice[aria-pressed="true"] .runtime-state-light::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--status-color);
  opacity: 0;
  transform: scale(.65);
  animation: npxLedSwitchRing 2.6s ease-out infinite;
}
@keyframes npxLedSwitchRing {
  0%, 8% { opacity: 0; transform: scale(.65); }
  22% { opacity: .55; }
  72%, 100% { opacity: 0; transform: scale(2.2); }
}
@media (max-width: 760px) {
  #hostCard .runtime-stat[data-health] .runtime-status-dot {
    width: 4px;
    height: 4px;
    flex-basis: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #hostCard .runtime-status-dot,
  #hostCard .runtime-status-dot::before,
  #hostCard .runtime-status-dot::after,
  #hostCard .runtime-state-choice .runtime-state-light::before {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }
  #hostCard .runtime-status-dot::before,
  #hostCard .runtime-status-dot::after,
  #hostCard .runtime-state-choice .runtime-state-light::before {
    content: none !important;
  }
}



/* NPXSHOP / Users microinteractions r1
   Extends existing Dashboard icon motion. Only transform/opacity are animated. */
#appView .up-avatar,
.up-full-dialog .up-full-avatar,
.up-full-dialog .up-full-action-icon {
  transform-origin: 50% 55%;
  backface-visibility: hidden;
}
#appView .up-avatar svg,
.up-full-dialog .up-full-avatar svg,
.up-full-dialog .up-full-action-icon svg {
  transform-origin: 50% 55%;
  transform-box: fill-box;
  backface-visibility: hidden;
}
/* The resting portion of each cycle keeps the screen calm and saves work. */
#appView .up-mobile-card.npx-user-motion-visible .up-avatar,
#appView .up-data-row.npx-user-motion-visible .up-avatar,
.up-full-dialog .up-full-intro.npx-user-motion-visible .up-full-avatar {
  animation: npxUsersIconDrift 7.8s ease-in-out infinite;
  animation-delay: var(--npx-users-delay, 0s);
}
#appView .up-mobile-card.npx-user-motion-visible .up-avatar svg,
#appView .up-data-row.npx-user-motion-visible .up-avatar svg,
.up-full-dialog .up-full-intro.npx-user-motion-visible .up-full-avatar svg {
  animation: npxUsersGlyphHello 8.6s ease-in-out infinite;
  animation-delay: var(--npx-users-delay, 0s);
}
#appView .up-mobile-card:nth-child(2n),
#appView .up-data-row:nth-child(2n) { --npx-users-delay: -2.4s; }
#appView .up-mobile-card:nth-child(3n),
#appView .up-data-row:nth-child(3n) { --npx-users-delay: -4.4s; }
#appView .up-mobile-card:nth-child(5n),
#appView .up-data-row:nth-child(5n) { --npx-users-delay: -1.25s; }
.up-full-dialog .up-full-intro { --npx-users-delay: -1.8s; }
/* Subtle periodic movement, only for visible detail action icons. */
.up-full-dialog .up-full-manage-row.npx-user-motion-visible .up-full-action-icon svg {
  animation: npxUsersActionWiggle 8s ease-in-out infinite;
  animation-delay: var(--npx-users-delay, -1s);
}
.up-full-dialog .up-full-manage-row:nth-child(2n) { --npx-users-delay: -4.1s; }

/* Motion for touch/keyboard/hover is confined to the icon, not its card layout. */
#appView .up-mc-actions button svg,
#appView .up-detail-button svg,
#appView .up-sort-mobile svg,
#appView .up-create svg,
#appView .nav-glyph svg,
#appView .mobile-nav-item svg,
.up-full-dialog .up-full-back svg,
.up-full-dialog .up-full-footer button svg,
.up-full-dialog .up-full-danger-button svg {
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  transform-origin: center;
}
@media (hover:hover) and (pointer:fine) {
  #appView .up-identity:hover .up-avatar,
  #appView .up-mobile-card:has(.up-mc-more:hover) .up-avatar,
  .up-full-dialog .up-full-manage-row:hover .up-full-action-icon {
    animation: npxUsersIconHover .72s cubic-bezier(.2,.8,.2,1) both !important;
  }
  #appView .up-mc-actions button:hover svg,
  #appView .up-detail-button:hover svg,
  #appView .up-sort-mobile:hover svg,
  #appView .up-create:hover svg,
  #appView .nav-item:hover .nav-glyph svg,
  #appView .mobile-nav-item:hover svg,
  .up-full-dialog .up-full-back:hover svg,
  .up-full-dialog .up-full-footer button:hover svg,
  .up-full-dialog .up-full-danger-button:hover svg {
    transform: translateY(-2px) rotate(-5deg) scale(1.08);
  }
}
#appView .up-identity:focus-visible .up-avatar,
.up-full-dialog .up-full-manage-row:focus-visible .up-full-action-icon {
  animation: npxUsersIconHover .72s cubic-bezier(.2,.8,.2,1) both !important;
}
#appView .up-mc-actions button:focus-visible svg,
#appView .up-detail-button:focus-visible svg,
.up-full-dialog .up-full-back:focus-visible svg,
.up-full-dialog .up-full-footer button:focus-visible svg {
  transform: translateY(-2px) scale(1.08);
}
/* Delegated pointer feedback. The motion is self-cleaning on animationend. */
.npx-users-icon-tapped {
  animation: npxUsersIconTap .48s cubic-bezier(.18,.95,.27,1) both !important;
}
@keyframes npxUsersIconDrift {
  0%,52%,100% { transform:translate3d(0,0,0) rotate(0); }
  16% { transform:translate3d(0,-2.5px,0) rotate(-1.8deg); }
  32% { transform:translate3d(0,.5px,0) rotate(1.1deg); }
}
@keyframes npxUsersGlyphHello {
  0%,54%,100% { transform:rotate(0) scale(1); }
  18% { transform:rotate(5.5deg) scale(1.06); }
  34% { transform:rotate(-3.2deg) scale(1); }
}
@keyframes npxUsersActionWiggle {
  0%,59%,100% { transform:translate3d(0,0,0) rotate(0); }
  16% { transform:translate3d(0,-2px,0) rotate(-7deg); }
  30% { transform:translate3d(0,0,0) rotate(4deg); }
}
@keyframes npxUsersIconHover {
  0% { transform:translate3d(0,0,0) scale(1); }
  50% { transform:translate3d(0,-3px,0) rotate(-3deg) scale(1.055); }
  100% { transform:translate3d(0,-1px,0) rotate(0) scale(1.025); }
}
@keyframes npxUsersIconTap {
  0% { transform:scale(1) rotate(0); }
  28% { transform:scale(.85) rotate(-5deg); }
  67% { transform:scale(1.13) rotate(5deg); }
  100% { transform:scale(1) rotate(0); }
}
/* Behind an open modal, no motion needs to be composed. */
body:has(#upUserDialog[open]) #appView .up-avatar,
body:has(#upUserDialog[open]) #appView .up-avatar svg,
html.npx-icons-background #appView .up-avatar,
html.npx-icons-background #appView .up-avatar svg,
html.npx-icons-background .up-full-dialog .up-full-avatar,
html.npx-icons-background .up-full-dialog .up-full-avatar svg,
html.npx-icons-background .up-full-dialog .up-full-action-icon svg {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion:reduce) {
  #appView .up-avatar,
  #appView .up-avatar svg,
  #appView .up-mc-actions button svg,
  #appView .up-detail-button svg,
  #appView .up-sort-mobile svg,
  #appView .up-create svg,
  #appView .nav-glyph svg,
  #appView .mobile-nav-item svg,
  .up-full-dialog .up-full-avatar,
  .up-full-dialog .up-full-avatar svg,
  .up-full-dialog .up-full-action-icon svg,
  .up-full-dialog .up-full-back svg,
  .up-full-dialog .up-full-footer button svg,
  .up-full-dialog .up-full-danger-button svg,
  .npx-users-icon-tapped {
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
}


/* Obsidian Control Center: scoped to the dashboard overview only.
   The existing Host/Server Runtime section and its status animations stay untouched. */
#appView .page-dashboard .oc-overview-section { margin-bottom: 22px; }
#appView .page-dashboard .oc-overview {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(17px, 2.5vw, 26px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 27px;
  background: linear-gradient(155deg,rgba(30, 30, 30, .91),rgba(13, 13, 13, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13),0 18px 44px rgba(0, 0, 0, .27);
}
#appView .page-dashboard .oc-overview-top {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap; margin-bottom:22px;
}
#appView .page-dashboard .oc-brand {
  display:inline-flex; align-items:center; gap:9px;
  color:#eaeaea; font-size:11px; font-weight:750; letter-spacing:.06em;
}
#appView .page-dashboard .oc-brand-led {
  width:8px;height:8px;flex:none;border-radius:50%;background:#c6c6c6;
  box-shadow:0 0 0 4px rgba(194, 194, 194, .09);
}
#appView .page-dashboard .oc-theme-label {
  color:#9a9a9a;border:1px solid rgba(255, 255, 255, .12);
  background:rgba(255, 255, 255, .045);border-radius:999px;
  font-size:10px;letter-spacing:.08em;font-weight:700;padding:6px 10px;
}
#appView .page-dashboard .oc-overview-heading {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin-bottom:23px;
}
#appView .page-dashboard .oc-heading-copy {min-width:0;}
#appView .page-dashboard .oc-kicker {
  margin:0 0 5px;font-size:11px;font-weight:650;letter-spacing:.04em;color:#acacac;
}
#appView .page-dashboard .oc-overview-heading h3 {
  margin:0;color:#fbfbfb;font-size:clamp(25px,2.5vw,33px);
  line-height:1.25;letter-spacing:-.035em;font-weight:750;
}
#appView .page-dashboard .oc-overview-heading p:not(.oc-kicker) {
  margin:5px 0 0;color:#aaaaaa;font-size:13px;line-height:1.5;
}
#appView .page-dashboard .oc-create {
  flex:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:12px 15px;min-height:46px;max-width:100%;
  font-size:13px;font-weight:750;border-radius:15px;
  transition:transform .18s ease, box-shadow .18s ease;
}
#appView .page-dashboard .oc-create:hover {transform:translateY(-1px);}
#appView .page-dashboard .oc-create:active {transform:scale(.98);}
#appView .page-dashboard .oc-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;}
#appView .page-dashboard .oc-stat {
  display:flex;flex-direction:column;min-width:0;min-height:126px;
  padding:16px 15px 14px;border-radius:19px;
  border:1px solid rgba(255, 255, 255, .095);
  background:linear-gradient(155deg,rgba(255, 255, 255, .053),rgba(255, 255, 255, .014));
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .07);
}
#appView .page-dashboard .oc-stat-top {display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;}
#appView .page-dashboard .oc-stat-top > span:first-child {color:#c0c0c0;font-size:11px;font-weight:600;line-height:1.35;}
#appView .page-dashboard .oc-stat-icon {width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:10px;color:#cdcdcd;background:rgba(230, 230, 230, .075);}
#appView .page-dashboard .oc-stat-active .oc-stat-icon {color:#c7c7c7;background:rgba(197, 197, 197, .085);}
#appView .page-dashboard .oc-stat-expiring .oc-stat-icon {color:#c3c3c3;background:rgba(192, 192, 192, .095);}
#appView .page-dashboard .oc-stat-review .oc-stat-icon {color:#b8b8b8;background:rgba(194, 194, 194, .075);}
#appView .page-dashboard .oc-stat strong {
  display:block;margin:8px 0 0;color:#f6f6f6;font-size:clamp(26px,2.65vw,36px);
  font-weight:760;line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;
}
#appView .page-dashboard .oc-stat small {margin-top:auto;padding-top:8px;color:#959595;font-size:11px;line-height:1.3;}
@media(max-width:850px){
  #appView .page-dashboard .oc-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
  #appView .page-dashboard .oc-stat{min-height:120px;}
}
@media(max-width:430px){
  #appView .page-dashboard .oc-overview{padding:16px;border-radius:24px;}
  #appView .page-dashboard .oc-overview-top{margin-bottom:19px;gap:7px;}
  #appView .page-dashboard .oc-brand{font-size:10px;letter-spacing:.02em;}
  #appView .page-dashboard .oc-theme-label{font-size:8px;padding:5px 7px;}
  #appView .page-dashboard .oc-overview-heading{align-items:flex-end;gap:8px;margin-bottom:18px;}
  #appView .page-dashboard .oc-overview-heading h3{font-size:24px;}
  #appView .page-dashboard .oc-overview-heading p:not(.oc-kicker){font-size:11px;max-width:24ch;}
  #appView .page-dashboard .oc-create{min-height:41px;padding:10px 11px;font-size:11px;gap:5px;border-radius:13px;white-space:nowrap;}
  #appView .page-dashboard .oc-create svg{width:16px;height:16px;}
  #appView .page-dashboard .oc-stats{gap:9px;}
  #appView .page-dashboard .oc-stat{padding:13px 12px;min-height:116px;border-radius:17px;}
  #appView .page-dashboard .oc-stat-top > span:first-child{font-size:10px;}
  #appView .page-dashboard .oc-stat-icon{width:27px;height:27px;border-radius:8px;}
  #appView .page-dashboard .oc-stat-icon svg{width:16px;height:16px;}
  #appView .page-dashboard .oc-stat strong{font-size:28px;}
  #appView .page-dashboard .oc-stat small{font-size:10px;}
}
@media(max-width:355px){
  #appView .page-dashboard .oc-overview-heading{align-items:flex-start;flex-wrap:wrap;}
  #appView .page-dashboard .oc-create{margin-left:auto;}
}
@media(prefers-reduced-motion:reduce){
  #appView .page-dashboard .oc-create{transition:none!important;transform:none!important;}
}



/* Preserve original monochrome icon palette; add only lightweight motion. */
/* Neat, low-cost motion: no animated backdrop-filter, blur or box-shadow. */
#appView .oc-stat .oc-stat-icon,
#appView .oc-stat .oc-stat-icon svg,
#appView .nav-item .nav-glyph svg,
#appView .mobile-nav-item > svg,
#appView .up-mc-actions svg,
#appView .up-sort-mobile svg,
#appView .oc-create svg,
#appView .up-create svg {
  transform-origin:center;backface-visibility:hidden;
}
#appView .oc-stat.npx-vivid-visible .oc-stat-icon svg {animation:npxColorIconLift 7.2s ease-in-out infinite;}
#appView .oc-stat:nth-child(2).npx-vivid-visible .oc-stat-icon svg {animation-name:npxColorIconCheck;animation-delay:-1.8s;}
#appView .oc-stat:nth-child(3).npx-vivid-visible .oc-stat-icon svg {animation-name:npxColorIconClock;animation-delay:-3s;}
#appView .oc-stat:nth-child(4).npx-vivid-visible .oc-stat-icon svg {animation-name:npxColorIconLook;animation-delay:-4.4s;}
#appView .nav-item.active.npx-vivid-visible .nav-glyph svg,
#appView .mobile-nav-item.active.npx-vivid-visible > svg {animation:npxColorNavBreathe 7.4s ease-in-out infinite;}
#appView .up-mc-actions button:hover svg,#appView .up-sort-mobile:hover svg {transform:translateY(-1px) scale(1.06);transition:transform .22s ease;}
/* Existing Quick, CPU/RAM/SSD, user-avatar & status LED motion rules remain in charge.
   Click effects apply only to missing surfaces to avoid stacking animations. */
#appView .oc-stat.npx-vivid-tap .oc-stat-icon svg,
#appView .nav-item.npx-vivid-tap .nav-glyph svg,
#appView .mobile-nav-item.npx-vivid-tap > svg,
#appView .oc-create.npx-vivid-tap svg,
#appView .up-sort-mobile.npx-vivid-tap svg,
#appView .up-mc-actions button.npx-vivid-tap svg {
  animation:npxColorIconTap .46s cubic-bezier(.2,.86,.25,1.14) both !important;
}
@keyframes npxColorIconLift {0%,53%,100%{transform:translate3d(0,0,0) rotate(0)}19%{transform:translate3d(0,-2px,0) rotate(-6deg)}34%{transform:translate3d(0,0,0) rotate(3deg)}}
@keyframes npxColorIconCheck {0%,54%,100%{transform:scale(1)}19%{transform:scale(1.13)}30%{transform:scale(1)}}
@keyframes npxColorIconClock {0%,54%,100%{transform:rotate(0)}19%{transform:rotate(15deg)}33%{transform:rotate(-6deg)}}
@keyframes npxColorIconLook {0%,56%,100%{transform:translate3d(0,0,0)}17%{transform:translate3d(1.5px,-1.5px,0)}32%{transform:translate3d(-1px,0,0)}}
@keyframes npxColorNavBreathe {0%,50%,100%{transform:scale(1)}20%{transform:scale(1.13)}37%{transform:scale(1)}}
@keyframes npxColorIconTap {0%,100%{transform:scale(1) rotate(0)}35%{transform:scale(.81) rotate(-9deg)}70%{transform:scale(1.14) rotate(5deg)}}
html.npx-vivid-background #appView .oc-stat .oc-stat-icon svg,
html.npx-vivid-background #appView .nav-item .nav-glyph svg,
html.npx-vivid-background #appView .mobile-nav-item > svg {animation-play-state:paused !important}
@media (prefers-reduced-motion:reduce){
  #appView .oc-stat .oc-stat-icon svg,
  #appView .nav-item .nav-glyph svg,
  #appView .mobile-nav-item > svg,
  #appView .oc-create svg,
  #appView .up-create svg,
  #appView .up-mc-actions button svg,
  #appView .up-sort-mobile svg {animation:none !important;transition:none !important;transform:none !important}
}


/* Scope: Services UI only; neutral icons, semantically destructive Stop. */
#appView .page-services-pro .sp-action-divider {
  height:1px; background:rgba(255, 255, 255, .095); margin:12px 0 10px;
}
#appView .page-services-pro .sp-action-label {
  color:rgba(237, 237, 237, .57); font-size:11px; font-weight:650;
  margin-bottom:7px;
}
#appView .page-services-pro .service-pro-actions {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  margin-top:0;
}
#appView .page-services-pro .service-pro-actions .sp-control {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  min-width:0;
  min-height:40px;
  padding:6px 5px;
  border-radius:11px;
  border:1px solid rgba(255, 255, 255, .13);
  background:rgba(255, 255, 255, .045);
  color:#e8e8e8;
  font:inherit;
  font-size:11px;
  font-weight:650;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .045);
}
#appView .page-services-pro .service-pro-actions .sp-restart {
  background:linear-gradient(180deg,rgba(255, 255, 255, .105),rgba(255, 255, 255, .065));
  border-color:rgba(255, 255, 255, .23);
  color:#f5f5f5;
}
#appView .page-services-pro .service-pro-actions .sp-start {
  background:rgba(255, 255, 255, .042);
  color:#f4f4f4;
}
#appView .page-services-pro .service-pro-actions .sp-stop {
  background:rgba(145, 145, 145, .075);
  border-color:rgba(145, 145, 145, .23);
  color:#bdbdbd;
}
#appView .page-services-pro .sp-control .sp-action-icon {
  display:grid;
  place-items:center;
  width:16px;
  height:16px;
  flex:0 0 16px;
}
#appView .page-services-pro .sp-action-icon svg {
  display:block;
  width:16px;
  height:16px;
  transform-origin:center;
}
#appView .page-services-pro .sp-control:hover {transform:translateY(-1px); border-color:rgba(255, 255, 255, .28)}
#appView .page-services-pro .sp-restart:hover {background:rgba(255, 255, 255, .15);color:#ffffff}
#appView .page-services-pro .sp-stop:hover {background:rgba(145, 145, 145, .14);border-color:rgba(145, 145, 145, .36)}
#appView .page-services-pro .sp-control:active {transform:scale(.97)}
#appView .page-services-pro .sp-control:focus-visible {
  outline:2px solid rgba(208, 208, 208, .9);outline-offset:3px;
}
@media(max-width:640px){
  #appView .page-services-pro .service-pro-actions{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
  }
  #appView .page-services-pro .service-pro-actions .sp-restart{grid-column:auto}
  #appView .page-services-pro .service-pro-actions .sp-control{
    min-height:40px;
    font-size:10.5px;
    padding:6px 3px;
    gap:4px;
    border-radius:10px;
  }
  #appView .page-services-pro .sp-control .sp-action-icon{
    width:15px;height:15px;flex-basis:15px;
  }
  #appView .page-services-pro .sp-action-icon svg{width:15px;height:15px}
}

/* Compact service controls: polished vector glyphs, no extra layout layers */
#appView .page-services-pro .sp-action-icon svg {
  stroke-width:1.9;
  shape-rendering:geometricPrecision;
  overflow:visible;
}
#appView .page-services-pro .sp-action-icon svg circle {opacity:.88}
#appView .page-services-pro .sp-control:disabled {opacity:.46;cursor:not-allowed}
/* Gentle service identity glyph motion; only while card is visible. */
@keyframes spGlyphFloat {0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-2.5px) rotate(3deg)}}
@keyframes spGlyphTap {0%{transform:scale(1)}45%{transform:scale(.85) rotate(-8deg)}80%{transform:scale(1.09) rotate(5deg)}100%{transform:scale(1)}}
@keyframes spRestartGlyph {to{transform:rotate(360deg)}}
@keyframes spStartGlyph {0%{transform:translateX(-2px) scale(.88);opacity:.8}55%{transform:translateX(2px) scale(1.15);opacity:1}100%{transform:translateX(0) scale(1)}}
@keyframes spStopGlyph {0%{transform:scale(1)}45%{transform:scale(.65)}80%{transform:scale(1.14)}100%{transform:scale(1)}}
#appView .page-services-pro .service-pro-card.sp-in-view .service-pro-icon svg {
  animation:spGlyphFloat 4.8s ease-in-out infinite;
}
#appView .page-services-pro .service-pro-card:nth-child(3n+2) .service-pro-icon svg{animation-delay:-1.6s}
#appView .page-services-pro .service-pro-card:nth-child(3n+3) .service-pro-icon svg{animation-delay:-3.2s}
#appView .page-services-pro .service-pro-card.sp-icon-tapped .service-pro-icon svg{animation:spGlyphTap .48s ease-out 1}
#appView .page-services-pro .sp-restart.sp-actuated .sp-action-icon svg{animation:spRestartGlyph .7s cubic-bezier(.27,.02,.3,1) 1}
#appView .page-services-pro .sp-start.sp-actuated .sp-action-icon svg{animation:spStartGlyph .5s ease-out 1}
#appView .page-services-pro .sp-stop.sp-actuated .sp-action-icon svg{animation:spStopGlyph .5s ease-out 1}
html.sp-tab-hidden #appView .page-services-pro .service-pro-icon svg{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
  #appView .page-services-pro .service-pro-icon svg,
  #appView .page-services-pro .sp-control.sp-actuated .sp-action-icon svg {
    animation:none!important;transform:none!important;
  }
  #appView .page-services-pro .sp-control {transition:none!important}
}


/* Scoped to service controls. Reuses the current viewport observer and click state.
   Motion is transform/opacity only; no extra timers, observers or box-shadow animation. */
@keyframes npxRestartIdle {
  0%,59% { transform:rotate(0deg); opacity:1; }
  78%,100% { transform:rotate(360deg); opacity:1; }
}
@keyframes npxStartIdle {
  0%,60%,100% { transform:translateX(0) scale(1); opacity:1; }
  75% { transform:translateX(2.5px) scale(1.1); opacity:1; }
  84% { transform:translateX(-1px) scale(.98); opacity:1; }
}
@keyframes npxStopIdle {
  0%,60%,100% { transform:scale(1); opacity:1; }
  73% { transform:scale(.83); opacity:.85; }
  85% { transform:scale(1.08); opacity:1; }
}
/* One distinct idle gesture per control, only when its card is in the viewport. */
#appView .page-services-pro .service-pro-card.sp-in-view .sp-restart:not(.sp-actuated) .sp-action-icon svg {
  animation:npxRestartIdle 5.6s cubic-bezier(.35,0,.55,1) infinite;
}
#appView .page-services-pro .service-pro-card.sp-in-view .sp-start:not(.sp-actuated) .sp-action-icon svg {
  animation:npxStartIdle 4.9s ease-in-out infinite;
}
#appView .page-services-pro .service-pro-card.sp-in-view .sp-stop:not(.sp-actuated) .sp-action-icon svg {
  animation:npxStopIdle 5.3s ease-in-out infinite;
}
/* Stagger cards instead of making every service animate in sync. */
#appView .page-services-pro .service-pro-card:nth-child(3n+2) .sp-action-icon svg { animation-delay:-1.65s; }
#appView .page-services-pro .service-pro-card:nth-child(3n+3) .sp-action-icon svg { animation-delay:-3.1s; }
/* Click animations from v2 win whenever .sp-actuated is active. */
html.sp-tab-hidden #appView .page-services-pro .sp-action-icon svg {
  animation-play-state:paused !important;
}
@media (prefers-reduced-motion: reduce) {
  #appView .page-services-pro .sp-action-icon svg {
    animation:none !important;
    transform:none !important;
    opacity:1 !important;
  }
}


/* During active touch/scroll, avoid simultaneous perpetual icon motions.
   Static glass appearance and status LEDs stay unchanged. */
@media (max-width: 760px) {
  html.npx-scroll-active #appView .quick-card-premium .quick-icon,
  html.npx-scroll-active #appView .quick-card-premium .quick-icon svg,
  html.npx-scroll-active #appView .runtime-stat .runtime-icon,
  html.npx-scroll-active #appView .runtime-stat .runtime-icon svg,
  html.npx-scroll-active #appView .oc-stat .oc-stat-icon svg,
  html.npx-scroll-active #appView .service-pro-icon svg,
  html.npx-scroll-active #appView .sp-action-icon svg,
  html.npx-scroll-active #appView .mobile-nav-item > svg {
    animation-play-state: paused !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #appView .page-root .section-head *,
  #appView .page-root .simple-top * {animation: none !important;}
}


/* Smooth entry / exit while scrolling up or down. Opacity + independent translate
   are composite-friendly; no animated blur, box-shadow or height. */
#appView .page-root .npx-flow-item {
  transition-property: opacity, translate;
  transition-duration: 250ms, 320ms;
  transition-timing-function: cubic-bezier(.2,.75,.28,1), cubic-bezier(.16,1,.3,1);
  transition-delay:0ms;
  opacity:1;
  translate:0 0;
}
#appView .page-root .npx-flow-item.npx-flow-out {
  opacity:.32;
  translate:0 var(--npx-flow-y, 14px);
}
#appView .page-root :is(.up-data-row,.section-head,.simple-top,.up-listbar,.sv87-section-title).npx-flow-out {
  opacity:.55;
  translate:0 var(--npx-flow-y-small, 7px);
}
@media (prefers-reduced-motion: reduce) {
  #appView .page-root .npx-flow-item,
  #appView .page-root .npx-flow-item.npx-flow-out {
    opacity:1 !important;
    translate:none !important;
    transition:none !important;
  }
}


/* Access Card Login — scoped, mobile-first, no other page styles modified. */
#loginView[hidden]{display:none!important}
#appView[hidden]{display:none!important}
#loginView.login-view{
  display:grid;place-items:center;min-height:100svh;padding:24px 16px;
  background:#050505;
}
.npxgate-wrap{width:min(100%,500px);margin:auto;font-family:var(--font-thai-ui);color:#f5f5f5}
.npxgate-shell{
  position:relative;width:100%;padding:17px;border-radius:30px;
  border:1px solid rgba(255, 255, 255, .11);
  background:linear-gradient(145deg,#161616 0%,#0a0a0a 75%);
  box-shadow:0 28px 70px rgba(0, 0, 0, .4),inset 0 1px 0 rgba(255, 255, 255, .05);
}
.npxgate-card{
  position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;
  width:100%;aspect-ratio:1.78/1;min-height:186px;
  padding:19px 20px;border-radius:22px;overflow:hidden;
  border:1px solid rgba(255, 255, 255, .2);
  background:linear-gradient(125deg,#252525 0%,#1a1a1a 35%,#0e0e0e 76%,#1a1a1a 100%);
  box-shadow:0 19px 33px rgba(0, 0, 0, .36),inset 0 1px 0 rgba(255, 255, 255, .11);
}
.npxgate-card:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(115deg,rgba(255, 255, 255, .13),transparent 39%,transparent 65%,rgba(255, 255, 255, .025))}
.npxgate-card-top{display:flex;align-items:center;gap:10px;min-width:0}
.npxgate-symbol{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:rgba(255, 255, 255, .09);border:1px solid rgba(255, 255, 255, .16)}
.npxgate-wordmark{display:grid;gap:3px;min-width:0}
.npxgate-wordmark strong{font-family:inherit;font-size:16px;line-height:1;font-weight:800;letter-spacing:.035em}
.npxgate-wordmark span{color:#b4b4b4;font-size:10px;letter-spacing:.16em;line-height:1}
.npxgate-index{margin-left:auto;font:600 9px/1.2 ui-monospace,monospace;letter-spacing:.08em;color:#a9a9a9;white-space:nowrap}
.npxgate-card-middle{display:grid;gap:5px}
.npxgate-card-middle small{font:650 10px/1.2 ui-monospace,monospace;letter-spacing:.11em;color:#afafaf}
.npxgate-card-middle strong{font:700 clamp(19px,4.6vw,26px)/1.1 'Anuphan',sans-serif;letter-spacing:.075em;white-space:nowrap}
.npxgate-rule{width:48px;height:3px;border-radius:4px;background:linear-gradient(90deg,#f4f4f4,rgba(255, 255, 255, .12));margin-top:3px}
.npxgate-card-foot{display:flex;justify-content:space-between;gap:14px}
.npxgate-card-foot>div{display:grid;gap:4px;min-width:0}
.npxgate-card-foot>div:last-child{text-align:right}
.npxgate-card-foot small{font-size:10px;line-height:1.1;color:#a6a6a6}
.npxgate-card-foot strong{font-size:12px;line-height:1.18;color:#f5f5f5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:205px}
.npxgate-intro{margin:24px 3px 17px;display:grid;gap:5px}
.npxgate-intro>span{font:600 10px/1.3 ui-monospace,monospace;letter-spacing:.11em;color:#a1a1a1}
.npxgate-intro h1{margin:0;color:#ffffff;font-size:29px;line-height:1.25;letter-spacing:-.02em;font-weight:800}
.npxgate-intro p{margin:0;font-size:13px;line-height:1.65;color:#9d9d9d}
.npxgate-form{display:grid;gap:10px}
.npxgate-field{padding:12px 14px;min-height:73px;background:rgba(255, 255, 255, .04);border:1px solid rgba(255, 255, 255, .085);border-radius:17px;transition:border-color .18s ease,box-shadow .18s ease}
.npxgate-field:focus-within{border-color:rgba(238, 238, 238, .38);box-shadow:0 0 0 2px rgba(223, 223, 223, .095)}
.npxgate-field label{display:block;margin:0 0 4px;font-size:12px;font-weight:750;line-height:1.25;color:#dfdfdf}
.npxgate-control{display:flex;align-items:center;gap:9px;min-width:0}
.npxgate-field-icon{width:33px;height:33px;flex:0 0 33px;display:grid;place-items:center;color:#d0d0d0}
.npxgate-field input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:#ffffff;font:550 15px/1.25 'Anuphan',sans-serif;padding:2px 0}
.npxgate-field input::placeholder{color:#9a9a9a;opacity:1}
.npxgate-visibility{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:0;border-radius:11px;background:transparent;color:#c0c0c0;cursor:pointer}
.npxgate-visibility:hover{background:rgba(255, 255, 255, .07)}
.npxgate-visibility:focus-visible,.npxgate-slide-knob:focus-visible{outline:2px solid #d5d5d5;outline-offset:3px}
.npxgate-hint{margin:2px 1px 5px;color:#939393;font-size:11px;line-height:1.55}
.npxgate-slide-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:0 2px}
.npxgate-slide-head strong{font-size:13px;font-weight:750}
.npxgate-slide-head span{font-size:11px;color:#a2a2a2}
.npxgate-slide{position:relative;height:58px;overflow:hidden;touch-action:pan-y;border-radius:15px;border:1px solid rgba(255, 255, 255, .12);background:linear-gradient(180deg,rgba(255, 255, 255, .07),rgba(255, 255, 255, .035))}
.npxgate-slide-fill{position:absolute;inset:0;background:linear-gradient(90deg,rgba(225, 225, 225, .12),rgba(225, 225, 225, .24));transform:scaleX(0);transform-origin:left center;pointer-events:none;will-change:transform}
.npxgate-slide-caption{position:absolute;inset:0;display:grid;place-items:center;color:#e9e9e9;font-size:13px;font-weight:750;pointer-events:none;transition:opacity .16s ease}
.npxgate-slide-knob{position:absolute;left:4px;top:4px;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;border:0;background:linear-gradient(180deg,#fbfbfb,#d9d9d9);color:#161616;cursor:grab;touch-action:none;will-change:transform;box-shadow:0 7px 16px rgba(0, 0, 0, .22)}
.npxgate-slide-knob:active{cursor:grabbing}
.npxgate-slide-knob svg{pointer-events:none}
.npxgate-hidden-submit{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none;clip-path:inset(50%);overflow:hidden}
.npxgate-error{min-height:17px;margin:0;color:#c5c5c5;font-size:12px;line-height:1.4}
.npxgate-verify[hidden]{display:none!important}
.npxgate-verify{position:absolute;z-index:8;inset:0;padding:20px;border-radius:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;background:rgba(8, 8, 8, .97)}
.npxgate-verify-emblem{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;border:2px solid rgba(229, 229, 229, .25);border-top-color:#f4f4f4;animation:npxgate-spin .8s linear infinite;color:#e2e2e2}
.npxgate-verify-emblem svg{opacity:0}
.npxgate-verify.done .npxgate-verify-emblem{animation:npxgate-pop .32s ease-out both;border:1px solid rgba(187, 187, 187, .55);background:rgba(186, 186, 186, .1);color:#cecece}
.npxgate-verify.done .npxgate-verify-emblem svg{opacity:1}
.npxgate-verify strong{font-size:19px}
.npxgate-verify p{margin:0;font-size:12px;line-height:1.5;color:#b0b0b0}
@keyframes npxgate-spin{to{transform:rotate(360deg)}}
@keyframes npxgate-pop{0%{transform:scale(.9);opacity:.5}100%{transform:scale(1);opacity:1}}
@media(max-width:600px){
 #loginView.login-view{padding:13px 12px 22px}
 .npxgate-shell{padding:12px;border-radius:26px}
 .npxgate-card{aspect-ratio:1.72/1;min-height:175px;padding:15px;border-radius:19px}
 .npxgate-symbol{width:34px;height:34px;flex-basis:34px;border-radius:10px}
 .npxgate-symbol svg{width:23px;height:23px}
 .npxgate-wordmark strong{font-size:15px}
 .npxgate-card-middle strong{font-size:clamp(18px,5.3vw,23px)}
 .npxgate-index{font-size:8px}
 .npxgate-card-foot strong{font-size:11px}
 .npxgate-intro{margin:18px 3px 15px}
 .npxgate-intro h1{font-size:26px}
 .npxgate-field{min-height:70px}
 .npxgate-slide{height:57px}
 .npxgate-slide-knob{width:47px;height:47px}
 .npxgate-verify{border-radius:26px}
}
@media(max-width:355px){.npxgate-index{font-size:7px}.npxgate-card-middle strong{font-size:18px}.npxgate-field input{font-size:14px}}
@media(prefers-reduced-motion:reduce){.npxgate-verify-emblem{animation:none!important}.npxgate-verify.done .npxgate-verify-emblem{animation:none!important}.npxgate-field{transition:none}.npxgate-slide-caption{transition:none}}


/* NPXSHOP V18: user creation only. Login V16 and all other dialogs remain intact. */
#createDialog.npxcreate-v18 {position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#f6f6f6!important;overflow:hidden!important}
#createDialog.npxcreate-v18::backdrop {background:rgba(0, 0, 0, .78)!important;backdrop-filter:none!important}
#createDialog.npxcreate-v18 .npxcreate-sheet {
  box-sizing:border-box!important;position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;margin:0!important;padding:0!important;width:min(750px,calc(100vw - 48px))!important;max-width:750px!important;
  height:min(90dvh,900px)!important;max-height:min(90dvh,900px)!important;border-radius:30px!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;overscroll-behavior:contain!important;
  background:#111111!important;background-image:none!important;border:1px solid rgba(255, 255, 255, .19)!important;
  box-shadow:0 30px 80px rgba(0, 0, 0, .66),inset 0 1px 0 rgba(255, 255, 255, .055)!important;
  contain:none!important;will-change:auto!important;
}
#createDialog.npxcreate-v18 .npxcreate-sheet::before,#createDialog.npxcreate-v18 .npxcreate-sheet::after{content:none!important;display:none!important}
#createDialog.npxcreate-v18 .sheet-header.npxcreate-header {
  flex:0 0 auto!important;position:relative!important;top:auto!important;z-index:5!important;display:flex!important;align-items:start!important;justify-content:space-between!important;
  margin:0!important;padding:24px 26px 15px!important;border:0!important;background:#111111!important;backdrop-filter:none!important;gap:14px!important
}
#createDialog.npxcreate-v18 .npxcreate-headcopy{min-width:0}
#createDialog.npxcreate-v18 .sheet-header .eyebrow{margin:0 0 3px!important;font-family:var(--font-thai-ui) !important;font-size:12px!important;color:#a3a3a3!important;letter-spacing:0!important;text-transform:none!important;font-weight:650!important}
#createDialog.npxcreate-v18 .sheet-header h3{margin:0!important;color:#f7f7f7!important;font-family:var(--font-thai-ui) !important;font-size:clamp(28px,3vw,34px)!important;letter-spacing:-.035em!important;line-height:1.2!important;font-weight:800!important}
#createDialog.npxcreate-v18 .npxcreate-subtitle{margin:5px 0 0!important;font-size:12px!important;line-height:1.4!important;color:#9c9c9c!important}
#createDialog.npxcreate-v18 .sheet-header .icon-button.ghost{flex:0 0 42px!important;width:42px!important;height:42px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:#242424!important;border:1px solid rgba(255, 255, 255, .11)!important;color:#f8f8f8!important;box-shadow:none!important}
#createDialog.npxcreate-v18 .npxcreate-grabber{display:none}
#createDialog.npxcreate-v18 .npxcreate-scroll{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#464646 transparent;padding:0 26px 16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#createDialog.npxcreate-v18 .npxcreate-identity{display:flex;align-items:center;gap:14px;min-height:103px;padding:16px 18px;margin-bottom:14px;border-radius:23px;border:1px solid rgba(255, 255, 255, .13);background:linear-gradient(160deg,#1d1d1d,#131313);box-shadow:inset 0 1px 0 rgba(255, 255, 255, .07)}
#createDialog.npxcreate-v18 .npxcreate-avatar{flex:0 0 65px;width:65px;height:65px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#393939,#1d1d1d);border:1px solid rgba(255, 255, 255, .25);box-shadow:inset 0 1px 0 rgba(255, 255, 255, .11);color:#eeeeee}
#createDialog.npxcreate-v18 .npxcreate-avatar svg{width:37px;height:37px}
#createDialog.npxcreate-v18 .npxcreate-identity-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
#createDialog.npxcreate-v18 .npxcreate-identity-copy strong{font-size:16px;font-weight:800;line-height:1.2;color:#f9f9f9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#createDialog.npxcreate-v18 .npxcreate-identity-copy>span:not(.npxcreate-preview-state){font-size:12px;color:#afafaf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#createDialog.npxcreate-v18 .npxcreate-preview-state{width:max-content;margin-top:4px;display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:99px;border:1px solid rgba(255, 255, 255, .1);background:#292929;color:#cecece;font-size:10px}
#createDialog.npxcreate-v18 .npxcreate-preview-state i{width:6px;height:6px;background:#a9a9a9;border-radius:50%}
#createDialog.npxcreate-v18 .npxcreate-preview-state.is-ready i{background:#bebebe}
#createDialog.npxcreate-v18 .npxcreate-identity-side{align-self:stretch;display:grid;grid-template-columns:auto auto;align-content:center;gap:4px 16px;padding-left:19px;border-left:1px solid rgba(255, 255, 255, .1)}
#createDialog.npxcreate-v18 .npxcreate-identity-side span{grid-column:1;color:#999999;font-size:11px}
#createDialog.npxcreate-v18 .npxcreate-identity-side strong{grid-column:1;font-size:12px;font-weight:700;color:#e3e3e3}
#createDialog.npxcreate-v18 .npxcreate-identity-side svg{grid-column:2;grid-row:1/3;align-self:center;width:36px;height:36px;padding:8px;box-sizing:border-box;border-radius:12px;background:#2c2c2c;border:1px solid rgba(255, 255, 255, .08);color:#e5e5e5}
#createDialog.npxcreate-v18 .npxcreate-panel{border-radius:23px;border:1px solid rgba(255, 255, 255, .13);background:linear-gradient(165deg,#1a1a1a,#121212);box-shadow:inset 0 1px 0 rgba(255, 255, 255, .055);margin-bottom:14px;overflow:visible}
#createDialog.npxcreate-v18 .npxcreate-panel-head{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid rgba(255, 255, 255, .09)}
#createDialog.npxcreate-v18 .npxcreate-panel-icon{width:24px;height:24px;display:grid;place-items:center;color:#eaeaea}
#createDialog.npxcreate-v18 .npxcreate-panel-icon svg{width:21px;height:21px}
#createDialog.npxcreate-v18 .npxcreate-panel-head h4{margin:0;color:#f9f9f9;font-size:15px;font-weight:800;line-height:1.2}
#createDialog.npxcreate-v18 .npxcreate-section-note{margin-left:auto;text-align:right;color:#9b9b9b;font-size:10px}
#createDialog.npxcreate-v18 .npxcreate-panel-content{padding:15px 18px 18px}
#createDialog.npxcreate-v18 .npxcreate-fields{display:grid;gap:13px}
#createDialog.npxcreate-v18 .npxcreate-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px}
#createDialog.npxcreate-v18 .npxcreate-usage-grid .npxcreate-ip{grid-column:1/-1}
#createDialog.npxcreate-v18 .field.npxcreate-field{display:flex!important;flex-direction:column!important;min-width:0!important;gap:6px!important;margin:0!important;padding:0!important;grid-column:auto!important}
#createDialog.npxcreate-v18 .npxcreate-fields .field.span-2{grid-column:1/-1!important}
#createDialog.npxcreate-v18 .field.npxcreate-field>span:first-child{font-size:12px!important;letter-spacing:0!important;color:#f1f1f1!important;font-weight:750!important;text-transform:none!important}
#createDialog.npxcreate-v18 .npxcreate-input-shell{position:relative;display:flex;align-items:center;gap:0;min-height:49px;border-radius:14px;border:1px solid rgba(255, 255, 255, .13);background:#252525;box-shadow:inset 0 1px 0 rgba(255, 255, 255, .04);transition:border-color .16s ease}
#createDialog.npxcreate-v18 .npxcreate-input-shell:focus-within{border-color:rgba(228, 228, 228, .66);outline:2px solid rgba(200, 200, 200, .16);outline-offset:1px}
#createDialog.npxcreate-v18 .npxcreate-input-shell>svg:not(.npxcreate-chevron){width:20px;height:20px;margin:0 12px;flex:0 0 20px;stroke:#e2e2e2}
#createDialog.npxcreate-v18 .npxcreate-input-shell>input,#createDialog.npxcreate-v18 .npxcreate-input-shell>select{
  box-sizing:border-box!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;min-height:47px!important;height:47px!important;padding:0 12px 0 0!important;margin:0!important;border:0!important;outline:0!important;border-radius:14px!important;background:transparent!important;background-image:none!important;box-shadow:none!important;transform:none!important;appearance:none;-webkit-appearance:none;color:#fafafa!important;font-family:var(--font-thai-ui) !important;font-size:14px!important;font-weight:650!important
}
#createDialog.npxcreate-v18 .npxcreate-input-shell>input::placeholder{color:#a5a5a5!important;opacity:1}
#createDialog.npxcreate-v18 .npxcreate-input-shell>select{padding-right:31px!important;cursor:pointer}
#createDialog.npxcreate-v18 .npxcreate-input-shell>select option{background:#252525;color:#ffffff}
#createDialog.npxcreate-v18 .npxcreate-chevron{pointer-events:none;position:absolute;right:12px;width:18px;height:18px;stroke:#cacaca}
#createDialog.npxcreate-v18 .field.npxcreate-field small{margin:0;color:#a0a0a0!important;font-size:10px!important;line-height:1.35!important}
#createDialog.npxcreate-v18 .profile-preview:empty{display:none!important}
#createDialog.npxcreate-v18 .profile-preview{margin:0 0 10px!important;border:1px solid rgba(255, 255, 255, .1)!important;background:#1e1e1e!important;border-radius:17px!important;box-shadow:none!important}
#createDialog.npxcreate-v18 .form-error{margin:0 2px;color:#b9b9b9;font-size:12px}
#createDialog.npxcreate-v18 .sheet-actions.npxcreate-footer{display:grid!important;flex:0 0 auto!important;position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;z-index:6!important;grid-template-columns:1fr 1.12fr!important;align-items:center!important;gap:11px!important;margin:0!important;padding:14px 26px calc(15px + env(safe-area-inset-bottom,0px))!important;background:#161616!important;background-image:none!important;border-top:1px solid rgba(255, 255, 255, .1)!important;box-shadow:none!important;transform:none!important;contain:none!important}
#createDialog.npxcreate-v18 .npxcreate-footer::before{content:none!important;display:none!important}
#createDialog.npxcreate-v18 .npxcreate-footer .button{width:100%!important;min-width:0!important;height:49px!important;min-height:49px!important;padding:0 12px!important;font-family:var(--font-thai-ui) !important;font-size:14px!important;font-weight:800!important;border-radius:14px!important;letter-spacing:0!important;transform:none!important;box-shadow:none!important;transition:background-color .15s ease!important}
#createDialog.npxcreate-v18 .npxcreate-footer .button.secondary{background:#282828!important;color:#f7f7f7!important;border:1px solid rgba(255, 255, 255, .17)!important}
#createDialog.npxcreate-v18 .npxcreate-footer .button.primary{background:linear-gradient(180deg,#ffffff,#dcdcdc)!important;color:#121212!important;border:1px solid rgba(255, 255, 255, .6)!important;text-shadow:none!important}
#createDialog.npxcreate-v18 .npxcreate-footer .button:focus-visible{outline:2px solid #e6e6e6;outline-offset:3px}
@media(max-width:760px){
 #createDialog.npxcreate-v18 .npxcreate-sheet{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;left:0!important;top:0!important;right:0!important;bottom:0!important;transform:none!important;border-radius:0!important;border:0!important;background:#0a0a0a!important}
 #createDialog.npxcreate-v18 .sheet-header.npxcreate-header{padding:calc(27px + env(safe-area-inset-top,0px)) 17px 14px!important;background:#0a0a0a!important}
 #createDialog.npxcreate-v18 .npxcreate-grabber{display:block;position:absolute;top:calc(10px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);height:4px;width:36px;border-radius:6px;background:#555555}
 #createDialog.npxcreate-v18 .npxcreate-scroll{padding:0 15px 16px}
 #createDialog.npxcreate-v18 .npxcreate-identity{padding:12px;min-height:92px;gap:12px}
 #createDialog.npxcreate-v18 .npxcreate-avatar{flex-basis:54px;width:54px;height:54px}
 #createDialog.npxcreate-v18 .npxcreate-avatar svg{width:30px;height:30px}
 #createDialog.npxcreate-v18 .npxcreate-identity-side{padding-left:11px;gap:3px 6px}
 #createDialog.npxcreate-v18 .npxcreate-identity-side span{font-size:9px}
 #createDialog.npxcreate-v18 .npxcreate-identity-side strong{font-size:10px}
 #createDialog.npxcreate-v18 .npxcreate-identity-side svg{width:30px;height:30px;padding:7px}
 #createDialog.npxcreate-v18 .npxcreate-panel-head{padding:13px 13px}
 #createDialog.npxcreate-v18 .npxcreate-panel-content{padding:14px}
 #createDialog.npxcreate-v18 .npxcreate-section-note{font-size:9px;max-width:48%}
 #createDialog.npxcreate-v18 .npxcreate-usage-grid{grid-template-columns:1fr}
 #createDialog.npxcreate-v18 .npxcreate-usage-grid .npxcreate-ip{grid-column:1}
 #createDialog.npxcreate-v18 .sheet-actions.npxcreate-footer{padding:12px 15px calc(13px + env(safe-area-inset-bottom,0px))!important;background:#121212!important}
}
@media(max-width:600px){
 #createDialog.npxcreate-v18 .npxcreate-identity-side{display:none}
 #createDialog.npxcreate-v18 .npxcreate-identity-copy{min-width:0}
 #createDialog.npxcreate-v18 .npxcreate-identity{gap:13px}
}
@media(max-width:370px){
 #createDialog.npxcreate-v18 .npxcreate-identity-side{display:none}
 #createDialog.npxcreate-v18 .npxcreate-section-note{display:none}
}
@media(prefers-reduced-motion:reduce){#createDialog.npxcreate-v18 *,#createDialog.npxcreate-v18 *::before,#createDialog.npxcreate-v18 *::after{animation:none!important;transition:none!important}}


/* Renewal form only: floating centred at all sizes. */
#renewDialog.v20-renew-dialog {
  position:fixed;inset:0;
  margin:0;padding:0;
  width:100vw;height:100dvh;
  max-width:none;max-height:none;
  overflow:hidden;
  border:0;background:transparent;
}
#renewDialog.v20-renew-dialog .sheet.v20-renew-sheet {
  position:absolute;
  top:50%;left:50%;right:auto;bottom:auto;
  transform:translate(-50%,-50%);
  width:min(448px,calc(100% - 32px));
  max-height:calc(100dvh - 40px);
  box-sizing:border-box;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:24px;
  border:1px solid rgba(255, 255, 255, .16);
  border-radius:28px;
  background:#161616;
  box-shadow:0 24px 65px rgba(0, 0, 0, .45),inset 0 1px rgba(255, 255, 255, .05);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
#renewDialog .sheet-handle { display:none; }
#renewDialog .v20-renew-header { align-items:center;gap:16px;margin-bottom:18px; }
#renewDialog .v20-renew-heading {min-width:0;}
#renewDialog .v20-renew-header .eyebrow {margin:0 0 4px;font-size:11px;letter-spacing:.02em;color:#a8a8a8;text-transform:none;}
#renewDialog .v20-renew-header h3 {font-size:28px;font-weight:800;line-height:1.25;letter-spacing:-.04em;}
#renewDialog .v20-renew-header .sheet-subtitle {margin-top:6px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;}
#renewDialog .v20-renew-header .icon-button {min-width:44px;min-height:44px;flex:0 0 44px;border-radius:14px;}
#renewDialog .v20-renew-summary {display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:10px;align-items:center;margin:0 0 18px;padding:16px;border-radius:18px;border:1px solid rgba(255, 255, 255, .10);background:#212121;}
#renewDialog .v20-renew-summary-item {min-width:0;display:flex;flex-direction:column;gap:7px;}
#renewDialog .v20-renew-summary-label {color:#ababab;font-size:11px;font-weight:650;line-height:1.4;}
#renewDialog .v20-renew-summary-item strong {font-size:13px;font-weight:760;line-height:1.45;overflow-wrap:anywhere;color:#f5f5f5;}
#renewDialog .v20-renew-summary-item:last-child strong {color:#f8f8f8;}
#renewDialog .v20-renew-arrow {color:#a1a1a1;justify-self:center;}
#renewDialog .v20-renew-date-section {padding:0 2px;}
#renewDialog .npxrenew-expiry {gap:8px;}
#renewDialog .npxrenew-expiry>span:first-child {font-size:13px;color:#e9e9e9;}
#renewDialog .npxrenew-expiry .npxdate-trigger {height:56px;min-height:56px;border-radius:16px;background:#272727;border:1px solid rgba(255, 255, 255, .16);}
#renewDialog .npxdate-hint {min-height:17px;font-size:12px;color:#ababab;}
#renewDialog .v20-renew-actions {position:static;display:grid;grid-template-columns:1fr 1.25fr;gap:10px;margin-top:24px;padding:0;background:none;}
#renewDialog .v20-renew-actions button {min-height:50px;border-radius:15px;font-family:var(--font-thai-ui);font-size:14px;font-weight:750;}
#renewDialog .v20-renew-actions .primary {background:linear-gradient(180deg,#fafafa,#d8d8d8);color:#131313;}
#renewDialog .v20-renew-actions .secondary {background:#272727;color:#f1f1f1;border:1px solid rgba(255, 255, 255, .13);}
#renewDialog .v20-renew-actions button:focus-visible {outline:2px solid #d4d4d4;outline-offset:3px;}
#renewDialog .v20-renew-actions button:active {transform:scale(.985);}
@media(max-width:600px){
  #renewDialog.v20-renew-dialog .sheet.v20-renew-sheet {
    left:50%;right:auto;top:50%;bottom:auto;
    transform:translate(-50%,-50%);
    width:calc(100% - 32px);max-width:448px;
    max-height:calc(100dvh - 32px);
    padding:20px 18px 18px;border-radius:25px;
  }
  #renewDialog .v20-renew-header h3 {font-size:26px;}
  #renewDialog .v20-renew-summary{padding:13px;gap:8px;}
  #renewDialog .v20-renew-summary-item strong{font-size:12px;}
  #renewDialog .v20-renew-actions{margin-top:18px;}
}
@media(max-width:350px){
  #renewDialog .v20-renew-summary{grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr);gap:5px;}
  #renewDialog .v20-renew-summary-item strong{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){#renewDialog .v20-renew-actions button{transition:none;}}


/* V21 — Renewal only, non-invasive to login/create/dashboard. */
#renewDialog .v20-renew-summary{margin-bottom:18px}
#renewDialog .v21-renew-selection{display:grid;gap:10px;margin-bottom:16px}
#renewDialog .v21-renew-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#renewDialog .v21-renew-section-head strong{font-size:14px;font-weight:750;color:#f3f3f3}
#renewDialog .v21-renew-section-head span{font-size:12px;color:#b4b4b4;white-space:nowrap}
#renewDialog .v21-renew-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#renewDialog .v21-renew-preset{min-height:44px;min-width:0;padding:7px 2px;border:1px solid #3d3d3d;border-radius:13px;background:#242424;color:#dddddd;font:700 12px/1.2 Anuphan,system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
#renewDialog .v21-renew-preset:hover{border-color:#797979;background:#2e2e2e}
#renewDialog .v21-renew-preset:active{transform:scale(.96)}
#renewDialog .v21-renew-preset.is-selected{color:#141414;background:#ebebeb;border-color:#ebebeb}
#renewDialog .v21-renew-preset:focus-visible,#renewDialog .v21-renew-handle:focus-visible{outline:2px solid #d5d5d5;outline-offset:3px}
#renewDialog .npxrenew-expiry .npxdate-trigger{overflow:hidden;transition:background .2s ease,border-color .2s ease;}
#renewDialog .npxrenew-expiry .npxdate-trigger>svg:first-child{animation:v21-calendar-sway 3.4s ease-in-out infinite;transform-origin:center}
#renewDialog .npxrenew-expiry .npxdate-chevron{transition:transform .22s ease}
#renewDialog .npxrenew-expiry .npxdate-trigger:hover .npxdate-chevron{transform:translateX(3px)}
#renewDialog .v20-renew-summary .v20-renew-arrow{animation:v21-arrow-nudge 3.6s ease-in-out infinite}
#renewDialog .v21-renew-confirm{display:grid;gap:10px;margin-top:18px}
#renewDialog .v21-renew-confirm-label{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#f2f2f2;font-size:14px;font-weight:750}
#renewDialog .v21-renew-confirm-label svg{color:#b7b7b7;animation:v21-calendar-sway 4s ease-in-out infinite}
#renewDialog .v21-renew-slide{position:relative;height:62px;width:100%;overflow:hidden;border-radius:18px;background:#282828;border:1px solid #434343;box-shadow:inset 0 1px rgba(255, 255, 255, .045);touch-action:none;user-select:none}
#renewDialog .v21-renew-fill{position:absolute;inset:0;pointer-events:none;transform:scaleX(0);transform-origin:left center;will-change:transform;background:linear-gradient(90deg,#565656,#939393);opacity:.36;border-radius:inherit}
#renewDialog .v21-renew-slide-text{position:absolute;inset:0;display:grid;place-items:center;padding-left:48px;padding-right:12px;color:#e9e9e9;font-size:13px;font-weight:740;pointer-events:none;white-space:nowrap;transition:opacity .15s ease}
#renewDialog .v21-renew-handle{position:absolute;top:5px;left:5px;width:50px;height:50px;display:grid;place-items:center;touch-action:none;border:0;border-radius:14px;background:linear-gradient(180deg,#fbfbfb,#dcdcdc);box-shadow:0 4px 12px rgba(0, 0, 0, .24);color:#131313;cursor:grab;will-change:transform;transition:box-shadow .18s ease}
#renewDialog .v21-renew-handle:active{cursor:grabbing}
#renewDialog .v21-renew-handle svg{animation:v21-slide-nudge 1.9s ease-in-out infinite}
#renewDialog .v21-renew-slide.is-processing .v21-renew-handle{cursor:default;opacity:.8}
#renewDialog .v21-renew-slide.is-processing .v21-renew-handle svg{animation:none}
#renewDialog .v21-renew-hidden-submit{position:absolute;width:1px;height:1px;padding:0;opacity:0;pointer-events:none;clip-path:inset(50%);overflow:hidden}
@keyframes v21-calendar-sway{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes v21-arrow-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(3px)}}
@keyframes v21-slide-nudge{0%,100%{transform:translateX(0)}45%{transform:translateX(3px)}}
@media(max-width:370px){#renewDialog .v21-renew-preset{font-size:11px;min-height:42px}#renewDialog .v21-renew-presets{gap:5px}#renewDialog .v21-renew-slide-text{font-size:12px}}
@media(prefers-reduced-motion:reduce){#renewDialog .v21-renew-handle svg,#renewDialog .npxrenew-expiry .npxdate-trigger>svg:first-child,#renewDialog .v20-renew-summary .v20-renew-arrow,#renewDialog .v21-renew-confirm-label svg{animation:none!important}#renewDialog .v21-renew-slide-text,#renewDialog .v21-renew-preset{transition:none!important}}


/* V53: light numeric entrance, no animated backdrop or layout-changing dimension. */
#appView .page-dashboard #metrics .oc-stat > strong,
#appView .page-dashboard #hostCard .runtime-copy > strong {
  font-variant-numeric: tabular-nums;
}
#appView .page-dashboard .npx-count-playing {
  animation: npxV53CountEnter 580ms cubic-bezier(.18,.74,.22,1) both;
  animation-delay: var(--npx-count-delay, 0ms);
  transform-origin: left center;
}
@keyframes npxV53CountEnter {
  0% {opacity:.55;transform:translateY(7px) scale(.965)}
  65% {opacity:1;transform:translateY(-1px) scale(1.012)}
  100% {opacity:1;transform:translateY(0) scale(1)}
}
@media (prefers-reduced-motion: reduce) {
  #appView .page-dashboard .npx-count-playing {animation:none !important;opacity:1 !important;transform:none !important}
}


#appView .up-users-page .up-preview-state{background:#f3f3f3!important;border:1px solid #e4e4e4!important;color:#6a6a6a!important;animation:none!important;box-shadow:none!important;white-space:nowrap!important}
#appView .up-users-page .up-preview-card .up-mc-stats{margin-bottom:10px!important}
#appView .up-users-page .up-preview-note,.up-preview-detail .up-preview-note{font-size:11px;line-height:1.55;color:#767676;margin:12px 0 0;font-weight:300}
#appView .up-users-page .up-preview-card .up-mc-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
#appView .up-users-page .up-preview-card .up-mc-actions button{min-width:0;min-height:44px!important;padding:0 5px!important;font-size:11px!important;gap:5px!important}
#appView .up-users-page .up-preview-card .up-mc-actions button svg{width:16px;height:16px;flex:none}
#appView .up-users-page .up-preview-card .up-mc-actions .up-mc-more{background:#f5f5f5!important;color:#333!important;border:1px solid #e5e5e5!important}
#appView .up-users-page .up-preview-muted{font-size:12px;color:#858585}
#upUserDialog .up-preview-detail .up-full-info strong{overflow-wrap:anywhere}
@media (prefers-reduced-motion:reduce){#appView .up-users-page .up-preview-card *{animation:none!important;transition:none!important}}


/* V96: scoped carrier identity. Reuse the existing server SVG and reveal motion. */
#appView .npx-inbounds-page .npx-inbound-card.npx-carrier-ais .npx-inbound-icon {
  color:#239b55;
  background:linear-gradient(145deg,#f5fcf7 0%,#eaf7ee 100%);
  border-color:#d3e9db;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 2px 7px rgba(35,155,85,.055);
}
#appView .npx-inbounds-page .npx-inbound-card.npx-carrier-true .npx-inbound-icon {
  color:#e43e42;
  background:linear-gradient(145deg,#fff8f8 0%,#fceced 100%);
  border-color:#f1dadd;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 2px 7px rgba(228,62,66,.055);
}
#appView .npx-inbounds-page .npx-inbound-card.npx-carrier-dtac .npx-inbound-icon {
  color:#218ac9;
  background:linear-gradient(145deg,#f6fbff 0%,#e9f5fc 100%);
  border-color:#d5e8f3;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 2px 7px rgba(33,138,201,.055);
}


/* V107: scoped to 'More' quick links; original routes and bottom nav remain unchanged.
   Reuse existing IntersectionObserver & delegated pointer feedback. */
#appView .npx107-more-page .quick-card-premium .quick-icon,
#appView .npx107-more-page .quick-card-premium .quick-icon svg {
  animation: none !important; /* do not run infinite transforms on idle cards */
}
#appView .npx107-more-page .quick-card-premium .quick-icon svg {
  transform-origin: 50% 50%;
  transition: transform 180ms ease-out;
}
#appView .npx107-more-page .quick-card-premium.icon-in-view:not(.icon-poked) .quick-icon svg {
  animation: npx107IconIntro 650ms cubic-bezier(.18,.75,.24,1) both !important;
}
#appView .npx107-more-page .quick-card-premium.icon-poked .quick-icon {
  animation: npx107IconPress 420ms cubic-bezier(.2,.8,.2,1) both !important;
}
#appView .npx107-more-page .quick-card-premium.icon-poked .quick-icon svg {
  animation: npx107IconTwist 420ms cubic-bezier(.2,.8,.2,1) both !important;
}
@media (hover:hover) and (pointer:fine) {
  #appView .npx107-more-page .quick-card-premium:hover:not(.icon-poked) .quick-icon svg,
  #appView .npx107-more-page .quick-card-premium:focus-visible:not(.icon-poked) .quick-icon svg {
    animation:none !important;
    transform:translate3d(0,-2px,0) rotate(-3deg);
  }
}
@keyframes npx107IconIntro {
  0% {opacity:.82;transform:translate3d(0,4px,0) rotate(-7deg) scale(.91)}
  65% {opacity:1;transform:translate3d(0,-1px,0) rotate(3deg) scale(1.055)}
  100% {opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes npx107IconPress {
  0%,100% {transform:scale(1)}
  35% {transform:scale(.95)}
  70% {transform:scale(1.04)}
}
@keyframes npx107IconTwist {
  0%,100% {transform:rotate(0) scale(1)}
  35% {transform:rotate(-7deg) scale(.95)}
  70% {transform:rotate(4deg) scale(1.06)}
}
@media (prefers-reduced-motion:reduce) {
  #appView .npx107-more-page .quick-card-premium .quick-icon,
  #appView .npx107-more-page .quick-card-premium .quick-icon svg,
  #appView .npx107-more-page .quick-card-premium.icon-in-view .quick-icon svg,
  #appView .npx107-more-page .quick-card-premium.icon-poked .quick-icon svg {
    animation:none!important;transition:none!important;transform:none!important;
  }
}


/* V137: Reseller-only preview; preserve V136 appearance, alter privileges only. */
html[data-npx-preview-role="reseller"] #desktopNav [data-route="resellers"],
html[data-npx-preview-role="reseller"] #pageRoot [data-route-jump="resellers"],
html[data-npx-preview-role="reseller"] #pageRoot [data-demo-action="add-inbound"],
html[data-npx-preview-role="reseller"] #pageRoot [data-demo-action="add-reseller"] {display:none!important}
html[data-npx-preview-role="reseller"] #appView .sv87-actions .sp-control:disabled {
  opacity:.45!important; cursor:not-allowed!important; transform:none!important;
  box-shadow:none!important; pointer-events:none; filter:saturate(.5)
}
html[data-npx-preview-role="reseller"] #appView .sv87-actions .sp-control:disabled svg {animation:none!important;transform:none!important}


#appView .npx-brand-wordmark{display:inline-flex;align-items:center;justify-content:center;max-width:100%;font-weight:800;line-height:1;letter-spacing:-.04em;white-space:nowrap;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
#appView .npx-brand-wordmark.is-ais{color:#537a2b}
#appView .npx-brand-wordmark.is-true{color:#ab3f3f;letter-spacing:-.03em}
#appView .npx-brand-wordmark.is-dtac{color:#325ab3;letter-spacing:-.035em}
#appView .npx-brand-wordmark.is-tile{font-size:15px}
#appView .npx125-carrier-logo{display:inline-flex;align-items:center;justify-content:center}
#appView .npx125-carrier-logo .npx-brand-wordmark.is-tile{font-size:16px}
#appView .npx125-carrier-logo .npx-brand-wordmark.is-true{font-size:14px}
#appView .npx125-carrier-logo .npx-brand-wordmark.is-dtac{font-size:14px}
#appView .npx125-carrier-pill{padding:0 14px!important;gap:0!important}
#appView .npx125-carrier-pill svg{display:none!important}
#appView .npx125-promotions-page .npx131-promo-intro button.npx125-carrier-pill{padding:0 10px!important}
#appView .npx-inbounds-page .npx-inbound-icon{padding:0 6px}
#appView .npx-inbounds-page .npx-inbound-icon svg{display:none!important}
#appView .npx-inbounds-page .npx-inbound-icon .npx-brand-wordmark.is-tile{font-size:14px}
#appView .npx-inbounds-page .npx-inbound-icon .npx-brand-wordmark.is-true{font-size:12px}
#appView .npx-inbounds-page .npx-inbound-icon .npx-brand-wordmark.is-dtac{font-size:11.5px}
#appView .npx-inbounds-page .npx-inbound-card:hover .npx-inbound-icon svg{transform:none!important}
