
/* === Impero Hosting 2.3.1 portal — inherits hard lock from hosting-theme.css === */
.ih-portal,
.ih-portal-hero,
.ih-kpi-card {
  color: var(--ih-text, #e8eef7) !important;
}
.ih-kpi-label {
  color: var(--ih-muted, #94a3b8) !important;
}
.ih-btn-ghost {
  color: var(--ih-text, #e8eef7) !important;
  border-color: var(--ih-border, rgba(226, 232, 240, 0.16)) !important;
}
/* Portal + Control Plane — NovaFrame token aware */
.ih-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.ih-portal-hero { padding: 2rem 0 1rem; }
.ih-portal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.ih-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem; min-height: 44px; padding: 0.55rem 1.1rem;
  border-radius: var(--ih-radius, 10px); border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.ih-btn:focus-visible { outline: 3px solid var(--ih-accent, #38bdf8); outline-offset: 2px; }
.ih-btn-primary {
  background: var(--nf-accent, #f97316); color: #111;
}
.ih-btn-primary:hover { filter: brightness(1.05); }
.ih-btn-ghost {
  background: transparent; color: var(--ih-text, inherit);
  border-color: var(--ih-border, rgba(255,255,255,.2));
}
.ih-btn[disabled], .ih-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.ih-kpi-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
}
.ih-kpi-card {
  background: var(--ih-surface, rgba(255,255,255,.04));
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  border-radius: var(--ih-radius, 12px); padding: 1rem 1.1rem;
}
.ih-kpi-label { display: block; color: var(--ih-muted, #94a3b8); font-size: .85rem; margin-bottom: .35rem; }
.ih-kpi-value { font-size: 1.35rem; }
.ih-kpi-meta { display: block; font-size: .8rem; color: var(--ih-muted, #94a3b8); margin-top: .25rem; }
.ih-status-ok { color: var(--ih-success, #34d399); }

.ih-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ih-card-list, .ih-simple-list { list-style: none; margin: 0; padding: 0; }
.ih-site-card {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; margin-bottom: .75rem;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  border-radius: var(--ih-radius, 12px);
  background: var(--ih-surface, rgba(255,255,255,.03));
}
.ih-site-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ih-chip {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--nf-header, #0345bf) 25%, transparent); font-size: .8rem;
}
.ih-chip--ok { background: color-mix(in srgb, var(--ih-success, #34d399) 30%, transparent); }
.ih-chip--muted { opacity: .8; }

.ih-table-wrap { overflow-x: auto; border: 1px solid var(--ih-border, rgba(255,255,255,.12)); border-radius: 10px; }
.ih-table { width: 100%; border-collapse: collapse; }
.ih-table th, .ih-table td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--ih-border, rgba(255,255,255,.08)); }
.ih-table th { font-size: .85rem; color: var(--ih-muted, #94a3b8); }
.ih-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.ih-empty { color: var(--ih-muted, #94a3b8); }

.ih-control__layout {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 1.35rem;
  padding-top: 1.25rem;
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  box-sizing: border-box;
}
.ih-control__main { min-width: 0; width: 100%; }
.ih-portal-app, .ih-control, .ih-acquire, .ih-privacy { width: 100%; max-width: none; }
.ih-mode-toggle {
  display: inline-flex; gap: .35rem; margin: .75rem 0;
  border: 1px solid var(--ih-border, rgba(255,255,255,.15)); border-radius: 999px; padding: .2rem;
}
.ih-mode-toggle button {
  min-height: 40px; padding: .35rem .9rem; border: 0; border-radius: 999px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.ih-mode-toggle button.is-active {
  background: color-mix(in srgb, var(--nf-header, #0345bf) 40%, transparent);
}
.ih-files-browser { margin-top: 1rem; }
.ih-files-table { width: 100%; }
.ih-dns-form, .ih-cron-form, .ih-mailbox-form, .ih-wp-form {
  display: grid; gap: .75rem; margin: 1rem 0;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: end;
}
.ih-security-score {
  font-size: 2.5rem; font-weight: 700; color: var(--ih-success, #34d399);
}
.ih-progress-track {
  height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ih-border, #64748b) 50%, transparent);
  overflow: hidden; margin: .5rem 0 1rem;
}
.ih-progress-bar {
  height: 100%; width: 0; background: var(--nf-header, #0345bf); transition: width .35s ease;
}
.ih-cart-extras { display: grid; gap: .5rem; margin: 1rem 0; }
.ih-cart-extra {
  display: flex; gap: .65rem; align-items: flex-start; min-height: 44px;
  padding: .65rem .85rem; border-radius: 10px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
}
.ih-expert-only[hidden] { display: none !important; }
@media (max-width: 800px) {
  .ih-control__layout { grid-template-columns: 1fr; }
}
.ih-control__menu { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .2rem; }
.ih-control__link {
  display: block; padding: .48rem .75rem; border-radius: 8px; text-decoration: none;
  min-height: 40px; font-weight: 650; letter-spacing: .01em;
  color: #f8fafc !important;
  border-left: 3px solid transparent;
  transition: background .18s ease, border-color .18s ease, filter .18s ease;
}
.ih-control__link:hover {
  background: color-mix(in srgb, var(--nf-header, #0345bf) 18%, transparent);
  color: #fff !important;
}
.ih-control__link.is-active {
  border-left-color: #ffca28;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #ffca28 28%, transparent),
    color-mix(in srgb, var(--nf-header, #0345bf) 32%, transparent) 55%,
    transparent
  );
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 0 16px color-mix(in srgb, #ffca28 45%, transparent);
  filter: none;
}
.ih-control__link:focus-visible { outline: 3px solid var(--ih-accent, #38bdf8); outline-offset: 2px; }
.ih-field { display: flex; flex-direction: column; gap: .35rem; margin: 1rem 0; }
.ih-field input, .ih-field select, .form-control, .form-select {
  min-height: 44px; padding: .5rem .75rem; border-radius: 8px;
  border: 1px solid var(--ih-border, #cbd5e1); background: transparent; color: inherit; font: inherit;
}
.ih-dl { display: grid; gap: .75rem; }
.ih-dl > div { display: grid; grid-template-columns: 10rem 1fr; gap: .5rem; }
.ih-cap-note, .ih-engine-note, .ih-help { color: var(--ih-muted, #94a3b8); font-size: .9rem; }
.ih-action-result { margin-top: 1rem; padding: .75rem 1rem; border-radius: 8px; border: 1px dashed var(--ih-border, #64748b); min-height: 1.5rem; }

.ih-assistente[hidden] { display: none !important; }
.ih-assistente {
  position: fixed; inset: 0; z-index: 10050;
  background: color-mix(in srgb, #000 45%, transparent);
  display: flex; justify-content: flex-end;
}
.ih-assistente__panel {
  width: min(420px, 100%); height: 100%; overflow: auto;
  background: var(--ih-bg, #0b1220); color: var(--ih-text, #e2e8f0);
  border-left: 1px solid var(--ih-border, rgba(255,255,255,.15));
  padding: 1.25rem; box-shadow: var(--ih-shadow, 0 20px 50px rgba(0,0,0,.35));
}
.ih-assistente__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ih-assistente__close {
  min-width: 44px; min-height: 44px; border: 0; background: transparent;
  color: inherit; font-size: 1.5rem; cursor: pointer;
}
.ih-assistente__block { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ih-border, rgba(255,255,255,.12)); }

/* Acquire wizard */
.ih-acquire--wizard { padding-bottom: 3rem; }
.ih-acquire-hero {
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, color-mix(in srgb, var(--nf-accent, #f97316) 28%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--nf-header, #0345bf) 18%, transparent), transparent 60%);
  border-bottom: 1px solid var(--ih-border, rgba(255,255,255,.1));
}
.ih-acquire-hero__grid,
.ih-portal-hero__grid,
.ih-portal-gate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.ih-acquire-hero__visual img,
.ih-portal-hero__visual img,
.ih-portal-gate__visual img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
  border-radius: calc(var(--ih-radius, 14px) + 4px);
  box-shadow: var(--ih-shadow, 0 24px 60px rgba(0,0,0,.28));
  object-fit: cover;
}
.ih-wizard-steps { padding-left: 1.2rem; }
.ih-wizard-steps--horizontal {
  list-style: none; display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 0 0 1.75rem;
  counter-reset: none;
}
.ih-wizard-steps--horizontal li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.15)); font-size: .88rem;
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 70%, transparent);
}
.ih-wizard-num {
  display: inline-grid; place-items: center;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  font-size: .75rem; font-weight: 700;
  background: color-mix(in srgb, var(--nf-accent, #f97316) 22%, transparent);
  color: var(--nf-accent, #f97316);
}
.ih-wizard-steps--horizontal li.is-active {
  border-color: color-mix(in srgb, var(--nf-accent, #f97316) 65%, transparent);
  background: color-mix(in srgb, var(--nf-accent, #f97316) 16%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nf-accent, #f97316) 25%, transparent);
}
.ih-wizard-steps--horizontal li.is-active .ih-wizard-num {
  background: var(--nf-accent, #f97316); color: #111;
}

.ih-acquire-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}
.ih-acquire-card {
  margin: 0 0 1.15rem; padding: 1.35rem 1.4rem;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  border-radius: var(--ih-radius, 14px);
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 88%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, #000 18%, transparent);
}
.ih-acquire-card__title {
  margin: 0 0 1rem; font-size: 1.15rem; font-weight: 650;
}
.ih-acquire-card--sticky { position: sticky; top: 1rem; margin-bottom: 0; }
.ih-btn-block { width: 100%; }
.ih-fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.ih-radio { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.ih-plan-option {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 1rem; margin-bottom: .65rem; border-radius: 12px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12)); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ih-plan-option span { display: grid; gap: .2rem; }
.ih-plan-option em { font-style: normal; color: var(--nf-accent, #f97316); font-weight: 700; }
.ih-plan-option small { color: var(--ih-muted, #94a3b8); }
.ih-plan-option:hover { transform: translateY(-1px); }
.ih-plan-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--nf-accent, #f97316) 70%, transparent);
  background: color-mix(in srgb, var(--nf-accent, #f97316) 14%, transparent);
}
.ih-domain-avail { display: block; margin-top: .35rem; font-size: .9rem; min-height: 1.25rem; font-weight: 600; }
.ih-domain-avail--ok { color: var(--ih-success, #34d399); }
.ih-domain-avail--no { color: #f87171; }
.ih-domain-avail--warn, .ih-domain-avail--checking { color: #fbbf24; }
.ih-domain-price { margin: .25rem 0 .5rem; font-size: .95rem; color: var(--ih-text, #e2e8f0); }
.ih-domain-manual-note { max-width: 40rem; }
.ih-tld-prices {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; margin: .75rem 0 1rem;
  font-size: .85rem; color: var(--ih-muted, #94a3b8);
}
.ih-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0;
}
.ih-tab {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--ih-border, rgba(255,255,255,.16));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 80%, transparent);
  color: inherit; cursor: pointer; font: inherit;
}
.ih-tab.is-active {
  border-color: color-mix(in srgb, var(--nf-accent, #f97316) 70%, transparent);
  background: color-mix(in srgb, var(--nf-accent, #f97316) 18%, transparent);
  font-weight: 600;
}
.ih-tab:focus-visible { outline: 2px solid var(--nf-accent, #f97316); outline-offset: 2px; }
.ih-tab-panel[hidden] { display: none !important; }
.ih-tab-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Portal polish */
.ih-portal-hero {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 1.25rem;
  margin-bottom: .5rem;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, color-mix(in srgb, var(--nf-accent, #f97316) 22%, transparent), transparent 50%),
    linear-gradient(160deg, color-mix(in srgb, var(--nf-header, #0345bf) 16%, transparent), transparent 55%);
}
.ih-portal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.ih-empty-panel,
.ih-panel-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  border-radius: var(--ih-radius, 14px);
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 80%, transparent);
}
.ih-portal-gate { padding: clamp(2rem, 5vw, 3.5rem) 0 3rem; }
.ih-portal-gate__card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: calc(var(--ih-radius, 14px) + 2px);
  border: 1px solid var(--ih-border, rgba(255,255,255,.14));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--nf-accent, #f97316) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--ih-surface, #121b2e) 92%, transparent);
  box-shadow: var(--ih-shadow, 0 24px 60px rgba(0,0,0,.28));
}
.ih-portal-gate__card h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Control: SSL / PHP / files drop / site builder */
.ih-ssl-hero {
  display: grid; gap: 1rem; align-items: start;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding: 1.25rem 1.35rem; margin: 1rem 0;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  border-radius: var(--ih-radius, 14px);
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 85%, transparent);
}
.ih-ssl-cards { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 1rem 0; }
.ih-ssl-card {
  padding: 1rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 78%, transparent);
}
.ih-ssl-card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.ih-ssl-badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem;
  background: color-mix(in srgb, var(--nf-accent, #f97316) 22%, transparent);
}
.ih-ssl-badge[data-status="likely_active"],
.ih-ssl-badge[data-status="active"] { background: color-mix(in srgb, #22c55e 28%, transparent); }
.ih-ssl-badge[data-status="issuing"],
.ih-ssl-badge[data-status="pending"] { background: color-mix(in srgb, #eab308 28%, transparent); }
.ih-php-panel { max-width: 28rem; display: grid; gap: .85rem; }
.ih-dropzone {
  margin: 1rem 0; padding: 1.5rem 1.25rem; text-align: center;
  border: 2px dashed color-mix(in srgb, var(--nf-accent, #f97316) 45%, var(--ih-border, rgba(255,255,255,.2)));
  border-radius: var(--ih-radius, 14px);
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 70%, transparent);
  transition: border-color .15s ease, background .15s ease;
}
.ih-dropzone.is-dragover {
  border-color: var(--nf-accent, #f97316);
  background: color-mix(in srgb, var(--nf-accent, #f97316) 14%, transparent);
}
.ih-dropzone__title { margin: 0 0 .35rem; font-weight: 600; }

/* —— NovaFrame Page Builder (enterprise UX shell) —— */
.nf-pb { margin-top: .5rem; }
.nf-pb__hero {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.15rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #ffca28 28%, var(--ih-border, rgba(255,255,255,.12)));
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, #ffca28 18%, transparent), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--nf-header, #0345bf) 35%, transparent), transparent 50%),
    color-mix(in srgb, var(--ih-surface, #121b2e) 88%, transparent);
}
.nf-pb__eyebrow {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffca28;
}
.nf-pb__hero h1 { margin: 0 0 .45rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.nf-pb__lead { margin: 0; max-width: 52rem; color: var(--ih-muted, #94a3b8); line-height: 1.45; }
.nf-pb__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem;
}
.nf-pb__steps li {
  display: flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .45rem .6rem;
  border-radius: 10px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  background: color-mix(in srgb, #000 18%, transparent);
  color: var(--ih-muted, #94a3b8);
  font-size: .82rem; font-weight: 600;
}
.nf-pb__steps li span {
  display: inline-grid; place-items: center;
  width: 1.55rem; height: 1.55rem; border-radius: 999px;
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff; font-weight: 800; font-size: .8rem;
}
.nf-pb__steps li.is-active {
  color: #fff;
  border-color: color-mix(in srgb, #ffca28 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, #ffca28 22%, transparent), transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, #ffca28 25%, transparent);
}
.nf-pb__steps li.is-active span { background: #ffca28; color: #111; }

.ih-builder.nf-pb__shell,
.nf-pb__shell.ih-builder {
  display: grid; gap: .85rem;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  margin-top: 0;
}
.nf-pb--v3 .ih-builder.nf-pb__shell,
.nf-pb--v3 .nf-pb__shell.ih-builder {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(260px, 320px);
  align-items: stretch;
}
.nf-pb__rail,
.nf-pb__stage {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 90%, transparent);
}
.nf-pb__rail-head h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.nf-pb__ai {
  margin: .85rem 0 1rem;
  padding: .85rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #ffca28 35%, var(--ih-border, rgba(255,255,255,.14)));
  background:
    linear-gradient(160deg, color-mix(in srgb, #ffca28 12%, transparent), transparent 70%),
    color-mix(in srgb, #0b1220 70%, transparent);
  display: grid; gap: .45rem;
}
.nf-pb__ai-badge {
  display: inline-flex; align-self: start;
  padding: .2rem .55rem; border-radius: 999px;
  background: #ffca28; color: #111;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.nf-pb__hint { margin: 0; font-size: .78rem; color: var(--ih-muted, #94a3b8); }
.nf-pb__cats {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin: 0 0 .75rem;
}
.nf-pb__cat {
  border: 1px solid var(--ih-border, rgba(255,255,255,.16));
  background: transparent; color: inherit;
  border-radius: 999px; padding: .28rem .65rem;
  font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer;
  min-height: 36px;
}
.nf-pb__cat.is-active,
.nf-pb__cat:hover {
  border-color: #ffca28;
  background: color-mix(in srgb, #ffca28 16%, transparent);
}
.nf-pb__palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  max-height: none;
  overflow: visible;
  padding-right: .15rem;
  flex: 1 1 auto;
  min-height: 0;
}
.nf-pb__palette-empty {
  grid-column: 1 / -1;
  margin: .35rem 0 0;
  font-size: .85rem;
}
.nf-pb__chip,
.ih-widget-chip.nf-pb__chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  text-align: left;
  border-radius: 12px !important;
  padding: .55rem .65rem !important;
  border: 1px solid var(--ih-border, rgba(255,255,255,.14));
  background: color-mix(in srgb, #0b1220 55%, transparent);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.nf-pb__chip[hidden],
.ih-widget-chip.nf-pb__chip[hidden],
.nf-pb__chip.is-filtered-out,
.ih-widget-chip.is-filtered-out,
.nf-pb__cat[hidden],
.ih-expert-only[hidden],
.ih-beginner-only[hidden],
.nf-pb__palette-empty[hidden] {
  display: none !important;
}
.nf-pb__chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #ffca28 55%, transparent);
  background: color-mix(in srgb, var(--nf-header, #0345bf) 22%, transparent);
}
.nf-pb__chip-label { font-weight: 750; font-size: .88rem; }
.nf-pb__chip-hint { font-size: .72rem; color: var(--ih-muted, #94a3b8); line-height: 1.25; }

.nf-pb__toolbar {
  display: flex; flex-wrap: wrap; gap: .65rem .85rem;
  align-items: end;
  margin-bottom: .85rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.1));
  background: color-mix(in srgb, #000 22%, transparent);
}
.nf-pb__toolbar-group,
.nf-pb__toolbar-actions {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: end;
}
.nf-pb__field {
  display: grid; gap: .25rem; font-size: .78rem; font-weight: 650;
  color: var(--ih-muted, #94a3b8);
}
.nf-pb__field select {
  min-height: 42px; min-width: 9rem;
  border-radius: 10px; padding: .4rem .55rem;
  border: 1px solid rgba(255,255,255,.28);
  background: #0f172a;
  color: #f8fafc !important;
  font: inherit;
}
.nf-pb__field select option {
  background: #0f172a;
  color: #f8fafc;
}
.ih-control__nav .form-select,
.ih-control__nav select {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255,255,255,.22) !important;
}
.nf-pb__bp .ih-btn { min-height: 40px; padding: .4rem .7rem; }
.nf-pb__bp .is-active {
  border-color: #ffca28 !important;
  background: color-mix(in srgb, #ffca28 18%, transparent);
  font-weight: 700;
}
.nf-pb__workspace {
  display: grid; gap: .85rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.nf-pb--v3 .nf-pb__workspace {
  grid-template-columns: minmax(0, 1fr);
}
.nf-pb__canvas,
.ih-builder__canvas.nf-pb__canvas {
  min-height: 360px;
  padding: 1rem;
  border-radius: 14px;
  border: 2px dashed color-mix(in srgb, #ffca28 35%, var(--ih-border, rgba(255,255,255,.18)));
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.nf-pb__empty {
  display: grid; gap: .75rem; place-items: center;
  text-align: center; padding: 2rem 1rem;
}
.nf-pb__empty-visual {
  width: min(220px, 70%);
  height: 88px;
  border-radius: 16px;
  background:
    linear-gradient(120deg, #ffca28, #f97316 45%, #0345bf);
  opacity: .9;
  mask: radial-gradient(circle at 30% 40%, #000 0 28%, transparent 29%),
        radial-gradient(circle at 70% 55%, #000 0 22%, transparent 23%),
        linear-gradient(#000, #000);
  -webkit-mask:
        radial-gradient(circle at 30% 40%, #000 0 28%, transparent 29%),
        radial-gradient(circle at 70% 55%, #000 0 22%, transparent 23%),
        linear-gradient(#000 40%, transparent 41%);
}
.nf-pb__empty .ih-builder__empty {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.nf-pb__empty-tips {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: .35rem;
  color: #475569; font-size: .9rem;
}
.nf-pb__empty-tips li::before {
  content: "→ ";
  color: #ea580c; font-weight: 800;
}
.nf-pb__inspector {
  padding: .95rem;
  border-radius: 14px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 94%, transparent);
  position: sticky; top: .75rem;
}
.nf-pb__inspector-hint { margin: 0 0 .75rem; font-size: .8rem; color: var(--ih-muted, #94a3b8); }
.nf-pb__preview {
  width: 100%; min-height: 460px; margin-top: .85rem;
  border: 0; border-radius: 14px; background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.nf-pb__toast {
  margin-top: .75rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 1.2em;
}
.nf-pb__toast.is-visible {
  border-color: color-mix(in srgb, #ffca28 40%, transparent);
  background: color-mix(in srgb, #ffca28 12%, transparent);
}
.nf-pb__leads {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
}

.ih-builder {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  margin-top: 1rem;
}
.ih-builder__widgets,
.ih-builder__canvas-wrap {
  padding: 1rem; border-radius: 12px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 82%, transparent);
}
.ih-widget-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.ih-widget-chip {
  border: 1px solid var(--ih-border, rgba(255,255,255,.16));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 90%, transparent);
  color: inherit; border-radius: 999px; padding: .35rem .7rem; cursor: pointer; font: inherit;
}
.ih-widget-chip:hover { border-color: var(--nf-accent, #f97316); }
.ih-builder-ai {
  margin: .75rem 0 1rem; padding: .75rem; border-radius: 10px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.14));
  display: grid; gap: .45rem;
}
.ih-builder-ai textarea {
  width: 100%; box-sizing: border-box; min-height: 4.5rem;
  padding: .5rem .6rem; border-radius: 8px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.16));
  background: color-mix(in srgb, var(--ih-surface, #0b1220) 88%, transparent);
  color: inherit; font: inherit; resize: vertical;
}
.ih-builder-breakpoints { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.ih-builder-breakpoints .is-active { border-color: var(--nf-accent, #f97316); font-weight: 600; }
.ih-builder-block.is-drop { outline: 2px dashed #ea580c; }
.ih-builder__workspace[data-breakpoint="tablet"] .ih-builder__canvas { max-width: 768px; margin-inline: auto; }
.ih-builder__workspace[data-breakpoint="mobile"] .ih-builder__canvas { max-width: 390px; margin-inline: auto; }
.ih-builder__workspace[data-breakpoint="tv"] .ih-builder__canvas { max-width: 100%; }

.ih-builder__workspace {
  display: grid; gap: .85rem;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  align-items: start;
}
.ih-builder__canvas {
  min-height: 280px; padding: .85rem;
  border-radius: 10px; border: 1px dashed var(--ih-border, rgba(255,255,255,.18));
}
.ih-builder__inspector {
  padding: .85rem; border-radius: 10px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 90%, transparent);
}
.ih-builder__inspector h3 { margin: 0 0 .65rem; font-size: 1rem; }
.ih-builder-field { display: block; margin-bottom: .65rem; font-size: .85rem; }
.ih-builder-field input,
.ih-builder-field textarea {
  display: block; width: 100%; margin-top: .25rem; box-sizing: border-box;
  padding: .45rem .55rem; border-radius: 8px; border: 1px solid var(--ih-border, rgba(255,255,255,.16));
  background: color-mix(in srgb, var(--ih-surface, #0b1220) 88%, transparent); color: inherit; font: inherit;
}
.ih-builder-block {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .75rem .9rem; margin-bottom: .55rem; border-radius: 12px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.ih-builder-block:hover { transform: translateY(-1px); border-color: #fdba74; }
.ih-builder-block.is-selected {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px color-mix(in srgb, #ea580c 35%, transparent), 0 8px 20px rgba(234, 88, 12, .12);
}
.ih-builder-block__meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ih-builder-block__meta .ih-muted { color: #64748b !important; }
.ih-builder-block__actions { display: flex; flex-wrap: wrap; gap: .25rem; }
.ih-builder-block__actions .ih-btn {
  min-height: 36px; padding: .25rem .55rem;
  color: #0f172a; border-color: #cbd5e1; background: #f8fafc;
}
.ih-builder__preview {
  width: 100%; min-height: 420px; margin-top: .85rem; border: 0; border-radius: 12px;
  background: #fff;
}
.ih-builder-leads {
  margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--ih-surface, #121b2e) 82%, transparent);
}

@media (max-width: 1100px) {
  .nf-pb--v3 .ih-builder.nf-pb__shell,
  .nf-pb--v3 .nf-pb__shell.ih-builder {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  .nf-pb--v3 .nf-pb__inspector {
    grid-column: 1 / -1;
  }
}
@media (max-width: 980px) {
  .ih-builder.nf-pb__shell,
  .nf-pb__shell.ih-builder,
  .nf-pb--v3 .ih-builder.nf-pb__shell,
  .nf-pb--v3 .nf-pb__shell.ih-builder,
  .nf-pb__workspace,
  .ih-builder__workspace {
    grid-template-columns: 1fr;
  }
  .nf-pb__steps { grid-template-columns: 1fr 1fr; }
  .nf-pb__inspector { position: static; }
}
@media (max-width: 560px) {
  .nf-pb__steps { grid-template-columns: 1fr; }
  .nf-pb__palette { grid-template-columns: 1fr; }
}
.ih-builder-leads h3 { margin: 0 0 .75rem; font-size: 1rem; }
.ih-leads-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ih-leads-list li {
  padding: .65rem .75rem; border-radius: 10px;
  background: color-mix(in srgb, #000 18%, transparent);
  font-size: .9rem; line-height: 1.45;
}
.ih-mode-toggle { display: inline-flex; gap: .25rem; margin: .75rem 0 1rem; padding: .2rem; border-radius: 999px; border: 1px solid var(--ih-border, rgba(255,255,255,.14)); }
.ih-mode-toggle button {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  padding: .4rem .85rem; border-radius: 999px; font: inherit;
}
.ih-mode-toggle button.is-active { background: color-mix(in srgb, var(--nf-accent, #f97316) 22%, transparent); font-weight: 600; }
.ih-mode-hint { list-style: none; margin: .75rem 0 0; padding: .5rem .35rem; opacity: .85; }

@media (max-width: 900px) {
  .ih-acquire-hero__grid,
  .ih-portal-hero__grid,
  .ih-portal-gate__grid,
  .ih-acquire-layout {
    grid-template-columns: 1fr;
  }
  .ih-acquire-hero__visual,
  .ih-portal-hero__visual,
  .ih-portal-gate__visual { order: -1; max-width: 420px; margin-inline: auto; }
  .ih-acquire-card--sticky { position: static; }
  .ih-ssl-hero,
  .ih-builder,
  .ih-builder__workspace { grid-template-columns: 1fr; }
}

/* —— Control nav readability (dark rail + solid text) —— */
.ih-control__nav {
  padding: 1rem .95rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--ih-border, rgba(255,255,255,.12));
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  color: #f8fafc;
  align-self: start;
  /* Grow with page — no nested menu scrollbar */
  position: sticky;
  top: 0.75rem;
  max-height: none;
  overflow: visible;
}
.ih-control__nav .ih-eyebrow,
.ih-control__nav .ih-mode-hint,
.ih-control__nav small,
.ih-control__nav a:not(.ih-control__link):not(.ih-btn) {
  color: #e2e8f0 !important;
}
.ih-control__link {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background-image: none !important;
  font-size: .95rem;
  line-height: 1.35;
}
.ih-control__link.is-active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.ih-mode-toggle button {
  color: #e2e8f0 !important;
}
.ih-mode-toggle button.is-active {
  color: #0f172a !important;
  background: #ffca28 !important;
  font-weight: 700;
}

/* —— UCAB App Builder —— */
.ih-ucab { display: grid; gap: 1rem; }
.ih-ucab__hero h1 { margin: .2rem 0 .45rem; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.ih-ucab__lead { margin: 0; max-width: 48rem; color: var(--ih-muted, #94a3b8); line-height: 1.45; }
.ih-ucab__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ih-ucab__card.ih-card,
.ih-card.ih-ucab__card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--ih-border, rgba(255,255,255,.14));
  border-radius: 14px;
  background: color-mix(in srgb, #0b1220 70%, transparent);
}
.ih-ucab__card h2 { margin: 0 0 .55rem; font-size: 1.05rem; color: #fff; }
.ih-ucab__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0; }
.ih-ucab__cmd,
.ih-ucab__raw {
  margin: .65rem 0 0;
  padding: .75rem .85rem;
  border-radius: 10px;
  background: #020617;
  color: #e2e8f0;
  font-size: .8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
}
.ih-ucab__menu-tree {
  list-style: none; margin: .5rem 0 0; padding: 0;
  display: grid; gap: .35rem;
  max-height: 360px; overflow: auto;
}
.ih-ucab__menu-tree li {
  display: grid; gap: .1rem;
  padding: .45rem .55rem;
  border-radius: 8px;
  background: color-mix(in srgb, #fff 5%, transparent);
  border: 1px solid rgba(255,255,255,.08);
}
.ih-ucab__menu-title {
  color: #fff; font-weight: 700; font-size: .92rem;
}
.ih-ucab__menu-meta {
  color: #94a3b8; font-size: .75rem;
}

/* —— Fullscreen Site Builder / UCAB —— */
html.ih-app-fullscreen,
body.ih-app-fullscreen {
  overflow-x: hidden;
  min-height: 100%;
}
body.ih-app-fullscreen #sp-header,
body.ih-app-fullscreen header.ih-header,
body.ih-app-fullscreen footer.ih-footer,
body.ih-app-fullscreen #sp-footer,
body.ih-app-fullscreen .ih-engine-note,
body.ih-app-fullscreen .nf-community-nav:not(.nf-community-nav--header) {
  display: none !important;
}
body.ih-app-fullscreen #sp-main-body,
body.ih-app-fullscreen .ih-main,
body.ih-app-fullscreen .ih-content,
body.ih-app-fullscreen .nf-component,
body.ih-app-fullscreen #sp-component,
body.ih-app-fullscreen .nf-portal-grid {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}
.ih-control--fullscreen {
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
}
.ih-control__layout--fullscreen {
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr) !important;
  gap: 1rem !important;
  padding: .85rem 1rem 1.25rem !important;
  min-height: calc(100dvh - 88px);
  height: auto;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  width: 100%;
}
.ih-control__layout--fullscreen .ih-control__nav--compact {
  padding: .85rem .7rem 1rem;
  overflow: visible;
  max-height: none;
  position: sticky;
  top: .75rem;
  align-self: start;
}
.ih-control__layout--fullscreen .ih-control__menu {
  gap: .12rem;
}
.ih-control__layout--fullscreen .ih-control__link {
  min-height: 36px;
  padding: .4rem .7rem;
  font-size: .92rem;
}
.ih-control__layout--fullscreen .ih-control__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  height: auto;
  width: 100%;
}
.ih-control__back { margin: 0 0 .5rem; }
.nf-pb--fullscreen {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: calc(100dvh - 140px);
  overflow: visible;
  margin: 0;
  width: 100%;
}
.nf-pb__hero--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding: .35rem 0 .15rem;
  margin: 0;
}
.nf-pb__hero--compact h1 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}
.nf-pb__hero--compact .nf-pb__steps {
  margin: 0;
  flex: 1 1 280px;
}
body.ih-app-fullscreen .ih-builder.nf-pb__shell,
body.ih-app-fullscreen .nf-pb__shell.ih-builder {
  flex: 1 1 auto;
  min-height: 520px;
  height: auto;
  margin: 0;
  overflow: visible;
  align-items: stretch;
  width: 100%;
}
body.ih-app-fullscreen .nf-pb__rail,
body.ih-app-fullscreen .nf-pb__stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  height: auto;
}
body.ih-app-fullscreen .nf-pb__workspace,
body.ih-app-fullscreen .ih-builder__workspace {
  flex: 1 1 auto;
  min-height: 420px;
  overflow: visible;
  align-items: stretch;
}
body.ih-app-fullscreen .nf-pb__canvas,
body.ih-app-fullscreen .ih-builder__canvas.nf-pb__canvas {
  min-height: 420px;
  height: auto;
  overflow: visible;
}
body.ih-app-fullscreen .nf-pb__inspector {
  overflow: visible;
  max-height: none;
}
@media (max-width: 980px) {
  .ih-control__layout--fullscreen {
    grid-template-columns: 1fr !important;
    height: auto;
    max-height: none;
    overflow: auto;
  }
  .ih-control__layout--fullscreen .ih-control__nav--compact {
    position: static;
  }
  html.ih-app-fullscreen,
  body.ih-app-fullscreen {
    overflow: auto !important;
    height: auto;
  }
}

/* —— NovaFrame Builder Phase 1 — Craft shell (Impero-dark liquid glass) —— */
.nf-pb--v3 {
  --nf-glass: color-mix(in srgb, #0b1220 72%, transparent);
  --nf-glass-border: color-mix(in srgb, #ffca28 22%, rgba(255,255,255,.12));
  --nf-accent-warm: #ffca28;
  --nf-accent-brand: #f97316;
  --nf-ink-deep: #071018;
}
.nf-pb--v3 .nf-pb__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.1rem;
  padding: .7rem .95rem;
  margin: 0 0 .35rem;
  border-radius: 16px;
  border: 1px solid var(--nf-glass-border);
  background:
    linear-gradient(135deg, color-mix(in srgb, #ffca28 10%, transparent), transparent 42%),
    linear-gradient(225deg, color-mix(in srgb, #0345bf 28%, transparent), transparent 50%),
    var(--nf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(0,0,0,.28);
}
.nf-pb--v3 .nf-pb__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.nf-pb--v3 .nf-pb__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, #ffca28, transparent 55%),
    linear-gradient(145deg, #0345bf, #0b1220);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  flex: 0 0 auto;
}
.nf-pb--v3 .nf-pb__brand-copy h1 {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -.01em;
}
.nf-pb--v3 .nf-pb__eyebrow {
  margin: 0 0 .1rem;
  color: var(--nf-accent-warm);
}
.nf-pb--v3 .nf-pb__steps {
  flex: 1 1 280px;
  margin: 0;
}
.nf-pb--v3 .nf-pb__topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.nf-pb--v3 .nf-pb__mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .2rem .65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ffca28 45%, transparent);
  background: color-mix(in srgb, #ffca28 14%, transparent);
  color: #ffe9a3;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nf-pb--v3 .nf-pb__rail,
.nf-pb--v3 .nf-pb__stage,
.nf-pb--v3 .nf-pb__inspector {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, rgba(255,255,255,.14), #ffca28 8%);
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 4%, transparent), transparent 28%),
    color-mix(in srgb, #0b1220 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.nf-pb--v3 .nf-pb__rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: .85rem;
  gap: .65rem;
}
.nf-pb--v3 .nf-pb__rail-tabs,
.nf-pb--v3 .nf-pb__insp-tabs {
  display: flex;
  gap: .3rem;
  padding: .25rem;
  border-radius: 12px;
  background: color-mix(in srgb, #000 35%, transparent);
  border: 1px solid rgba(255,255,255,.08);
}
.nf-pb--v3 .nf-pb__rail-tab,
.nf-pb--v3 .nf-pb__insp-tab {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  color: var(--ih-muted, #94a3b8);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  min-height: 36px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nf-pb--v3 .nf-pb__rail-tab.is-active,
.nf-pb--v3 .nf-pb__insp-tab.is-active {
  background: color-mix(in srgb, #ffca28 18%, transparent);
  color: #fff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffca28 35%, transparent);
}
.nf-pb--v3 .nf-pb__rail-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  gap: .55rem;
}
.nf-pb--v3 .nf-pb__palette {
  overflow: auto;
  max-height: min(52vh, 560px);
}
.nf-pb--v3 .nf-pb__chip.is-dragging,
.nf-pb--v3 .ih-builder-block.is-dragging {
  opacity: .55;
  transform: scale(.98);
}
.nf-pb--v3 .nf-pb__canvas.is-drop-target {
  border-color: #ffca28;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, #ffca28 45%, transparent);
}
.nf-pb--v3 .nf-pb__canvas {
  background:
    linear-gradient(180deg, #fbfcfe 0%, #eef2f7 100%);
  border: 1px solid color-mix(in srgb, #cbd5e1 70%, #ffca28 10%);
  border-style: solid;
  min-height: 480px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.nf-pb--v3 .nf-pb__canvas.has-blocks {
  border-style: solid;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, #ffca28 6%, transparent), transparent 45%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}
.nf-pb--v3 .ih-builder-block {
  display: grid;
  gap: .55rem;
  padding: .7rem .8rem .85rem;
  margin-bottom: .7rem;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.nf-pb--v3 .ih-builder-block__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
}
.nf-pb--v3 .ih-builder-block:hover {
  transform: translateY(-1px);
  border-color: #fdba74;
}
.nf-pb--v3 .ih-builder-block.is-selected {
  border-color: #ea580c;
  box-shadow:
    0 0 0 2px color-mix(in srgb, #ea580c 40%, transparent),
    0 10px 28px rgba(234, 88, 12, .14);
}
.nf-pb--v3 .ih-builder-block.is-drop {
  outline: 2px dashed #ea580c;
  outline-offset: 2px;
  background: color-mix(in srgb, #ffedd5 55%, #fff);
}
.nf-pb--v3 .nf-pb__live {
  padding: .85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
  min-height: 72px;
}
.nf-pb--v3 .nf-pb__live.nf-section,
.nf-pb--v3 .nf-pb__live.nf-btn {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
.nf-pb--v3 .nf-pb__live-kicker {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: .25rem;
}
.nf-pb--v3 .nf-pb__live-title {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
}
.nf-pb--v3 .nf-pb__live-sub {
  margin-top: .25rem;
  font-size: .86rem;
  opacity: .85;
  line-height: 1.35;
}
.nf-pb--v3 .nf-pb__inspector {
  position: sticky;
  top: .5rem;
  align-self: start;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.nf-pb--v3 .nf-pb__insp-head h3 { margin: 0; font-size: 1rem; }
.nf-pb--v3 .nf-pb__insp-meta {
  margin: 0 0 .55rem;
  font-size: .8rem;
  color: var(--ih-muted, #94a3b8);
}
.nf-pb--v3 .nf-pb__insp-meta code,
.nf-pb--v3 .nf-pb__insp-target code,
.nf-pb--v3 .nf-pb__token-row code {
  font-size: .75rem;
  color: #ffca28;
}
.nf-pb--v3 .nf-pb__insp-target {
  margin: 0 0 .65rem;
  font-size: .82rem;
  color: var(--ih-muted, #94a3b8);
}
.nf-pb--v3 .nf-pb__css-row .nf-pb__css-key {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: #cbd5e1;
}
.nf-pb--v3 .nf-pb__css-hint {
  margin: .35rem 0 .75rem;
  font-size: .75rem;
  color: var(--ih-muted, #94a3b8);
}
.nf-pb--v3 .nf-pb__class-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .65rem;
}
.nf-pb--v3 .nf-pb__class-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(255,255,255,.16);
  background: color-mix(in srgb, #000 25%, transparent);
  color: inherit;
  border-radius: 999px;
  padding: .28rem .55rem .28rem .7rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
}
.nf-pb--v3 .nf-pb__class-chip.is-active {
  border-color: #ffca28;
  background: color-mix(in srgb, #ffca28 16%, transparent);
}
.nf-pb--v3 .nf-pb__class-x {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .85rem;
  line-height: 1;
}
.nf-pb--v3 .nf-pb__insp-actions {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nf-pb--v3 .nf-pb__tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .25rem;
}
.nf-pb--v3 .nf-pb__tree-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .45rem;
  text-align: left;
  border: 1px solid transparent;
  background: color-mix(in srgb, #000 22%, transparent);
  color: inherit;
  border-radius: 10px;
  padding: .45rem .6rem;
  font: inherit;
  cursor: pointer;
}
.nf-pb--v3 .nf-pb__tree-item.is-selected .nf-pb__tree-btn,
.nf-pb--v3 .nf-pb__tree-btn:hover {
  border-color: color-mix(in srgb, #ffca28 45%, transparent);
  background: color-mix(in srgb, #ffca28 12%, transparent);
}
.nf-pb--v3 .nf-pb__tree-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: #93c5fd;
}
.nf-pb--v3 .nf-pb__tree-class {
  font-size: .72rem;
  color: var(--ih-muted, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nf-pb--v3 .nf-pb__tree-kids {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 800;
  color: #ffca28;
}
.nf-pb--v3 .nf-pb__token-row {
  display: grid;
  gap: .3rem;
}
.nf-pb--v3 .nf-pb__token-row input[type="color"] {
  width: 100%;
  min-height: 40px;
  padding: .15rem;
  cursor: pointer;
}
.nf-pb--v3 .nf-pb__mcp-stub {
  margin: .5rem 0 0;
  font-size: .72rem;
  color: var(--ih-muted, #64748b);
}
.nf-pb--v3 .ih-builder__workspace {
  grid-template-columns: 1fr;
}
body.ih-app-fullscreen .nf-pb--v3 .nf-pb__inspector {
  max-height: calc(100dvh - 100px);
  overflow: auto;
}


