/* File: styles.css */
@layer tokens, base, components, utilities;

/* =====================
   Design Tokens (Vision UI-inspired)
   ===================== */
@layer tokens {
  :root {
    color-scheme: light dark;

    /* Palette */
    --primary: #4318ff;
    --secondary: #0f1535;
    --info: #0075ff;
    --success: #01b574;
    --warning: #ffb547;
    --error: #e31a1a;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #4318ff 0%, #9f7aea 100%);
    --grad-secondary: linear-gradient(135deg, #627594 0%, #a8b8d8 100%);
    --grad-info: linear-gradient(135deg, #0075ff 0%, #21d4fd 100%);

    /* Neutrals */
    --light-100: #edf2f7;
    --light-200: #e2e8f0;
    --light-300: #cbd5e0;
    --light-400: #a0aec0;
    --light-500: #718096;
    --dark-300: #3a416f;
    --dark-400: #344767;
    --dark-900: #0f1535;

    /* UI tokens */
    --ui-bg: var(--dark-900);
    --ui-surface: rgba(255, 255, 255, 0.12); /* Increased from 0.06 */
    --ui-border: rgba(255, 255, 255, 0.18); /* Increased from 0.12 */
    --ui-text: #f8fafc;
    --ui-muted: #aab0c0;

    /* Accent */
    --accent: var(--primary);
    --accent-2: #9f7aea;
    --accent-gradient: var(--grad-primary);

    /* Layout */
    --gap: 12px;
    --stack-gap: 8px;
    --stack-title-pad: 8px 12px;
    --stack-panel-pad: 12px;

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;

    /* Elevation / Glass - Enhanced for better visibility */
    --blur: 14px;
    --card-bg: rgba(255,255,255,0.12); /* Increased from 0.06 */
    --card-stroke: rgba(255,255,255,0.18); /* Increased from 0.10 */
    --card-shadow: 0 10px 30px rgba(20, 23, 39, 0.45),
                   0 2px 8px rgba(0, 0, 0, 0.28);
    --glow: 0 0 0 1px rgba(67,24,255,.25), 0 8px 24px rgba(67,24,255,.22);

    /* Dropdown/Aside specific backgrounds */
    --dropdown-bg: rgba(255,255,255,0.90); /* More opaque for dropdowns */
    --aside-bg: rgba(255,255,255,0.5); /* More opaque for asides */

    /* Safe-area */
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Edge/Sidebars */
    --sidebar-w: clamp(320px, 28vw, 380px);
    --edge-margin: clamp(12px, 7vh, 80px);
    --header-h: 70px;
  }

  /* Responsive sidebar widths */
  @media (max-width: 1440px) { 
    :root { --sidebar-w: clamp(300px, 30vw, 440px); } 
  }
  @media (max-width: 1100px) { 
    :root { --sidebar-w: clamp(280px, 36vw, 400px); } 
  }
  @media (max-width: 720px) { 
    :root { 
      --sidebar-w: min(96vw, 420px); 
      --edge-margin: 12px; 
    } 
  }
}

/* =====================
   Base / Reset
   ===================== */
@layer base {
  *, *::before, *::after { 
    box-sizing: border-box; 
  }
  
  html, body { 
    height: 100%; 
    overflow: hidden; 
  }

  body {
    margin: 0;
    color: var(--ui-text);
    font-family: "Space Grotesk", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
      radial-gradient(1600px 800px at 10% -10%, rgba(67,24,255,.25) 0%, rgba(67,24,255,0) 50%),
      radial-gradient(1200px 700px at 110% 10%, rgba(0,117,255,.18) 0%, rgba(0,117,255,0) 45%),
      linear-gradient(180deg, #0b122e 0%, #0f1535 100%);
    display: flex;
    flex-direction: column;
    padding-bottom: 74px; /* space for sticky footer */
  }

  button, input, select, textarea { 
    font: inherit; 
    color: inherit; 
  }
  
  button, [role="button"] { 
    cursor: pointer; 
  }
  
  input, select, textarea { 
    accent-color: var(--accent); 
  }

  button, input, select, textarea, .stack-toggle {
    &:focus-visible {
      outline: 2px solid color-mix(in srgb, var(--accent) 80%, #fff 0%);
      outline-offset: 2px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    * { 
      animation: none !important; 
      transition: none !important; 
    }
  }
}

/* =====================
   Components
   ===================== */
@layer components {
  /* Header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-h);
    padding-inline: 16px;
    font-size: clamp(12px, 1.5vw, 14px);
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--card-stroke);
  }

  /* Footer */
  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 16px;
    font-size: clamp(17px, 1.5vw, 14px);
    background: linear-gradient(0deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--card-stroke);
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 3px;
  }

  /* Main content */
  main {
    flex: 1;
    align-content: center;
  }

  /* Header brand */
  .header-brand { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    user-select: none; 
  }

  .brand-text {
    font: 700 12px/1 "Space Grotesk", system-ui, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e8ecff;
    white-space: nowrap;
  }

  /* Logo */
  .logo {
    display: flex;
    gap: 7px;
    align-items: center;
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    line-height: 1;
    width: 50px;
    height: auto;
  }
  
  .logo svg {
    width: 30px;
    height: 30px;
  }
  
  .logo-text {
    color: var(--accent);
  }

  /* Glass card / accordion shell */
  .card, details.accordion {
    background: var(--card-bg);
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
  }

  /* Accordion layout */
  details.accordion { 
    margin-bottom: var(--gap); 
    overflow: clip; 
  }
  
  details.accordion summary {
    cursor: pointer;
    padding: var(--stack-title-pad);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    color: #e9ecff;
  }
  
  details.accordion summary::-webkit-details-marker { 
    display: none; 
  }
  
  details.accordion .panel {
    padding: 16px; /* Increased from var(--stack-panel-pad) */
    border-top: 1px solid var(--card-stroke);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    color: var(--ui-muted);
    display: grid;
    gap: 12px;
  }

  /* Chevron */
  .chev {
    width: 20px; 
    height: 20px; 
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid; 
    place-items: center;
    transition: transform .2s ease, background-color .2s ease;
    background: color-mix(in srgb, #ffffff 8%, transparent);
    border: 1px solid var(--card-stroke);
  }
  
  details.accordion[open] summary .chev { 
    transform: rotate(180deg); 
  }

  /* Controls */
  button {
    appearance: none;
    border: 1px solid var(--card-stroke);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    color: #f0f2ff;
    padding: 8px 12px;
    border-radius: 999px;
    height: 36px;
    transition: transform .08s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
    box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 rgba(0,0,0,0);
    backdrop-filter: blur(var(--blur));
  }
  
  button:hover { 
    filter: brightness(1.05); 
    box-shadow: var(--glow); 
  }

  .btn--accent {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
  }
  
  .btn--accent:hover { 
    filter: brightness(.98); 
  }

  /* Form elements */
  label { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    color: #fff; 
  }

  input[type="color"] {
    width: 36px; 
    height: 32px; 
    padding: 0;
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.08);
  }
  
  input[type="number"],
  input[type="text"],
  .filename-wrap input[type="text"] {
    width: 100%; 
    padding: 10px 12px;
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-md); 
    height: 38px;
    flex: 1;
    min-width: 0;
  }
  
  select {
    height: 38px;
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 0 10px;
    color:var(--dark-900);
    flex: 1;
    min-width: 0;
  }

  /* Canvas */
  .canvas-wrap {
    position: fixed; 
    inset: 0; 
    display: grid; 
    place-items: center;
    overflow: hidden; 
    background: transparent;
  }
  
  #canvas { 
    display: block; 
    margin: auto; 
    touch-action: none; 
    width: 900px; 
    height: 745px; 
    flex: 0 0 auto; 
  }

  /* Artboard overlay */
  .artboard-header {
    position: absolute; 
    inset-inline: 0; 
    inset-block-start: 0; 
    height: 48px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border-bottom: 1px solid var(--card-stroke);
    backdrop-filter: blur(var(--blur));
    pointer-events: none; 
    z-index: 5;
  }
  
  .artboard-logo { 
    height: 22px; 
    pointer-events: none; 
  }
  
  .artboard-logo-text {
    font: 800 14px/1 "Space Grotesk", system-ui, sans-serif;
    color: #f0f2ff; 
    letter-spacing: .6px; 
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
  }
  
  .svg-pad-top { 
    padding-top: 48px; 
  }

  /* Selection + handles */
  .selection-box { 
    fill: none; 
    stroke: var(--accent); 
    stroke-dasharray: 4 3; 
    stroke-width: 1.5; 
    pointer-events: none; 
  }
  
  .handle { 
    fill: var(--accent); 
    stroke: #fff; 
    stroke-width: 1; 
    width: 8px; 
    height: 8px; 
    pointer-events: all; 
    cursor: nwse-resize; 
  }
  
  .handle.ne, .handle.sw { cursor: nesw-resize; }
  .handle.n, .handle.s { cursor: ns-resize; }
  .handle.e, .handle.w { cursor: ew-resize; }
  
  .marquee { 
    fill: color-mix(in srgb, var(--accent) 12%, transparent); 
    stroke: var(--accent); 
    stroke-dasharray: 3 3; 
    pointer-events: none; 
  }

  .status { 
    padding: 8px 12px; 
    color: var(--ui-muted); 
  }

  /* Sidebars - Enhanced opacity */
  .sidebar {
    position: fixed;
    top: calc(var(--edge-margin) + var(--safe-top));
    bottom: calc(var(--edge-margin) + var(--safe-bottom));
    width: var(--sidebar-w);
    max-width: calc(100vw - (var(--safe-left) + var(--safe-right)) - 24px);
    background: var(--grad-primary); /* Enhanced background */
    padding: 14px;
    padding-inline: calc(14px + var(--safe-left)) calc(14px + var(--safe-right));
    overflow: auto;
    transition: transform .25s ease;
    z-index: 100;
    margin-block: 20px;
    border: 3px solid var(--card-stroke);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    resize: horizontal;
    min-width: 260px;
    max-width: calc(100vw - 24px);
    contain: layout paint;
  }
  
  .sidebar--left { 
    left: 0; 
    border-radius: 0px 20px 20px 0px;
    border-width: 3px 3px 3px 0px;
  }
  
  .sidebar--right { 
    right: 0; 
    border-radius: 20px 0px 0px 20px;
    border-width: 3px 0px 3px 3px;
  }

  .sidebar:before {
    content: "";
    position: absolute; 
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(67,24,255,.45), rgba(10, 180, 255, .25));
    -webkit-mask: 
      linear-gradient(#000 0 0) content-box, 
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; 
    mask-composite: exclude;
    pointer-events: none;
  }

  .sidebar--left.is-collapsed { transform: translateX(-100%) !important; }
  .sidebar--right.is-collapsed { transform: translateX(100%) !important; }

  aside.sidebar, .sidebar--right { overflow-x: hidden; }

  /* Edge toggles */
  .edge-toggle {
    position: fixed;
    top: calc(var(--edge-margin)/2 - 22px);
    width: 44px; 
    height: 44px;
    display: grid; 
    place-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-stroke);
    border-radius: 999px;
    box-shadow: var(--card-shadow);
    z-index: 110;
    cursor: pointer;
    padding: 0;
    backdrop-filter: blur(var(--blur));
  }
  
  .edge-toggle:hover { 
    box-shadow: var(--glow); 
    filter: brightness(1.08); 
  }
  
  .edge-toggle .material-symbols-outlined {
    font-variation-settings: 'OPSZ' 24, 'wght' 600, 'FILL' 0;
    font-size: 28px; 
    line-height: 1;
  }
  
  .edge-toggle--left { left: 12px; }
  .edge-toggle--right { right: 12px; }

  /* Sidebar content */
  .sidebar-title {
    font: 800 28px/1.1 "Space Grotesk", system-ui, sans-serif;
    color: #f6f8ff;
    margin: 4px 0 12px;
    letter-spacing: .02em;
  }
  
  .inspector { 
    display: grid; 
    gap: 12px; 
  }
  
  .inspector-title { 
    font: 700 14px/1.2 "Space Grotesk", system-ui, sans-serif; 
    margin: 4px 0 8px; 
    color: #e9ecff; 
  }
  
  .inspector-section {
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: grid;
    gap: 8px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(var(--blur));
  }
  
  .small-muted { 
    font-size: 12px; 
    color: #c5cbe0; 
    flex: 0 0 auto;
  }

  /* Combo (icon search) - Enhanced dropdown */
  .combo { 
    position: relative; 
    display: block; 
  }
  
  .combo-input {
    width: 100%; 
    padding: 10px 12px;
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-lg);
    outline: none;
    background: #fff;
    color: #f0f2ff;
  }
  
  .combo-input:focus {
    border-color: color-mix(in srgb, var(--accent) 60%, #fff 0%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  
  .combo-listbox {
    position: absolute;
    left: 0; 
    right: 0; 
    top: calc(100% + 6px);
    max-height: 260px; 
    overflow: auto;
    background: var(--dropdown-bg); /* Enhanced dropdown background */
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    z-index: 999;
    backdrop-filter: blur(var(--blur));
  }
  
  .combo-option {
    display: flex; 
    align-items: center; 
    gap: 10px;
    padding: 10px 12px; 
    cursor: pointer; 
    color: #e9ecff;
  }
  
  .combo-option[aria-selected="true"],
  .combo-option:hover { 
    background: color-mix(in srgb, var(--primary) 15%, transparent); 
  }
  
  .combo-option .mi {
    font-family: "Material Symbols Outlined";
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    font-size: 22px; 
    width: 24px; 
    text-align: center;
  }
  
  .combo-empty { 
    padding: 10px; 
    color: var(--ui-muted); 
  }

  /* Panel layout improvements */
  .panel label,
  .panel .combo,
  .panel .button-row,
  .panel .icon-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }

  .button-row,
  .row-actions { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
  }

  .align-group {
    gap: 15px;
    display: inline-flex;
  }

  /* Icon controls grid */
  #iconControlsRow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--stack-gap);
    align-items: center;
    margin-top: var(--stack-gap);
  }

  /* Overlay handles for non-scaling stroke */
  #selectionOverlay .overlay-box { 
    vector-effect: non-scaling-stroke; 
  }
  
  #selectionOverlay .overlay-handle {
    fill: #fff; 
    stroke: var(--accent); 
    stroke-width: 1; 
    vector-effect: non-scaling-stroke;
  }
  
  #selectionOverlay .overlay-handle[data-pos="n"],
  #selectionOverlay .overlay-handle[data-pos="s"] { cursor: ns-resize; }
  #selectionOverlay .overlay-handle[data-pos="e"],
  #selectionOverlay .overlay-handle[data-pos="w"] { cursor: ew-resize; }
  #selectionOverlay .overlay-handle[data-pos="ne"],
  #selectionOverlay .overlay-handle[data-pos="sw"] { cursor: nesw-resize; }
  #selectionOverlay .overlay-handle[data-pos="nw"],
  #selectionOverlay .overlay-handle[data-pos="se"] { cursor: nwse-resize; }

  /* Responsive adjustments */
  @media (max-width: 640px) {
    .brand-text { font-size: 13px; }
    .header-brand .logo-svg,
    .header-brand .logo-mask { width: 40px; }
  }

  @media (max-width: 720px) {
    .sidebar {
      box-shadow: 0 16px 40px rgba(0,0,0,.28);
    }
  }

  @media (min-width: 1280px) {
    body:not(.left-collapsed) main { 
      margin: 0 !important; 
      min-height: 100vh; 
      width: 100vw; 
      position: relative; 
      overflow: hidden; 
    }
    body:not(.right-collapsed) main { 
      margin-right: 0 !important; 
    }
  }

  @media (max-width: 600px) {
    body { padding-bottom: 64px; }
  }
}

