:root {
  --itkb-im-bg: #020617;
  --itkb-im-border: #334155;
  --itkb-im-text: #f8fafc;
  --itkb-im-muted: #94a3b8;
  --itkb-im-accent: #38bdf8;
  --itkb-im-accent-2: #2563eb;
  --itkb-im-danger: #ef4444;
  --itkb-im-warn: #f59e0b;
  --itkb-im-good: #22c55e;
}

.itkb-im,
.itkb-im * {
  box-sizing: border-box;
}

.itkb-im {
  width: 100%;
  max-width: 100%;
  min-height: var(--itkb-im-height, 820px);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at top, #111827 0, var(--itkb-im-bg) 44%);
  color: var(--itkb-im-text);
  font-family: Arial, Helvetica, sans-serif;
  container-type: inline-size;
}

.itkb-im button,
.itkb-im .itkb-im-file-button {
  border: 1px solid rgba(255,255,255,.14);
  background: var(--itkb-im-accent-2);
  color: white;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.itkb-im button.secondary,
.itkb-im .itkb-im-file-button {
  background: #1e293b;
}

.itkb-im button.danger {
  color: #fecaca;
  border-color: rgba(239,68,68,.4);
}

.itkb-im .itkb-im-file-button input {
  display: none;
}

.itkb-im input,
.itkb-im textarea,
.itkb-im select {
  width: 100%;
  border: 1px solid var(--itkb-im-border);
  background: #020617;
  color: var(--itkb-im-text);
  border-radius: 8px;
  padding: 9px;
  margin: 5px 0 12px;
  font: inherit;
}

.itkb-im textarea {
  min-height: 86px;
  resize: vertical;
}

.itkb-im label {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.itkb-im-header {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  background: rgba(2, 6, 23, .95);
  border-bottom: 1px solid var(--itkb-im-border);
  padding: 12px 16px;
}

.itkb-im-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--itkb-im-text);
}

.itkb-im-header p {
  margin: 3px 0 0;
  color: var(--itkb-im-muted);
  font-size: 13px;
}

.itkb-im-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 560px;
}

.itkb-im-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 350px;
  height: calc(var(--itkb-im-height, 820px) - 82px);
  min-height: 650px;
}

.itkb-im-sidebar,
.itkb-im-details {
  background: rgba(15, 23, 42, .92);
  border-right: 1px solid var(--itkb-im-border);
  overflow-y: auto;
  padding: 12px;
}

.itkb-im-details {
  border-right: 0;
  border-left: 1px solid var(--itkb-im-border);
}

.itkb-im-panel {
  background: rgba(17, 24, 39, .86);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.itkb-im-panel h3 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--itkb-im-text);
}

.itkb-im-hint {
  color: var(--itkb-im-muted);
  font-size: 13px;
  line-height: 1.35;
}

.itkb-im-security-note {
  border-left: 3px solid var(--itkb-im-accent);
  padding: 8px 9px;
  background: rgba(56, 189, 248, .08);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 8px;
}

.itkb-im-template-list {
  display: grid;
  gap: 7px;
}

.itkb-im-template {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: #0b1220 !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 10px;
  padding: 9px;
  cursor: pointer;
  color: #e2e8f0 !important;
  text-align: left;
}

.itkb-im-template:hover {
  border-color: var(--itkb-im-accent) !important;
}

.itkb-im-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #1d4ed8;
  font-weight: 800;
  font-size: 11px;
  flex: 0 0 auto;
}

.itkb-im-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.itkb-im-canvas-toolbar {
  min-height: 48px;
  border-bottom: 1px solid var(--itkb-im-border);
  background: rgba(15,23,42,.72);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 10px;
  color: var(--itkb-im-muted);
  font-size: 13px;
  gap: 10px;
  flex-wrap: wrap;
}

.itkb-im-canvas-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.itkb-im-canvas-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: auto;
  background:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px),
    #07111f;
  background-size: 24px 24px;
}

.itkb-im-canvas {
  position: relative;
  width: 2400px;
  height: 1600px;
}

.itkb-im-connection-layer {
  position: absolute;
  width: 2400px;
  height: 1600px;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.itkb-im-connection-line {
  stroke: #60a5fa;
  stroke-width: 3;
  opacity: .85;
  pointer-events: stroke;
  cursor: pointer;
}

.itkb-im-connection-line.selected {
  stroke: #fbbf24;
  stroke-width: 5;
}

.itkb-im-connection-label {
  fill: #e2e8f0;
  font-size: 12px;
  paint-order: stroke;
  stroke: #020617;
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}

.itkb-im-asset {
  position: absolute;
  width: 156px;
  min-height: 86px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border-radius: 14px;
  padding: 10px;
  z-index: 2;
  cursor: grab;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  user-select: none;
  touch-action: none;
}

.itkb-im-asset.selected {
  outline: 2px solid var(--itkb-im-accent);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, .15);
}

.itkb-im-asset.connect-pending {
  outline: 2px solid #fbbf24;
}

.itkb-im-asset-title {
  font-weight: 800;
  font-size: 14px;
  margin: 7px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itkb-im-asset-type {
  color: var(--itkb-im-muted);
  font-size: 12px;
}

.itkb-im-asset-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.itkb-im-badge {
  font-size: 10px;
  border: 1px solid rgba(255,255,255,.14);
  color: #dbeafe;
  border-radius: 999px;
  padding: 2px 6px;
}

.itkb-im-badge.risk-high,
.itkb-im-badge.risk-critical {
  color: #fecaca;
  border-color: rgba(239,68,68,.45);
}

.itkb-im-badge.risk-medium {
  color: #fde68a;
  border-color: rgba(245,158,11,.45);
}

.itkb-im-badge.good {
  color: #bbf7d0;
  border-color: rgba(34,197,94,.4);
}

.itkb-im-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin: 4px 0 12px;
}

.itkb-im-check-grid label {
  font-weight: 400;
  color: #e2e8f0;
}

.itkb-im-check-grid input {
  width: auto;
  margin: 0 5px 0 0;
}

.itkb-im-connection-box {
  margin-top: 10px;
  color: var(--itkb-im-muted);
  font-size: 13px;
  line-height: 1.4;
}

.itkb-im-summary-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.itkb-im-summary-item {
  border-left: 3px solid var(--itkb-im-border);
  padding-left: 9px;
  color: #dbeafe;
}

.itkb-im-summary-item.warn { border-color: var(--itkb-im-warn); }
.itkb-im-summary-item.danger { border-color: var(--itkb-im-danger); }
.itkb-im-summary-item.good { border-color: var(--itkb-im-good); }

.itkb-im-hidden {
  display: none !important;
}

.itkb-im-noscript {
  padding: 16px;
  color: #fecaca;
}

/* Container-responsive layout for WordPress themes with narrower content columns. */
@container (max-width: 1280px) {
  .itkb-im-header {
    flex-direction: column;
  }

  .itkb-im-header-actions {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
  }

  .itkb-im-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas:
      "sidebar workspace"
      "details details";
    height: auto;
    min-height: 0;
  }

  .itkb-im-sidebar {
    grid-area: sidebar;
    max-height: 720px;
  }

  .itkb-im-workspace {
    grid-area: workspace;
    min-height: 720px;
  }

  .itkb-im-details {
    grid-area: details;
    border-left: 0;
    border-top: 1px solid var(--itkb-im-border);
    max-height: none;
  }
}

@container (max-width: 900px) {
  .itkb-im-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "workspace"
      "details";
  }

  .itkb-im-sidebar,
  .itkb-im-details {
    border-left: 0;
    border-right: 0;
  }

  .itkb-im-workspace {
    height: 720px;
    min-height: 720px;
  }

  .itkb-im-header-actions > button,
  .itkb-im-header-actions > .itkb-im-file-button {
    flex: 1 1 160px;
    text-align: center;
  }
}

/* Fallback for browsers without container query support. */
@media (max-width: 1280px) {
  .itkb-im-header {
    flex-direction: column;
  }

  .itkb-im-header-actions {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
  }

  .itkb-im-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas:
      "sidebar workspace"
      "details details";
    height: auto;
    min-height: 0;
  }

  .itkb-im-sidebar { grid-area: sidebar; max-height: 720px; }
  .itkb-im-workspace { grid-area: workspace; min-height: 720px; }
  .itkb-im-details {
    grid-area: details;
    border-left: 0;
    border-top: 1px solid var(--itkb-im-border);
    max-height: none;
  }
}

@media (max-width: 900px) {
  .itkb-im-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "workspace"
      "details";
  }

  .itkb-im-sidebar,
  .itkb-im-details {
    border-left: 0;
    border-right: 0;
  }

  .itkb-im-workspace {
    height: 720px;
    min-height: 720px;
  }

  .itkb-im-header-actions > button,
  .itkb-im-header-actions > .itkb-im-file-button {
    flex: 1 1 160px;
    text-align: center;
  }
}

/* Mobile usability improvements. */
.itkb-im-mobile-nav {
  display: none;
}

