/* Theme studio — Settings → Theme page polish (all themes) */

.hop-theme-studio {
  max-width: 58rem;
  margin: 0 auto;
}

.hop-theme-studio-intro {
  margin: 0 0 1.35rem;
  max-width: 36rem;
}
.hop-theme-studio-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.hop-theme-studio-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.78;
}

/* —— Theme cards —— */
.hop-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 720px) {
  .hop-theme-grid { grid-template-columns: 1fr; }
}

.hop-theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(127, 127, 127, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}
.hop-theme-card:hover {
  border-color: rgba(127, 127, 127, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.hop-theme-card.is-active {
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor, 0 12px 32px rgba(0, 0, 0, 0.1);
}
.hop-theme-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.hop-theme-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.hop-theme-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.hop-theme-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.hop-theme-card p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  opacity: 0.68;
}
.hop-theme-chip {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.14);
  opacity: 0.85;
}
.hop-theme-chip--rec {
  background: rgba(201, 162, 39, 0.18);
  color: #A8861F;
}
.hop-theme-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: #C9A227;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.hop-theme-dots {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.hop-theme-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Mini UI preview */
.hop-theme-swatch {
  height: 88px;
  border-radius: 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid rgba(127, 127, 127, 0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 26% 1fr;
  position: relative;
}
.hop-theme-swatch-side { background: #05070c; }
.hop-theme-swatch-main {
  background: linear-gradient(180deg, #0a0e18, #0e1524);
  position: relative;
  padding: 10px 12px;
}
.hop-theme-swatch-main::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 12px;
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.hop-theme-swatch-main::after {
  content: "";
  position: absolute;
  left: 12px; width: 42%; top: 28px; height: 28px;
  border-radius: 5px;
  background: rgba(37, 224, 255, 0.22);
  box-shadow: 48px 0 0 rgba(255, 255, 255, 0.08);
}

.hop-theme-swatch--bright .hop-theme-swatch-side { background: #0f2744; }
.hop-theme-swatch--bright .hop-theme-swatch-main { background: #f4f7fb; }
.hop-theme-swatch--bright .hop-theme-swatch-main::before { background: rgba(15, 39, 68, 0.12); }
.hop-theme-swatch--bright .hop-theme-swatch-main::after {
  background: rgba(13, 148, 136, 0.35);
  box-shadow: 48px 0 0 rgba(15, 39, 68, 0.08);
}

.hop-theme-swatch--emerald .hop-theme-swatch-side { background: #123C32; }
.hop-theme-swatch--emerald .hop-theme-swatch-main { background: #F8F4EA; }
.hop-theme-swatch--emerald .hop-theme-swatch-main::before { background: rgba(31, 31, 31, 0.1); }
.hop-theme-swatch--emerald .hop-theme-swatch-main::after {
  background: rgba(201, 162, 39, 0.45);
  box-shadow: 48px 0 0 rgba(222, 211, 190, 0.7);
}

.hop-theme-swatch--custom .hop-theme-swatch-side { background: var(--hop-c-sidebar, #123C32); }
.hop-theme-swatch--custom .hop-theme-swatch-main { background: var(--hop-c-bg, #F8F4EA); }
.hop-theme-swatch--custom .hop-theme-swatch-main::before { background: rgba(31, 31, 31, 0.1); }
.hop-theme-swatch--custom .hop-theme-swatch-main::after {
  background: var(--hop-c-accent, #C9A227);
  opacity: 0.75;
  box-shadow: 48px 0 0 var(--hop-c-border, #DED3BE);
}

.hop-theme-swatch--luxury .hop-theme-swatch-main::before { background: rgba(31, 31, 31, 0.1); }
.hop-theme-swatch--luxury .hop-theme-swatch-main::after {
  background: rgba(198, 161, 91, 0.55);
  box-shadow: 48px 0 0 rgba(184, 177, 167, 0.65);
}

.hop-theme-grid--luxury {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.hop-theme-luxury-block .hop-theme-card h3 {
  font-size: 0.88rem;
}

/* —— Custom builder panel —— */
.hop-custom-theme-panel {
  margin-top: 1.5rem;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px !important;
  max-width: none !important;
}
.hop-custom-panel-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
}
.hop-custom-panel-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 650;
}
.hop-custom-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.72;
  max-width: 28rem;
}

.hop-custom-panel-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 0;
}
@media (max-width: 800px) {
  .hop-custom-panel-layout { grid-template-columns: 1fr; }
}

.hop-custom-live {
  padding: 16px;
  border-right: 1px solid rgba(127, 127, 127, 0.14);
  background: rgba(127, 127, 127, 0.04);
}
@media (max-width: 800px) {
  .hop-custom-live {
    border-right: none;
    border-bottom: 1px solid rgba(127, 127, 127, 0.14);
  }
}
.hop-custom-live-label {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 10px;
}
.hop-custom-live-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(127, 127, 127, 0.2);
  display: grid;
  grid-template-columns: 34% 1fr;
  min-height: 148px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.hop-custom-live-nav {
  background: var(--hop-preview-sidebar, #123C32);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hop-custom-live-nav span {
  display: block;
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}
.hop-custom-live-nav span:nth-child(1) { width: 70%; opacity: 0.9; }
.hop-custom-live-nav span:nth-child(2) { width: 88%; }
.hop-custom-live-nav span:nth-child(3) { width: 55%; opacity: 0.55; }
.hop-custom-live-nav span.is-active {
  background: var(--hop-preview-accent, #C9A227);
  opacity: 1 !important;
  width: 80%;
}
.hop-custom-live-main {
  background: var(--hop-preview-bg, #F8F4EA);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hop-custom-live-bar {
  height: 8px;
  width: 55%;
  border-radius: 3px;
  background: var(--hop-preview-text, #1F1F1F);
  opacity: 0.35;
}
.hop-custom-live-card {
  flex: 1;
  border-radius: 6px;
  background: var(--hop-preview-card, #fff);
  border: 1px solid var(--hop-preview-border, #DED3BE);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hop-custom-live-card i {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: var(--hop-preview-muted, #6B6254);
  opacity: 0.45;
  font-style: normal;
}
.hop-custom-live-card i:nth-child(1) { width: 70%; }
.hop-custom-live-card i:nth-child(2) { width: 90%; }
.hop-custom-live-btn {
  align-self: flex-start;
  margin-top: auto;
  height: 16px;
  width: 48px;
  border-radius: 4px;
  background: var(--hop-preview-accent, #C9A227);
}

.hop-custom-panel-controls {
  padding: 16px 18px 18px;
}

.hop-custom-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.hop-custom-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #DED3BE;
  background: #ffffff;
  color: #1F1F1F !important;
  cursor: pointer;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hop-custom-preset-btn:hover {
  border-color: #C9A227;
  background: #FBF7EE;
}
.hop-custom-preset-label {
  color: #1F1F1F !important;
  opacity: 1 !important;
  white-space: nowrap;
}
.hop-custom-preset-swatches {
  display: inline-flex;
  gap: 3px;
}
.hop-custom-preset-swatches i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-style: normal;
}

.hop-custom-section-label {
  margin: 0 0 10px;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.hop-custom-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.hop-custom-color-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.18);
  background: rgba(127, 127, 127, 0.04);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hop-custom-color-field:hover {
  border-color: rgba(127, 127, 127, 0.35);
  background: rgba(127, 127, 127, 0.07);
}
.hop-custom-color-field > span:first-child {
  opacity: 0.75;
}
.hop-custom-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hop-custom-color-row input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.hop-custom-color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.hop-custom-color-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}
.hop-custom-color-row input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}
.hop-custom-color-row input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  background: rgba(255, 255, 255, 0.35);
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hop-custom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(127, 127, 127, 0.14);
}

.hop-custom-studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  min-height: 28px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #DED3BE;
  background: #ffffff;
  color: #1F1F1F;
  line-height: 1;
}
.hop-custom-studio-btn--primary {
  background: #C9A227;
  border-color: #C9A227;
  color: #ffffff;
}
.hop-custom-studio-btn--primary:hover {
  background: #A8861F;
  border-color: #A8861F;
}
.hop-custom-studio-btn--ghost {
  background: #ffffff;
  color: #3F3A32;
}
.hop-custom-studio-btn--ghost:hover {
  background: #F5EFE0;
  border-color: #C9A227;
}

.hop-custom-theme-panel--modal .hop-custom-panel-head .hop-custom-studio-btn {
  flex-shrink: 0;
}

/* Light theme surfaces */
html[data-hop-theme="bright"] .hop-theme-card,
html[data-hop-theme="emerald"] .hop-theme-card,
html[data-hop-theme="custom"] .hop-theme-card {
  background: #fff;
  border-color: rgba(31, 31, 31, 0.1);
}
html[data-hop-theme="bright"] .hop-theme-card.is-active {
  border-color: #0d9488;
  box-shadow: 0 0 0 1px #0d9488, 0 12px 28px rgba(15, 39, 68, 0.08);
  color: #0f2744;
}
html[data-hop-theme="emerald"] .hop-theme-card.is-active,
html[data-hop-theme="custom"] .hop-theme-card.is-active {
  border-color: #C9A227;
  box-shadow: 0 0 0 1px #C9A227, 0 12px 28px rgba(18, 60, 50, 0.1);
  color: #1F1F1F;
}
html[data-hop-theme="bright"] .hop-theme-badge {
  background: #0d9488;
}
html[data-hop-theme="emerald"] .hop-theme-badge,
html[data-hop-theme="custom"] .hop-theme-badge {
  background: #C9A227;
}
html[data-hop-theme="bright"] .hop-custom-color-row input[type="text"],
html[data-hop-theme="emerald"] .hop-custom-color-row input[type="text"],
html[data-hop-theme="custom"] .hop-custom-color-row input[type="text"] {
  background: #fff;
}
html[data-hop-theme="bright"] .hop-custom-theme-panel,
html[data-hop-theme="emerald"] .hop-custom-theme-panel,
html[data-hop-theme="custom"] .hop-custom-theme-panel {
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04), 0 12px 32px rgba(15, 39, 68, 0.06);
}

/* —— Custom studio popup —— */
.hop-custom-studio-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hop-custom-studio-overlay.is-open {
  display: flex;
}
.hop-custom-studio-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 10, 0.55);
  backdrop-filter: blur(4px);
}
.hop-custom-studio-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.hop-custom-theme-panel--modal {
  margin: 0 !important;
  background: #F8F4EA;
  color: #1F1F1F;
  border: 1px solid #DED3BE;
}
.hop-custom-theme-panel--modal .hop-custom-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F8F4EA;
}
.hop-custom-theme-panel--modal .hop-custom-panel-head h3,
.hop-custom-theme-panel--modal .nx-display {
  color: #1F1F1F;
}
.hop-custom-theme-panel--modal .hop-custom-panel-head p,
.hop-custom-theme-panel--modal .hop-custom-section-label,
.hop-custom-theme-panel--modal .hop-theme-studio-kicker {
  color: #6B6254;
  opacity: 1;
}
.hop-custom-theme-panel--modal .hop-custom-live {
  background: rgba(18, 60, 50, 0.05);
}
.hop-custom-theme-panel--modal .hop-custom-color-field {
  background: #fff;
  border-color: #DED3BE;
  color: #1F1F1F;
}
.hop-custom-theme-panel--modal .hop-custom-color-row input[type="text"] {
  background: #fff;
  border-color: #DED3BE;
  color: #1F1F1F;
}
body.hop-custom-studio-open {
  overflow: hidden;
}
@media (max-width: 800px) {
  .hop-custom-studio-dialog {
    max-height: 92vh;
  }
}

/* —— Compact theme picker (single screen) —— */
.hop-theme-studio--compact { max-width: 68rem; }
.hop-theme-studio-intro--compact { margin: 0 0 0.75rem; }
.hop-theme-studio-intro--compact .hop-theme-studio-lead {
  font-size: 0.8rem;
  line-height: 1.4;
}
.hop-theme-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1100px) {
  .hop-theme-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hop-theme-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.hop-theme-card--compact { border-radius: 10px; }
.hop-theme-card--compact .hop-theme-card-body { padding: 8px 9px 9px; gap: 5px; }
.hop-theme-card--compact h3 { font-size: 0.78rem; line-height: 1.25; }
.hop-theme-swatch--compact { height: 52px; }
.hop-theme-swatch--compact .hop-theme-swatch-main { padding: 6px 8px; }
.hop-theme-swatch--compact .hop-theme-swatch-main::before {
  left: 8px; right: 8px; top: 8px; height: 5px;
}
.hop-theme-swatch--compact .hop-theme-swatch-main::after {
  left: 8px; width: 38%; top: 18px; height: 16px;
  box-shadow: 28px 0 0 rgba(255, 255, 255, 0.08);
}
.hop-theme-swatch--compact.hop-theme-swatch--bright .hop-theme-swatch-main::after {
  box-shadow: 28px 0 0 rgba(15, 39, 68, 0.08);
}
.hop-theme-swatch--compact.hop-theme-swatch--emerald .hop-theme-swatch-main::after {
  box-shadow: 28px 0 0 rgba(222, 211, 190, 0.7);
}
.hop-theme-swatch--compact.hop-theme-swatch--custom .hop-theme-swatch-main::after {
  box-shadow: 28px 0 0 var(--hop-c-border, #DED3BE);
}

/* ========== North Head Theme gallery (professional) ========== */
#settings-workspace .nx-settings-main--solo {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: auto !important;
}
#settings-workspace #bd-settings-theme-panel {
  height: 100%;
}
#settings-workspace .nx-settings-panel {
  margin: 0;
  height: 100%;
}
#settings-workspace .hop-theme-studio--bd {
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 20px;
  box-sizing: border-box;
}
#settings-workspace .hop-theme-studio--bd.hop-theme-studio--compact {
  max-width: 68rem !important;
}
#settings-workspace .hop-theme-studio--bd .hop-theme-studio-intro--compact {
  width: 100%;
  text-align: center;
}
#settings-workspace .hop-theme-studio--bd .hop-theme-studio-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.hop-theme-apply-bar {
  width: 100%;
  max-width: 64rem;
  margin: 8px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: 14px;
  border: 1px solid rgba(18, 60, 50, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(18, 60, 50, 0.06);
  position: sticky;
  bottom: 8px;
  z-index: 5;
}
.hop-theme-apply-hint {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #6B6254;
}
.hop-theme-apply-btn {
  flex: 0 0 auto;
  min-width: 148px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #C9A227;
  background: #C9A227;
  color: #1F1F1F;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}
.hop-theme-apply-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.hop-theme-apply-btn.is-ready:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(201, 162, 39, 0.28);
}
.hop-theme-badge--preview {
  background: rgba(37, 99, 235, 0.92) !important;
  color: #fff !important;
}
html[data-hop-theme="nexora"] .hop-theme-apply-bar,
html:not([data-hop-theme]) .hop-theme-apply-bar {
  background: rgba(13, 19, 33, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-hop-theme="nexora"] .hop-theme-apply-hint,
html:not([data-hop-theme]) .hop-theme-apply-hint {
  color: #94a3b8;
}
html[data-hop-theme="bright"] .hop-theme-apply-bar {
  border-color: #e2e8f0;
  background: #ffffff;
}
html[data-hop-theme="bright"] .hop-theme-apply-hint {
  color: #64748b;
}
html[data-hop-theme="bright"] .hop-theme-apply-btn {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}
#settings-workspace .hop-theme-studio--bd .hop-theme-grid--compact {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}
#settings-workspace .hop-theme-studio--bd .hop-theme-card--compact {
  border: 1px solid rgba(18, 60, 50, 0.12);
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 4px 14px rgba(18, 60, 50, 0.04);
}
#settings-workspace .hop-theme-studio--bd .hop-theme-card--compact:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 10px 22px rgba(18, 60, 50, 0.08);
}
#settings-workspace .hop-theme-studio--bd .hop-theme-card--compact.is-active {
  border-color: #C9A227;
  box-shadow: 0 0 0 1px #C9A227, 0 10px 22px rgba(201, 162, 39, 0.16);
}
#settings-workspace .hop-theme-studio--bd .hop-theme-card--compact h3 {
  color: #1f1f1f;
}
#settings-workspace .hop-theme-studio--bd .hop-theme-studio-kicker {
  color: #8a7f6e;
}
#settings-workspace .hop-theme-studio--bd .hop-theme-studio-lead {
  color: #6b6254;
}
html[data-hop-theme="bright"] #settings-workspace .hop-theme-studio--bd .hop-theme-card--compact {
  border-color: #e2e8f0;
}
html[data-hop-theme="bright"] #settings-workspace .hop-theme-studio--bd .hop-theme-card--compact.is-active {
  border-color: #0d9488;
  box-shadow: 0 0 0 1px #0d9488, 0 10px 22px rgba(13, 148, 136, 0.14);
}
html[data-hop-theme="bright"] #settings-workspace .hop-theme-studio--bd .hop-theme-studio-kicker,
html[data-hop-theme="bright"] #settings-workspace .hop-theme-studio--bd .hop-theme-studio-lead {
  color: #64748b;
}
html[data-hop-theme="bright"] #settings-workspace .hop-theme-studio--bd .hop-theme-card--compact h3 {
  color: #0f172a;
}
html[data-hop-theme="nexora"] #settings-workspace .hop-theme-studio--bd .hop-theme-card--compact,
html:not([data-hop-theme]) #settings-workspace .hop-theme-studio--bd .hop-theme-card--compact {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eaf0fb;
}
html[data-hop-theme="nexora"] #settings-workspace .hop-theme-studio--bd .hop-theme-card--compact h3,
html:not([data-hop-theme]) #settings-workspace .hop-theme-studio--bd .hop-theme-card--compact h3 {
  color: #eaf0fb;
}
html[data-hop-theme="nexora"] #settings-workspace .hop-theme-studio--bd .hop-theme-studio-kicker,
html:not([data-hop-theme]) #settings-workspace .hop-theme-studio--bd .hop-theme-studio-kicker,
html[data-hop-theme="nexora"] #settings-workspace .hop-theme-studio--bd .hop-theme-studio-lead,
html:not([data-hop-theme]) #settings-workspace .hop-theme-studio--bd .hop-theme-studio-lead {
  color: #8b96b8;
}

