:root {
  --bg: #090b0f;
  --panel: #11151b;
  --panel2: #151b24;
  --line: #2a3340;
  --text: #f5f7fb;
  --muted: #8b96a8;
  --cyan: #1fc7dd;
  --blue: #2f8cff;
  --green: #2dbb64;
  --gold: #ffc928;
  --danger: #ff5a66;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(31, 199, 221, 0.14), transparent 26rem),
    radial-gradient(circle at 90% 18%, rgba(255, 201, 40, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body [hidden] {
  display: none !important;
}

.panelLoadingOverlay,
.settingsLoadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgba(9, 11, 15, 0.72);
  backdrop-filter: blur(10px);
}

.panelLoadingOverlay > div,
.settingsLoadingOverlay > div {
  width: min(360px, calc(100vw - 40px));
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 21, 27, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.panelLoadingOverlay strong,
.settingsLoadingOverlay strong {
  font-size: 16px;
}

.panelLoadingOverlay small,
.settingsLoadingOverlay small {
  color: var(--muted);
  line-height: 1.5;
}

.loadingRing {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: p1Spin 0.78s linear infinite;
}

.settingsBody.isHydrating .settingsPageLayout,
.adminBody.isHydrating .adminLayout,
.adminBody.isHydrating .bottomBar,
.operationBody.isHydrating .operationLayout,
.builderBody.isHydrating .builderLayout,
.loginBody.isHydrating .loginShell {
  opacity: 0.42;
  pointer-events: none;
}

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

button,
input,
select {
  font: inherit;
}

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

.loginBody {
  display: grid;
  place-items: center;
  padding: 32px;
}

.loginShell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 420px;
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 16, 22, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.loginHero {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(31, 199, 221, 0.16), transparent 40%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent);
}

.loginHero h1 {
  max-width: 560px;
  margin: 0;
  font-size: 58px;
  line-height: 0.96;
}

.loginHero p {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.panelId {
  width: fit-content;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.loginCard {
  display: grid;
  place-items: center;
  padding: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.loginCard form {
  width: 100%;
}

.mark,
.brandLock {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #111b25, #080a0d);
  color: var(--cyan);
  font-weight: 900;
}

.loginCard h2 {
  margin: 28px 0 20px;
  font-size: 30px;
}

label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #c9d2df;
  font-size: 14px;
}

input,
select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #090d13;
  color: var(--text);
  outline: none;
}

select {
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(31, 199, 221, 0.13);
}

.secretInputGroup {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px 44px;
  border: 1px solid var(--line);
  background: #090d13;
}

.secretInputGroup.twoActions {
  grid-template-columns: minmax(0, 1fr) 44px 44px;
}

.secretInputGroup:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(31, 199, 221, 0.13);
}

.secretInputGroup input {
  height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.secretToolBtn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.secretToolBtn:hover {
  background: rgba(31, 199, 221, 0.14);
  color: var(--cyan);
}

.secretToolBtn svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

button,
.launchBtn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1d2633, #111722);
  color: var(--text);
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
}

button:hover,
.launchBtn:hover {
  border-color: var(--cyan);
}

.loginCard button[type="submit"],
#connectBtn {
  width: 100%;
  border-color: rgba(31, 199, 221, 0.5);
  background: linear-gradient(135deg, #13a4c2, #266aff);
  font-weight: 800;
}

.statusText {
  color: var(--muted);
  min-height: 20px;
}

.cardActionStatus {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cardActionStatus[data-tone="success"] {
  color: #55e6a5;
}

.cardActionStatus[data-tone="error"] {
  color: #ff8ea2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar {
  min-height: 84px;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 23, 32, 0.98), rgba(8, 11, 16, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.navTabs {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.navTabs::-webkit-scrollbar {
  height: 4px;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.topbarBrand {
  flex: 0 0 auto;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.topbarBrand:hover {
  background: rgba(31, 199, 221, 0.06);
}

.brandMark,
.userAvatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 199, 221, 0.3);
  background: rgba(31, 199, 221, 0.1);
  color: var(--cyan);
  font-weight: 900;
}

.topbarBrand strong,
.userMenuBtn strong {
  display: block;
  color: var(--text);
}

.topbarBrand span,
.userMenuBtn small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.tab {
  min-width: 90px;
  min-height: 84px;
  height: auto;
  display: grid;
  place-items: center;
  border-width: 0 1px 0 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  padding: 0 14px;
  white-space: nowrap;
}

.tab.link,
.textAction {
  color: var(--blue);
}

.tab.asLink {
  text-decoration: none;
}

.tab.isActive {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
}

.adminBody .adminNavTabs,
.operationBody .adminNavTabs {
  margin-left: auto;
}

.topbarProfile {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.metaBar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  padding: 10px 28px;
  font-size: 15px;
}

.adminActions {
  margin-left: auto;
}

.sessionPill,
.topAction,
.userMenuBtn {
  max-width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.sessionPill {
  color: var(--muted);
  font-weight: 700;
}

.sessionPill strong {
  min-width: 0;
  max-width: 150px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.topAction {
  border-color: rgba(31, 199, 221, 0.26);
  background: rgba(31, 199, 221, 0.08);
  color: var(--cyan);
}

.dangerAction {
  border-color: rgba(255, 90, 102, 0.42);
  background: rgba(255, 90, 102, 0.1);
  color: var(--danger);
}

.dangerAction:hover {
  border-color: rgba(255, 90, 102, 0.72);
  background: rgba(255, 90, 102, 0.18);
}

.userMenuWrap {
  position: relative;
}

.userMenuBtn {
  height: 54px;
  padding: 0 12px 0 8px;
  cursor: pointer;
}

.operationUserBadge .userMenuBtn:disabled {
  cursor: default;
  opacity: 1;
}

.userMenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0f16;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.userMenu[hidden] {
  display: none;
}

.userMenuHead,
.userMenuLicense,
.userMenuSection {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

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

.userQuickLinks a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 199, 221, 0.2);
  background: rgba(31, 199, 221, 0.07);
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.userMenuHead span,
.userMenuLicense span,
.userMenuLicense small,
.userMenuSection > span,
.deviceItem small {
  color: var(--muted);
}

.deviceList {
  display: grid;
  gap: 8px;
}

.deviceItem {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 8px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.deviceItem i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8d929a;
}

.deviceItem:hover {
  border-color: rgba(31, 199, 221, 0.34);
  background: rgba(31, 199, 221, 0.08);
}

.deviceItem.isLimitedLive {
  border-color: rgba(255, 190, 90, 0.24);
  background: rgba(255, 190, 90, 0.06);
}

.downloadLink,
.logoutMenuBtn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 199, 221, 0.3);
  background: rgba(31, 199, 221, 0.08);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
}

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

.deviceSettingsOverlay[hidden] {
  display: none;
}

.deviceSettingsPanel {
  width: min(720px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0b0f16;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
}

.deviceSettingsHead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deviceSettingsHead h2 {
  margin: 0;
}

.deviceSettingsForm {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.deviceSettingsForm label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.deviceSettingsForm input,
.deviceSettingsForm textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.deviceSettingsForm textarea {
  resize: vertical;
}

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

.deviceSwitchGrid label {
  min-height: 42px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.deviceSwitchGrid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--cyan);
}

.deviceSettingsMeta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.deviceSettingsMeta span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.deviceLiveWarning {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 190, 90, 0.28);
  background: rgba(255, 190, 90, 0.08);
  color: #ffd493;
}

.deviceLiveWarning strong {
  color: #ffe2ad;
}

.deviceLiveWarning span {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7c4a4;
}

.deviceSettingsActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.deviceSettingsActions button {
  min-height: 42px;
}

.deviceSettingsActions .dangerAction {
  border: 1px solid rgba(255, 90, 102, 0.45);
  background: rgba(255, 90, 102, 0.1);
  color: var(--danger);
  font-weight: 900;
}

.deviceSettingsActions .dangerAction:hover {
  border-color: rgba(255, 90, 102, 0.78);
  background: rgba(255, 90, 102, 0.16);
}

@media (max-width: 700px) {
  .deviceSwitchGrid,
  .deviceSettingsMeta,
  .managedPanelGrid,
  .managedPanelAdmin,
  .managedPanelControls {
    grid-template-columns: 1fr;
  }

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

  .deviceSettingsActions button {
    width: 100%;
  }

  .extensionHubCard {
    grid-template-columns: 48px 1fr;
  }

  .extensionHubLogo {
    width: 48px;
    height: 48px;
  }

  .extensionHubActions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .extensionHubActions a {
    width: 100%;
  }
}

.logoutMenuBtn {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.miniGold {
  min-height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #15130b;
  font-weight: 900;
}

.textAction {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.textAction.dim {
  color: var(--muted);
}

.adminLayout {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) 420px;
  grid-template-rows: 1fr;
  gap: 20px;
  height: calc(100vh - 132px);
  min-height: 0;
  overflow: auto;
  padding: 24px 20px 76px;
}

.adminLayout.isTableMode {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.sessionColumn {
  grid-row: 1 / 2;
}

.adminLayout.isTableMode .sessionColumn {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
}

.detailPanel {
  background: rgba(16, 20, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.detailPanel {
  padding: 20px;
}

.sectionTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.sectionTitle h1,
.sectionTitle h2 {
  margin: 0;
}

.sessionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.sessionCard {
  min-width: 0;
  min-height: 216px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  cursor: pointer;
}

.sessionCard.isSelected,
.sessionTable tr.isSelected {
  outline: 2px solid rgba(31, 199, 221, 0.68);
}

.cardTop {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
}

.cardTop span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cardTop > i,
.statusDot {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #287d3d;
  box-shadow: 0 0 24px rgba(45, 187, 100, 0.36);
}

.cardTop > i.isOnline,
.statusDot.isOnline,
.deviceItem i.isOnline {
  background: #287d3d;
  box-shadow: 0 0 24px rgba(45, 187, 100, 0.36);
  animation: onlinePulse 1.4s ease-in-out infinite;
}

.cardTop > i.isIdle,
.statusDot.isIdle,
.deviceItem i.isIdle {
  background: #f5b932;
  box-shadow: 0 0 24px rgba(245, 185, 50, 0.34);
  animation: idlePulse 1.8s ease-in-out infinite;
}

.cardTop > i.isTyping,
.statusDot.isTyping,
.deviceItem i.isTyping {
  background: #9b5cff;
  box-shadow: 0 0 24px rgba(155, 92, 255, 0.42);
  animation: typingPulse 1.1s ease-in-out infinite;
}

.cardTop > i.isOffline,
.statusDot.isOffline,
.deviceItem i.isOffline,
.sessionCard.isOffline .cardTop > i {
  background: #525963;
  box-shadow: none;
}

.sessionCard.isFavorite,
.sessionTable tr.isFavorite {
  border-color: rgba(255, 201, 40, 0.28);
}

.sessionFavorite {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  vertical-align: -2px;
}

.sessionFavorite svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sessionCard.isOffline {
  opacity: 0.68;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.sessionCard.isIdle {
  border-color: rgba(245, 185, 50, 0.24);
  background: linear-gradient(145deg, rgba(245, 185, 50, 0.07), rgba(255, 255, 255, 0.02));
}

.sessionCard.isTyping {
  border-color: rgba(155, 92, 255, 0.34);
  background: linear-gradient(145deg, rgba(155, 92, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.sessionCard.isWaitingPage,
.sessionTable tr.isWaitingPage {
  border-color: rgba(42, 230, 132, 0.88);
  box-shadow:
    0 0 0 2px rgba(42, 230, 132, 0.45),
    0 0 30px rgba(42, 230, 132, 0.34);
  animation: waitingPageOuterGlow 1.15s ease-in-out infinite;
}

.sessionCard.isWaitingPage {
  background:
    radial-gradient(circle at 92% 18%, rgba(42, 230, 132, 0.13), transparent 13rem),
    linear-gradient(180deg, rgba(42, 230, 132, 0.055), rgba(255, 255, 255, 0.018));
}

.liveValueLine {
  margin-top: 3px;
  padding: 7px 9px;
  border: 1px solid rgba(31, 199, 221, 0.18);
  border-radius: 9px;
  background: rgba(31, 199, 221, 0.08);
  color: #d9fbff;
  font-weight: 760;
}

.liveValueLine strong {
  color: #83ecff;
}

.sessionTable tr.isOffline {
  opacity: 0.62;
}

.sessionTable tr.isIdle {
  background: rgba(245, 185, 50, 0.05);
}

.sessionTable tr.isTyping {
  background: rgba(155, 92, 255, 0.08);
}

@keyframes onlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 187, 100, 0.45), 0 0 24px rgba(45, 187, 100, 0.36);
    transform: scale(1);
  }

  60% {
    box-shadow: 0 0 0 12px rgba(45, 187, 100, 0), 0 0 30px rgba(45, 187, 100, 0.48);
    transform: scale(1.06);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(45, 187, 100, 0), 0 0 24px rgba(45, 187, 100, 0.36);
    transform: scale(1);
  }
}

@keyframes idlePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 185, 50, 0.34), 0 0 24px rgba(245, 185, 50, 0.28);
  }

  60% {
    box-shadow: 0 0 0 10px rgba(245, 185, 50, 0), 0 0 28px rgba(245, 185, 50, 0.38);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 185, 50, 0), 0 0 24px rgba(245, 185, 50, 0.28);
  }
}

@keyframes typingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(155, 92, 255, 0.46), 0 0 24px rgba(155, 92, 255, 0.38);
    transform: scale(1);
  }

  60% {
    box-shadow: 0 0 0 12px rgba(155, 92, 255, 0), 0 0 34px rgba(155, 92, 255, 0.52);
    transform: scale(1.07);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(155, 92, 255, 0), 0 0 24px rgba(155, 92, 255, 0.38);
    transform: scale(1);
  }
}

@keyframes waitingPageOuterGlow {
  0%, 100% {
    border-color: rgba(42, 230, 132, 0.82);
    box-shadow:
      0 0 0 1px rgba(42, 230, 132, 0.34),
      0 0 18px rgba(42, 230, 132, 0.24);
  }

  48% {
    border-color: rgba(42, 230, 132, 1);
    box-shadow:
      0 0 0 3px rgba(42, 230, 132, 0.68),
      0 0 42px rgba(42, 230, 132, 0.52);
  }

  64% {
    border-color: rgba(180, 255, 211, 1);
    box-shadow:
      0 0 0 2px rgba(180, 255, 211, 0.58),
      0 0 30px rgba(42, 230, 132, 0.42);
  }
}

.typing {
  color: #b893ff;
}

.online {
  color: #00a000;
}

.idle {
  color: #f5b932;
}

.offline {
  color: #8d929a;
}

.cardLines {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  color: #7f8ba0;
  font-size: 18px;
}

.cardLines span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tokenRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tokenBtn {
  border-color: var(--cyan);
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
  min-width: 88px;
}

.qrBtn {
  min-width: 68px;
  font-weight: 900;
}

.platformIcons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  color: white;
  font-weight: 800;
}

.platformIcon {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.platformIcon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.detailHead {
  display: flex;
  gap: 14px;
  align-items: center;
}

.detailHead .statusDot {
  margin-left: 0;
}

.detailHead h2 {
  margin: 0;
  font-size: 32px;
}

.qrPreview {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 22px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080b10;
  color: var(--muted);
  overflow: hidden;
}

.qrPreview svg {
  max-width: min(280px, 92%);
  max-height: 240px;
}

.actionRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.actionRow.two {
  grid-template-columns: 1fr 1fr;
}

.ghost {
  background: #0c1119;
}

.liveLoggerBtn {
  width: 100%;
  margin: 0 0 14px;
  border-color: rgba(255, 255, 255, 0.12);
}

.liveLoggerBtn::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #687185;
  box-shadow: 0 0 0 0 rgba(104, 113, 133, 0);
  vertical-align: 1px;
}

.liveLoggerBtn.isLive {
  color: #081016;
  border-color: rgba(39, 232, 151, 0.55);
  background: linear-gradient(135deg, #27e897, #1fc7dd);
}

.liveLoggerBtn.isLive::before {
  background: #062018;
  animation: pulseLiveDot 1.2s ease-in-out infinite;
}

.liveLoggerBtn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

@keyframes pulseLiveDot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 32, 24, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(6, 32, 24, 0.18);
  }
}

.endpointBox {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

code {
  color: var(--cyan);
  word-break: break-all;
}

.logList {
  height: 205px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
}

.logItem {
  display: grid;
  grid-template-columns: minmax(90px, 110px) minmax(120px, 160px) minmax(0, 1fr) minmax(70px, 90px);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.logItem.isFavorite {
  border-color: rgba(255, 201, 40, 0.38);
  background: rgba(255, 201, 40, 0.06);
}

.logItem strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logFavorite {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
}

.logFavorite svg {
  width: 16px;
  height: 16px;
  display: block;
}

.logItem span,
.logItem code {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--muted);
}

.logItem p {
  margin: 0;
}

.logContextMenu {
  position: fixed;
  z-index: 120;
  width: 190px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0f16;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.logContextMenu[hidden] {
  display: none;
}

.logContextMenu button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.logContextMenu button:hover {
  border-color: rgba(31, 199, 221, 0.34);
  color: var(--cyan);
}

.logContextMenu .dangerAction {
  border-color: rgba(255, 90, 102, 0.34);
  color: var(--danger);
}

.sessionTable {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.adminLayout.isTableMode .sessionTable {
  height: calc(100% - 72px);
  min-height: 420px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 700;
}

.tableToken {
  min-height: 30px;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bottomBar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  min-height: 48px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 5vw, 72px);
  padding: 6px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #030405;
  font-size: clamp(14px, 1.8vw, 18px);
  overflow-x: auto;
}

.segmented {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.segmented button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
}

.segmented button.isActive {
  background: #303844;
  color: var(--text);
}

.emptyState {
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--muted);
}

.settingsOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 5, 10, 0.76);
  backdrop-filter: blur(12px);
}

.settingsOverlay[hidden] {
  display: none;
}

.settingsPanel {
  width: min(1180px, 100%);
  max-height: min(840px, calc(100vh - 56px));
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0f16;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
}

.settingsHead,
.customSiteTop,
.siteActions,
.siteStats,
.operationListItem {
  display: flex;
  align-items: center;
}

.settingsHead {
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settingsHeadActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.topSelect {
  min-height: 38px;
  max-width: 100%;
  padding: 0 36px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.settingsHead h2,
.customSiteTop h3 {
  margin: 0;
}

.customSitesList {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.settingsExtensionBox {
  padding: 18px 18px 0;
}

.extensionHubCard {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(31, 199, 221, 0.16);
  background: linear-gradient(135deg, rgba(31, 199, 221, 0.08), rgba(255, 255, 255, 0.03));
}

.extensionHubLogo {
  width: 58px;
  height: 58px;
  display: block;
  border: 1px solid rgba(31, 199, 221, 0.24);
  background: rgba(0, 0, 0, 0.24);
}

.extensionHubCard h3,
.extensionHubCard p {
  margin: 0;
}

.extensionHubCard p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

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

.extensionHubActions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 201, 40, 0.28);
  background: rgba(255, 201, 40, 0.08);
  color: var(--gold);
  text-decoration: none;
  font-weight: 900;
}

.customSiteCard {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.customSiteTop {
  justify-content: space-between;
  gap: 16px;
}

.siteActions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lockedBadge,
.warningAction {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 201, 40, 0.28);
  background: rgba(255, 201, 40, 0.08);
  color: var(--gold);
  font-weight: 900;
}

.warningAction:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.siteActions a,
.siteActions button,
.operationForm button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 199, 221, 0.34);
  background: rgba(31, 199, 221, 0.08);
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.siteActions .dangerAction {
  border-color: rgba(255, 90, 102, 0.42);
  background: rgba(255, 90, 102, 0.1);
  color: var(--danger);
}

.siteActions .dangerAction:hover {
  border-color: rgba(255, 90, 102, 0.72);
  background: rgba(255, 90, 102, 0.18);
}

.siteStats span,
.operationListItem small {
  color: var(--muted);
}

.siteStats {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.siteStats span {
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.045);
}

.customOperations h4 {
  margin: 8px 0 10px;
}

.operationList {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.operationListItem {
  justify-content: flex-start;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.operationListItem span {
  display: grid;
  gap: 4px;
}

.operationForm {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 190px minmax(220px, 1.4fr) auto;
  gap: 8px;
  align-items: stretch;
}

.operationForm input,
.operationForm select {
  min-height: 38px;
}

.operationForm textarea {
  min-height: 84px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.operationAdvancedFields,
.operationReferenceFields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(31, 199, 221, 0.14);
  background: rgba(31, 199, 221, 0.045);
}

.operationAdvancedFields textarea,
.operationAdvancedFields .checkRow,
.operationAdvancedFields .operationHelp,
.operationReferenceFields .operationHelp {
  grid-column: 1 / -1;
}

.operationAdvancedFields .checkRow {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.operationVariableTextarea {
  min-height: 106px;
}

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

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

.siteAccessControl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 199, 221, 0.16);
  background: linear-gradient(135deg, rgba(31, 199, 221, 0.07), rgba(255, 255, 255, 0.035));
}

.siteAccessControl strong,
.switchControl em {
  display: block;
  color: var(--text);
  font-style: normal;
  font-weight: 900;
}

.siteAccessControl small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.switchControl {
  width: auto;
  min-width: 126px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  cursor: pointer;
}

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

.switchControl span {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.switchControl span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.18s ease, background 0.18s ease;
}

.switchControl input:checked + span {
  border-color: rgba(31, 199, 221, 0.58);
  background: rgba(31, 199, 221, 0.22);
}

.switchControl input:checked + span::after {
  transform: translateX(22px);
  background: var(--cyan);
}

.switchControl input:focus + span {
  box-shadow: 0 0 0 3px rgba(31, 199, 221, 0.16);
}

.siteLiveChatSettings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.siteLiveChatSettings label {
  margin: 0;
  min-width: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.siteLiveChatSettings input {
  height: 36px;
  min-width: 0;
  font-size: 12px;
}

.siteLiveChatSettings button {
  min-height: 36px;
  white-space: nowrap;
}

.settingsBody {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(31, 199, 221, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(255, 201, 40, 0.08), transparent 26rem),
    #070a0f;
}

.settingsTopbar .tab {
  min-height: 72px;
}

.settingsPageLayout {
  width: min(1480px, calc(100% - 32px));
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  margin: 18px auto 72px;
}

.settingsSidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 13, 19, 0.88);
}

.settingsSidebarHead h1 {
  margin: 0;
  font-size: 30px;
}

.settingsNavItem {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.settingsNavItem span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.settingsNavItem strong {
  font-size: 15px;
}

.settingsNavItem.isActive {
  border-color: rgba(31, 199, 221, 0.38);
  background: linear-gradient(135deg, rgba(31, 199, 221, 0.12), rgba(255, 255, 255, 0.04));
}

.settingsSidebarNote {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.settingsContent {
  min-width: 0;
}

.settingsSection {
  display: none;
}

.settingsSection.isActive {
  display: grid;
  gap: 18px;
}

.settingsSectionHead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.settingsSectionHead h2 {
  margin: 0;
  font-size: 28px;
}

.settingsSectionHead p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.settingsCard {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.settingsForm {
  display: grid;
  gap: 16px;
}

.formGrid {
  display: grid;
  gap: 14px;
}

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

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

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

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

.checkRow {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.checkRow input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.settingsForm textarea {
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #090d13;
  color: var(--text);
  resize: vertical;
  outline: none;
}

.settingsForm textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(31, 199, 221, 0.13);
}

.settingsActionRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.settingsActionRow button,
.settingsActionRow a {
  min-height: 40px;
}

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

.proxyExplainerGrid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(31, 199, 221, 0.16);
  background: rgba(31, 199, 221, 0.06);
}

.proxyExplainerGrid span {
  color: var(--muted);
  line-height: 1.5;
}

.proxyStatusCard,
.proxySecretState {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.proxyStatusCard .statusDot {
  flex: 0 0 auto;
  margin-left: 0;
}

.proxyStatusCard strong,
.proxyStatusCard small {
  display: block;
}

.proxyStatusCard small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.proxySecretState {
  flex-wrap: wrap;
}

.proxyProgressCard {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 199, 221, 0.18);
  background: linear-gradient(135deg, rgba(31, 199, 221, 0.1), rgba(255, 255, 255, 0.025));
}

.proxyProgressCard.isError {
  border-color: rgba(255, 90, 102, 0.34);
  background: linear-gradient(135deg, rgba(255, 90, 102, 0.1), rgba(255, 255, 255, 0.025));
}

.proxyProgressTrack {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.24);
}

.proxyProgressTrack span {
  width: 0%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 22px rgba(31, 199, 221, 0.28);
  transition: width 0.35s ease;
}

.proxyProgressCard.isError .proxyProgressTrack span {
  background: linear-gradient(90deg, var(--danger), #ff9aa3);
}

.proxyProgressCard small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.proxySecretState span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 199, 221, 0.16);
  background: rgba(31, 199, 221, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.proxyEndpointBox code {
  white-space: normal;
  word-break: break-all;
}

.setupScriptDetails {
  display: grid;
  gap: 12px;
}

.setupScriptDetails summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 900;
}

.setupScriptPreview {
  min-height: 280px;
  max-height: 460px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #05070a;
  color: #d9e4f2;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.settingsInfoCard {
  margin: 0;
}

.settingsMiniHead {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.settingsMiniHead h3 {
  margin: 0;
  font-size: 20px;
}

.superAdminPanel {
  display: grid;
  gap: 18px;
}

.superAdminLocked p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.managedPanelsCard {
  display: grid;
  gap: 14px;
}

.managedPanelsList {
  display: grid;
  gap: 12px;
}

.managedPanelCreateForm {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 199, 221, 0.16);
  background: rgba(31, 199, 221, 0.055);
}

.managedPanelCreateForm label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.managedPanelCreateForm input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.managedPanelCreateForm .formActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.managedPanelCreateForm button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(31, 199, 221, 0.36);
  background: rgba(31, 199, 221, 0.12);
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.managedPanelCreateForm button:disabled {
  opacity: 0.58;
  cursor: progress;
}

.managedPanelCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.managedPanelHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.managedPanelHead h3 {
  margin: 0;
}

.managedPanelHead > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 199, 221, 0.24);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

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

.managedPanelGrid span,
.managedPanelAdmin span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.16);
}