/* =====================
   Utilities
   ===================== */
@layer utilities {
  .text-accent { color: var(--accent); }
  .border-accent { border-color: var(--accent) !important; }
  .bg-accent-gradient { background: var(--accent-gradient); color: #fff; }

  /* Glass helper */
  .glass { 
    background: var(--card-bg); 
    border: 1px solid var(--card-stroke); 
    box-shadow: var(--card-shadow); 
    backdrop-filter: blur(var(--blur)); 
    border-radius: var(--radius-lg); 
  }

  /* Badges */
  .badge {
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    padding: 6px 10px; 
    border-radius: 999px; 
    font-weight: 700; 
    font-size: 12px;
    border: 1px solid var(--card-stroke); 
    background: rgba(255,255,255,.08);
  }
  
  .badge--success { 
    background: color-mix(in srgb, var(--success) 15%, transparent); 
    color: #eafff4; 
  }
  
  .badge--warning { 
    background: color-mix(in srgb, var(--warning) 18%, transparent); 
    color: #fff6e5; 
  }
  
  .badge--error { 
    background: color-mix(in srgb, var(--error) 18%, transparent); 
    color: #ffe9e9; 
  }
}

/* =====================
   Ad Slots (Minimized)
   ===================== */
.ad-slot { 
  display: block; 
  margin: 16px auto; 
  text-align: center; 
}

.ad-leaderboard { max-width: 100%; }
.ad-rect { max-width: 336px; }
.ad-skyscraper { max-width: 300px; }
.ad-inline { max-width: 100%; }

.ad-sticky-footer {
  position: fixed;
  left: 0; 
  right: 0; 
  bottom: 0;
  z-index: 9999;
  background: rgba(20,20,24,.95);
  box-shadow: 0 -4px 16px rgba(0,0,0,.35);
  padding: 6px 8px;
}

/* Collapse ads when no fill */
.ad-slot,
.ad-slot .adsbygoogle { 
  background: transparent !important; 
}

.ad-slot:not(.has-fill) {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ad-sticky-footer:not(.has-fill) { 
  display: none !important; 
}

/* Ad rails */
#ad-rails-root { 
  position: fixed; 
  inset: 0; 
  pointer-events: none; 
  z-index: 2147483647; 
}

.ad-rail { 
  position: fixed; 
  pointer-events: auto; 
  z-index: 10; 
  display: none; 
}

.ad-rail ins.adsbygoogle { 
  pointer-events: auto; 
}

/* Ad rail positions */
#ad-rail-top { 
  top: 80px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 728px; 
  max-width: 90vw; 
}