#settings-workspace .bd-theme-featured {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(18, 60, 50, 0.14);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(18, 60, 50, 0.06);
  min-height: 148px;
}
#settings-workspace .bd-theme-featured-swatch {
  min-height: 148px;
  height: 100% !important;
  display: grid;
  grid-template-columns: 30% 1fr;
  position: relative;
  border-bottom: none !important;
  border-radius: 0 !important;
}
#settings-workspace .bd-theme-featured-swatch .hop-theme-swatch-main {
  padding: 18px 20px;
}
#settings-workspace .bd-theme-featured-swatch .hop-theme-swatch-main::before {
  left: 18px; right: 18px; top: 20px; height: 10px;
}
#settings-workspace .bd-theme-featured-swatch .hop-theme-swatch-main::after {
  left: 18px; width: 40%; top: 42px; height: 42px;
  box-shadow: 56px 0 0 rgba(255, 255, 255, 0.1);
}
#settings-workspace .bd-theme-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px 24px;
}
#settings-workspace .bd-theme-featured-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7f6e;
}
#settings-workspace .bd-theme-featured-title {
  margin: 0;
  font-family: var(--nxt-font-display, Orbitron, sans-serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #1f1f1f;
}
#settings-workspace .bd-theme-featured-desc {
  margin: 0;
  max-width: 36rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #6b6254;
}
#settings-workspace .bd-theme-featured .hop-theme-dots {
  margin-top: 4px;
}

