
/* Grand Opening UX — calm path, powerful house */
.clarity-ux-fab {
  position: fixed;
  right: 14px;
  bottom: 56px;
  z-index: 99992;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(212, 180, 90, 0.65);
  background: linear-gradient(145deg, #0d4f3c, #1a6b52);
  color: #f0e6c8;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.clarity-ux-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(13, 79, 60, 0.45);
}
.clarity-ux-fab.is-focus {
  background: linear-gradient(145deg, #2a2040, #1a6b52);
  border-color: #d4b45a;
}

/* Compass palette */
.clarity-ux-compass {
  position: fixed;
  inset: 0;
  z-index: 100120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}
.clarity-ux-compass.show {
  display: flex !important;
}
.cux-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 12, 0.72);
  backdrop-filter: blur(12px);
}
.cux-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: linear-gradient(165deg, #f7f4ee, #eef5f2);
  color: #1a2820;
  border-radius: 16px;
  border: 2px solid #0d4f3c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 0.85rem 0.9rem 0.75rem;
}
html[data-theme="dark"] .cux-panel {
  background: linear-gradient(165deg, #121a18, #0e1614);
  color: #e8f0ec;
}
.cux-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}
.cux-kicker {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d4f3c;
}
html[data-theme="dark"] .cux-kicker {
  color: #d4b45a;
}
.cux-keys {
  opacity: 0.65;
}
.cux-q {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 79, 60, 0.3);
  background: #fff;
  margin-bottom: 0.45rem;
}
html[data-theme="dark"] .cux-q {
  background: #152019;
  color: #e7efe9;
  border-color: rgba(212, 180, 90, 0.3);
}
.cux-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 50vh;
  overflow: auto;
}
.cux-item {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cux-item:hover,
.cux-item:focus {
  background: rgba(13, 79, 60, 0.1);
  border-color: rgba(13, 79, 60, 0.25);
}
.cux-label {
  font-weight: 700;
  font-size: 0.9rem;
}
.cux-hint {
  font-size: 0.72rem;
  opacity: 0.75;
}
.cux-foot {
  font-size: 0.68rem;
  opacity: 0.65;
  margin: 0.55rem 0 0;
}

/* Help / house map */
.clarity-ux-help {
  position: fixed;
  inset: 0;
  z-index: 100130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.clarity-ux-help.show {
  display: flex !important;
}
.cuh-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 16, 0.8);
  backdrop-filter: blur(12px);
}
.cuh-panel {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  background: linear-gradient(165deg, #f8f5ef, #eef6f2);
  color: #1a2820;
  border-radius: 16px;
  border: 2px solid #c9a227;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 1.15rem 1.2rem;
}
html[data-theme="dark"] .cuh-panel {
  background: linear-gradient(165deg, #141c18, #101816);
  color: #e8f0ec;
}
.cuh-x {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  color: inherit;
}
.cuh-stamp {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.5rem;
  border: 2px solid #c9a227;
  color: #8a7020;
  transform: rotate(-3deg);
  margin-bottom: 0.4rem;
}
.cuh-steps {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.cuh-steps li {
  margin: 0.4rem 0;
}

/* Density & focus */
.ux-hall-dim {
  opacity: 0.35 !important;
  transform: scale(0.92);
  pointer-events: none;
}
html[data-ux-focus="1"] .clarity-security-badge,
html[data-ux-focus="1"] .clarity-vault-badge,
html[data-ux-focus="1"] .clarity-om-vein,
html[data-ux-focus="1"] .clarity-chancellor-crest {
  opacity: 0.2 !important;
  pointer-events: none;
}
html[data-ux-density="minimal"] .clarity-gate-switcher.ux-gate-calm .cgs-btn:not(.cgs-seeker):not(.cgs-reset) {
  opacity: 0.55;
}
.ux-float-dim {
  opacity: 0.25 !important;
  pointer-events: none;
}

.clarity-ux-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(12px);
  z-index: 99993;
  max-width: 90vw;
  background: rgba(13, 79, 60, 0.95);
  color: #f0e6c8;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(212, 180, 90, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}
.clarity-ux-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Slightly calmer sticky stack breathing room */
html[data-ux-density="minimal"] #clarity-phase-plaque-rail,
html[data-ux-density="minimal"] #clarity-name-plaque-rail {
  opacity: 0.95;
}