#ad-rail-bottom { 
  left: 50%; 
  transform: translateX(-50%); 
  bottom: 80px; 
  width: 728px; 
  max-width: 90vw; 
}

#ad-rail-left { 
  top: 50%; 
  transform: translateY(-50%); 
  left: 20px; 
  width: 300px;
}

#ad-rail-right { 
  top: 50%; 
  transform: translateY(-50%); 
  right: 20px; 
  width: 300px;
}

#ad-rail-top .adsbygoogle,
#ad-rail-bottom .adsbygoogle { 
  display: block; 
  width: 728px; 
  height: 90px; 
  max-width: 90vw; 
}

#ad-rail-left .adsbygoogle,
#ad-rail-right .adsbygoogle { 
  display: block; 
  width: 300px; 
  height: 250px; 
}

/* Collapse until fill */
.ad-rail:not(.has-fill) { 
  display: none; 
}

/* Responsive: hide side rails on narrow screens */
@media (max-width: 1200px) {
  #ad-rail-left, 
  #ad-rail-right { 
    display: none !important; 
  }
}

/* Debug mode (simplified) */
html.lz-ads-debug #ad-rails-root { 
  outline: 0; 
}

html.lz-ads-debug .ad-rail { 
  display: block !important; 
}

html.lz-ads-debug .ad-rail .debug-box {
  display: block; 
  background: repeating-linear-gradient(
    45deg, 
    rgba(255,255,255,.12), 
    rgba(255,255,255,.12) 10px,
    rgba(255,255,255,.06) 10px, 
    rgba(255,255,255,.06) 20px
  );
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

html.lz-ads-debug #ad-rail-top .debug-box,
html.lz-ads-debug #ad-rail-bottom .debug-box { 
  height: 90px; 
  width: 728px; 
  max-width: 90vw; 
}