.managedPanelGrid strong,
.managedPanelAdmin strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managedPanelGrid small,
.managedPanelAdmin small {
  color: var(--muted);
}

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

.managedPanelControls {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) auto minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.managedPanelControls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.managedPanelControls input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.managedPanelControls button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(31, 199, 221, 0.32);
  background: rgba(31, 199, 221, 0.1);
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.managedPanelControls button:disabled,
.panelUserActions button:disabled {
  opacity: 0.58;
  cursor: progress;
}

.managedPanelError {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 84, 112, 0.35);
  color: #ff8ea2;
  background: rgba(255, 84, 112, 0.08);
}

.managedPanelActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.managedPanelActions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 199, 221, 0.3);
  background: rgba(31, 199, 221, 0.08);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 900;
}

.panelUserCard {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.panelUserCard.isDisabled {
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.06);
}

.panelUserHead,
.auditToolbar,
.auditLogHead,
.auditLogMeta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panelUserHead,
.auditToolbar {
  justify-content: space-between;
}

.panelUserHead h3,
.auditToolbar h3 {
  margin: 0;
}

.panelUserState {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(141, 146, 154, 0.34);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.panelUserState.isEnabled {
  border-color: rgba(68, 211, 137, 0.34);
  background: rgba(68, 211, 137, 0.08);
  color: #44d389;
}

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

.panelUserStats span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
}