#settings-workspace .bd-theme-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#settings-workspace .bd-theme-section-head h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7f6e;
}
#settings-workspace .bd-theme-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}
#settings-workspace .bd-theme-grid--custom {
  grid-template-columns: minmax(220px, 360px) !important;
}

#settings-workspace .hop-theme-card--gallery {
  border-radius: 14px !important;
  border: 1px solid rgba(18, 60, 50, 0.12) !important;
  background: #ffffff !important;
  color: #1f1f1f !important;
  box-shadow: 0 6px 18px rgba(18, 60, 50, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#settings-workspace .hop-theme-card--gallery:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.45) !important;
  box-shadow: 0 14px 28px rgba(18, 60, 50, 0.1);
}
#settings-workspace .hop-theme-card--gallery.is-active {
  border-color: #C9A227 !important;
  box-shadow: 0 0 0 1px #C9A227, 0 14px 28px rgba(201, 162, 39, 0.18);
}
#settings-workspace .hop-theme-card--gallery .hop-theme-card-body {
  padding: 12px 14px 14px;
  gap: 8px;
}
#settings-workspace .hop-theme-card--gallery h3 {
  font-size: 0.9rem;
  font-weight: 650;
  color: #1f1f1f;
  line-height: 1.3;
}
#settings-workspace .hop-theme-swatch--gallery {
  height: 92px !important;
  border-bottom: 1px solid rgba(18, 60, 50, 0.08);
}
#settings-workspace .hop-theme-swatch--gallery .hop-theme-swatch-main {
  padding: 12px 14px;
}
#settings-workspace .hop-theme-swatch--gallery .hop-theme-swatch-main::before {
  left: 14px; right: 14px; top: 14px; height: 8px;
}
#settings-workspace .hop-theme-swatch--gallery .hop-theme-swatch-main::after {
  left: 14px; width: 40%; top: 32px; height: 28px;
  box-shadow: 48px 0 0 rgba(255, 255, 255, 0.1);
}