@container (max-width: 900px) {
  .itkb-im {
    border-radius: 12px;
  }

  .itkb-im-header {
    padding: 12px;
    gap: 10px;
  }

  .itkb-im-header h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .itkb-im-header p {
    font-size: 12px;
  }

  .itkb-im-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .itkb-im-header-actions > button,
  .itkb-im-header-actions > .itkb-im-file-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
    white-space: normal;
  }

  .itkb-im-header-actions [data-action="save-encrypted"] {
    grid-column: 1 / -1;
  }

  .itkb-im-mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(2, 6, 23, .96);
    border-bottom: 1px solid var(--itkb-im-border);
    padding: 8px;
  }

  .itkb-im-mobile-nav button {
    min-height: 42px;
    background: #111827;
    border-color: rgba(56,189,248,.35);
    color: #bae6fd;
    font-size: 12px;
  }

  .itkb-im-sidebar,
  .itkb-im-details {
    padding: 10px;
  }

  .itkb-im-panel {
    padding: 10px;
    margin-bottom: 10px;
  }

  .itkb-im-template-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .itkb-im-template {
    min-width: 190px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .itkb-im-workspace {
    height: 560px;
    min-height: 560px;
  }

  .itkb-im-canvas-toolbar {
    align-items: stretch;
  }

  .itkb-im-canvas-toolbar > span {
    width: 100%;
    line-height: 1.35;
  }

  .itkb-im-canvas-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .itkb-im-canvas-toolbar-actions button {
    min-height: 42px;
  }

  .itkb-im-canvas-wrap {
    min-height: 500px;
    -webkit-overflow-scrolling: touch;
  }

  .itkb-im-canvas {
    width: 1600px;
    height: 1100px;
  }

  .itkb-im-connection-layer {
    width: 1600px;
    height: 1100px;
  }

  .itkb-im-asset {
    width: 140px;
    min-height: 78px;
    padding: 8px;
  }

  .itkb-im-icon {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .itkb-im-asset-title {
    font-size: 13px;
  }

  .itkb-im-asset-type {
    font-size: 11px;
  }

  .itkb-im-check-grid {
    grid-template-columns: 1fr;
  }

  .itkb-im input,
  .itkb-im textarea,
  .itkb-im select {
    min-height: 44px;
    font-size: 16px;
  }

  .itkb-im textarea {
    min-height: 110px;
  }
}

@media (max-width: 900px) {
  .itkb-im {
    border-radius: 12px;
  }

  .itkb-im-header {
    padding: 12px;
    gap: 10px;
  }

  .itkb-im-header h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .itkb-im-header p {
    font-size: 12px;
  }

  .itkb-im-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .itkb-im-header-actions > button,
  .itkb-im-header-actions > .itkb-im-file-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
    white-space: normal;
  }

  .itkb-im-header-actions [data-action="save-encrypted"] {
    grid-column: 1 / -1;
  }

  .itkb-im-mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(2, 6, 23, .96);
    border-bottom: 1px solid var(--itkb-im-border);
    padding: 8px;
  }

  .itkb-im-mobile-nav button {
    min-height: 42px;
    background: #111827;
    border-color: rgba(56,189,248,.35);
    color: #bae6fd;
    font-size: 12px;
  }

  .itkb-im-sidebar,
  .itkb-im-details {
    padding: 10px;
  }

  .itkb-im-panel {
    padding: 10px;
    margin-bottom: 10px;
  }

  .itkb-im-template-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .itkb-im-template {
    min-width: 190px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .itkb-im-workspace {
    height: 560px;
    min-height: 560px;
  }

  .itkb-im-canvas-toolbar > span {
    width: 100%;
    line-height: 1.35;
  }

  .itkb-im-canvas-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .itkb-im-canvas-toolbar-actions button {
    min-height: 42px;
  }

  .itkb-im-canvas-wrap {
    min-height: 500px;
    -webkit-overflow-scrolling: touch;
  }

  .itkb-im-canvas {
    width: 1600px;
    height: 1100px;
  }

  .itkb-im-connection-layer {
    width: 1600px;
    height: 1100px;
  }

  .itkb-im-asset {
    width: 140px;
    min-height: 78px;
    padding: 8px;
  }

  .itkb-im-icon {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .itkb-im-asset-title {
    font-size: 13px;
  }

  .itkb-im-asset-type {
    font-size: 11px;
  }

  .itkb-im-check-grid {
    grid-template-columns: 1fr;
  }

  .itkb-im input,
  .itkb-im textarea,
  .itkb-im select {
    min-height: 44px;
    font-size: 16px;
  }

  .itkb-im textarea {
    min-height: 110px;
  }
}

/* Dashboard/workspace style sidebar. */
.itkb-im-sidebar {
  transition: width .18s ease, padding .18s ease;
}

.itkb-im-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 8px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.itkb-im-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #93c5fd;
  background: rgba(37, 99, 235, .22);
  border: 1px solid rgba(96, 165, 250, .35);
  font-size: 20px;
  flex: 0 0 auto;
}

.itkb-im-brand-copy {
  display: grid;
  min-width: 0;
}

.itkb-im-brand-copy strong {
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.2;
}

.itkb-im-brand-copy span {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 2px;
}