.panelUserStats strong {
  font-size: 18px;
}

.panelUserStats small,
.panelUserMeta,
.panelUserNote,
.auditLogMeta,
.auditLogHead small {
  color: var(--muted);
}

.panelUserMeta {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.panelUserNote {
  margin: 0;
  line-height: 1.5;
}

.panelUserActions {
  display: grid;
  grid-template-columns: 130px auto minmax(150px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.panelUserActions label,
.auditToolbar label {
  margin: 0;
}

.panelUserActions button,
.auditToolbar select {
  min-height: 38px;
}

.panelUserActions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 199, 221, 0.34);
  background: rgba(31, 199, 221, 0.08);
  color: var(--cyan);
  font-weight: 800;
  cursor: pointer;
}

.panelUserActions .dangerAction {
  border-color: rgba(255, 90, 102, 0.42);
  background: rgba(255, 90, 102, 0.1);
  color: var(--danger);
}

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

.auditLogItem {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.auditLogItem.isDeleted {
  border-color: rgba(255, 90, 102, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 102, 0.4);
  background: rgba(255, 90, 102, 0.07);
}

.auditLogHead {
  flex-wrap: wrap;
}

.auditLogHead span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(31, 199, 221, 0.24);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auditLogItem.isDeleted .auditLogHead span {
  border-color: rgba(255, 90, 102, 0.5);
  color: var(--danger);
}

.auditLogItem p {
  margin: 0;
  line-height: 1.5;
}

.auditLogMeta {
  flex-wrap: wrap;
  font-size: 12px;
}

.auditLogItem pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.24);
  color: #d9e4f2;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.operationBody {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, rgba(31, 199, 221, 0.1), transparent 24rem),
    radial-gradient(circle at 82% 82%, rgba(255, 201, 40, 0.06), transparent 28rem),
    #070a0e;
}