html[data-hop-theme="bright"] #settings-workspace .bd-theme-featured,
html[data-hop-theme="bright"] #settings-workspace .hop-theme-card--gallery {
  border-color: #e2e8f0 !important;
}
html[data-hop-theme="bright"] #settings-workspace .bd-theme-featured-kicker,
html[data-hop-theme="bright"] #settings-workspace .bd-theme-section-head h4 {
  color: #64748b;
}
html[data-hop-theme="bright"] #settings-workspace .bd-theme-featured-title,
html[data-hop-theme="bright"] #settings-workspace .hop-theme-card--gallery h3 {
  color: #0f172a;
}
html[data-hop-theme="bright"] #settings-workspace .bd-theme-featured-desc {
  color: #64748b;
}
html[data-hop-theme="bright"] #settings-workspace .hop-theme-card--gallery.is-active {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 1px #0d9488, 0 14px 28px rgba(13, 148, 136, 0.15);
}
html[data-hop-theme="bright"] #settings-workspace .hop-theme-card--gallery:hover {
  border-color: rgba(13, 148, 136, 0.45) !important;
}

html[data-hop-theme="nexora"] #settings-workspace .bd-theme-featured,
html:not([data-hop-theme]) #settings-workspace .bd-theme-featured,
html[data-hop-theme="nexora"] #settings-workspace .hop-theme-card--gallery,
html:not([data-hop-theme]) #settings-workspace .hop-theme-card--gallery {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--nxt-text, #e8eef8) !important;
  box-shadow: none;
}
html[data-hop-theme="nexora"] #settings-workspace .bd-theme-featured-title,
html:not([data-hop-theme]) #settings-workspace .bd-theme-featured-title,
html[data-hop-theme="nexora"] #settings-workspace .hop-theme-card--gallery h3,
html:not([data-hop-theme]) #settings-workspace .hop-theme-card--gallery h3 {
  color: var(--nxt-text, #e8eef8);
}
html[data-hop-theme="nexora"] #settings-workspace .bd-theme-featured-desc,
html:not([data-hop-theme]) #settings-workspace .bd-theme-featured-desc,
html[data-hop-theme="nexora"] #settings-workspace .bd-theme-featured-kicker,
html:not([data-hop-theme]) #settings-workspace .bd-theme-featured-kicker,
html[data-hop-theme="nexora"] #settings-workspace .bd-theme-section-head h4,
html:not([data-hop-theme]) #settings-workspace .bd-theme-section-head h4 {
  color: var(--nxt-text-dim, #94a3b8);
}