html.lz-ads-debug #ad-rail-left .debug-box,
html.lz-ads-debug #ad-rail-right .debug-box { 
  width: 300px; 
  height: 250px; 
}

html.lz-ads-debug .ad-rail.has-fill .adsbygoogle { 
  display: block !important; 
}

/* Help Drawer: CSS */
.lz-help-btn{position:fixed;inset:auto 16px 16px auto;z-index:9999;width:44px;height:44px;display:grid;place-items:center;border:none;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;box-shadow:0 4px 20px rgba(0,0,0,.35);cursor:pointer}
.lz-help-btn:focus{outline:2px solid #6aa9ff;outline-offset:2px}
.lz-help{position:fixed;inset:0;z-index:9998;visibility:hidden}
.lz-help[aria-hidden="false"]{visibility:visible}
.lz-help__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);opacity:0;transition:opacity .18s linear}
.lz-help[aria-hidden="false"] .lz-help__backdrop{opacity:1}
.lz-help__panel{position:absolute;top:0;right:0;width:min(520px,92vw);height:100%;background:#0b0f14;color:#eaf0f6;box-shadow:0 0 0 1px rgba(255,255,255,.08),-14px 0 30px rgba(0,0,0,.35);transform:translateX(12px);opacity:.001;transition:transform .22s cubic-bezier(.2,.7,.2,1),opacity .22s linear;display:flex;flex-direction:column;border-left:1px solid rgba(255,255,255,.08)}
.lz-help[aria-hidden="false"] .lz-help__panel{transform:none;opacity:1}
@media (prefers-reduced-motion:reduce){.lz-help__backdrop,.lz-help__panel{transition:none}}
.lz-help__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.12)}
.lz-help__header h2{font:600 18px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;margin:0}
.lz-help__close{background:transparent;color:#eaf0f6;border:none;font-size:28px;line-height:1;cursor:pointer;padding:4px 8px;border-radius:8px}
.lz-help__close:focus{outline:2px solid #6aa9ff;outline-offset:2px}
.lz-help__tabs{display:flex;gap:6px;padding:10px;border-bottom:1px solid rgba(255,255,255,.1)}
.lz-help__tabs [role="tab"]{background:rgba(255,255,255,.06);color:#eaf0f6;border:1px solid rgba(255,255,255,.08);padding:8px 10px;border-radius:10px;cursor:pointer;font:500 13px/1 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif}
.lz-help__tabs [aria-selected="true"]{background:rgba(106,169,255,.25);border-color:rgba(106,169,255,.5)}
.lz-help__pane{display:none;padding:14px 16px;overflow:auto}
.lz-help__pane.is-active{display:block}
.lz-steps{padding-left:18px}.lz-steps li{margin:8px 0}
.lz-list{padding-left:18px}.lz-list li{margin:6px 0}
.lz-tip{margin-top:10px;opacity:.9}
.lz-docs-link{color:#9b7bff;text-decoration:none}.lz-docs-link:hover{text-decoration:underline}