.itkb-im-sidebar-toggle {
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  background: #111827 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-shell {
  grid-template-columns: 84px minmax(0, 1fr) 350px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar {
  padding: 10px 8px;
  overflow-x: hidden;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-brand {
  justify-content: center;
  padding: 6px 0 12px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-brand-copy {
  display: none;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-toggle {
  position: absolute;
  left: 20px;
  top: 76px;
  width: 42px;
  height: 42px;
  z-index: 5;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-security-panel,
.itkb-im.itkb-im-sidebar-collapsed .itkb-im-connections-panel,
.itkb-im.itkb-im-sidebar-collapsed .itkb-im-project-panel {
  display: none;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-panel {
  margin-top: 54px;
  padding: 0;
  border: 0;
  background: transparent;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-panel h3 {
  display: none;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-list {
  display: grid;
  gap: 8px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-template {
  width: 52px;
  min-width: 52px;
  height: 52px;
  justify-content: center;
  padding: 0;
  border-radius: 16px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-template .itkb-im-icon {
  width: 36px;
  height: 36px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-workspace {
  min-width: 0;
}

@container (max-width: 1280px) {
  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-shell {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "sidebar workspace"
      "details details";
  }
}

@container (max-width: 900px) {
  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "workspace"
      "details";
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar {
    padding: 10px;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-brand {
    justify-content: flex-start;
    padding: 8px 8px 12px;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-brand-copy {
    display: grid;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-toggle {
    position: static;
    margin-left: auto;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-panel {
    margin-top: 0;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-list {
    display: flex;
  }
}

@media (max-width: 1280px) {
  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-shell {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "sidebar workspace"
      "details details";
  }
}

@media (max-width: 900px) {
  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "workspace"
      "details";
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar {
    padding: 10px;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-brand {
    justify-content: flex-start;
    padding: 8px 8px 12px;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-brand-copy {
    display: grid;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-toggle {
    position: static;
    margin-left: auto;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-panel {
    margin-top: 0;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-template-list {
    display: flex;
  }
}

/* Tabbed workspace UI v0.4.0 */
.itkb-im-tabbed-shell {
  grid-template-columns: 360px minmax(0, 1fr) !important;
  grid-template-areas: "sidebar workspace" !important;
}

.itkb-im-tab-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.itkb-im-tabbed-shell .itkb-im-workspace {
  grid-area: workspace;
  min-width: 0;
}

.itkb-im-tab-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.itkb-im-tab-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  background: #0b1220;
  border-color: rgba(148, 163, 184, .2);
  color: #cbd5e1;
  text-align: left;
  justify-content: flex-start;
}

.itkb-im-tab-nav button.active {
  background: rgba(37, 99, 235, .35);
  border-color: rgba(96, 165, 250, .55);
  color: #f8fafc;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.itkb-im-tab-icon {
  width: 26px;
  display: inline-grid;
  place-items: center;
  color: #bfdbfe;
  font-size: 17px;
  flex: 0 0 auto;
}

.itkb-im-tab-label {
  font-weight: 800;
}

.itkb-im-tab-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.itkb-im-tab-panel {
  display: none;
  margin-bottom: 0;
}

.itkb-im-tab-panel.active {
  display: block;
}

.itkb-im-security-summary {
  margin-top: 12px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-tabbed-shell {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-sidebar {
  padding-left: 8px;
  padding-right: 8px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-brand-copy {
  display: none;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-brand {
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  padding-right: 0;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-toggle {
  position: static;
  margin-left: 0;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-nav button {
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 16px;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-label,
.itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-content {
  display: none;
}

.itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-icon {
  width: auto;
  font-size: 20px;
}

.itkb-im-tabbed-shell .itkb-im-details {
  display: none !important;
}

@container (max-width: 1280px) {
  .itkb-im-tabbed-shell {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    grid-template-areas: "sidebar workspace" !important;
    height: calc(var(--itkb-im-height, 820px) - 82px);
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tabbed-shell {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    grid-template-areas: "sidebar workspace" !important;
  }

  .itkb-im-tab-sidebar {
    max-height: none;
  }

  .itkb-im-tabbed-shell .itkb-im-workspace {
    min-height: auto;
  }
}

@container (max-width: 900px) {
  .itkb-im-tabbed-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "sidebar"
      "workspace" !important;
    height: auto;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tabbed-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "sidebar"
      "workspace" !important;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-content {
    display: block;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-label {
    display: inline;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-nav button {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 9px 12px;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-brand {
    flex-direction: row;
    justify-content: flex-start;
  }

  .itkb-im-tab-nav {
    grid-template-columns: repeat(5, minmax(80px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .itkb-im-tab-nav button {
    min-width: 96px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 4px;
    min-height: 58px;
    padding: 8px;
  }

  .itkb-im-tab-label {
    font-size: 11px;
  }

  .itkb-im-tab-sidebar {
    max-height: none;
  }

  .itkb-im-template-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .itkb-im-template {
    min-width: 190px;
    flex: 0 0 auto;
  }
}

@media (max-width: 1280px) {
  .itkb-im-tabbed-shell {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    grid-template-areas: "sidebar workspace" !important;
    height: calc(var(--itkb-im-height, 820px) - 82px);
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tabbed-shell {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    grid-template-areas: "sidebar workspace" !important;
  }

  .itkb-im-tab-sidebar {
    max-height: none;
  }

  .itkb-im-tabbed-shell .itkb-im-workspace {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .itkb-im-tabbed-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "sidebar"
      "workspace" !important;
    height: auto;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tabbed-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "sidebar"
      "workspace" !important;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-content {
    display: block;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-label {
    display: inline;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-tab-nav button {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 9px 12px;
  }

  .itkb-im.itkb-im-sidebar-collapsed .itkb-im-sidebar-brand {
    flex-direction: row;
    justify-content: flex-start;
  }

  .itkb-im-tab-nav {
    grid-template-columns: repeat(5, minmax(80px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .itkb-im-tab-nav button {
    min-width: 96px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 4px;
    min-height: 58px;
    padding: 8px;
  }

  .itkb-im-tab-label {
    font-size: 11px;
  }

  .itkb-im-tab-sidebar {
    max-height: none;
  }

  .itkb-im-template-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .itkb-im-template {
    min-width: 190px;
    flex: 0 0 auto;
  }
}

/* Tab sidebar scroll fix v0.4.1 */
.itkb-im-tab-sidebar {
  overflow: hidden !important;
  min-height: 0;
}

.itkb-im-tab-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.itkb-im-tab-content::-webkit-scrollbar {
  width: 8px;
}

.itkb-im-tab-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, .65);
}

.itkb-im-tab-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .45);
  border-radius: 999px;
}

.itkb-im-tab-content::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, .7);
}

.itkb-im-tab-panel.active {
  padding-bottom: 28px;
}

.itkb-im-tab-panel[data-tab-panel="details"].active {
  min-height: max-content;
}

.itkb-im-tab-panel[data-tab-panel="details"] textarea {
  min-height: 140px;
}

.itkb-im-tab-panel[data-tab-panel="details"] button[data-action="save-asset"] {
  position: sticky;
  bottom: 0;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 -10px 22px rgba(2, 6, 23, .65);
}

@container (max-width: 900px) {
  .itkb-im-tab-sidebar {
    overflow: visible !important;
  }

  .itkb-im-tab-content {
    max-height: 520px;
    overflow-y: auto !important;
    padding-right: 4px;
  }

  .itkb-im-tab-panel.active {
    padding-bottom: 18px;
  }
}

@media (max-width: 900px) {
  .itkb-im-tab-sidebar {
    overflow: visible !important;
  }

  .itkb-im-tab-content {
    max-height: 520px;
    overflow-y: auto !important;
    padding-right: 4px;
  }

  .itkb-im-tab-panel.active {
    padding-bottom: 18px;
  }
}

/* True workspace layout v0.5.0 */
.itkb-im-v050-shell {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) 360px !important;
  grid-template-areas: "nav map inspector" !important;
  height: calc(var(--itkb-im-height, 820px) - 82px);
  min-height: 680px;
}

.itkb-im-left-rail {
  grid-area: nav;
  min-width: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, .94);
  border-right: 1px solid var(--itkb-im-border);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.itkb-im-v050-shell .itkb-im-workspace {
  grid-area: map;
  min-width: 0;
  min-height: 0;
}

.itkb-im-inspector {
  grid-area: inspector;
  min-width: 0;
  min-height: 0;
  background: rgba(15, 23, 42, .94);
  border-left: 1px solid var(--itkb-im-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.itkb-im-inspector-header {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .42);
  display: grid;
  gap: 2px;
}

.itkb-im-inspector-header strong {
  color: #f8fafc;
  font-size: 16px;
}

.itkb-im-inspector-header span {
  color: #94a3b8;
  font-size: 12px;
}

.itkb-im-inspector-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  scrollbar-width: thin;
}

.itkb-im-inspector-body::-webkit-scrollbar {
  width: 8px;
}

.itkb-im-inspector-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, .65);
}

.itkb-im-inspector-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .45);
  border-radius: 999px;
}

.itkb-im-inspector-body .itkb-im-panel {
  margin-bottom: 0;
}

.itkb-im-tab-panel {
  display: none;
}

.itkb-im-tab-panel.active {
  display: block;
}

.itkb-im-tab-nav {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.itkb-im-tab-nav button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  background: #0b1220;
  border-color: rgba(148, 163, 184, .2);
  color: #cbd5e1;
  text-align: left;
}

.itkb-im-tab-nav button.active {
  background: rgba(37, 99, 235, .35);
  border-color: rgba(96, 165, 250, .55);
  color: #f8fafc;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.itkb-im-tab-icon {
  width: 28px;
  display: inline-grid;
  place-items: center;
  color: #bfdbfe;
  font-size: 18px;
  flex: 0 0 auto;
}

.itkb-im-tab-label {
  font-weight: 800;
}

.itkb-im-security-summary {
  margin-top: 12px;
}

.itkb-im-inspector-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0), rgba(15,23,42,.96) 30%);
  padding-top: 14px;
  margin-top: 8px;
}

.itkb-im-inspector-actions button {
  width: 100%;
  min-height: 44px;
}

.itkb-im-rail-collapsed .itkb-im-v050-shell {
  grid-template-columns: 86px minmax(0, 1fr) 360px !important;
}

.itkb-im-rail-collapsed .itkb-im-left-rail {
  padding: 10px 8px;
}

.itkb-im-rail-collapsed .itkb-im-brand-copy {
  display: none;
}

.itkb-im-rail-collapsed .itkb-im-sidebar-brand {
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  padding-right: 0;
}

.itkb-im-rail-collapsed .itkb-im-sidebar-toggle {
  position: static;
  margin-left: 0;
}

.itkb-im-rail-collapsed .itkb-im-tab-nav button {
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 16px;
}

.itkb-im-rail-collapsed .itkb-im-tab-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.itkb-im-rail-collapsed .itkb-im-tab-icon {
  width: auto;
  font-size: 20px;
}

/* Disable legacy panels from previous iterations. */
.itkb-im-v050-shell .itkb-im-details,
.itkb-im-v050-shell .itkb-im-sidebar:not(.itkb-im-left-rail),
.itkb-im-mobile-nav {
  display: none !important;
}

@container (max-width: 1280px) {
  .itkb-im-v050-shell {
    grid-template-columns: 220px minmax(0, 1fr) 330px !important;
  }

  .itkb-im-rail-collapsed .itkb-im-v050-shell {
    grid-template-columns: 84px minmax(0, 1fr) 330px !important;
  }
}

@container (max-width: 1050px) {
  .itkb-im-v050-shell {
    grid-template-columns: 76px minmax(0, 1fr) 320px !important;
  }

  .itkb-im-left-rail {
    padding: 10px 8px;
  }

  .itkb-im-brand-copy {
    display: none;
  }

  .itkb-im-sidebar-brand {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .itkb-im-tab-nav button {
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 16px;
  }

  .itkb-im-tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .itkb-im-sidebar-toggle {
    display: none !important;
  }
}

@container (max-width: 900px) {
  .itkb-im-v050-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "map"
      "nav"
      "inspector" !important;
    height: auto;
    min-height: 0;
  }

  .itkb-im-v050-shell .itkb-im-workspace {
    min-height: 560px;
    height: 560px;
  }

  .itkb-im-left-rail {
    border-right: 0;
    border-top: 1px solid var(--itkb-im-border);
    border-bottom: 1px solid var(--itkb-im-border);
    padding: 8px;
  }

  .itkb-im-sidebar-brand {
    display: none;
  }

  .itkb-im-tab-nav {
    grid-template-columns: repeat(5, minmax(82px, 1fr));
    overflow-x: auto;
    gap: 6px;
    margin-top: 0;
    padding-bottom: 6px;
  }

  .itkb-im-tab-nav button {
    width: auto;
    min-width: 92px;
    height: 58px;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    text-align: center;
  }

  .itkb-im-tab-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 11px;
  }

  .itkb-im-inspector {
    border-left: 0;
    border-top: 1px solid var(--itkb-im-border);
    max-height: 520px;
  }

  .itkb-im-inspector-body {
    max-height: 440px;
  }

  .itkb-im-template-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .itkb-im-template {
    min-width: 190px;
    flex: 0 0 auto;
  }

  .itkb-im-canvas {
    width: 1600px;
    height: 1100px;
  }

  .itkb-im-connection-layer {
    width: 1600px;
    height: 1100px;
  }
}

@media (max-width: 1280px) {
  .itkb-im-v050-shell {
    grid-template-columns: 220px minmax(0, 1fr) 330px !important;
  }

  .itkb-im-rail-collapsed .itkb-im-v050-shell {
    grid-template-columns: 84px minmax(0, 1fr) 330px !important;
  }
}

@media (max-width: 1050px) {
  .itkb-im-v050-shell {
    grid-template-columns: 76px minmax(0, 1fr) 320px !important;
  }

  .itkb-im-left-rail {
    padding: 10px 8px;
  }

  .itkb-im-brand-copy {
    display: none;
  }

  .itkb-im-sidebar-brand {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .itkb-im-tab-nav button {
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 16px;
  }

  .itkb-im-tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .itkb-im-sidebar-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .itkb-im-v050-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "map"
      "nav"
      "inspector" !important;
    height: auto;
    min-height: 0;
  }

  .itkb-im-v050-shell .itkb-im-workspace {
    min-height: 560px;
    height: 560px;
  }

  .itkb-im-left-rail {
    border-right: 0;
    border-top: 1px solid var(--itkb-im-border);
    border-bottom: 1px solid var(--itkb-im-border);
    padding: 8px;
  }

  .itkb-im-sidebar-brand {
    display: none;
  }

  .itkb-im-tab-nav {
    grid-template-columns: repeat(5, minmax(82px, 1fr));
    overflow-x: auto;
    gap: 6px;
    margin-top: 0;
    padding-bottom: 6px;
  }

  .itkb-im-tab-nav button {
    width: auto;
    min-width: 92px;
    height: 58px;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    text-align: center;
  }

  .itkb-im-tab-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 11px;
  }

  .itkb-im-inspector {
    border-left: 0;
    border-top: 1px solid var(--itkb-im-border);
    max-height: 520px;
  }

  .itkb-im-inspector-body {
    max-height: 440px;
  }

  .itkb-im-template-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .itkb-im-template {
    min-width: 190px;
    flex: 0 0 auto;
  }

  .itkb-im-canvas {
    width: 1600px;
    height: 1100px;
  }

  .itkb-im-connection-layer {
    width: 1600px;
    height: 1100px;
  }
}


/* =========================================================
   v0.5.4 App-first sidebar layout
   ======================================================= */
.itkb-im {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  height: calc(100vh - 24px);
  min-height: 720px;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  overflow: hidden;
  background: #020617;
}

.itkb-im-header,
.itkb-im-details,
.itkb-im-inspector {
  display: none !important;
}

.itkb-im-app-shell {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  grid-template-areas: "sidebar canvas" !important;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
}

.itkb-im-sidebar-panel {
  grid-area: sidebar;
  min-width: 0;
  min-height: 0;
  background: rgba(15, 23, 42, .96);
  border-right: 1px solid rgba(148, 163, 184, .22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
}

.itkb-im-sidebar-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  gap: 12px;
}

.itkb-im-sidebar-brand {
  flex: 0 0 auto;
  padding: 14px 12px;
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.itkb-im-brand-copy strong {
  font-size: 15px;
}

.itkb-im-brand-copy span {
  font-size: 12px;
}

.itkb-im-tab-nav {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px;
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

.itkb-im-tab-nav button {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 46px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  text-align: left !important;
  background: rgba(2, 6, 23, .74) !important;
  border-color: rgba(148, 163, 184, .2) !important;
}

.itkb-im-tab-nav button.active {
  background: rgba(37, 99, 235, .34) !important;
  border-color: rgba(96, 165, 250, .62) !important;
  box-shadow: inset 3px 0 0 #60a5fa !important;
}

.itkb-im-tab-icon {
  width: 26px !important;
  font-size: 18px !important;
}

.itkb-im-tab-label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip-path: none !important;
  white-space: normal !important;
  font-size: 13px !important;
}

.itkb-im-inspector-header {
  flex: 0 0 auto;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 12px;
  background: rgba(2, 6, 23, .42);
}

.itkb-im-inspector-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 6px 0 0;
  scrollbar-width: thin;
}

.itkb-im-inspector-body .itkb-im-panel {
  background: rgba(17, 24, 39, .86);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 14px;
  margin: 0;
}

.itkb-im-tab-panel {
  display: none !important;
}

.itkb-im-tab-panel.active {
  display: block !important;
  padding-bottom: 24px;
}

.itkb-im-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.itkb-im-wide-action {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  text-align: center;
  margin-bottom: 10px;
}

.itkb-im-inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.itkb-im-inline-check input {
  width: auto;
  margin: 0;
}

.itkb-im-sidebar-footer {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .58);
  display: grid;
  gap: 10px;
}

.itkb-im-status {
  min-height: 38px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .88);
  border: 1px solid rgba(148, 163, 184, .16);
}

.itkb-im-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  color: #bfdbfe !important;
  background: rgba(2, 6, 23, .65);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
}

.itkb-im-back-link:hover,
.itkb-im-back-link:focus {
  border-color: rgba(96, 165, 250, .7);
  color: #f8fafc !important;
}

.itkb-im-app-shell .itkb-im-workspace {
  grid-area: canvas;
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100% !important;
  display: flex;
  flex-direction: column;
  background: #07111f;
}

.itkb-im-app-shell .itkb-im-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.itkb-im-canvas-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 12;
  min-height: 0;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(10px);
  align-items: center;
  pointer-events: none;
}

.itkb-im-canvas-toolbar > span {
  font-weight: 800;
  color: #e2e8f0;
}

.itkb-im-canvas-toolbar-actions {
  pointer-events: auto;
}

.itkb-im-canvas-toolbar-actions button {
  min-height: 36px;
  padding: 7px 10px;
}

.itkb-im-mobile-menu-button {
  display: none;
}

.itkb-im-rail-collapsed .itkb-im-app-shell {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.itkb-im-rail-collapsed .itkb-im-sidebar-main,
.itkb-im-rail-collapsed .itkb-im-sidebar-footer,
.itkb-im-rail-collapsed .itkb-im-brand-copy {
  display: none !important;
}

.itkb-im-rail-collapsed .itkb-im-sidebar-brand {
  justify-content: center;
  padding: 12px 8px;
}

.itkb-im-rail-collapsed .itkb-im-sidebar-toggle {
  margin-left: 0;
}

@media (max-width: 900px) {
  .itkb-im {
    height: calc(100vh - 8px);
    min-height: 620px;
  }

  .itkb-im-app-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas: "canvas" !important;
  }

  .itkb-im-sidebar-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 370px);
    max-width: 370px;
    transform: translateX(0);
    transition: transform .2s ease;
    box-shadow: 18px 0 40px rgba(0, 0, 0, .45);
  }

  .itkb-im-rail-collapsed .itkb-im-sidebar-panel {
    transform: translateX(calc(-100% - 12px));
  }

  .itkb-im-rail-collapsed .itkb-im-app-shell {
    grid-template-columns: 1fr !important;
  }

  .itkb-im-rail-collapsed .itkb-im-sidebar-main,
  .itkb-im-rail-collapsed .itkb-im-sidebar-footer,
  .itkb-im-rail-collapsed .itkb-im-brand-copy {
    display: flex !important;
  }

  .itkb-im-rail-collapsed .itkb-im-sidebar-main {
    display: flex !important;
  }

  .itkb-im-rail-collapsed .itkb-im-sidebar-footer {
    display: grid !important;
  }

  .itkb-im-mobile-menu-button {
    display: grid;
    place-items: center;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 30;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, .92) !important;
    border-color: rgba(96, 165, 250, .48) !important;
  }

  .itkb-im:not(.itkb-im-rail-collapsed) .itkb-im-mobile-menu-button {
    display: none;
  }

  .itkb-im-canvas-toolbar {
    top: 12px;
    left: 72px;
    right: 12px;
  }

  .itkb-im:not(.itkb-im-rail-collapsed) .itkb-im-canvas-toolbar {
    display: none;
  }

  .itkb-im-canvas-toolbar > span {
    display: none;
  }

  .itkb-im-canvas-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .itkb-im-canvas-toolbar-actions button {
    min-height: 42px;
  }

  .itkb-im-sidebar-brand {
    min-height: 64px;
  }

  .itkb-im-tab-nav {
    grid-template-columns: 1fr 1fr !important;
  }

  .itkb-im-tab-nav button {
    min-height: 48px !important;
  }

  .itkb-im-inspector-body {
    padding-right: 4px;
  }

  .itkb-im-template-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }

  .itkb-im-template {
    min-width: 0 !important;
    width: 100% !important;
  }

  .itkb-im-canvas {
    width: 1600px;
    height: 1100px;
  }

  .itkb-im-connection-layer {
    width: 1600px;
    height: 1100px;
  }
}


/* =========================================================
   v0.5.5 hard app workspace override
   This intentionally takes the mapper out of the WordPress
   content column so the canvas becomes the workspace.
   ======================================================= */
html.itkb-im-fullscreen-active,
body.itkb-im-fullscreen-active {
  overflow: hidden !important;
}

.itkb-im.itkb-im-fullscreen-app {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  z-index: 2147483000 !important;
  background: #020617 !important;
  container-type: normal !important;
}

body.admin-bar .itkb-im.itkb-im-fullscreen-app {
  top: 32px !important;
  height: calc(100dvh - 32px) !important;
}

@media (max-width: 782px) {
  body.admin-bar .itkb-im.itkb-im-fullscreen-app {
    top: 46px !important;
    height: calc(100dvh - 46px) !important;
  }
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-header,
.itkb-im.itkb-im-fullscreen-app .itkb-im-details,
.itkb-im.itkb-im-fullscreen-app .itkb-im-inspector,
.itkb-im.itkb-im-fullscreen-app .itkb-im-canvas-toolbar {
  display: none !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-app-shell {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  grid-template-areas: "sidebar canvas" !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #020617 !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-panel {
  grid-area: sidebar !important;
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #0f172a !important;
  border-right: 1px solid rgba(148, 163, 184, .22) !important;
  box-shadow: none !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-brand {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px !important;
  margin: 0 !important;
  min-height: 68px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 12px !important;
  gap: 12px !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-tab-nav {
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-tab-nav button {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 44px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 9px 11px !important;
  text-align: left !important;
  border-radius: 12px !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-tab-label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip-path: none !important;
  white-space: normal !important;
  font-size: 13px !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-inspector-header {
  flex: 0 0 auto !important;
  display: grid !important;
  gap: 2px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 12px !important;
  background: rgba(2, 6, 23, .5) !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-inspector-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 4px 0 0 !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-tab-panel {
  display: none !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-tab-panel.active {
  display: block !important;
  padding-bottom: 18px !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-panel {
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 14px !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-action-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-footer {
  flex: 0 0 auto !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border-top: 1px solid rgba(148, 163, 184, .18) !important;
  background: rgba(2, 6, 23, .58) !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-status {
  min-height: 34px !important;
  max-height: 64px !important;
  overflow: hidden !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-back-link {
  min-height: 42px !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-workspace {
  grid-area: canvas !important;
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #07111f !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-canvas-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.itkb-im.itkb-im-fullscreen-app .itkb-im-mobile-menu-button {
  display: none !important;
}

.itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-app-shell {
  grid-template-columns: 82px minmax(0, 1fr) !important;
}

.itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-main,
.itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-footer,
.itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-brand-copy {
  display: none !important;
}

.itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-brand {
  justify-content: center !important;
  padding: 12px 8px !important;
}

@media (max-width: 900px) {
  .itkb-im.itkb-im-fullscreen-app .itkb-im-app-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas: "canvas" !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-panel {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(88vw, 370px) !important;
    max-width: 370px !important;
    height: 100% !important;
    transform: translateX(0) !important;
    transition: transform .2s ease !important;
    box-shadow: 18px 0 40px rgba(0, 0, 0, .45) !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-panel {
    transform: translateX(calc(-100% - 14px)) !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-main,
  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-footer,
  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-brand-copy {
    display: flex !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-footer {
    display: grid !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-mobile-menu-button {
    display: grid !important;
    place-items: center !important;
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 40 !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 14px !important;
  }

  .itkb-im.itkb-im-fullscreen-app:not(.itkb-im-rail-collapsed) .itkb-im-mobile-menu-button {
    display: none !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-tab-nav {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-tab-nav button {
    min-height: 48px !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-template-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-template {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* =========================================================
   v0.5.6 Desktop sidebar inspector + collapsed icon rail fix
   ======================================================= */
@media (min-width: 901px) {
  .itkb-im.itkb-im-fullscreen-app .itkb-im-app-shell {
    grid-template-columns: clamp(420px, 28vw, 480px) minmax(0, 1fr) !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-panel {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-main {
    display: grid !important;
    grid-template-columns: 138px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-areas:
      "tabs inspector-head"
      "tabs inspector-body" !important;
    gap: 12px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-tab-nav {
    grid-area: tabs !important;
    align-content: start !important;
    align-self: start !important;
    min-width: 0 !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-tab-nav button {
    min-height: 52px !important;
    padding: 10px 10px !important;
    gap: 9px !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-tab-icon {
    flex: 0 0 24px !important;
    width: 24px !important;
    text-align: center !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-tab-label {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-inspector-header {
    grid-area: inspector-head !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-inspector-body {
    grid-area: inspector-body !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-tab-panel.active {
    display: block !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-template-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-template {
    min-width: 0 !important;
    width: 100% !important;
  }

  .itkb-im.itkb-im-fullscreen-app .itkb-im-sidebar-footer {
    min-width: 0 !important;
  }

  /* Collapsed desktop state: keep the section icons visible. */
  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-app-shell {
    grid-template-columns: 84px minmax(0, 1fr) !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-panel {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-main {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px 8px !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-tab-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-tab-nav button {
    width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 16px !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-tab-icon {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    font-size: 22px !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-tab-label,
  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-brand-copy,
  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-inspector-header,
  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-inspector-body,
  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-footer {
    display: none !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-brand {
    justify-content: center !important;
    padding: 12px 8px !important;
  }

  .itkb-im.itkb-im-fullscreen-app.itkb-im-rail-collapsed .itkb-im-sidebar-toggle {
    margin-left: 0 !important;
  }
}
/*
Theme Name: Extendable
Theme URI: https://github.com/extendify/extendable
Author: Extendify
Author URI: https://extendify.com
Description: Extendable is a distinct, dynamic block theme designed as a canvas for your next online venture. Sporting multiple style variations, Extendable is the most expressive block theme yet. Go fresh, bold, bohemian or minimal — with a single click.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: extendable
Tags: one-column, custom-colors, custom-menu, custom-logo, e-commerce, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments

Extendable is a derivative work of the code from the
Twenty Twenty-Two WordPress Theme, which is licensed GPLv2.

Extendable WordPress Theme, Copyright (C) 2021-2025 Extendify Inc.
Extendable therefore is also distributed under the terms of the GNU GPL.
*/


/* Fallback for deprecate variables.
---------------------------------------------------------------------------- */
:root {
	--wp--custom--spacing--small: var(--wp--preset--spacing--30, clamp(1.5rem, 5vw, 2rem));
	--wp--custom--spacing--medium: var(--wp--preset--spacing--50, clamp(2.5rem, 8vw, 4rem));
	--wp--custom--spacing--large: var(--wp--preset--spacing--60, clamp(2.5rem, 8vw, 6rem));
	--wp--custom--spacing--outer: max(1.25rem, 4vw);
	--wp--preset--spacing--80: min(8rem, 12vw);
}

/*
 * Smooth scrolling
 */

html {
	scroll-behavior: smooth;
}

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
	-webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

a {
	text-decoration-style: var(--wp--custom--elements--link--static--text-decoration-style, solid);
	text-decoration-thickness: var(--wp--custom--elements--link--text-decoration-thickness, 1px);
	text-underline-offset: var(--wp--custom--elements--link--text-underline-offset, 0.25ch);
}

a:hover,
a:focus {
	text-decoration-style: var(--wp--custom--elements--link--interactive--text-decoration-style, dashed);
}

:where(.wp-site-blocks *:focus) {
	outline-width: 1px;
	outline-style: solid;
}

a:active {
	text-decoration: none;
}

/*
 * Navigation Block
 */

@media (min-width: 600px) {

	.site-logo-title {
		display: none;
	}

	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

@media (max-width: 600px) {

	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title {
	display: flex;
	flex-wrap: nowrap;
	max-width: 100%;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: var(--wp--preset--spacing--30);
	position: relative;
	padding-inline-end: 52px;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title::after {
	content: "";
	position: absolute;
	left: calc(-1 * var(--wp--preset--spacing--30));
	right: calc(-1 * var(--wp--preset--spacing--30));
	bottom: 0;
	height: 1px;
	background: #8080801d;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title img {
	max-height: 42px !important;
	height: auto !important;
	width: auto !important;

}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title .site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	box-sizing: border-box;
	line-height: 1.15;
}

.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--30);
}

.has-modal-open .wp-block-navigation__responsive-container-close {
	background-color: var(--wp--preset--color--tertiary);
	padding: 0.625rem;
	border-radius: 100%;
	top: -2.5px !important;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navrigation__containe,
.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__container ul {
	row-gap: 0.75rem !important;
	width: -webkit-fill-available;
	max-width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content > ul.wp-block-navigation__container > li.wp-block-navigation-item:not(.wp-block-navigation__submenu-container) {
	border-bottom: 1px solid #8080801d;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	width: -webkit-fill-available;
	max-width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	padding: 0.75rem 0.75rem 0 0.75rem !important;
	gap: 0.75rem !important;
}

.has-modal-open .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__responsive-dialog ul.wp-block-navigation__container > li:not(.wp-block-navigation__submenu-container) > a.wp-block-navigation-item__content {
	font-size: 1.25rem;
	font-weight: 600;
}

.has-modal-open .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__submenu-container {
	padding-top: 0.75rem !important;
}

.has-modal-open .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__responsive-dialog ul.wp-block-navigation__container .wp-block-navigation-submenu .wp-block-navigation-item a {
	font-size: 1rem !important;
}

/*
 * When the responsive navigation modal opens (WordPress sets .has-modal-open
 * on <html>), suppress every property on the modal's ancestor chain that
 * creates a containing block for position:fixed descendants — otherwise
 * the modal is trapped inside the header instead of overlaying the viewport.
 *
 * Two rules here:
 *
 * 1) Broad ancestor coverage — the header itself plus any element inside
 *    it that contains the responsive dialog. Handles transform/filter on
 *    any header variant (overlay, glass, floating-pill, future ones).
 *
 * 2) Animation override — mirrors the selectors used by the floating-pill
 *    scroll animations so we can match their specificity. Those animations
 *    use !important + a deep selector to apply translate/backdrop-filter
 *    via keyframes; without a same-or-higher-specificity override our broad
 *    rule loses the cascade and the animation keeps trapping the modal.
 */
html.has-modal-open header.wp-block-template-part,
html.has-modal-open header.wp-block-template-part :has(.wp-block-navigation__responsive-dialog) {
	backdrop-filter: none !important;
	transform: none !important;
	translate: none !important;
	filter: none !important;
	animation: none !important;
}

html.has-modal-open body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass,
html.has-modal-open body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
	animation: none !important;
	backdrop-filter: none !important;
	translate: none !important;
}

/*
 * Mobile nav-extras: cloned by navigation-customization.js into the
 * responsive menu dialog so phone / CTA / social aren't visible in the
 * cramped top bar on small screens. We target the specific modifier
 * classes (.ext-nav-extras-phone, -btn, -social) rather than the
 * .ext-nav-extras wrapper, because some header parts use the wrapper
 * class around the nav block itself.
 *
 * On desktop the dialog is rendered inline (it's only "modal-shaped"
 * when the hamburger opens it), so the cloned extras must stay hidden
 * until WordPress sets .has-modal-open on <html>.
 */
@media (max-width: 781px) {

	body:not(:has(.wp-block-navigation__responsive-container.disable-default-overlay)) header.wp-block-template-part :is(.ext-nav-extras-phone, .ext-nav-extras-btn, .ext-nav-extras-social):not(.ext-nav-extras-mobile *) {
		display: none;
	}

	/* Collapse the .ext-nav-extras wrapper too when its only children are the
	   extras (no nav inside) — otherwise the empty wrapper holds a flex slot
	   and the hamburger stays stuck in the middle instead of moving to the
	   end of the row. */
	header.wp-block-template-part .ext-nav-extras:not(:has(nav, .wp-block-navigation)) {
		display: none;
	}
}

.ext-nav-extras-mobile {
	display: none;
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--30);
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-block-button {
	width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-block-button__link {
	display: block;
	text-align: center;
	width: 100%;
}

/* Match the nav-link typography (see rule above) on the cloned phone CTA. */
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .ext-nav-extras-phone,
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .ext-nav-extras-phone a,
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .ext-nav-extras-phone p {
	font-size: 1.25rem !important;
	font-weight: 600 !important;
}

/* Bigger, more tappable social icons in the menu. */
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-block-social-link {
	width: 32px;
	height: 32px;
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-social-link svg {
	width: 28px;
	height: 28px;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/* Don't display the homepage in the Page List block, when located inside a navigation element. */
nav .wp-block-pages-list__item.wp-block-navigation-item.menu-item-home {
	display: none;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	padding-top: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
	padding-left: var(--wp--preset--spacing--30);
}

/* Temporary: WP core ships this padding as a 4-value clamp() shorthand
   that some browsers fail to parse — re-declare as individual props. */
.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	padding-top: clamp(1rem, var(--wp--style--root--padding-top), 20rem);
	padding-right: clamp(1rem, var(--wp--style--root--padding-right), 20rem);
	padding-bottom: clamp(1rem, var(--wp--style--root--padding-bottom), 20rem);
	padding-left: clamp(1rem, var(--wp--style--root--padding-left), 20rem);
}

/*
 * --------------------------------------------------------
 *  Custom - blocks
 * --------------------------------------------------------
 */

/* Button
----------------------------------------------------------*/
.wp-element-button {
	transition: background-color 0.15s ease;
}

.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background):hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background-color: rgba(159, 159, 159, 0.2);
}

/* Table
----------------------------------------------------------*/
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--custom--blocks--core-table--variant-stripes--color--background, var(--wp--preset--color--tertiary));
}

/* Template Part Block
----------------------------------------------------------*/

/* Temporary fix until template-part blocks support spacing */

footer.wp-block-template-part:not([style*="margin-top"]) {
	margin-top: 0;
}

/* Quote - 'Plain' variation
----------------------------------------------------------*/
blockquote:is(.is-style-plain) {
	border: none;
	padding-left: 0;
}

/* Search Block
----------------------------------------------------------*/
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
	border-color: var(--wp--custom--elements--input--border--color);
	border-radius: var(--wp--custom--elements--button--border--radius);
	border-width: var(--wp--custom--elements--input--border--width);
}

:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
	border-color: transparent;
}

.wp-block-search .wp-block-search__input {
	border-radius: var(--wp--custom--elements--button--border--radius);
}

/* Image
----------------------------------------------------------*/
.wp-block-image[style*="-radius"]:not([style*="overflow"]) {
	overflow: hidden;
}

/*
 * --------------------------------------------------------
 *  Custom - experimental
 * --------------------------------------------------------
 */

.block-editor-block-list__block.wp-block.is-default-size.wp-block-site-logo .components-resizable-box__container,
.wp-block-site-logo.is-default-size img {
	max-height: 42px !important;
	height: auto !important;
	width: auto !important;
}

/* Ensure default logo works well on light and dark backgrounds
----------------------------------------------------------*/
.wp-block-site-logo img[src*="extendify-demo-"],
.wp-block-site-logo img[src*="ext-custom-logo-"] {
	filter: var(--wp--preset--duotone--primary-foreground);
	min-width: 40px;
}


/*
 * Remove all animations, transitions and smooth scroll
 * for people that prefer not to see them.
 */
@media (prefers-reduced-motion: reduce) {

	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Matching caret and focus outline colors.
 */
input,
textarea {
	caret-color: inherit;
	outline-color: inherit;
}

/*
 * Matching input with outline button style.
 */
:where(.wp-block-post-comments-form) input:not([type="submit"]),
:where(.wp-block-post-comments-form) textarea {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	border-color: inherit;
}


/*
 * Woocommerce temporarily customization until the woo blocks offer support
 */

.woocommerce-Tabs-panel--description h2,
.woocommerce-Reviews-title {
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-button.wc-block-components-product-button {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: start;
	gap: 1rem;
}

.wp-block-button.wc-block-components-product-button a.added_to_cart {
	margin-top: 0;
}

.woocommerce-checkout.woocommerce-page header.wp-block-template-part nav.wp-block-navigation {
	visibility: hidden;
}

.wp-site-blocks .wp-block-group.woocommerce.product {
	margin-top: 0;
	margin-bottom: 0;
}

.wc-block-product-template__responsive {
	grid-row-gap: 2rem;
}

.wc-block-components-product-button__button {
	z-index: 1;
}

/*
 * Adds offset for sticky header overlap
 */

.sticky-header-offset-container .entry-content > .wp-block-group {
	scroll-margin-top: var(--wp--preset--spacing--60);
}

/*
 * Avoids parent/child color collision when child has no custom background.
 */

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--group--"][class*="item-card-1"]:not(.has-background) {
	background-color: var(--wp--preset--color--background);
}

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--group--"][class*="item-card-1"]:not(.has-background)::before {
	background-color: var(--wp--preset--color--background) !important;
}

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--image--"]:not(.has-background)::before {
	background-color: var(--wp--preset--color--tertiary) !important;
}

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--group--"][class*="item-card-1"]::before,
:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--media-text--"]::before {
	background-color: var(--wp--preset--color--background) !important;
}

.block-editor-block-preview__content-iframe
[class*="is-style-ext-preset--group--natural-1"][class*="item-card-1"] {
	background-color: transparent !important;
}

:root {
	--grid-vector-bg: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQ0MCAxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIG9wYWNpdHk9IjAuMDkiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utb3BhY2l0eT0iMC43IiBzdHJva2Utd2lkdGg9IjEuMjYwNyI+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSI2MjQuOTk1IiB4Mj0iMTQ2MC45NiIgeTI9IjYyNC45OTUiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSI5NDcuNzMzIiB4Mj0iMTQ2MC45NiIgeTI9Ijk0Ny43MzMiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSIzMDIuMjU2IiB4Mj0iMTQ2MC45NiIgeTI9IjMwMi4yNTYiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSI0NjMuNjI0IiB4Mj0iMTQ2MC45NiIgeTI9IjQ2My42MjQiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSI3ODYuMzYyIiB4Mj0iMTQ2MC45NiIgeTI9Ijc4Ni4zNjIiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSIxNDAuODg1IiB4Mj0iMTQ2MC45NiIgeTI9IjE0MC44ODUiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSI1NDQuMzExIiB4Mj0iMTQ2MC45NiIgeTI9IjU0NC4zMTEiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSI4NjcuMDQ5IiB4Mj0iMTQ2MC45NiIgeTI9Ijg2Ny4wNDkiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSIyMjEuNTczIiB4Mj0iMTQ2MC45NiIgeTI9IjIyMS41NzMiIC8+CiAgICA8bGluZSB4MT0iLTUwLjYxNzIiIHkxPSIzODIuOTQiIHgyPSIxNDYwLjk2IiB5Mj0iMzgyLjk0IiAvPgogICAgPGxpbmUgeDE9Ii01MC42MTcyIiB5MT0iNzA1LjY4MiIgeDI9IjE0NjAuOTYiIHkyPSI3MDUuNjgyIiAvPgogICAgPGxpbmUgeDE9Ii01MC42MTcyIiB5MT0iNjAuMjAxNyIgeDI9IjE0NjAuOTYiIHkyPSI2MC4yMDE3IiAvPgogICAgPGxpbmUgeDE9IjY0Mi4xMzgiIHkxPSItNDguODQ3NyIgeDI9IjY0Mi4xMzgiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjMxOS4zOTgiIHkxPSItNDguODQ3NyIgeDI9IjMxOS4zOTgiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9Ijk2NC44NzQiIHkxPSItNDguODQ3NyIgeDI9Ijk2NC44NzQiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjEyODcuNjEiIHkxPSItNDguODQ3NyIgeDI9IjEyODcuNjEiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjE1OC4wMjgiIHkxPSItNDguODQ3NyIgeDI9IjE1OC4wMjgiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjgwMy41MDQiIHkxPSItNDguODQ3NyIgeDI9IjgwMy41MDQiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjQ4MC43NjgiIHkxPSItNDguODQ3NyIgeDI9IjQ4MC43NjgiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjExMjYuMjQiIHkxPSItNDguODQ3NyIgeDI9IjExMjYuMjQiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9Ijc3LjM0NTIiIHkxPSItNDguODQ3NyIgeDI9Ijc3LjM0NTEiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjcyMi44MjIiIHkxPSItNDguODQ3NyIgeDI9IjcyMi44MjIiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjQwMC4wODEiIHkxPSItNDguODQ3NyIgeDI9IjQwMC4wODEiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjEwNDUuNTYiIHkxPSItNDguODQ3NyIgeDI9IjEwNDUuNTYiIHkyPSIxMTE4LjU2IiAvPgogICAgPGxpbmUgeDE9IjEzNjguMyIgeTE9Ii00OC44NDc3IiB4Mj0iMTM2OC4zIiB5Mj0iMTExOC41NiIgLz4KICAgIDxsaW5lIHgxPSIyMzguNzE1IiB5MT0iLTQ4Ljg0NzciIHgyPSIyMzguNzE1IiB5Mj0iMTExOC41NiIgLz4KICAgIDxsaW5lIHgxPSI4ODQuMTkyIiB5MT0iLTQ4Ljg0NzciIHgyPSI4ODQuMTkyIiB5Mj0iMTExOC41NiIgLz4KICAgIDxsaW5lIHgxPSI1NjEuNDUxIiB5MT0iLTQ4Ljg0NzciIHgyPSI1NjEuNDUxIiB5Mj0iMTExOC41NiIgLz4KICAgIDxsaW5lIHgxPSIxMjA2LjkzIiB5MT0iLTQ4Ljg0NzciIHgyPSIxMjA2LjkzIiB5Mj0iMTExOC41NiIgLz4KICA8L2c+CiAgPGcgb3BhY2l0eT0iMC41IiBmaWxsPSJjdXJyZW50Q29sb3IiPgogICAgPHJlY3QgeD0iODAzLjU2MyIgeT0iNzg2LjMwNSIgd2lkdGg9IjgwLjIyNjIiIGhlaWdodD0iODAuMjI2MiIgZmlsbC1vcGFjaXR5PSIwLjQiIC8+CiAgICA8cmVjdCB4PSI0MDAuMTQiIHk9Ijc4Ni4zMDUiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjIyNjIiIGZpbGwtb3BhY2l0eT0iMC4xOCIgLz4KICAgIDxyZWN0IHg9IjExMjYuNzYiIHk9IjIyMi40MyIgd2lkdGg9IjgwLjIyNjIiIGhlaWdodD0iNzkuMDgwMSIgZmlsbC1vcGFjaXR5PSIwLjA4IiAvPgogICAgPHJlY3QgeD0iNDgwLjM2NyIgeT0iNDY0LjIwMyIgd2lkdGg9IjgwLjIyNjIiIGhlaWdodD0iNzkuMDgwMSIgZmlsbC1vcGFjaXR5PSIwLjEzIiAvPgogICAgPHJlY3QgeD0iMTA0NS4zOSIgeT0iMzAyLjY1NiIgd2lkdGg9IjgwLjIyNjIiIGhlaWdodD0iNzkuMDgwMSIgZmlsbC1vcGFjaXR5PSIwLjAzIiAvPgogICAgPHJlY3QgeD0iMzk5Ljk5NCIgeT0iMjIyLjQzIiB3aWR0aD0iODAuMjI2MiIgaGVpZ2h0PSI3OS4wODAxIiBmaWxsLW9wYWNpdHk9IjAuMTMiIC8+CiAgICA8cmVjdCB4PSIxMDQ1LjM5IiB5PSIyMjIuNDMiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9Ijc5LjA4MDEiIGZpbGwtb3BhY2l0eT0iMC4wOCIgLz4KICAgIDxyZWN0IHg9IjM5OS45OTQiIHk9IjQ2NC4yMDMiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9Ijc5LjA4MDEiIGZpbGwtb3BhY2l0eT0iMC4xMyIgLz4KICAgIDxyZWN0IHg9IjMxOS45MTQiIHk9Ijc4Ni4zMDUiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjIyNjIiIGZpbGwtb3BhY2l0eT0iMC4xOCIgLz4KICAgIDxyZWN0IHg9IjMxOS45MTQiIHk9Ijg2Ni41MzEiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgxLjM3MjMiIGZpbGwtb3BhY2l0eT0iMC4xOCIgLz4KICAgIDxyZWN0IHg9IjE1OC4zMTUiIHk9IjcwNi4wNzgiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjIyNjIiIGZpbGwtb3BhY2l0eT0iMC4xOCIgLz4KICAgIDxyZWN0IHg9Ijk2NS4xNjIiIHk9IjYwLjgzMiIgd2lkdGg9IjgwLjIyNjIiIGhlaWdodD0iODAuMjI2MiIgZmlsbC1vcGFjaXR5PSIwLjEzIiAvPgogICAgPHJlY3QgeD0iODg0LjA1OSIgeT0iLTE5Ljg1NTUiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9Ijc5LjUwNjIiIGZpbGwtb3BhY2l0eT0iMC4xMyIgLz4KICAgIDxyZWN0IHg9Ijg4NC4wNTkiIHk9IjYwLjQwMjMiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjAyODUiIGZpbGwtb3BhY2l0eT0iMC4xMyIgLz4KICAgIDxyZWN0IHg9IjE1OC4zMTUiIHk9IjEzOS45MSIgd2lkdGg9IjgxLjM3MjMiIGhlaWdodD0iODIuNTE4NCIgZmlsbC1vcGFjaXR5PSIwLjE4IiAvPgogICAgPHJlY3QgeD0iNzYuOTQzNCIgeT0iNTkuNjgzNiIgd2lkdGg9IjgxLjM3MjMiIGhlaWdodD0iODAuMjI2MiIgZmlsbC1vcGFjaXR5PSIwLjE4IiAvPgogICAgPHJlY3QgeD0iLTMuMjgzMiIgeT0iNjAuODI4MSIgd2lkdGg9IjgxLjM3MjMiIGhlaWdodD0iODAuMjI2MiIgZmlsbC1vcGFjaXR5PSIwLjE4IiAvPgogICAgPHJlY3QgeD0iNzYuOTQzNCIgeT0iMTM5LjkxIiB3aWR0aD0iODEuMzcyMyIgaGVpZ2h0PSI4Mi41MTg0IiBmaWxsLW9wYWNpdHk9IjAuMTgiIC8+CiAgICA8cmVjdCB4PSI0MDAuMTQxIiB5PSItMjAuNTQzIiB3aWR0aD0iODEuMzcyMyIgaGVpZ2h0PSI4MC4yMjYyIiBmaWxsLW9wYWNpdHk9IjAuMiIgLz4KICAgIDxyZWN0IHg9IjE1OC4zMTUiIHk9IjMwMS41MDgiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgxLjM3MjMiIGZpbGwtb3BhY2l0eT0iMC4xOCIgLz4KICAgIDxyZWN0IHg9IjExMjYuNzYiIHk9IjcwNi4wNzgiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjIyNjIiIGZpbGwtb3BhY2l0eT0iMC4xMyIgLz4KICAgIDxyZWN0IHg9IjEyMDYuOTkiIHk9Ijc4Ni4zMDUiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjIyNjIiIGZpbGwtb3BhY2l0eT0iMC4xMyIgLz4KICA8L2c+Cjwvc3ZnPg==");
}

/*
 * CSS related to prism vibe
 */

/*
 * CSS related to wave vibe
 */

[class*="is-style-ext-preset--group--"][class*="--section"].has-tertiary-background-color:has(
+ .has-background-background-color > .wp-block-cover.alignfull
)::after {
	content: none !important;
}

[class*="is-style-ext-preset--group--"][class*="--section"].has-tertiary-background-color:has(
+ .has-background-background-color > .wp-block-cover.alignfull
) {
	margin-bottom: 0 !important;
}

[class*="is-style-ext-preset--group--"][class*="--section"].has-background-background-color:has(.wp-block-cover.alignfull) + .has-tertiary-background-color::before {
	content: none !important;
}

[class*="is-style-ext-preset--group--"][class*="--section"].has-background-background-color:has(.wp-block-cover.alignfull) + .has-tertiary-background-color {
	margin-top: 0 !important;
}

/*
 * utilities
 */

.m-0 {
	margin: 0 !important;
}

.z-0 {
	z-index: 0 !important;
}

.z-10 {
	z-index: 10 !important;
}

.z-20 {
	z-index: 20 !important;
}

.z-30 {
	z-index: 30 !important;
}


.d-none {
	display: none;
}

.d-block {
	display: block;
}

@media (min-width: 640px) {

	.sm-d-none {
		display: none;
	}

	.sm-d-block {
		display: block;
	}
}

@media (min-width: 768px) {

	.md-d-none {
		display: none;
	}

	.md-d-block {
		display: block;
	}
}

@media (min-width: 1024px) {

	.lg-d-none {
		display: none;
	}

	.lg-d-block {
		display: block;
	}
}

/* RTL-only fix for Gutenberg Group left justification */

[dir="rtl"] [class*="wp-container-core-group-is-layout-"].ext-is-logical-start.is-content-justification-left > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	margin-inline-start: 0 !important;
	margin-inline-end: auto !important;
}

.no-underline,
.no-underline a {
	text-decoration: none;
}

/* CSS for extendify-agent vibe previews */

.extendify-agent .preview-is-style-ext-preset--group--matrix-1--section .preview-is-style-ext-preset--group--matrix-1--item-card-1--align-center {
	border: solid 6px color-mix(in oklab, var(--wp--preset--color--foreground) 10%, transparent) !important;
}


.extendify-agent .preview-is-style-ext-preset--group--wave-1--section {
	--wave-ratio: 1440 / 80;
	overflow: visible;
}

.extendify-agent .preview-is-style-ext-preset--group--wave-1--section .preview-is-style-ext-preset--group--wave-1--item-card-1--align-center {
	position: relative;
	overflow: visible;
}

.extendify-agent .preview-is-style-ext-preset--group--wave-1--section .preview-is-style-ext-preset--group--wave-1--item-card-1--align-center::after {
	content: "";
	position: absolute;
	width: 150%;
	left: 50%;
	transform: translateX(-35%);
	aspect-ratio: var(--wave-ratio);
	background-color: var(--wp--preset--color--background);
	-webkit-mask: var(--wave-mask) no-repeat center / 100% 100%;
	mask: var(--wave-mask) no-repeat center / 100% 100%;
	bottom: -1px;
	pointer-events: none;
	z-index: 1;
}

.extendify-agent .preview-is-style-ext-preset--group--wave-1--section .preview-is-style-ext-preset--group--wave-1--item-card-1--align-center::before {
	content: "";
	position: absolute;
	width: 150%;
	left: 50%;
	transform: translateX(-65%) scale(-1, -1);
	aspect-ratio: var(--wave-ratio);
	background-color: var(--wp--preset--color--background);
	-webkit-mask: var(--wave-mask) no-repeat center / 100% 100%;
	mask: var(--wave-mask) no-repeat center / 100% 100%;
	top: -1px;
	pointer-events: none;
	z-index: 1;
}

/*
 * --------------------------------------------------------
 *  Modular Header System
 * --------------------------------------------------------
 *
 *  Layout (positioning):
 *    - .ext-header-sticky    → position: sticky + admin-bar handling
 *    - .ext-header-overlay   → hero section overlap (negative margin)
 *
 *  Appearance:
 *    - .ext-header-glass     → static glassmorphism (bg + blur + radius)
 *    - .ext-header--dark     → dark color scheme: white text + dark scrim/glass tint
 *
 *  Behavior:
 *    - .ext-header-sticky--floating-pill → scroll-driven intensification of glass + layout shift
 *
 *  Compositions:
 *    - ext-header-sticky                                                                          → just sticky, theme bg
 *    - ext-header-overlay                                                                         → overlay, transparent
 *    - ext-header-overlay ext-header--dark                                                        → overlay + dark scrim + white text
 *    - ext-header-sticky ext-header-glass                                                         → static glass header
 *    - ext-header-sticky ext-header-glass ext-header--dark                                        → static dark glass
 *    - ext-header-sticky ext-header-overlay ext-header-glass ext-header-sticky--floating-pill   → animated glass over hero
 *    - + ext-header--dark on the above                                                            → animated DARK glass over hero
 */

:root {
	--ext-header-height: 96px;
	--ext-header-offset: 1rem;
	--ext-header-blur-start: 4px;
	--ext-header-blur-end: 12px;
	--ext-header-bg-opacity-start: 0.75;
	--ext-header-bg-opacity-end: 0.95;
	--ext-header-padding: 1.5rem;
	--ext-header-animation-distance: 100px;
	--ext-header-glass-tint-dark: #ffffff;
	--ext-header-dark-logo-filter: brightness(0) invert(1);
}

body {
	timeline-scope: --ext-hero-timeline;
}

/* ===========================================================
   Layout: ext-header-sticky
   =========================================================== */
header.wp-block-template-part:has(.ext-header-sticky) {
	position: sticky;
	top: 0;
	z-index: 12;
}

/* Default bg for sticky headers without glass.
   Glass headers leave the wrapper transparent so the inner glass element shows through. */
header.wp-block-template-part:has(.ext-header-sticky):not(:has(.ext-header-glass)):not(.has-background) {
	background-color: var(--wp--preset--color--background);
}

body.admin-bar header.wp-block-template-part:has(.ext-header-sticky) {
	top: var(--wp-admin--admin-bar--position-offset, var(--wp-admin--admin-bar--height, 32px));
}

@media (max-width: 782px) {

	body.admin-bar header.wp-block-template-part:has(.ext-header-sticky) {
		top:0;
	}
}

html:has(.ext-header-sticky) {
	scroll-padding-top: var(--ext-header-height);
}

/* ===========================================================
   Layout: ext-header-overlay (hero overlap)
   =========================================================== */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-overlay):not(:has(.ext-header-sticky)) {
	position: relative;
	top: 0;
	z-index: 12;
}

body:has(.ext-header-overlay) .entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child {
	margin-top: calc(-1 * var(--ext-header-height)) !important;
	position: relative;
	z-index: 0;
}

/* Overlay over hero: wrapper goes transparent so the hero shows through.
   Reverts to default theme bg once .is-past-hero is added or on subpages without a hero. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-overlay):not(.is-past-hero):not(:has(.ext-header-glass)) {
	background-color: transparent;
}

/* ===========================================================
   Appearance: ext-header-glass (static glassmorphism)
   - --ext-header-glass-color-start: tint during the frosted/initial state
   - --ext-header-glass-color-end: tint at the solid/scrolled state
   - Static glass shows the end state (most readable)
   =========================================================== */
.ext-header-glass {
	--ext-header-glass-color-start: var(--wp--preset--color--background);
	--ext-header-glass-color-end: var(--wp--preset--color--background);
}

header.wp-block-template-part:has(.ext-header-glass) .ext-header-glass {
	background-color: oklch(from var(--ext-header-glass-color-end) l c h / var(--ext-header-bg-opacity-end));
	backdrop-filter: blur(var(--ext-header-blur-end));
	border-radius: 1rem;
	overflow: hidden;
}

/* ===========================================================
   Color: ext-header--dark
   - Sets shared scrim/glass color variable
   - Wrapper gets white text when used with overlay or glass
   - Inner blocks reset their colors to inherit
   =========================================================== */
/* Dark variant only takes effect on pages with a fullscreen hero.
   On subpages, dark+glass falls back to the light glass defaults. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) .ext-header-glass.ext-header--dark {
	--ext-header-glass-color-start: var(--ext-header-glass-tint-dark);
	--ext-header-glass-color-end: var(--wp--preset--color--foreground);
	--ext-header-bg-opacity-start: 0.06;
	--ext-header-bg-opacity-end: 0.85;
	--ext-header-blur-start: 16px;
	--ext-header-blur-end: 24px;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) .ext-header-glass {
	border: 1px solid rgb(255 255 255 / 0.12);
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) {
	color: #fff;
}

/* Top-fade scrim on the hero's cover block — softer falloff than a header-bound gradient.
   Flat (non-nested) :has() check on body so the rule reliably matches on hero pages
   that use an overlay+dark header.
   Fades out via opacity once the smart-sticky JS adds .is-past-hero on the header,
   in sync with the header reverting to its default theme appearance. */
body:has(.ext-header-overlay.ext-header--dark) .ext-hero-section--full-screen .wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: calc(var(--ext-header-height) * 3);
	transition: opacity 300ms ease;
	background: linear-gradient(
		to bottom,
		rgb(0 0 0 / 0.50) 0%,
		rgb(0 0 0 / 0.25) 50%,
		rgb(0 0 0 / 0.05) 80%,
		rgb(0 0 0 / 0) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* Past-hero: fade the scrim out so the hero image returns to its natural look,
   matching the header reverting to default theme bg + colors. */
body:has(header.wp-block-template-part.is-past-hero) .ext-hero-section--full-screen .wp-block-cover::after {
	opacity: 0;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) {
	color: #fff;
}

/* Inner-block dark overrides — fire only on hero pages with a dark backdrop.
   Overlay+dark drops out at .is-past-hero (header has reverted to default theme).
   Glass+dark keeps firing past-hero because the glass stays dark via its own animation. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) :where(a, button, .wp-block-site-title):not(.has-background, .wp-block-button__link, .cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) :where(a, button, .wp-block-site-title):not(.has-background, .wp-block-button__link, .cloned-for-mobile, .cloned-for-mobile *) {
	color: inherit;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) .wp-social-link:not(.cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) .wp-social-link:not(.cloned-for-mobile, .cloned-for-mobile *) {
	color: #fff !important;
}

/* Phone CTA: force white over the dark hero. Needed because the paragraph carries
   WP's wp-elements-* link-color rule (preset primary), which beats .has-text-color
   inheritance on the inner <a>. Drops out at .is-past-hero so the phone reverts to theme. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) :is(.ext-nav-extras-phone, .ext-nav-extras-phone a):not(.cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) :is(.ext-nav-extras-phone, .ext-nav-extras-phone a):not(.cloned-for-mobile, .cloned-for-mobile *) {
	color: #fff !important;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) svg:not(.cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) svg:not(.cloned-for-mobile *) {
	fill: currentColor;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) :is(.wp-block-site-logo, .wp-duotone-primary-foreground):not(.cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) :is(.wp-block-site-logo, .wp-duotone-primary-foreground):not(.cloned-for-mobile, .cloned-for-mobile *) {
	filter: var(--ext-header-dark-logo-filter);
}

/* Nav-extras CTA: white pill + dark text for contrast against the dark hero scrim.
   Drops out at .is-past-hero so the button returns to its preset styling. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) .ext-nav-extras-btn:not(.cloned-for-mobile, .cloned-for-mobile *) .wp-block-button__link,
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) .ext-nav-extras-btn:not(.cloned-for-mobile, .cloned-for-mobile *) .wp-block-button__link {
	background-color: #fefefe !important;
	color: #060606 !important;
}

/* Sticky non-glass headers: smooth shadow/bg transitions (toggle on .is-scrolled / .is-past-hero) */
header.wp-block-template-part:has(.ext-header-sticky):not(:has(.ext-header-glass)) {
	transition: background-color 300ms ease, box-shadow 300ms ease;
}

/* Floating-pill: smooth the top change when .is-scrolled toggles, so the
   header doesn't snap up when scrolling past the admin bar. */
header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	transition: top 300ms ease;
}

/* Subpage elevation shadow: appears when user scrolls (no hero on the page) */
body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part.is-scrolled:has(.ext-header-sticky):not(:has(.ext-header-glass)) {
	box-shadow: 0 4px 24px -8px oklch(from var(--wp--preset--color--foreground) l c h / 0.08);
}

/* Smart sticky transitions: smooth color/filter changes when toggling .is-past-hero */
header.wp-block-template-part:has(.ext-header--dark) {
	transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

header.wp-block-template-part:has(.ext-header--dark) :where(a, button, .wp-block-site-title, .wp-social-link) {
	transition: color 300ms ease;
}

header.wp-block-template-part:has(.ext-header--dark) .wp-block-site-logo {
	transition: filter 300ms ease;
}

/* Past-hero: any sticky+overlay gets solid theme bg + elevation shadow.
   Glass headers are excluded — they manage their own scroll visuals. */
header.wp-block-template-part.is-past-hero:has(.ext-header-sticky.ext-header-overlay):not(:has(.ext-header-glass)) {
	background-color: var(--wp--preset--color--background);
	box-shadow: 0 4px 24px -8px oklch(from var(--wp--preset--color--foreground) l c h / 0.08);
}

/* Past-hero on dark variant: also revert white text / inverted logo / forced social color */
header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) {
	color: var(--wp--preset--color--foreground);
}

header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) :where(a, button, .wp-block-site-title):not(.has-background, .wp-block-button__link) {
	color: inherit;
}

header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) .wp-social-link {
	color: var(--wp--preset--color--foreground) !important;
}

header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) .wp-block-site-logo {
	filter: brightness(1) invert(0);
}

/* ===========================================================
   Hero timeline (for scroll-driven animations)
   =========================================================== */
@supports (animation-timeline: scroll()) {

	.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child {
		view-timeline: --ext-hero-timeline block;
	}
}

/* ===========================================================
   Behavior: ext-header-sticky--floating-pill
   - Layout shift: header wrapper goes transparent + constrained width
   - When combined with .ext-header-glass, animates glass intensity
   =========================================================== */
header.wp-block-template-part .ext-header-sticky--floating-pill.ext-animate {
	opacity: 1 !important;
}

header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	position: sticky;
	top: 0;
	z-index: 12;
	border-bottom: none;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	position: sticky;
	top: var(--ext-header-offset);
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
	background-color: transparent;
	padding-inline: var(--wp--style--root--padding-right) var(--wp--style--root--padding-left);
}

/* Initial glass state (over hero): override static glass-end with start values */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
	background-color: oklch(from var(--ext-header-glass-color-start) l c h / var(--ext-header-bg-opacity-start));
	backdrop-filter: blur(var(--ext-header-blur-start));
}

body.admin-bar:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	top:
		calc(var(--ext-header-offset) +
		var(--wp-admin--admin-bar--position-offset, var(--wp-admin--admin-bar--height, 32px)));
	background-color: transparent;
}

@media (max-width: 782px) {
	body.admin-bar:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
		top:
			calc(var(--ext-header-offset) +
			var(--wp-admin--admin-bar--position-offset, var(--wp-admin--admin-bar--height, 46px)));
	}

	body.admin-bar:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part.is-scrolled:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
		top:var(--ext-header-offset);
	}
}


@supports (animation-timeline: scroll()) {

	body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
		max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-right) + var(--wp--style--root--padding-left));
		margin-left: auto;
		margin-right: auto;
	}

	@media (prefers-reduced-motion: no-preference) {

		body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
			animation: ext-header-glass-intensify linear both !important;
			animation-timeline: --ext-hero-timeline !important;
			animation-range: exit 0% exit 80% !important;
		}

		body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
			animation: ext-header-glass-intensify-no-hero linear forwards !important;
			animation-timeline: scroll() !important;
			animation-range: 0 var(--ext-header-animation-distance) !important;
		}
	}
}

@keyframes ext-header-glass-intensify {

	from {
		background-color: oklch(from var(--ext-header-glass-color-start) l c h / var(--ext-header-bg-opacity-start));
		backdrop-filter: blur(var(--ext-header-blur-start));
	}

	to {
		background-color: oklch(from var(--ext-header-glass-color-end) l c h / var(--ext-header-bg-opacity-end));
		backdrop-filter: blur(var(--ext-header-blur-end));
		box-shadow: 0 14px 28px -10px oklch(from var(--wp--preset--color--foreground) l c h / 0.14), 0 -14px 28px -10px oklch(from var(--wp--preset--color--foreground) l c h / 0.14);
	}
}

@keyframes ext-header-glass-intensify-no-hero {

	from {
		background-color: oklch(from var(--ext-header-glass-color-start) l c h / var(--ext-header-bg-opacity-start));
		backdrop-filter: blur(var(--ext-header-blur-start));
		box-shadow: none;
		translate: 0 0;
		max-width: 100%;
		margin-inline: auto;
	}

	to {
		background-color: oklch(from var(--ext-header-glass-color-end) l c h / var(--ext-header-bg-opacity-end));
		backdrop-filter: blur(var(--ext-header-blur-end));
		box-shadow: 0 14px 28px -10px oklch(from var(--wp--preset--color--foreground) l c h / 0.14), 0 -14px 28px -10px oklch(from var(--wp--preset--color--foreground) l c h / 0.14);

		translate: 0 var(--ext-header-offset);
		max-width: var(--wp--style--global--wide-size);
		margin-inline: var(--wp--style--root--padding-right) var(--wp--style--root--padding-left);
		border-radius: 1rem;
	}
}

/* ===========================================================
   Vibe/gradient fix
   -----------------------------------------------------------
   Vibe block-style variations (e.g. is-style-ext-preset--group--*--header-1--N)
   paint a background gradient on the header. That gradient fights every
   over-hero / glass-tint / dark-scrim treatment we apply to overlay or glass
   headers, because the glass and overlay rules set background-COLOR while the
   variation sets a background-IMAGE that paints on top.
   Override the variation's background-image specifically (not the whole
   `background:` shorthand). That lets each header keep working in its
   natural design:
     - overlay non-glass: gets transparent bg over hero, theme bg past hero
     - glass: gets the glass tint (light by default, dark when --dark is set)
   On non-overlay / non-glass headers the variation gradient stays as-is.
   =========================================================== */
.ext-header-overlay[class*="is-style-ext-preset--"],
.ext-header-glass[class*="is-style-ext-preset--"] {
	background-image: none !important;
}

/* Temporary: a few template parts (e.g. no-title-sticky-header.html) wrap our
   header in another sticky <header>. Scope the fix to the three new headers
   (atlas-beacon, catalina-skyline, ceadar-peak) — they're the only ones
   using .ext-header-overlay, so older headers that intentionally rely on
   the wrapper's positioning aren't affected. display: contents removes the
   wrapper from layout entirely so its bg/border/sticky/box-shadow/
   wp-container-* styles don't apply. Remove once the upstream template
   stops wrapping. */
header:has(> header.wp-block-template-part :where(.ext-header-overlay)) {
	display: contents;
}