.operationTopbar {
  min-height: 84px;
}

.operationTopbar .tab {
  min-height: 84px;
}

.operationNavTabs {
  flex: 0 0 auto;
}

.operationActions {
  flex: 1 1 auto;
}

.operationTokenTab {
  min-width: 100px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.licenseBadge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--blue);
  font-size: 20px;
}

.licenseBadge strong {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f6ff;
  color: #0069ff;
  font-size: 15px;
}

.operationLayout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 440px;
  gap: 28px;
  padding: 48px 70px 70px;
}

.operationInfoPanel,
.operationStatusPanel,
.operationsBox,
.operationLivePanel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(34, 34, 34, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.operationInfoPanel {
  grid-column: 1 / 2;
  padding: 8px;
  font-size: 22px;
  line-height: 1.5;
}

.operationInfoPanel p,
.operationStatusPanel p {
  margin: 0 0 6px;
}

.operationInfoPanel p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
}

.operationInfoPanel span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.operationInfoPanel strong,
.operationStatusPanel strong,
.opLabel {
  color: #ffc4ff;
  font-weight: 900;
}

.operationStatusPanel {
  grid-column: 1 / 2;
  min-height: 500px;
  padding: 26px 28px 32px;
  font-size: 20px;
  line-height: 1.45;
}