@media (max-width: 900px) {
  #settings-workspace .bd-theme-featured {
    grid-template-columns: 1fr;
  }
  #settings-workspace .bd-theme-featured-swatch {
    min-height: 110px;
  }
  #settings-workspace .bd-theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
}
.hop-theme-swatch--compact.hop-theme-swatch--luxury .hop-theme-swatch-main::after {
  box-shadow: 28px 0 0 rgba(184, 177, 167, 0.65);
}

/* Confirm + set animation */
.hop-theme-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 13000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hop-theme-confirm-overlay.is-open { display: flex; }
.hop-theme-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 10, 0.5);
  backdrop-filter: blur(3px);
}
.hop-theme-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #F8F4EA;
  color: #1F1F1F;
  border: 1px solid #DED3BE;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}
.hop-theme-confirm-kicker {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6254;
}
.hop-theme-confirm-dialog h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
}
.hop-theme-confirm-dialog h3 em {
  font-style: normal;
  color: #A8861F;
}
.hop-theme-confirm-copy {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6B6254;
}
.hop-theme-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.hop-theme-set-flash {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hop-theme-set-flash.is-on { opacity: 1; }
.hop-theme-set-flash.is-out { opacity: 0; }
.hop-theme-set-flash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(18, 60, 50, 0.92);
  color: #F8F4EA;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: scale(0.86);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.hop-theme-set-flash.is-on .hop-theme-set-flash-card { transform: scale(1); }
.hop-theme-set-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #C9A227;
  color: #fff;
  animation: hopThemeCheckPop 0.45s ease both;
}
.hop-theme-set-flash-card strong { font-size: 0.95rem; }
.hop-theme-set-flash-card > span:last-child { font-size: 0.78rem; opacity: 0.85; }
@keyframes hopThemeCheckPop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* —— Lead form: products interested (Vyapar-style) —— */
.hop-prod-interest {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hop-lead-add-party-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.hop-lead-add-party-btn:hover {
  text-decoration: underline;
}
html[data-hop-theme="nexora"] .hop-lead-add-party-btn {
  color: #7dd3c0;
}
.hop-prod-interest-box {
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}
html[data-hop-theme="nexora"] .hop-prod-interest-box {
  background: rgba(255, 255, 255, 0.04);
}
.hop-prod-interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.hop-prod-interest-chips:empty { display: none; margin: 0; }
.hop-prod-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: inherit;
}
.hop-prod-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.hop-prod-chip button:hover { opacity: 1; }
.hop-prod-interest-input-wrap {
  position: relative;
}
.hop-prod-interest-input-wrap input {
  width: 100%;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: transparent;
  color: inherit;
}
.hop-prod-interest-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #d4d0c8;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  max-height: 240px;
  overflow: auto;
}
.hop-prod-interest-menu.hidden { display: none; }
.hop-prod-interest-menu-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 88px 96px 64px;
  gap: 8px;
  padding: 8px 12px 4px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a847a;
  border-bottom: 1px solid #eee;
}
.hop-prod-interest-add {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.82rem;
  border-bottom: 1px solid #f0eee8;
}
.hop-prod-interest-add:hover { background: #f5f8ff; }
.hop-prod-interest-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 88px 96px 64px;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 9px 12px;
  cursor: pointer;
  color: #1f1f1f;
  font-size: 0.82rem;
}
.hop-prod-interest-row:hover { background: #f7f5f0; }
.hop-prod-interest-row strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hop-prod-interest-row span {
  color: #5b564c;
  font-variant-numeric: tabular-nums;
}
.hop-lead-project-hint {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 2px;
}

.hop-prod-interest-box--trigger {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hop-prod-interest-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px dashed rgba(127, 127, 127, 0.4);
  border-radius: 8px;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
}
.hop-prod-interest-open:hover {
  border-color: #C9A227;
  background: rgba(201, 162, 39, 0.06);
}
.hop-prod-interest-count {
  font-size: 0.72rem;
  opacity: 0.7;
  white-space: nowrap;
}

.hop-lead-prod-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 16000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: auto;
}
.hop-lead-prod-overlay.is-open { display: flex; }
.hop-lead-prod-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(8, 12, 10, 0.55);
  backdrop-filter: blur(3px);
}
.hop-lead-prod-dialog {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: #F8F4EA;
  color: #1F1F1F;
  border: 1px solid #DED3BE;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  pointer-events: auto;
}
.hop-lead-prod-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #DED3BE;
  background: #fff;
}
.hop-lead-prod-kicker {
  margin: 0 0 2px;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6254;
}
.hop-lead-prod-head h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.hop-lead-prod-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #6B6254;
  max-width: 34rem;
  line-height: 1.4;
}
.hop-lead-prod-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid #E8E0D1;
  min-height: 44px;
  background: #fff;
}
.hop-lead-prod-search {
  padding: 10px 18px;
}
.hop-lead-prod-search input {
  width: 100%;
  border: 1px solid #DED3BE;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff !important;
  color: #1F1F1F !important;
  caret-color: #1F1F1F;
  outline: none;
  -webkit-text-fill-color: #1F1F1F;
}
.hop-lead-prod-search input::placeholder {
  color: #6B6254 !important;
  opacity: 1;
  -webkit-text-fill-color: #6B6254;
}
.hop-lead-prod-search input:focus {
  border-color: #C9A227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.hop-lead-prod-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 14px;
}
.hop-lead-prod-table-head,
.hop-lead-prod-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 100px 110px 70px 88px;
  gap: 8px;
  align-items: center;
}
.hop-lead-prod-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 8px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a847a;
  background: #F8F4EA;
  border-bottom: 1px solid #E8E0D1;
}
.hop-lead-prod-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hop-lead-prod-row {
  padding: 10px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #EDE7DB;
  font-size: 0.84rem;
}
.hop-lead-prod-row.is-picked {
  opacity: 0.72;
  background: #F5F1E8;
}
.hop-lead-prod-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hop-lead-prod-row span {
  font-variant-numeric: tabular-nums;
  color: #5b564c;
}
.hop-lead-prod-pick {
  justify-self: end;
  min-height: 28px !important;
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
}
.hop-lead-prod-add-row {
  width: 100%;
  margin-bottom: 6px;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: left;
}
.hop-lead-prod-add-row:hover { background: #dbeafe; }
.hop-lead-prod-empty {
  margin: 12px 8px;
  font-size: 0.82rem;
  color: #6B6254;
}
@media (max-width: 720px) {
  .hop-lead-prod-table-head,
  .hop-lead-prod-row {
    grid-template-columns: minmax(0, 1fr) 72px 72px;
  }
  .hop-lead-prod-table-head span:nth-child(3),
  .hop-lead-prod-table-head span:nth-child(4),
  .hop-lead-prod-row span:nth-child(3),
  .hop-lead-prod-row span:nth-child(4) { display: none; }
  .hop-lead-prod-pick { grid-column: 2; }
}

/* —— Deals CRM —— */
.hop-deal-detail{max-width:1080px;}
.hop-deal-hero{
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  align-items:flex-start;margin-bottom:14px;
  padding-bottom:14px;border-bottom:1px solid #E8E0D1;
}
.hop-deal-hero-top{display:flex;align-items:center;gap:8px;margin-bottom:4px;}
.hop-deal-code{
  margin:0;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;
  color:#6B6254;font-weight:650;
}
.hop-deal-title{margin:0 0 8px;font-size:1.35rem;font-weight:700;color:#1F1F1F;line-height:1.2;}
.hop-deal-meta{display:flex;flex-wrap:wrap;gap:6px;margin:0;}
.hop-deal-meta-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;border-radius:8px;font-size:.78rem;color:#3F3A32;
  background:#fff;border:1px solid #DED3BE;
}
.hop-deal-meta-pill em{
  font-style:normal;font-size:.62rem;font-weight:650;letter-spacing:.06em;
  text-transform:uppercase;color:#6B6254;
}
.hop-deal-status{
  padding:2px 9px;border-radius:999px;font-size:.68rem;font-weight:650;
  text-transform:uppercase;letter-spacing:.04em;
  background:#EFE7D8;color:#3F3A32;
}
.hop-deal-status--open{background:#ecfdf5;color:#047857;}
.hop-deal-status--lost{background:#fef2f2;color:#b91c1c;}
.hop-deal-status--closed{background:#eff6ff;color:#1d4ed8;}
.hop-deal-detail-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;}

.hop-deal-grid{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.85fr);
  gap:12px;margin-bottom:14px;align-items:start;
}
@media (max-width:900px){
  .hop-deal-grid{grid-template-columns:1fr;}
}

.hop-deal-progress-card,
.hop-deal-snapshot{
  padding:14px 16px;border-radius:12px;
  border:1px solid #DED3BE;background:#fff;
}
.hop-deal-progress-head{
  display:flex;justify-content:space-between;gap:12px;align-items:flex-start;
}
.hop-deal-kicker{
  margin:0 0 4px;font-size:.62rem;font-weight:650;letter-spacing:.1em;
  text-transform:uppercase;color:#6B6254;
}
.hop-deal-now-title{margin:0;font-size:1.12rem;font-weight:700;color:#1F1F1F;}
.hop-deal-progress-sub{margin:4px 0 0;font-size:.75rem;color:#6B6254;}
.hop-deal-progress-pct{
  min-width:52px;height:52px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.95rem;font-weight:700;color:#7a5f12;
  background:linear-gradient(145deg,#F7EEC8,#E8D48B);
  border:1px solid #DED3BE;font-variant-numeric:tabular-nums;
}
.hop-deal-progress-bar{
  margin-top:12px;height:8px;border-radius:999px;background:#EFE7D8;overflow:hidden;
}
.hop-deal-progress-bar > span{
  display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,#C9A227,#E8D48B);
}
.hop-deal-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 10px;}
.hop-deal-lost-btn{color:#b91c1c !important;border-color:rgba(185,28,28,.35) !important;}
.hop-deal-note-label{
  display:flex;flex-direction:column;gap:4px;
  font-size:.72rem;font-weight:650;color:#6B6254;text-transform:uppercase;letter-spacing:.04em;
}
.hop-deal-note-input{
  width:100%;box-sizing:border-box;
  border:1px solid #DED3BE;border-radius:8px;padding:9px 11px;
  font:inherit;font-size:.84rem;font-weight:400;text-transform:none;letter-spacing:normal;
  background:#fff;color:#1F1F1F;
}
.hop-deal-next-hint{
  margin:10px 0 0;font-size:.78rem;color:#6B6254;
}
.hop-deal-next-hint strong{color:#1F1F1F;font-weight:650;}

.hop-deal-snap-row{
  display:flex;justify-content:space-between;gap:10px;
  padding:8px 0;border-bottom:1px solid #EFE7D8;font-size:.8rem;
}
.hop-deal-snap-row span{color:#6B6254;}
.hop-deal-snap-row strong{color:#1F1F1F;font-weight:650;text-align:right;word-break:break-word;}
.hop-deal-snap-notes{
  margin:10px 0 0;font-size:.8rem;color:#3F3A32;line-height:1.4;
  padding:8px 10px;border-radius:8px;background:#F8F4EA;
}
.hop-deal-snap-empty{margin:10px 0 0;font-size:.78rem;color:#6B6254;}

.hop-deal-journey{margin-bottom:16px;}
.hop-deal-phases{display:flex;flex-direction:column;gap:0;}
.hop-deal-phase{
  position:relative;padding:0 0 4px 18px;
  border-left:2px solid #E8E0D1;margin-left:7px;
}
.hop-deal-phase:last-child{border-left-color:transparent;}
.hop-deal-phase-head{
  display:flex;align-items:center;gap:8px;
  padding:6px 0 8px;font-size:.88rem;color:#6B6254;
}
.hop-deal-phase-head strong{font-weight:700;color:#3F3A32;}
.hop-deal-phase-dot{
  position:absolute;left:-7px;top:10px;width:12px;height:12px;border-radius:50%;
  background:#EFE7D8;border:2px solid #DED3BE;box-sizing:border-box;
}
.hop-deal-phase--done .hop-deal-phase-dot{background:#15803d;border-color:#15803d;}
.hop-deal-phase--done .hop-deal-phase-head strong{color:#15803d;}
.hop-deal-phase--current .hop-deal-phase-dot{
  background:#C9A227;border-color:#C9A227;
  box-shadow:0 0 0 3px rgba(201,162,39,.22);
}
.hop-deal-phase--current .hop-deal-phase-head strong{color:#1F1F1F;}
.hop-deal-phase--lost .hop-deal-phase-dot{background:#b91c1c;border-color:#b91c1c;}
.hop-deal-phase--locked{opacity:.45;}
.hop-deal-phase-now{
  font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:2px 7px;border-radius:999px;background:#F7EEC8;color:#7a5f12;
}
.hop-deal-phase-steps{
  list-style:none;margin:0 0 10px;padding:8px 10px;border-radius:10px;
  background:#fff;border:1px solid #DED3BE;display:flex;flex-direction:column;gap:4px;
}
.hop-deal-phase-step{
  display:flex;align-items:center;gap:8px;font-size:.8rem;color:#6B6254;padding:3px 0;
}
.hop-deal-phase-step em{font-style:normal;font-size:.65rem;opacity:.7;}
.hop-deal-phase-mark{
  width:20px;height:20px;border-radius:50%;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.65rem;font-weight:700;background:#EFE7D8;color:#6B6254;
}
.hop-deal-phase-step--done .hop-deal-phase-mark{background:#15803d;color:#fff;}
.hop-deal-phase-step--done{color:#3F3A32;}
.hop-deal-phase-step--current .hop-deal-phase-mark{background:#C9A227;color:#fff;}
.hop-deal-phase-step--current{color:#1F1F1F;font-weight:650;}
.hop-deal-phase-step--lost .hop-deal-phase-mark{background:#b91c1c;color:#fff;}

.hop-deal-activity-wrap{margin-bottom:8px;}
.hop-deal-timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;}
.hop-deal-event{
  display:grid;grid-template-columns:118px minmax(0,1fr);gap:4px 12px;
  padding:10px 0;border-bottom:1px solid #E8E0D1;font-size:.8rem;
}
.hop-deal-event-body{display:flex;flex-direction:column;gap:2px;min-width:0;}
.hop-deal-event-time{color:#6B6254;font-variant-numeric:tabular-nums;}
.hop-deal-event-title{color:#1F1F1F;font-weight:600;}
.hop-deal-event-detail{color:#6B6254;font-size:.75rem;}
.hop-deal-event--empty{grid-template-columns:1fr;color:#6B6254;border:0;}

/* —— Deal create/edit form (reuses nx-party-modal shell + theme) —— */
.hop-deal-form-card{width:min(640px, 100%) !important;}
.hop-deal-form-head-copy{display:flex;flex-direction:column;gap:2px;min-width:0;}
.hop-deal-form-kicker{
  margin:0;font-size:.62rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:#C9A227;
}
.hop-deal-form-body{display:flex;flex-direction:column;gap:16px;padding:16px 18px !important;}
.hop-deal-form-section{margin:0;}
.hop-deal-form-sec-title{
  margin:0 0 10px;font-size:.72rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:#94a3b8;
}
.hop-deal-form-sec-title--sub{margin:12px 0 8px;font-size:.66rem;color:#64748b;}
.hop-deal-form-sec-hint{
  margin:-4px 0 10px;font-size:.78rem;line-height:1.35;color:#64748b;
}
.hop-deal-form-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;
}
.hop-deal-form-span-2{grid-column:1 / -1;}
.hop-deal-form-newparty{
  margin-top:4px;padding:12px 12px 4px;border-radius:10px;
  border:1px dashed rgba(201,162,39,.35);
  background:rgba(201,162,39,.06);
}
.hop-deal-form-body .nx-party-field textarea{
  border:1px solid rgba(255,255,255,.12);border-radius:8px;
  padding:9px 11px;font:inherit;font-size:.88rem;resize:vertical;min-height:64px;
  background:rgba(255,255,255,.04);color:#e2e8f0;
}
.hop-deal-form-body .nx-party-field textarea:focus{
  outline:none;border-color:rgba(201,162,39,.65);
  box-shadow:0 0 0 3px rgba(201,162,39,.15);
}
@media (max-width:560px){
  .hop-deal-form-grid{grid-template-columns:1fr;}
}

/* Light themes (emerald / bright / custom) — readable labels + gold primary */
.nx-party-modal.hop-party-theme-light .hop-deal-form-kicker{color:#A8861F;}
.nx-party-modal.hop-party-theme-light .hop-deal-form-sec-title{color:#6B6254;}
.nx-party-modal.hop-party-theme-light .hop-deal-form-sec-title--sub{color:#8A7F6E;}
.nx-party-modal.hop-party-theme-light .hop-deal-form-sec-hint{color:#6B6254;}
.nx-party-modal.hop-party-theme-light .hop-deal-form-newparty{
  border-color:rgba(201,162,39,.45);
  background:rgba(201,162,39,.08);
}
.nx-party-modal.hop-party-theme-light .hop-deal-form-body .nx-party-field textarea{
  background:#fff;border-color:#DED3BE;color:#1F1F1F;
}
.nx-party-modal.hop-party-theme-light .hop-deal-form-body .nx-party-field textarea:focus{
  border-color:#C9A227;box-shadow:0 0 0 3px rgba(201,162,39,.18);
}

html[data-hop-theme="nexora"] .hop-deal-title,
html[data-hop-theme="nexora"] .hop-deal-now-title,
html[data-hop-theme="nexora"] .hop-deal-event-title,
html[data-hop-theme="nexora"] .hop-deal-snap-row strong,
html[data-hop-theme="nexora"] .hop-deal-phase-head strong{color:#e2e8f0;}
html[data-hop-theme="nexora"] .hop-deal-progress-card,
html[data-hop-theme="nexora"] .hop-deal-snapshot,
html[data-hop-theme="nexora"] .hop-deal-phase-steps,
html[data-hop-theme="nexora"] .hop-deal-meta-pill{
  background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1);
}
html[data-hop-theme="nexora"] .hop-deal-note-input{
  background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12);color:#e2e8f0;
}
html[data-hop-theme="nexora"] .hop-deal-progress-bar{background:rgba(255,255,255,.08);}
html[data-hop-theme="nexora"] .hop-deal-event,
html[data-hop-theme="nexora"] .hop-deal-hero,
html[data-hop-theme="nexora"] .hop-deal-snap-row{border-color:rgba(255,255,255,.08);}
html[data-hop-theme="nexora"] .hop-deal-phase{border-left-color:rgba(255,255,255,.12);}
html[data-hop-theme="nexora"] .hop-deal-snap-notes{background:rgba(255,255,255,.05);color:#cbd5e1;}