.operationStatusPanel h1 {
  margin: 6px 0 24px;
  font-size: 34px;
}

.operationStatusPanel .operationStatusLine,
.operationStatusPanel #opStatus {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  line-height: 1.1;
}

.operationStatusWord {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 1000;
}

.operationStatusSlash,
.operationStatusPage {
  color: #f7f1ea;
  font-size: clamp(30px, 3.7vw, 48px);
  font-weight: 900;
}

.operationStatusDot {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-left: 14px;
}

.opQrMini {
  display: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 72px 0 8px;
  border: 8px solid #050505;
  background: #f2f2f2;
  color: #0b1017;
  overflow: hidden;
}

.opQrMini svg {
  width: 100%;
  height: 100%;
}

.operationStatusPanel > p:not(.opLabel):not(.opField) {
  margin: 8px 0 10px;
}

.operationStatusPanel .opField {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}

.operationStatusPanel .opField strong {
  flex: 0 0 auto;
}

.liveFieldsPanel {
  margin: 16px 0 30px;
}

.nextRedirectStatus {
  display: grid;
  gap: 8px;
  margin: 6px 0 18px;
  padding: 8px;
  border: 1px solid rgba(31, 199, 221, 0.18);
  background: rgba(7, 11, 16, 0.5);
}

.nextRedirectEmpty {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.nextRedirectStatus strong,
.nextRedirectMain strong {
  color: var(--text);
  font-size: 14px;
}

.nextRedirectStatus small,
.nextRedirectMain small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.nextRedirectQueue {
  display: grid;
  gap: 6px;
}

.nextRedirectItem {
  min-height: 48px;
  display: grid;
  grid-template-columns: 26px 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nextRedirectItem:hover,
.nextRedirectItem:focus-within {
  border-color: rgba(31, 199, 221, 0.35);
  background: rgba(31, 199, 221, 0.055);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nextRedirectItem.isDragging {
  opacity: 0.68;
  transform: scale(0.992);
  border-color: rgba(31, 199, 221, 0.65);
}

.nextRedirectDrag {
  width: 26px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(148, 163, 184, 0.72);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.nextRedirectItem:hover .nextRedirectDrag {
  color: var(--cyan);
}

.nextRedirectNumber {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 199, 221, 0.28);
  background: rgba(31, 199, 221, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 1000;
}

.nextRedirectMain {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.nextRedirectControls {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.46;
  transition: opacity 0.16s ease;
}

.nextRedirectItem:hover .nextRedirectControls,
.nextRedirectItem:focus-within .nextRedirectControls {
  opacity: 1;
}

.nextRedirectControls button {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.nextRedirectControls button:hover {
  border-color: rgba(31, 199, 221, 0.36);
  color: var(--cyan);
  background: rgba(31, 199, 221, 0.08);
}

.nextRedirectSteerBtn {
  min-width: 80px;
}

.nextRedirectDeleteBtn:hover {
  border-color: rgba(255, 90, 102, 0.52) !important;
  color: #ff8f9b !important;
  background: rgba(255, 90, 102, 0.1) !important;
}

.redirectQueueMenu {
  position: fixed;
  z-index: 7400;
  width: 190px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0f16;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.redirectQueueMenu button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.redirectQueueMenu button:hover {
  border-color: rgba(31, 199, 221, 0.34);
  color: var(--cyan);
}

.redirectQueueMenu .dangerAction {
  border-color: rgba(255, 90, 102, 0.32);
  color: var(--danger);
}

.operationNotice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 7000;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(31, 199, 221, 0.28);
  background: rgba(6, 12, 20, 0.96);
  color: var(--text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  font-weight: 900;
  line-height: 1.4;
}

.operationNotice[hidden] {
  display: none;
}

.operationNotice.isForce {
  border-color: rgba(255, 201, 40, 0.48);
  background: linear-gradient(135deg, rgba(80, 58, 6, 0.96), rgba(8, 13, 21, 0.98));
  color: var(--gold);
}

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

.liveFieldsHead .opLabel {
  margin: 0;
}

.liveInputSearch {
  width: min(260px, 100%);
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.liveFieldList {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.liveFieldItem,
.emptyMini {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 58px 96px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  font-size: 16px;
  line-height: 1.35;
}

.liveFieldItem strong {
  color: #ffc4ff;
  font-size: 16px;
}

.liveFieldItem span {
  color: var(--text);
  font-size: 16px;
  word-break: break-word;
}

.opCopyBtn,
.liveFieldCopyBtn {
  justify-self: end;
  min-width: 48px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(31, 199, 221, 0.34);
  border-radius: 9px;
  background: rgba(31, 199, 221, 0.1);
  color: #7be8ff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.opCopyBtn:hover,
.liveFieldCopyBtn:hover {
  border-color: rgba(31, 199, 221, 0.62);
  background: rgba(31, 199, 221, 0.18);
}

.liveFieldCopySlot {
  display: block;
  width: 48px;
  min-height: 1px;
}

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

.liveFileLink {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(31, 199, 221, 0.26);
  background: rgba(31, 199, 221, 0.1);
  color: #7be8ff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.liveFileLink:hover {
  border-color: rgba(31, 199, 221, 0.54);
  background: rgba(31, 199, 221, 0.16);
}

.liveFileValue small {
  color: var(--muted);
  text-align: left;
  word-break: break-word;
}

.liveFieldImageWrap {
  display: block;
  max-width: 280px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.liveFieldImage {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.liveFieldItem small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.liveFieldItem .liveFileValue small {
  text-align: left;
}

.emptyMini {
  grid-template-columns: 1fr;
  min-height: 74px;
  align-content: center;
  color: var(--muted);
}

.builderBody {
  min-height: 100vh;
  overflow: hidden;
}

.builderTopbar {
  height: 72px;
}

.builderTopbar .tab {
  height: 72px;
}

.builderLayout {
  display: grid;
  grid-template-columns: 300px minmax(520px, 1fr) 320px;
  height: calc(100vh - 72px);
  min-height: 0;
}

.builderSidebar,
.builderSettings {
  min-height: 0;
  overflow: auto;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 13, 18, 0.94);
}

.builderSettings {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.siteList,
.pageList {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
}

.siteList button,
.pageList button {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: 56px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
}

.siteList button.isActive,
.pageList button.isActive {
  border-color: var(--cyan);
  color: var(--cyan);
}

.siteList span,
.pageList span,
.hintText {
  color: var(--muted);
  font-size: 13px;
}

.builderFields {
  margin: 18px 0;
}

.builderGap {
  margin-top: 22px;
}

.builderCanvasColumn {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #070a0e;
}

.builderToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 17, 0.94);
}

.builderToolbar button,
.componentPalette button,
.componentPalette [role="button"] {
  min-height: 34px;
  padding: 0 12px;
}

.builderToolGroup,
.componentPalette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.componentPalette {
  flex: 1 1 100%;
}

.componentPalette [role="button"] {
  display: grid;
  place-items: center;
  border-color: rgba(31, 199, 221, 0.28);
  background: rgba(31, 199, 221, 0.08);
  border: 1px solid rgba(31, 199, 221, 0.28);
  color: var(--text);
  cursor: grab;
  user-select: none;
}

.componentPalette [role="button"]:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.builderDragging .builderCanvasShell {
  box-shadow: inset 0 0 0 3px rgba(31, 199, 221, 0.48);
}

.dragGhost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid var(--cyan);
  background: rgba(11, 18, 26, 0.94);
  color: var(--cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-weight: 900;
}

.dropOverlay {
  position: fixed;
  z-index: 9998;
  border: 2px dashed var(--cyan);
  background: rgba(31, 199, 221, 0.04);
}

.builderToolGroup button.isActive {
  border-color: var(--cyan);
  color: var(--cyan);
}

.builderCanvasShell {
  min-height: 0;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  overflow: auto;
  background: #10151d;
}

#builderFrame {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #fff;
}

.builderCanvasShell[data-device="tablet"],
.builderCanvasShell[data-device="mobile"] {
  padding: 18px;
  align-items: stretch;
  justify-items: center;
}

.builderCanvasShell[data-device="tablet"] #builderFrame {
  width: min(768px, 100%);
  max-width: 768px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.builderCanvasShell[data-device="mobile"] #builderFrame {
  width: min(390px, 100%);
  max-width: 390px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

#siteCssInput {
  min-height: 280px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.45;
}

.builderInspector {
  margin: 20px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.selectedTag {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 199, 221, 0.22);
  background: rgba(31, 199, 221, 0.08);
  color: var(--cyan);
  font-weight: 800;
}

#propTextInput {
  min-height: 90px;
  padding: 12px;
}

.layerTree {
  display: grid;
  gap: 6px;
}

.layerTree button {
  justify-content: start;
  min-height: 36px;
  text-align: left;
  color: var(--muted);
}

.layerTree button.isActive {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(31, 199, 221, 0.08);
}

.operationsBox {
  grid-column: 1 / 2;
  padding: 22px 24px 24px;
  background: transparent;
  border-style: dotted;
  display: grid;
  gap: 24px;
}

.operationsBox h2 {
  margin: 0;
  font-size: 30px;
}

.operationSection {
  display: grid;
  gap: 14px;
}

.operationCustomSection {
  padding: 16px;
  border: 1px solid rgba(31, 199, 221, 0.26);
  background: rgba(31, 199, 221, 0.045);
}

.operationFolderSection {
  border-color: rgba(255, 201, 40, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.07), rgba(31, 199, 221, 0.055)),
    rgba(255, 255, 255, 0.015);
}

.operationSiteSection {
  border-color: rgba(31, 199, 221, 0.26);
}

.operationSectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.operationSectionHead .eyebrow {
  margin: 0;
}

.operationScopeTag {
  min-height: 28px;
  max-width: min(360px, 46vw);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 201, 40, 0.28);
  background: rgba(255, 201, 40, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operationGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px 16px;
}

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

.operationBtn {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(10, 12, 16, 0.9);
  font-size: 22px;
}

.operationBtn small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.operationBtn.isCustom {
  border-color: rgba(31, 199, 221, 0.76);
  background: linear-gradient(135deg, rgba(31, 199, 221, 0.12), rgba(255, 201, 40, 0.08));
}

.operationBtn:hover {
  color: var(--cyan);
}

.operationRedirectPair {
  display: grid;
  gap: 0;
}

.operationRedirectPair .operationBtn {
  width: 100%;
  transition: border-radius 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.operationRedirectPair.isForceOpen .operationBtn {
  border-color: rgba(255, 78, 78, 0.72);
  border-radius: 8px 8px 4px 4px;
  transform: translateY(-1px);
}

.operationForceTray[hidden] {
  display: none !important;
}

.operationForceTray {
  display: grid;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  padding: 0 10px;
  border: 1px solid rgba(255, 78, 78, 0);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 78, 78, 0.08);
  box-shadow: 0 16px 32px rgba(255, 78, 78, 0);
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    padding 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.operationRedirectPair.isForceOpen .operationForceTray {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  padding: 10px;
  border-color: rgba(255, 78, 78, 0.62);
  box-shadow: 0 18px 38px rgba(255, 78, 78, 0.16);
}

.operationRedirectPair.isForceClosing .operationForceTray {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  padding: 0 10px;
  pointer-events: none;
}

.operationForceTray p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #ffd2d2;
  font-size: 11px;
  line-height: 1.35;
}

.operationForceTray p strong {
  color: #ffffff;
  font-size: 12px;
}

.operationForceTray p span {
  color: #ffb4b4;
}

.operationForceBtn {
  min-height: 34px;
  border: 1px solid rgba(255, 78, 78, 0.72);
  border-radius: 8px;
  background: rgba(255, 78, 78, 0.12);
  color: #ffb4b4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.operationForceBtn:hover {
  border-color: rgba(255, 78, 78, 0.95);
  background: rgba(255, 78, 78, 0.2);
  color: #ffffff;
}

.operationBtn.isToggleOperation {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
  cursor: default;
}

.operationBtn.isToggleOperation > span,
.operationBtn.isToggleOperation > small {
  grid-column: 1 / 2;
}

.operationSwitch {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 48px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

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

.operationSwitch i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.operationSwitch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.16s ease, background 0.16s ease;
}

.operationSwitch input:checked + i {
  border-color: rgba(31, 199, 221, 0.5);
  background: rgba(31, 199, 221, 0.24);
}

.operationSwitch input:checked + i::after {
  transform: translateX(20px);
  background: var(--cyan);
}

.operationLivePanel {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  padding: 22px;
}

.operationLivePanel .qrPreview {
  min-height: 360px;
}

.operationLivePanel button {
  width: 100%;
}

.operationLivePanel .liveLoggerBtn {
  margin-top: 10px;
}

.operationChatPanel {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.operationChatHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operationChatHead h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.chatStatePill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.chatStatePill.isEnabled {
  border-color: rgba(45, 187, 100, 0.34);
  background: rgba(45, 187, 100, 0.12);
  color: #98f7bb;
}

.operationChatMessages {
  min-height: 180px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 5, 10, 0.24);
}

.chatBubble {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.chatBubble.isOperator {
  justify-content: flex-end;
}

.chatAvatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.chatBubbleBody {
  width: fit-content;
  max-width: calc(100% - 42px);
  display: grid;
  gap: 4px;
}

.chatBubble.isOperator .chatBubbleBody {
  max-width: 84%;
}

.chatBubbleBody > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.chatBubbleBody small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.chatBubbleBody p {
  margin: 0;
  padding: 13px 15px;
  border-radius: 14px 18px 18px 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 15px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.chatBubble.isOperator .chatBubbleBody p {
  border-radius: 18px 18px 0 18px;
  background: rgba(31, 199, 221, 0.15);
  border: 1px solid rgba(31, 199, 221, 0.22);
}

.operationChatForm {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 10px;
  margin: 0;
  padding-top: 2px;
}

.operationChatForm textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 13, 19, 0.92);
  color: var(--text);
  resize: vertical;
  outline: none;
  font-size: 15px;
}

.operationChatForm textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(31, 199, 221, 0.13);
}

.operationChatForm button {
  width: auto;
  min-width: 62px;
  height: 56px;
  padding: 0;
  border-radius: 999px;
  background: #030303;
  color: transparent;
  position: relative;
}

.operationChatForm button::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
  clip-path: polygon(6% 0, 100% 50%, 6% 100%, 24% 58%, 54% 50%, 24% 42%);
  background: #fff;
}

.operationChatForm button:disabled,
.operationChatForm textarea:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.operationQrModal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(14px);
}

.operationQrModal[hidden] {
  display: none !important;
}

.operationQrDialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(24, 29, 38, 0.96), rgba(10, 13, 18, 0.98)),
    #0d1118;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
}

.operationQrDialog .qrPreview {
  min-height: 300px;
  margin: 18px 0;
}

.operationQrDialog label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.operationQrDialog input {
  min-height: 44px;
}

.operationQrDialog select {
  min-height: 44px;
}

.operationQrDialog textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.operationMemoDialog {
  width: min(520px, 100%);
}

.operationFlowDialog {
  width: min(680px, 100%);
}

.flowSummaryText {
  margin: 14px 0 2px;
  color: var(--muted);
  line-height: 1.5;
}

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

.operationFlowVariables {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(31, 199, 221, 0.16);
  background: rgba(31, 199, 221, 0.055);
}

.flowVariablesHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 900;
}

.flowVariablesHead small {
  color: var(--muted);
  font-weight: 800;
}

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

.operationQrDialog .actionRow {
  margin-top: 14px;
}

.operationQrDialog .liveLoggerBtn {
  margin-top: 0;
}

.modalCloseBtn {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
}

.activationBody {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 199, 221, 0.18), transparent 30rem),
    #080b10;
}

.activationShell {
  width: min(520px, 100%);
}

.activationHeader {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.activationHeader h1 {
  margin: 0;
}

.activationPanel {
  padding: 26px;
  background: rgba(18, 23, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.activationLead {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.6;
}

.activationQr {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: #f6f8fb;
  color: #0b1017;
  border: 10px solid #fff;
}

.activationQr svg {
  max-width: 100%;
  max-height: 330px;
}

.activationState {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
}

/* Professional density: built-in 90% feel without browser zoom side effects. */
.adminBody,
.settingsBody,
.operationBody,
.builderBody {
  font-size: 14.4px;
}

.topbar {
  min-height: 76px;
}

.topbarBrand {
  min-width: 190px;
  gap: 10px;
  padding: 0 18px;
}

.brandMark,
.userAvatar {
  width: 38px;
  height: 38px;
}

.tab {
  min-width: 82px;
  min-height: 76px;
  padding: 0 12px;
  font-size: 18px;
}

.topbarProfile {
  padding: 0 16px;
}

.metaBar {
  gap: 10px;
  padding: 9px 22px;
  font-size: 14px;
}

.sessionPill,
.topAction,
.userMenuBtn {
  min-height: 34px;
  padding: 0 11px;
}

.userMenuBtn {
  height: 48px;
  padding-left: 7px;
}

.adminLayout {
  grid-template-columns: minmax(440px, 1fr) 390px;
  gap: 18px;
  height: calc(100vh - 118px);
  padding: 20px 18px 68px;
}

.detailPanel {
  padding: 18px;
}

.sectionTitle {
  margin-bottom: 18px;
}

.sectionTitle h1 {
  font-size: 34px;
}

.sessionGrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 315px), 1fr));
  gap: 16px;
}

.sessionCard {
  min-height: 194px;
  padding: 19px;
}

.cardTop {
  gap: 10px;
  font-size: 18px;
}

.cardTop > i,
.statusDot {
  width: 25px;
  height: 25px;
}

.cardLines {
  gap: 7px;
  margin: 20px 0;
  font-size: 16px;
}

.tokenBtn {
  min-width: 80px;
  font-size: 18px;
}

.qrBtn {
  min-width: 62px;
}

.platformIcons {
  gap: 12px;
}

.platformIcon {
  min-width: 30px;
  height: 30px;
}

.platformIcon svg {
  width: 20px;
  height: 20px;
}

.detailHead h2 {
  font-size: 29px;
}

.qrPreview {
  min-height: 234px;
  margin: 18px 0;
}

.qrPreview svg {
  max-height: 216px;
}

input,
select {
  height: 40px;
  padding: 0 12px;
}

button,
.launchBtn {
  min-height: 36px;
  padding: 0 14px;
}

.actionRow {
  gap: 7px;
  margin: 10px 0;
}

.endpointBox {
  margin-top: 14px;
  padding: 12px;
}

.bottomBar {
  min-height: 43px;
  padding: 5px 18px;
  font-size: clamp(13px, 1.6vw, 16px);
}

.segmented button {
  min-height: 31px;
}

.settingsTopbar .tab {
  min-height: 65px;
}

.settingsPageLayout {
  width: min(1640px, calc(100% - 28px));
  min-height: calc(100vh - 94px);
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  margin: 16px auto 64px;
}

.settingsSidebar {
  top: 82px;
  gap: 9px;
  padding: 16px;
}

.settingsSidebarHead h1 {
  font-size: 27px;
}

.settingsNavItem {
  padding: 12px;
}

.operationTopbar,
.operationTopbar .tab {
  min-height: 76px;
}

.operationLayout {
  grid-template-columns: minmax(504px, 1fr) 396px;
  gap: 25px;
  padding: 43px 63px 63px;
}

.operationInfoPanel {
  font-size: 20px;
}

.operationStatusPanel {
  min-height: 450px;
  padding: 23px 25px 29px;
  font-size: 18px;
}

.operationStatusWord {
  font-size: clamp(31px, 3.8vw, 47px);
}

.operationStatusSlash,
.operationStatusPage {
  font-size: clamp(28px, 3.35vw, 43px);
}

.operationStatusDot {
  width: 34px;
  height: 34px;
}

.operationLivePanel .qrPreview,
.operationQrDialog .qrPreview {
  min-height: 270px;
}

.builderTopbar,
.builderTopbar .tab {
  height: 65px;
  min-height: 65px;
}

.builderLayout {
  grid-template-columns: 270px minmax(480px, 1fr) 288px;
  height: calc(100vh - 65px);
}

.builderSidebar,
.builderSettings {
  padding: 18px;
}

/* Operation desk density pass: same calm overview as 90% browser zoom. */
.operationLayout {
  grid-template-columns: minmax(460px, 1fr) 360px;
  gap: 18px;
  padding: 28px 42px 58px;
}

.operationInfoPanel {
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.42;
}

.operationInfoPanel p,
.operationStatusPanel p {
  margin-bottom: 4px;
}

.operationStatusPanel {
  min-height: 0;
  padding: 18px 20px 22px;
  font-size: 16px;
}

.operationStatusPanel h1 {
  margin: 4px 0 16px;
}

.operationStatusPanel #opStatus {
  gap: 8px;
}

.operationStatusWord {
  font-size: clamp(28px, 3.15vw, 40px);
}

.operationStatusSlash,
.operationStatusPage {
  font-size: clamp(25px, 2.85vw, 36px);
}

.operationStatusDot {
  width: 28px;
  height: 28px;
  margin-left: 6px;
}

.liveFieldsPanel {
  margin: 12px 0 18px;
}

.liveFieldsHead {
  margin-bottom: 8px;
}

.liveInputSearch {
  min-height: 32px;
}

.liveFieldList {
  max-height: 430px;
  gap: 9px;
}

.liveFieldItem,
.emptyMini {
  grid-template-columns: 170px minmax(0, 1fr) 54px 82px;
  gap: 10px;
  min-height: 0;
  padding: 12px 14px;
  font-size: 15px;
}

.liveFieldItem strong,
.liveFieldItem span {
  font-size: 15px;
}

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

.operationStatusPanel .opField {
  margin-bottom: 8px;
}

.operationsBox {
  gap: 16px;
  padding: 16px 18px 18px;
}

.operationsBox h2 {
  font-size: 24px;
}

.operationSection {
  gap: 10px;
}

.operationSectionHead {
  align-items: flex-start;
}

.operationScopeTag {
  max-width: 100%;
  min-height: 24px;
  font-size: 10px;
}

.operationCustomSection {
  padding: 12px;
}

.operationGrid {
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

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

.operationBtn {
  min-height: 52px;
  gap: 2px;
  padding: 6px 8px;
  font-size: 17px;
}

.operationBtn small {
  font-size: 10px;
}

.operationLivePanel {
  padding: 18px;
}

.operationLivePanel .detailHead {
  gap: 10px;
}

.operationLivePanel .detailHead h2 {
  font-size: 28px;
}

.operationLivePanel .qrPreview {
  min-height: 250px;
  margin: 16px 0;
}

.operationLivePanel .qrPreview svg {
  max-height: 226px;
}

.operationLivePanel .liveLoggerBtn {
  margin-top: 8px;
}

.operationQrDialog {
  width: min(500px, 100%);
  padding: 20px;
}

.operationFlowDialog {
  width: min(620px, 100%);
}

.operationQrDialog .qrPreview {
  min-height: 250px;
  margin: 14px 0;
}

.operationQrDialog textarea {
  min-height: 118px;
}

@media (max-width: 1320px) {
  .siteAccessControls,
  .siteLiveChatSettings {
    grid-template-columns: 1fr;
  }

  .siteLiveChatSettings button {
    width: 100%;
  }

  .topbar {
    min-height: 72px;
  }

  .topbarBrand {
    min-width: 176px;
    padding: 0 14px;
  }

  .brandMark,
  .userAvatar {
    width: 36px;
    height: 36px;
  }

  .tab,
  .operationTopbar .tab {
    min-width: 72px;
    min-height: 72px;
    padding: 0 10px;
    font-size: 16px;
  }

  .metaBar {
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .sessionPill,
  .topAction,
  .userMenuBtn {
    min-height: 34px;
    padding: 0 9px;
  }

  .sessionPill strong {
    max-width: 110px;
  }

  .userMenuBtn {
    height: 46px;
  }

  .topbarProfile {
    padding: 0 12px;
  }
}

@media (max-width: 1100px) {
  .loginShell,
  .adminLayout,
  .settingsPageLayout,
  .operationLayout {
    grid-template-columns: 1fr;
  }

  .settingsSidebar {
    position: static;
  }

  .settingsSectionHead {
    flex-direction: column;
  }

  .formGrid.two,
  .formGrid.three,
  .formGrid.four,
  .proxyExplainerGrid,
  .panelUsersList,
  .managedPanelGrid,
  .managedPanelAdmin,
  .managedPanelControls {
    grid-template-columns: 1fr;
  }

  .detailPanel,
  .logPanel,
  .operationInfoPanel,
  .operationStatusPanel,
  .operationsBox,
  .operationLivePanel {
    grid-column: auto;
    grid-row: auto;
  }

  .topbar {
    height: auto;
    flex-wrap: wrap;
  }

  .adminBody .topbar,
  .operationBody .topbar {
    min-height: 68px;
    flex-wrap: nowrap;
  }

  .metaBar {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 14px;
  }

  .bottomBar {
    height: auto;
    flex-wrap: wrap;
  }

  .adminLayout {
    height: auto;
    min-height: calc(100vh - 150px);
    padding-bottom: 108px;
  }

  .operationLayout {
    padding: 28px 18px 48px;
  }

  .operationGrid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

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

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

  .operationsBox h2 {
    margin-top: 0;
  }

  .operationStatusDot {
    width: 30px;
    height: 30px;
    margin-left: 4px;
  }
}

@media (max-width: 720px) {
  .topbarBrand {
    width: 100%;
    min-height: 58px;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .adminBody .topbarBrand,
  .operationBody .topbarBrand {
    width: auto;
    min-width: 112px;
    min-height: 58px;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
  }

  .adminBody .topbarBrand strong,
  .operationBody .topbarBrand strong {
    font-size: 14px;
  }

  .adminBody .topbarBrand span,
  .operationBody .topbarBrand span,
  .adminBody .userMenuBtn > span:last-child,
  .operationBody .userMenuBtn > span:last-child {
    display: none;
  }

  .navTabs {
    width: 100%;
    flex: 1 1 100%;
  }

  .adminBody .navTabs,
  .operationBody .navTabs {
    width: auto;
    flex: 1 1 auto;
  }

  .tab,
  .operationTopbar .tab {
    min-width: 72px;
    min-height: 52px;
    font-size: 14px;
  }

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

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

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

  .metaBar {
    padding: 8px 10px;
    gap: 8px;
  }

  .sessionPill {
    flex: 1 1 130px;
  }

  .sessionPill strong {
    max-width: 100px;
  }

  .topAction,
  .miniGold,
  .opCopyBtn {
    min-height: 32px;
  }

  .userMenuWrap {
    flex: 1 1 100%;
  }

  .topbarProfile .userMenuWrap {
    flex: 0 0 auto;
  }

  .userMenuBtn {
    width: 100%;
    height: 44px;
    justify-content: flex-start;
  }

  .topbarProfile .userMenuBtn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .topbarProfile {
    padding: 0 8px;
  }

  .adminLayout {
    padding: 14px 12px 126px;
  }

  .settingsPageLayout {
    width: calc(100% - 20px);
    margin: 12px auto 32px;
  }

  .settingsSidebar,
  .settingsSectionHead,
  .settingsCard {
    padding: 14px;
  }

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

  .operationAdvancedFields,
  .flowControlGrid,
  .flowVariableGrid {
    grid-template-columns: 1fr;
  }

  .customSiteTop,
  .siteActions,
  .settingsActionRow {
    align-items: stretch;
    flex-direction: column;
  }

  .siteActions a,
  .siteActions button,
  .settingsActionRow a,
  .settingsActionRow button,
  .topSelect {
    width: 100%;
  }

  .sectionTitle {
    flex-wrap: wrap;
    gap: 10px;
  }

  .bottomBar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .segmented button {
    min-height: 30px;
    padding: 0 8px;
  }

  .operationLayout {
    padding: 18px 10px 34px;
  }

  .operationInfoPanel {
    font-size: 16px;
  }

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

  .liveInputSearch {
    width: 100%;
  }

  .liveFieldItem,
  .logItem {
    grid-template-columns: 1fr;
  }

  .liveFieldItem small,
  .logItem code {
    text-align: left;
  }

  .liveFieldCopyBtn {
    justify-self: start;
  }

  .liveFieldCopySlot {
    display: none;
  }
}
