@import "./icons-duotone.css";
@tailwind base;
@tailwind components;
@tailwind utilities;

.ask-page-module {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: var(--ask-color-text);
  font-family: inherit;
}

:root {
  --ask-layout-app-bg: #f5f7fb;
  --ask-layout-shell-bg: #ffffff;
  --ask-layout-sidebar-bg: #ffffff;
  --ask-layout-sidebar-item-bg: #ffffff;
  --ask-layout-sidebar-item-hover-bg: rgba(37, 99, 235, 0.05);
  --ask-layout-sidebar-item-active-bg: rgba(37, 99, 235, 0.08);
  --ask-layout-panel-bg: #ffffff;
  --ask-layout-panel-header-bg: rgba(248, 250, 252, 0.92);
  --ask-layout-toolbar-bg: rgba(255, 255, 255, 0.96);
  --ask-layout-canvas-stage-bg: #eef2f7;
  --ask-layout-overlay-backdrop: rgba(15, 23, 42, 0.24);
  --ask-thumbnail-bg: #ffffff;
  --ask-thumbnail-active-bg: rgba(37, 99, 235, 0.10);
  --ask-thumbnail-active-border: #2563eb;
  --ask-text-primary: #0f172a;
  --ask-text-secondary: #64748b;
  --ask-text-tertiary: #94a3b8;
  --ask-text-inverse: #ffffff;
  --ask-border-subtle: #e8edf5;
  --ask-border-default: #d7dfeb;
  --ask-border-strong: #b8c4d7;
  --ask-border-focus: #2563eb;
  --ask-accent-primary: #2563eb;
  --ask-accent-primary-soft: rgba(37, 99, 235, 0.12);
  --ask-accent-success: #16a34a;
  --ask-accent-warning: #f59e0b;
  --ask-accent-danger: #dc2626;
  --ask-button-primary-bg: #2563eb;
  --ask-button-primary-text: #ffffff;
  --ask-button-primary-border: #2563eb;
  --ask-button-primary-hover-bg: #1d4ed8;
  --ask-button-secondary-bg: #ffffff;
  --ask-button-secondary-text: #0f172a;
  --ask-button-secondary-border: #d7dfeb;
  --ask-button-secondary-hover-bg: #f8fafc;
  --ask-button-ghost-text: #334155;
  --ask-button-ghost-hover-bg: rgba(15, 23, 42, 0.05);
  --ask-button-danger-bg: #dc2626;
  --ask-button-danger-text: #ffffff;
  --ask-button-danger-border: #dc2626;
  --ask-button-danger-hover-bg: #b91c1c;
  --ask-input-bg: #ffffff;
  --ask-input-text: #0f172a;
  --ask-input-border: #d7dfeb;
  --ask-input-placeholder: #94a3b8;
  --ask-input-focus-ring: rgba(37, 99, 235, 0.18);
  --ask-icon-button-bg: #ffffff;
  --ask-icon-button-text: #334155;
  --ask-icon-button-border: #d7dfeb;
  --ask-icon-button-hover-bg: #f8fafc;

  /* Utility variables used by Tailwind-backed components. */
  --ask-color-background: var(--ask-layout-app-bg);
  --ask-color-surface: var(--ask-layout-app-bg);
  --ask-color-surface-alt: var(--ask-layout-panel-bg);
  --ask-color-surface-2: var(--ask-layout-panel-header-bg);
  --ask-color-border: var(--ask-border-default);
  --ask-color-border-subtle: var(--ask-border-subtle);
  --ask-color-border-strong: var(--ask-border-strong);
  --ask-color-text: var(--ask-text-primary);
  --ask-color-text-main: var(--ask-text-primary);
  --ask-text-main: var(--ask-text-primary);
  --ask-color-text-muted: var(--ask-text-secondary);
  --ask-text-muted: var(--ask-text-secondary);
  --ask-color-text-strong: var(--ask-text-primary);
  --ask-color-text-subtle: var(--ask-text-tertiary);
  --ask-color-primary: var(--ask-accent-primary);
  --ask-color-primary-soft: var(--ask-accent-primary-soft);
  --ask-color-accent: var(--ask-accent-success);
  --ask-color-success: var(--ask-accent-success);
  --ask-color-warning: var(--ask-accent-warning);
  --ask-color-danger: var(--ask-accent-danger);
  --ask-surface: var(--ask-layout-panel-bg);
  --ask-surface-subtle: var(--ask-layout-app-bg);
  --ask-color-background-rgb: 245 247 251;
  --ask-color-surface-rgb: 245 247 251;
  --ask-color-surface-alt-rgb: 255 255 255;
  --ask-color-surface-2-rgb: 248 250 252;
  --ask-color-border-rgb: 215 223 235;
  --ask-color-border-default-rgb: 215 223 235;
  --ask-color-border-subtle-rgb: 232 237 245;
  --ask-color-border-strong-rgb: 184 196 215;
  --ask-color-text-rgb: 15 23 42;
  --ask-color-text-main-rgb: 15 23 42;
  --ask-color-text-primary-rgb: 15 23 42;
  --ask-color-text-muted-rgb: 100 116 139;
  --ask-color-text-secondary-rgb: 100 116 139;
  --ask-color-text-strong-rgb: 15 23 42;
  --ask-color-text-subtle-rgb: 148 163 184;
  --ask-color-primary-rgb: 37 99 235;
  --ask-color-accent-rgb: 22 163 74;
  --ask-color-success-rgb: 22 163 74;
  --ask-color-warning-rgb: 245 158 11;
  --ask-color-danger-rgb: 220 38 38;
  --ask-radius-lg: 0.95rem;
  --ask-overlay-radius: 12px;
  --ask-overlay-radius-lg: 14px;

  /* visual hierarchy system */
  --ask-nav-tone-text: var(--ask-text-secondary);
  --ask-nav-tone-text-strong: var(--ask-text-primary);
  --ask-nav-tone-icon: var(--ask-text-tertiary);
  --ask-nav-tone-icon-strong: var(--ask-text-secondary);
  --ask-nav-tone-meta: var(--ask-text-tertiary);
  --ask-color-foreground-rgb: 241 245 249;
}

.ask-selection-popover {
  border-radius: 12px !important;
}

html,
body {
  @apply ask-h-full ask-w-full ask-font-sans;
}

body {
  @apply ask-bg-surface ask-text-textMain;
}

#asuka-root {
  @apply ask-h-full ask-w-full;
}

/* Small Figma-like card primitives */
.ask-shell-card {
  @apply ask-bg-surfaceAlt ask-rounded-2xl ask-border ask-border-borderStrong;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ask-color-border-subtle) 55%, transparent);
}

/* Canvas frame: apply card chrome to the actual Fabric wrapper (canvas-container) */
.ask-canvas-frame > .canvas-container {
  @apply ask-bg-surfaceAlt;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

.ask-canvas-frame > .canvas-container > canvas {
  border-radius: inherit;
}

/* Subtle separators */
.ask-shell-divider {
  @apply ask-border-t ask-border-borderSubtle;
}

/*
  Zone type: "inline"
  - The inline zone owns the outer spacing: one padding on the container and one gap between modules.
  - Individual inline modules stay spacing-neutral so multiple modules do not stack extra padding.
  - Many modules use the shared <Card/> component; in inline zones we visually neutralize it.
*/

.ask-zone-inline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
}

.ask-zone-inline__module {
  min-width: 0;
}

.ask-zone-inline__module-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ask-zone-inline__module-shell.is-dragging {
  opacity: 0.72;
}

.ask-zone-inline__module-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-width: 0;
  padding: 0 0 0.4rem;
  border-bottom: 0;
  background: transparent;
  opacity: 0.72;
  transition: opacity 160ms ease;
}

.ask-zone-inline__module-shell:hover .ask-zone-inline__module-header,
.ask-zone-inline__module-shell:focus-within .ask-zone-inline__module-header {
  opacity: 1;
}

.ask-zone-inline__module-drag-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-width: 0;
  flex: 0 0 auto;
  border: 1px solid rgb(var(--ask-color-border-subtle-rgb) / 0.86);
  background: rgb(var(--ask-color-surface-rgb) / 0.84);
  color: rgb(var(--ask-color-text-secondary-rgb) / 0.95);
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  text-align: left;
  box-shadow: 0 8px 18px rgb(15 23 42 / 0.04);
}

.ask-zone-inline__module-drag-handle:active {
  cursor: grabbing;
}

.ask-zone-inline__module-drag-handle:hover {
  background: rgb(var(--ask-color-primary-rgb) / 0.06);
  border-color: rgb(var(--ask-color-primary-rgb) / 0.24);
  color: rgb(var(--ask-color-text-primary-rgb) / 1);
}

.ask-zone-inline__module-grip {
  font-size: 0.72rem;
  line-height: 1;
  color: rgb(var(--ask-color-text-secondary-rgb) / 0.72);
}

.ask-zone-inline__module-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
}

.ask-zone-inline__module-popout {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  color: rgb(var(--ask-color-text-secondary-rgb) / 0.78);
  font-size: 0.64rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
}

.ask-zone-inline__module-popout:hover:not(:disabled) {
  background: rgb(var(--ask-color-primary-rgb) / 0.08);
  color: rgb(var(--ask-color-text-primary-rgb) / 1);
}

.ask-zone-inline__module-popout:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ask-zone-inline__module-body {
  min-width: 0;
  padding: 0;
}


.ask-zone-inline__module-body > .ask-module-card {
  box-shadow: 0 10px 26px rgb(15 23 42 / 0.04);
}

.ask-dnd-zone-active .ask-zone-inline__module-body {
  pointer-events: none;
  user-select: none;
}

.ask-theme-sidebar--inline:not(.ask-theme-sidebar--collapsed) {
  --ask-inline-sidebar-width: clamp(16rem, 18vw, 19.5rem);
  width: var(--ask-inline-sidebar-width);
  flex: 0 0 var(--ask-inline-sidebar-width);
  max-width: min(19.5rem, 36vw);
}

.ask-theme-sidebar--inline .ask-zone-inline {
  width: 100%;
  padding: 1rem;
  gap: 1rem;
}

.ask-zone-inline__module,
.ask-zone-inline__module > *,
.ask-zone-inline__module-body > * {
  width: 100%;
  max-width: 100%;
}

.ask-zone-inline__module > *,
.ask-zone-inline__module-body > * {
  min-width: 0;
}


.ask-zone-inline__module--panel {
  padding: 0;
}

.ask-zone-inline__module > .ask-module-unavailable-state--inline,
.ask-zone-inline__module-body > .ask-module-unavailable-state--inline {
  min-height: 0;
  height: auto;
  padding: 0;
}

.ask-zone-inline__module-body div.ask-rounded-\[18px\].ask-border.ask-bg-surfaceAlt.ask-shadow-sm {
  @apply ask-rounded-none ask-border-0 ask-bg-transparent ask-shadow-none;
}

.ask-zone-inline__module-body div.ask-rounded-\[18px\].ask-border.ask-bg-surfaceAlt.ask-shadow-sm > .ask-px-4 {
  @apply ask-px-0;
}

.ask-zone-inline__module-body div.ask-rounded-\[18px\].ask-border.ask-bg-surfaceAlt.ask-shadow-sm > .ask-px-4.ask-pt-4 {
  @apply ask-pt-0;
}

.ask-zone-inline__module-body div.ask-rounded-\[18px\].ask-border.ask-bg-surfaceAlt.ask-shadow-sm > .ask-px-4.ask-pb-2 {
  @apply ask-pb-0;
}

.ask-zone-inline__module-body div.ask-rounded-\[18px\].ask-border.ask-bg-surfaceAlt.ask-shadow-sm > .ask-px-4.ask-pb-4 {
  @apply ask-pb-0;
}


@layer components {
  /* Overlays (modal, drawer, floating, panels) */
  .ask-overlay {
    @apply ask-fixed ask-inset-0 ask-pointer-events-none;
  }

  .ask-overlay.ask-overlay--contained {
    position: absolute;
    inset: 0;
  }

  .ask-overlay__backdrop {
    @apply ask-absolute ask-inset-0 ask-pointer-events-auto;
  }

  .ask-overlay__panel {
    @apply ask-pointer-events-auto ask-bg-surfaceAlt ask-border ask-border-borderSubtle ask-shadow-soft;
    overflow: hidden;
    background-clip: padding-box;
    isolation: isolate;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--ask-color-border-subtle) 45%, transparent),
      0 22px 48px rgba(15, 23, 42, 0.14);
  }

  .ask-overlay__header {
    @apply ask-flex ask-items-center ask-justify-between ask-px-4 ask-py-2.5 ask-border-b ask-border-borderSubtle;
    min-height: 52px;
    background: color-mix(in srgb, var(--ask-color-surface-alt) 94%, white 6%);
    background-clip: padding-box;
  }

  .ask-overlay__header--compact {
    @apply ask-px-3 ask-py-2;
    min-height: 46px;
  }

  .ask-overlay__content {
    @apply ask-p-4 ask-flex ask-flex-col ask-flex-1 ask-min-h-0;
    background: var(--ask-color-surface-alt);
    background-clip: padding-box;
    min-height: 0;
  }

  .ask-overlay__content > :first-child:last-child {
    min-width: 0;
  }

  .ask-overlay__content--modal-scroll {
    flex: 0 1 auto;
    max-height: min(calc(100vh - 2rem), 40rem);
  }

  .ask-overlay__content--modal-scroll .ask-scroll-area__viewport {
    max-height: inherit;
  }

  /* Modal */
  .ask-overlay--modal {
    @apply ask-flex ask-items-center ask-justify-center;
  }
  .ask-overlay__backdrop--modal {
    @apply ask-bg-black/25 ask-backdrop-blur-[1px];
  }
  .ask-overlay__panel--modal {
    @apply ask-relative ask-w-[min(720px,calc(100%-2rem))] ask-max-h-[min(80vh,calc(100%-2rem))] ask-rounded-2xl ask-transition-all ask-duration-150 ask-ease-out ask-flex ask-flex-col;
    border-radius: var(--ask-overlay-radius-lg);
  }

  /* Fullscreen modal (used by Studio) */
  .ask-overlay__panel--fullscreen {
    @apply ask-w-[calc(100%-1rem)] ask-h-[calc(100%-1rem)] ask-max-w-none ask-max-h-none ask-rounded-2xl ask-flex ask-flex-col;
    border-radius: calc(var(--ask-overlay-radius-lg) + 2px);
  }

  .ask-overlay[data-asuka-responsive-breakpoint="mobile"]:not([data-asuka-module="studio"]) .ask-overlay__panel:not(.ask-overlay__panel--fullscreen) {
    max-width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
  }

  /* Drawer (right by default) */
  .ask-overlay--drawer {
    @apply ask-flex ask-items-stretch ask-justify-end;
  }
  .ask-overlay__backdrop--drawer {
    @apply ask-bg-black/10;
  }
  .ask-overlay__panel--drawer-right {
    @apply ask-h-full ask-w-80 ask-border-l ask-border-borderSubtle ask-flex ask-flex-col ask-translate-x-0 ask-transition-transform ask-duration-150 ask-ease-out;
    box-sizing: border-box !important;
    width: min(20rem, calc(100% - 0.75rem)) !important;
    max-width: min(20rem, calc(100% - 0.75rem)) !important;
    flex: 0 0 min(20rem, calc(100% - 0.75rem)) !important;
    border-top-left-radius: var(--ask-overlay-radius);
    border-bottom-left-radius: var(--ask-overlay-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* Floating (small window) */
  .ask-overlay--floating {
    @apply ask-flex ask-items-start ask-justify-end ask-p-4;
  }
  .ask-overlay__panel--floating {
    @apply ask-w-80 ask-rounded-2xl ask-flex ask-flex-col ask-overflow-hidden;
    border-radius: var(--ask-overlay-radius);
    max-width: min(20rem, calc(100% - 2rem));
    max-height: min(calc(100vh - 2rem), calc(100% - 2rem), 880px);
  }

  /* Popover (small anchored window) */
  .ask-overlay--popover {
    /* Positioned via Floating UI (fixed). Must NOT inherit full-screen inset from .ask-overlay. */
    @apply ask-left-0 ask-top-0 ask-p-0;
    inset: auto;
    width: auto;
    height: auto;
  }
  .ask-overlay__panel--popover {
    @apply ask-rounded-2xl ask-flex ask-flex-col ask-overflow-hidden;
    border-radius: var(--ask-overlay-radius);
    width: min(22rem, calc(100vw - 1rem));
    max-height: min(calc(100vh - 1rem), 36rem);
  }
.ask-overlay__panel--popover .ask-overlay__content {
  flex: 0 1 auto;
  max-height: calc(min(100vh - 1rem, 36rem) - 3.25rem);
}

.ask-overlay__panel--popover .ask-scroll-area__viewport {
  max-height: inherit;
}

.ask-overlay__panel--popover .ask-selection-toolbar__module-shell .ask-card__header {
  display: none;
}

.ask-overlay__panel--popover .ask-selection-toolbar__module-shell .ask-card__content {
  padding-top: 1rem;
}


  /* Panels */
  .ask-overlay--panel {
    @apply ask-absolute ask-inset-0 ask-pointer-events-none ask-flex;
  }

  .ask-overlay--panel-right {
    @apply ask-items-stretch ask-justify-end;
  }

  .ask-overlay--panel-left {
    @apply ask-items-stretch ask-justify-start;
  }

  .ask-overlay--panel-top {
    @apply ask-items-start ask-justify-stretch;
  }

  .ask-overlay--panel-bottom {
    @apply ask-items-end ask-justify-stretch;
  }
  .ask-overlay__panel--panel-left,
  .ask-overlay__panel--panel-right {
    @apply ask-h-full ask-w-80 ask-border ask-border-borderSubtle ask-flex ask-flex-col ask-overflow-hidden;
  }
  .ask-overlay__panel--panel-left {
    border-top-right-radius: var(--ask-overlay-radius);
    border-bottom-right-radius: var(--ask-overlay-radius);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .ask-overlay__panel--panel-right {
    border-top-left-radius: var(--ask-overlay-radius);
    border-bottom-left-radius: var(--ask-overlay-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .ask-overlay__panel--panel-top {
    @apply ask-w-full ask-border ask-border-borderSubtle ask-flex ask-flex-col ask-overflow-hidden;
    border-bottom-left-radius: var(--ask-overlay-radius);
    border-bottom-right-radius: var(--ask-overlay-radius);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .ask-overlay__panel--panel-bottom {
    @apply ask-w-full ask-border ask-border-borderSubtle ask-flex ask-flex-col;
    border-top-left-radius: var(--ask-overlay-radius);
    border-top-right-radius: var(--ask-overlay-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.ask-overlay__content .ask-card,
.ask-overlay__content .ask-theme-panel-block,
.ask-overlay__content .ask-rounded-\[18px\].ask-border,
.ask-overlay__content .ask-rounded-\[16px\].ask-border,
.ask-overlay__content .ask-rounded-\[14px\].ask-border,
.ask-overlay__content .ask-rounded-\[12px\].ask-border {
  background-clip: padding-box;
}

.ask-overlay__content .ask-card,
.ask-overlay__content .ask-theme-panel-block {
  overflow: hidden;
}


@layer utilities {
  /* Hide scrollbars while keeping the element scrollable (for horizontal tabs, carousels, etc.) */
  .ask-no-scrollbar {
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
  }
  .ask-no-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
}



.ask-scroll-area {
  position: relative;
}

.ask-scroll-area__viewport {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ask-scroll-area__viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ask-scroll-area__content {
  min-width: 100%;
  min-height: 100%;
}

.ask-scroll-area__bar {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease;
  user-select: none;
}

.ask-scroll-area.is-active .ask-scroll-area__bar,
.ask-scroll-area:focus-within .ask-scroll-area__bar,
.ask-scroll-area.is-dragging .ask-scroll-area__bar {
  opacity: 1;
}

.ask-scroll-area__bar--vertical {
  top: 6px;
  right: 3px;
  bottom: 6px;
  width: 6px;
}

.ask-scroll-area__bar--horizontal {
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 6px;
}

.ask-scroll-area__thumb {
  position: absolute;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--ask-text-secondary) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ask-surface) 72%, transparent);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.ask-scroll-area__bar--vertical .ask-scroll-area__thumb {
  top: 0;
  left: 0;
  width: 100%;
}

.ask-scroll-area__bar--horizontal .ask-scroll-area__thumb {
  top: 0;
  left: 0;
  height: 100%;
}

.ask-scroll-area:hover .ask-scroll-area__thumb,
.ask-scroll-area:focus-within .ask-scroll-area__thumb,
.ask-scroll-area.is-dragging .ask-scroll-area__thumb {
  background: color-mix(in srgb, var(--ask-accent-primary) 32%, var(--ask-text-secondary));
}

.ask-tabs__trigger {
  color: var(--ask-text-secondary);
  border-bottom: 2px solid transparent;
}

.ask-tabs__trigger:hover,
.ask-tabs__trigger:focus-visible {
  color: var(--ask-text-primary);
}

.ask-tabs__trigger.is-active {
  color: var(--ask-accent-primary);
  border-bottom-color: var(--ask-accent-primary);
}

.ask-tabs__trigger.is-disabled {
  opacity: 0.5;
}

.ask-tabs__trigger.is-disabled:hover,
.ask-tabs__trigger.is-disabled:focus-visible {
  color: var(--ask-text-secondary);
}

.ask-theme-shell {
  background: var(--ask-layout-shell-bg);
  border-color: var(--ask-border-subtle);
}

.ask-theme-shell-header,
.ask-theme-toolbar {
  background: var(--ask-layout-toolbar-bg);
  border-color: var(--ask-border-subtle);
}

.ask-theme-sidebar {
  background: var(--ask-layout-sidebar-bg);
  border-color: var(--ask-border-subtle);
}

.ask-theme-panel-block {
  background: var(--ask-layout-panel-bg);
  border: 1px solid var(--ask-border-subtle);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ask-theme-panel-header {
  background: var(--ask-layout-panel-header-bg);
  border-color: var(--ask-border-subtle);
}

.ask-theme-sidebar-item {
  position: relative;
  background: var(--ask-layout-sidebar-item-bg);
  border-color: var(--ask-border-subtle);
  color: var(--ask-nav-tone-text);
  flex: 0 0 auto;
}

.ask-theme-sidebar-item:hover:not(.is-active) {
  background: var(--ask-layout-sidebar-item-hover-bg);
  border-color: var(--ask-border-focus);
}

.ask-theme-sidebar-item.is-active {
  background: var(--ask-layout-sidebar-item-active-bg);
  border-color: var(--ask-border-focus);
  color: var(--ask-accent-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ask-border-focus) 14%, transparent);
}

.ask-theme-sidebar-item.is-active .ask-icon--menu,
.ask-theme-sidebar-item.is-active svg {
  color: var(--ask-accent-primary);
}

.ask-theme-sidebar-item--horizontal {
  width: auto;
  min-width: fit-content;
  max-width: max-content;
  flex: 0 0 auto;
}

.ask-theme-sidebar-pill {
  background: color-mix(in srgb, var(--ask-layout-sidebar-item-bg) 84%, transparent);
  border: 1px solid var(--ask-border-subtle);
  color: var(--ask-text-secondary);
}

.ask-theme-stage {
  background: var(--ask-layout-canvas-stage-bg);
}

.ask-theme-thumb-card {
  background: var(--ask-thumbnail-bg);
  border-color: var(--ask-border-subtle);
}

.ask-theme-thumb-card.is-active {
  background: var(--ask-thumbnail-active-bg);
  border-color: var(--ask-thumbnail-active-border);
}

.ask-theme-carousel {
  min-width: 0;
}

.ask-theme-carousel__label {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ask-text-secondary);
}

.ask-theme-carousel__track {
  min-width: 0;
  flex: 1 1 auto;
}

.ask-theme-carousel__counter {
  font-size: 11px;
  color: var(--ask-text-muted);
  padding-right: 4px;
}

.ask-theme-carousel-page {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--ask-border-subtle);
  background: color-mix(in srgb, var(--ask-thumbnail-bg) 92%, white 8%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.ask-theme-carousel-page:hover {
  background: color-mix(in srgb, var(--ask-thumbnail-bg) 80%, white 20%);
  border-color: color-mix(in srgb, var(--ask-thumbnail-active-border) 45%, var(--ask-border-subtle) 55%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.ask-theme-carousel-page.is-active {
  background: var(--ask-thumbnail-active-bg);
  border-color: var(--ask-thumbnail-active-border);
  box-shadow: 0 0 0 1px rgb(var(--ask-color-primary-rgb) / 0.1), 0 10px 24px rgba(37, 99, 235, 0.12);
}

.ask-theme-carousel-page__preview {
  position: relative;
  width: 72px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ask-border-subtle) 90%, transparent);
  background: var(--ask-surface-subtle);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

.ask-theme-carousel-page__badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: rgb(15 23 42 / 0.72);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.ask-theme-carousel-page__label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--ask-text-primary);
}

.ask-theme-btn {
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.ask-theme-btn-primary {
  background: var(--ask-button-primary-bg);
  color: var(--ask-button-primary-text);
  border-color: var(--ask-button-primary-border);
}
.ask-theme-btn-primary:hover { background: var(--ask-button-primary-hover-bg); }

.ask-theme-btn-secondary {
  background: var(--ask-button-secondary-bg);
  color: var(--ask-button-secondary-text);
  border-color: var(--ask-button-secondary-border);
}
.ask-theme-btn-secondary:hover { background: var(--ask-button-secondary-hover-bg); }

.ask-theme-btn-ghost {
  background: transparent;
  color: var(--ask-button-ghost-text);
  border-color: transparent;
}
.ask-theme-btn-ghost:hover { background: var(--ask-button-ghost-hover-bg); }

.ask-theme-btn-danger {
  background: var(--ask-button-danger-bg);
  color: var(--ask-button-danger-text);
  border-color: var(--ask-button-danger-border);
}
.ask-theme-btn-danger:hover { background: var(--ask-button-danger-hover-bg); }

.ask-selection-toolbar__danger:hover {
  background: color-mix(in srgb, var(--ask-accent-danger) 12%, var(--ask-button-secondary-bg));
  border-color: var(--ask-accent-danger);
  color: var(--ask-accent-danger);
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) :is(input, textarea, button).ask-theme-input,
:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) select.ask-theme-select {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  border-width: 1px;
  border-style: solid;
  border-color: var(--ask-input-border);
  border-radius: 12px;
  background-color: var(--ask-input-bg);
  color: var(--ask-input-text);
  font-family: inherit;
  font-weight: 400;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.035);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) :is(input, textarea, button).ask-theme-input:hover:not(:disabled):not(:read-only),
:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) select.ask-theme-select:hover:not(:disabled) {
  border-color: var(--ask-border-strong);
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) .ask-theme-input::placeholder {
  color: var(--ask-input-placeholder);
  opacity: 1;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) :is(input, textarea, button).ask-theme-input:focus-visible,
:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) select.ask-theme-select:focus-visible {
  outline: none;
  border-color: var(--ask-border-focus);
  box-shadow: 0 0 0 3px var(--ask-input-focus-ring);
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) :is(input, textarea, button).ask-theme-input:disabled,
:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) select.ask-theme-select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background-color: color-mix(in srgb, var(--ask-input-bg) 82%, var(--ask-border-subtle));
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) textarea.ask-theme-input {
  resize: vertical;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input.ask-theme-input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input.ask-theme-input[type='number']::-webkit-inner-spin-button,
:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input.ask-theme-input[type='number']::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) select.ask-theme-select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ask-text-secondary) 50%),
    linear-gradient(135deg, var(--ask-text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='checkbox'].ask-theme-checkbox {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  inline-size: 18px;
  block-size: 18px;
  min-inline-size: 18px;
  margin: 0;
  border: 1px solid var(--ask-input-border);
  border-radius: 5px;
  background: var(--ask-input-bg);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='checkbox'].ask-theme-checkbox::before {
  content: '';
  inline-size: 5px;
  block-size: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 100ms ease;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='checkbox'].ask-theme-checkbox:checked {
  border-color: var(--ask-accent-primary);
  background: var(--ask-accent-primary);
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='checkbox'].ask-theme-checkbox:checked::before {
  transform: translateY(-1px) rotate(45deg) scale(1);
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='checkbox'].ask-theme-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ask-input-focus-ring);
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='checkbox'].ask-theme-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='range'] {
  accent-color: var(--ask-accent-primary);
  cursor: pointer;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) input[type='color'] {
  border-color: var(--ask-input-border);
  background: var(--ask-input-bg);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.035);
}

/* Keep the native picker and editable HEX value usable inside narrow editors.
 * Width utilities on the shared Input component may otherwise let the picker
 * consume the whole row when an integration adds its own form styles. */
:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) [data-asuka-color-input] {
  display: grid !important;
  grid-template-columns: 44px minmax(88px, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) [data-asuka-color-input] > input[type='color'] {
  display: block !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 4px !important;
}

:is(.ask-theme-shell, [data-asuka-overlay], .ask-page-module) [data-asuka-color-input] > input[type='text'] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.ask-theme-icon-button {
  background: var(--ask-icon-button-bg);
  color: var(--ask-icon-button-text);
  border-color: var(--ask-icon-button-border);
}
.ask-theme-icon-button:hover { background: var(--ask-icon-button-hover-bg); }


.ask-theme-icon-button-plain {
  background: transparent;
  color: var(--ask-icon-button-text);
  border-color: transparent;
  box-shadow: none;
}
.ask-theme-icon-button-plain:hover {
  background: transparent;
  color: var(--ask-text-main);
}
.ask-theme-icon-button-plain:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ask-input-focus-ring);
}


/* Premium collapsed panel border fix */
.ask-theme-panel-block{
  overflow: hidden;
  border-radius: 16px;
  background-clip: padding-box;
}

.ask-theme-panel-header{
  position: relative;
  background-clip: padding-box;
}

.ask-theme-panel-block > .ask-theme-panel-header{
  margin: 0;
  box-shadow: inset 0 -1px 0 transparent;
}

.ask-theme-panel-block > .ask-theme-panel-header.ask-border-b{
  box-shadow: inset 0 -1px 0 var(--ask-border-subtle);
}


/* Shapes module layout polish */
.ask-shapes-module{
  display:flex;
  flex-direction:column;
  gap:14px;
  width:100%;
  min-width:0;
  min-height:0;
  height:100%;
}

.ask-shapes-module .ask-card{
  overflow:hidden;
  border-radius:20px;
}

.ask-shapes-module__header-copy{
  margin-top:4px;
  max-width:460px;
  font-size:11px;
  line-height:1.45;
  color:rgb(var(--ask-color-text-secondary-rgb) / 0.92);
}

.ask-shapes-module__section-heading-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.ask-shapes-module__section-title{
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgb(var(--ask-color-text-primary-rgb) / 1);
}

.ask-shapes-module__section-copy{
  margin-top:4px;
  font-size:11px;
  line-height:1.45;
  color:rgb(var(--ask-color-text-secondary-rgb) / 0.9);
}

.ask-shapes-module__grid-list > div:last-child{
  width:100%;
}

.ask-shapes-module__visual-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap:12px;
}

.ask-zone-inline .ask-shapes-module__visual-grid{
  grid-template-columns:repeat(auto-fit, minmax(min(8.75rem, 100%), 1fr));
}

.ask-shapes-module__shape-card{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:100%;
  min-width:0;
  border:1px solid rgb(var(--ask-color-border-subtle-rgb) / 1);
  border-radius:18px;
  background:linear-gradient(180deg, rgb(var(--ask-color-surface-alt-rgb) / 0.92) 0%, rgb(var(--ask-color-surface-rgb) / 0.98) 100%);
  padding:14px;
  box-shadow:0 8px 20px rgb(15 23 42 / 0.04);
}

.ask-shapes-module__shape-preview-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:104px;
  border-radius:14px;
  border:1px solid rgb(var(--ask-color-border-subtle-rgb) / 0.88);
  background:radial-gradient(circle at top, rgb(255 255 255 / 0.98), rgb(var(--ask-color-surface-alt-rgb) / 0.98));
  padding:10px;
}

.ask-shapes-module__shape-preview-wrap--svg{
  min-height:124px;
}

.ask-shapes-module__preview-svg{
  display:block;
  width:100%;
  height:76px;
}

.ask-shapes-module__preview-svg rect,
.ask-shapes-module__preview-svg circle,
.ask-shapes-module__preview-svg path,
.ask-shapes-module__preview-svg polygon{
  fill:rgb(var(--ask-color-primary-rgb) / 0.08);
  stroke:rgb(88 103 128 / 1);
  stroke-width:2.5;
  vector-effect:non-scaling-stroke;
}

.ask-shapes-module__preview-svg line{
  stroke:rgb(88 103 128 / 1);
  stroke-width:3.5;
  stroke-linecap:round;
}

.ask-shapes-module__svg-preview{
  width:100%;
  height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ask-shapes-module__svg-preview svg{
  width:100%;
  height:100%;
  max-width:112px;
  max-height:90px;
}

.ask-shapes-module__shape-meta{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.ask-shapes-module__shape-name{
  font-size:13px;
  font-weight:700;
  color:rgb(var(--ask-color-text-primary-rgb) / 1);
}

.ask-shapes-module__shape-helper{
  font-size:11px;
  line-height:1.4;
  color:rgb(var(--ask-color-text-secondary-rgb) / 0.9);
}

.ask-shapes-module__shape-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-top:auto;
  min-width:0;
}

.ask-shapes-module__shape-actions--icons{
  justify-content:flex-end;
}

.ask-shapes-module__shape-actions--svg{
  justify-content:space-between;
}

.ask-elements-module__card{
  min-width:0;
}

.ask-elements-module__card-main{
  min-width:0;
}

.ask-elements-module__card-text{
  min-width:0;
  overflow:hidden;
}

.ask-elements-module__meta{
  min-width:0;
}

.ask-elements-module__meta-count{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ask-zone-inline .ask-elements-module__card{
  align-items:center;
  flex-wrap:wrap;
}

.ask-zone-inline .ask-elements-module__card-main{
  flex:1 1 12rem;
  min-width:min(12rem, 100%);
}

.ask-zone-inline .ask-elements-module__card-actions{
  margin-left:auto;
}


@media (max-width: 1400px){
  .ask-zone-inline .ask-elements-module__card{
    align-items:stretch;
  }

  .ask-zone-inline .ask-elements-module__card-main{
    flex-basis:100%;
  }

  .ask-zone-inline .ask-elements-module__card-actions{
    width:100%;
    margin-left:0;
    justify-content:flex-end;
  }
}

@media (max-width: 1180px){
  .ask-theme-sidebar--inline:not(.ask-theme-sidebar--collapsed){
    --ask-inline-sidebar-width:min(18rem, 36vw);
    width:var(--ask-inline-sidebar-width);
    flex-basis:var(--ask-inline-sidebar-width);
    max-width:36vw;
  }
}

.ask-shapes-module__icon-action{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  border-radius:9999px !important;
}

.ask-shapes-module__icon-action--add{
  background:var(--ask-button-primary-bg) !important;
  border-color:var(--ask-button-primary-border) !important;
  color:var(--ask-button-primary-text) !important;
  box-shadow:0 10px 18px rgb(37 99 235 / 0.18);
}

.ask-shapes-module__icon-action--add:hover{
  filter:brightness(0.98);
}

.ask-shapes-module__icon-action--draw{
  background:var(--ask-button-secondary-bg, #fff) !important;
  border-color:var(--ask-button-secondary-border, #d0d7e2) !important;
  color:var(--ask-button-secondary-text, #334155) !important;
}

.ask-shapes-module__icon-action--draw:hover{
  border-color:rgb(var(--ask-color-primary-rgb) / 0.28) !important;
  color:rgb(var(--ask-color-primary-rgb)) !important;
}

.ask-shapes-module__icon-action--remove{
  background:transparent !important;
  border-color:rgb(var(--ask-color-border-rgb, 196 204 219)) !important;
  color:rgb(var(--ask-color-text-muted-rgb, 107 114 128)) !important;
}

.ask-shapes-module__icon-action--remove:hover{
  color:rgb(var(--ask-color-danger-rgb, 220 38 38)) !important;
  border-color:rgb(var(--ask-color-danger-rgb, 220 38 38) / 0.18) !important;
}


.ask-overlay__panel--floating .ask-shapes-module__shape-card,
.ask-overlay__panel--popover .ask-shapes-module__shape-card{
  gap:10px;
}

.ask-shapes-module__shape-actions .ask-tooltip-trigger{
  display:block;
  min-width:0;
}

.ask-shapes-module__remove-btn{
  width:34px;
  min-width:34px;
  height:34px;
  padding-inline:0 !important;
  justify-self:end;
}

.ask-shapes-module__svg-import-grid,
.ask-shapes-module__form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.ask-shapes-module__actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.ask-shapes-module__actions--inline-end{
  grid-column:1 / -1;
  justify-content:flex-end;
}


.ask-shapes-module__selection-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.ask-shapes-module__meta{
  border-radius:12px;
  border:1px dashed rgb(var(--ask-color-border-subtle-rgb) / 1);
  background:rgb(var(--ask-color-surface-alt-rgb) / 0.72);
  padding:12px;
  font-size:11px;
  color:rgb(var(--ask-color-text-secondary-rgb) / 0.9);
}

.ask-shapes-module__meta--selected{
  border-style:solid;
}

.ask-shapes-module__textarea{
  width:100%;
  min-height:124px;
  resize:vertical;
  border-radius:14px;
  border:1px solid rgb(var(--ask-color-border-default-rgb) / 1);
  background:rgb(var(--ask-color-surface-rgb) / 1);
  color:rgb(var(--ask-color-text-primary-rgb) / 1);
  padding:12px 14px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size:12px;
  line-height:1.5;
  outline:none;
  transition:border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.ask-shapes-module__textarea:focus{
  border-color:rgb(var(--ask-color-primary-rgb) / 0.55);
  box-shadow:0 0 0 4px rgb(var(--ask-color-primary-rgb) / 0.10);
}

.ask-shapes-module__error{
  border-radius:12px;
  background:rgb(239 68 68 / 0.08);
  color:#b91c1c;
  padding:10px 12px;
  font-size:11px;
}

@media (max-width: 640px){
  .ask-shapes-module{
    width:min(100%, 100%);
  }

  .ask-shapes-module__grid-list > div:last-child,
  .ask-shapes-module__svg-import-grid,
  .ask-shapes-module__form-grid{
    grid-template-columns:1fr;
  }

  .ask-shapes-module__shape-actions,
  .ask-shapes-module__shape-card--svg .ask-shapes-module__shape-actions{
    grid-template-columns:1fr;
  }

  .ask-shapes-module__shape-actions .ask-tooltip-trigger{
  display:block;
  min-width:0;
}

.ask-shapes-module__remove-btn{
    justify-self:stretch;
    width:100%;
  }
}

/* Editorial premium sidebar nav pass */
.ask-theme-sidebar-item{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:52px;
  gap:12px;
  padding:10px 14px;
  border-radius:18px;
  border:1px solid rgb(var(--ask-color-border-subtle-rgb) / 0.82);
  background:rgb(var(--ask-color-surface-rgb) / 0.82);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.58) inset,
    0 0 0 1px rgb(255 255 255 / 0.10);
  color: var(--ask-nav-tone-text);
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
  backdrop-filter:saturate(1.04);
}

.ask-theme-sidebar-item:hover{
  background:rgb(var(--ask-color-surface-alt-rgb) / 0.96);
  border-color:rgb(var(--ask-color-border-default-rgb) / 0.94);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.62) inset,
    0 6px 18px rgb(15 23 42 / 0.05);
  color: var(--ask-nav-tone-text-strong);
  transform:translateY(-0.5px);
}

.ask-theme-sidebar-item:active{
  transform:translateY(0);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.5) inset,
    0 2px 8px rgb(15 23 42 / 0.04);
}

.ask-theme-sidebar-item[aria-pressed="true"],
.ask-theme-sidebar-item[data-active="true"],
.ask-theme-sidebar-item--active{
  background:
    linear-gradient(180deg,
      rgb(var(--ask-color-primary-rgb) / 0.10),
      rgb(var(--ask-color-primary-rgb) / 0.06)
    ),
    rgb(var(--ask-color-surface-rgb) / 0.96);
  border-color:rgb(var(--ask-color-primary-rgb) / 0.40);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.58) inset,
    0 0 0 1px rgb(var(--ask-color-primary-rgb) / 0.08),
    0 10px 22px rgb(var(--ask-color-primary-rgb) / 0.08);
  color:rgb(var(--ask-color-text-primary-rgb) / 1);
}

.ask-theme-sidebar-item .ask-icon,
.ask-theme-sidebar-item .ask-icon--menu,
.ask-theme-sidebar-item svg{
  opacity:1;
  color: var(--ask-nav-tone-icon);
  transition: color 140ms ease, opacity 140ms ease;
}

.ask-theme-sidebar-item .ask-font-medium,
.ask-theme-sidebar-item .ask-pointer-events-none{
  letter-spacing:-0.01em;
}

.ask-theme-sidebar-item .ask-font-medium{
  font-weight:600;
  font-size:13.5px;
  line-height:1.2;
}

.ask-theme-sidebar-meta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:fit-content;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgb(var(--ask-color-border-subtle-rgb) / 0.68);
  background:rgb(var(--ask-color-surface-alt-rgb) / 0.68);
  color: var(--ask-nav-tone-meta);
  font-size:10px;
  font-weight:500;
  line-height:1;
  letter-spacing:0;
}

.ask-theme-sidebar-item:hover .ask-theme-sidebar-meta{
  background:rgb(var(--ask-color-surface-alt-rgb) / 0.92);
  border-color:rgb(var(--ask-color-border-default-rgb) / 0.82);
  color: var(--ask-nav-tone-text);
}

.ask-theme-sidebar-item[aria-pressed="true"] .ask-theme-sidebar-meta,
.ask-theme-sidebar-item[data-active="true"] .ask-theme-sidebar-meta,
.ask-theme-sidebar-item--active .ask-theme-sidebar-meta{
  background:rgb(var(--ask-color-primary-rgb) / 0.11);
  border-color:rgb(var(--ask-color-primary-rgb) / 0.18);
  color:rgb(var(--ask-color-primary-rgb) / 0.90);
}

.ask-theme-sidebar-compact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgb(var(--ask-color-border-subtle-rgb) / 0.82);
  background:rgb(var(--ask-color-surface-rgb) / 0.84);
  box-shadow:0 1px 0 rgb(255 255 255 / 0.55) inset;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.ask-theme-sidebar-compact:hover{
  background:rgb(var(--ask-color-surface-alt-rgb) / 0.96);
  border-color:rgb(var(--ask-color-border-default-rgb) / 0.94);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.62) inset,
    0 6px 16px rgb(15 23 42 / 0.05);
  transform:translateY(-0.5px);
}

.ask-theme-sidebar-compact .ask-icon,
.ask-theme-sidebar-compact .ask-icon--menu,
.ask-theme-sidebar-compact svg{
  opacity:1;
  color: var(--ask-nav-tone-icon);
  transition: color 140ms ease, opacity 140ms ease;
}

.ask-theme-sidebar-item--pill{
  width:100%;
}

/* Collapsed left/right nav final sizing fix */
.ask-theme-sidebar /* Unified nav active state and toggle standardization */
.ask-theme-sidebar-item.is-active,
.ask-theme-sidebar-item[aria-pressed="true"],
.ask-theme-sidebar-item[data-active="true"],
.ask-theme-sidebar-item--active{
  background:
    linear-gradient(180deg,
      rgb(var(--ask-color-primary-rgb) / 0.10),
      rgb(var(--ask-color-primary-rgb) / 0.06)
    ),
    rgb(var(--ask-color-surface-rgb) / 0.96);
  border-color:rgb(var(--ask-color-primary-rgb) / 0.40);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.58) inset,
    0 0 0 1px rgb(var(--ask-color-primary-rgb) / 0.08),
    0 10px 22px rgb(var(--ask-color-primary-rgb) / 0.08);
  color:rgb(var(--ask-color-text-primary-rgb) / 1);
}

.ask-theme-sidebar-item.is-active .ask-icon,
.ask-theme-sidebar-item.is-active .ask-icon--menu,
.ask-theme-sidebar-item.is-active svg{
  color:rgb(var(--ask-color-primary-rgb) / 0.96);
}

.ask-zone-toggle-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--ask-color-foreground-rgb) / 0.03);
}

.ask-zone-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ask-zone-toggle-wrapper--vertical {
  width: 100%;
}

.ask-zone-toggle-wrapper--horizontal {
  flex: 0 0 auto;
  margin-right: 0;
}

.ask-zone-toggle-spacer {
  width: 100%;
  min-height: 32px;
}

.ask-zone-toggle {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.ask-zone-toggle .ask-icon,
.ask-zone-toggle .ask-icon--menu,
.ask-zone-toggle svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  flex: 0 0 auto;
}

.ask-theme-toolbar > .ask-zone-toggle-wrapper--horizontal + .ask-theme-sidebar-item--horizontal,
.ask-theme-toolbar > .ask-zone-toggle-wrapper--horizontal + .ask-theme-sidebar-item {
  margin-left: 0;
}


/* Final nav/toggle unification fix */
.ask-theme-sidebar-item.is-active,
.ask-theme-sidebar-item[aria-pressed="true"],
.ask-theme-sidebar-item[data-active="true"],
.ask-theme-sidebar-item--active {
  background: var(--ask-layout-sidebar-item-active-bg) !important;
  border-color: rgb(var(--ask-color-primary-rgb) / 0.32) !important;
  color: rgb(var(--ask-color-primary-rgb) / 1) !important;
  box-shadow: 0 0 0 1px rgb(var(--ask-color-primary-rgb) / 0.08) !important;
}

.ask-theme-sidebar-item.is-active .ask-icon,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-icon,
.ask-theme-sidebar-item[data-active="true"] .ask-icon,
.ask-theme-sidebar-item--active .ask-icon,
.ask-theme-sidebar-item.is-active svg,
.ask-theme-sidebar-item[aria-pressed="true"] svg,
.ask-theme-sidebar-item[data-active="true"] svg,
.ask-theme-sidebar-item--active svg {
  color: rgb(var(--ask-color-primary-rgb) / 1) !important;
}

.ask-theme-sidebar .ask-zone-toggle-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.ask-zone-toggle-wrapper,
.ask-zone-toggle-wrapper--vertical,
.ask-zone-toggle-wrapper--horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ask-zone-toggle-wrapper--vertical {
  width: 100%;
}

.ask-zone-toggle-wrapper--horizontal {
  flex: 0 0 auto;
  margin-right: 0;
}

.ask-zone-toggle {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgb(var(--ask-color-text-secondary-rgb) / 0.9);
}

.ask-zone-toggle:hover {
  background: rgb(var(--ask-color-surface-alt-rgb) / 0.9) !important;
  color: rgb(var(--ask-color-text-primary-rgb) / 1) !important;
  box-shadow: none !important;
  transform: none !important;
}

.ask-zone-toggle:active {
  transform: none !important;
}

.ask-zone-toggle .ask-icon,
.ask-zone-toggle svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}


/* Visual hierarchy refinement */
.ask-theme-sidebar-item,
.ask-theme-sidebar-item .ask-font-medium,
.ask-theme-sidebar-item .ask-pointer-events-none {
  color: var(--ask-nav-tone-text) !important;
}

.ask-theme-sidebar-item .ask-icon,
.ask-theme-sidebar-item .ask-icon--menu,
.ask-theme-sidebar-item svg,
.ask-theme-sidebar-compact .ask-icon,
.ask-theme-sidebar-compact .ask-icon--menu,
.ask-theme-sidebar-compact svg {
  color: var(--ask-nav-tone-icon) !important;
}

.ask-theme-sidebar-item:hover:not(.is-active),
.ask-theme-sidebar-item:hover:not([aria-pressed="true"]):not([data-active="true"]):not(.ask-theme-sidebar-item--active) {
  color: var(--ask-nav-tone-text-strong) !important;
}

.ask-theme-sidebar-item:hover:not(.is-active) .ask-icon,
.ask-theme-sidebar-item:hover:not(.is-active) .ask-icon--menu,
.ask-theme-sidebar-item:hover:not(.is-active) svg,
.ask-theme-sidebar-compact:hover .ask-icon,
.ask-theme-sidebar-compact:hover .ask-icon--menu,
.ask-theme-sidebar-compact:hover svg {
  color: var(--ask-nav-tone-icon-strong) !important;
}

.ask-theme-sidebar-meta {
  color: var(--ask-nav-tone-meta) !important;
}

.ask-theme-sidebar-item.is-active,
.ask-theme-sidebar-item[aria-pressed="true"],
.ask-theme-sidebar-item[data-active="true"],
.ask-theme-sidebar-item--active {
  color: rgb(var(--ask-color-primary-rgb) / 1) !important;
}

.ask-theme-sidebar-item.is-active .ask-font-medium,
.ask-theme-sidebar-item.is-active .ask-pointer-events-none,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-font-medium,
.ask-theme-sidebar-item[data-active="true"] .ask-font-medium,
.ask-theme-sidebar-item--active .ask-font-medium {
  color: rgb(var(--ask-color-primary-rgb) / 1) !important;
}

.ask-theme-sidebar-item.is-active .ask-icon,
.ask-theme-sidebar-item.is-active .ask-icon--menu,
.ask-theme-sidebar-item.is-active svg,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-icon,
.ask-theme-sidebar-item[data-active="true"] .ask-icon,
.ask-theme-sidebar-item--active .ask-icon,
.ask-theme-sidebar-item[aria-pressed="true"] svg,
.ask-theme-sidebar-item[data-active="true"] svg,
.ask-theme-sidebar-item--active svg {
  color: rgb(var(--ask-color-primary-rgb) / 1) !important;
}


/* Sidebar menu: icon above, label below */
.ask-theme-sidebar-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  min-height:68px;
  padding:10px 8px;
}

.ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
.ask-theme-sidebar-item .ask-nav__icon,
.ask-theme-sidebar-item .ask-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
}

.ask-theme-sidebar-item .ask-font-medium,
.ask-theme-sidebar-item .ask-nav__label,
.ask-theme-sidebar-item .ask-theme-sidebar-item__label{
  display:block;
  width:100%;
  text-align:center;
  line-height:1.15;
  margin:0;
  font-size:12.5px;
  font-weight:500;
}

.ask-theme-sidebar-item:hover .ask-font-medium,
.ask-theme-sidebar-item:hover .ask-nav__label,
.ask-theme-sidebar-item:hover .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item.is-active .ask-font-medium,
.ask-theme-sidebar-item.is-active .ask-nav__label,
.ask-theme-sidebar-item.is-active .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-font-medium,
.ask-theme-sidebar-item[data-active="true"] .ask-font-medium,
.ask-theme-sidebar-item--active .ask-font-medium{
  font-weight:500;
}



/* Force left sidebar items to stack icon above label */
.ask-theme-sidebar .ask-theme-sidebar-item,
.ask-sidebar .ask-theme-sidebar-item,
.ask-left-sidebar .ask-theme-sidebar-item,
aside .ask-theme-sidebar-item{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:6px !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item > *,
.ask-sidebar .ask-theme-sidebar-item > *,
.ask-left-sidebar .ask-theme-sidebar-item > *,
aside .ask-theme-sidebar-item > *{
  margin-left:0 !important;
  margin-right:0 !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-nav__icon,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-icon,
.ask-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
.ask-sidebar .ask-theme-sidebar-item .ask-nav__icon,
.ask-sidebar .ask-theme-sidebar-item .ask-icon,
.ask-left-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
.ask-left-sidebar .ask-theme-sidebar-item .ask-nav__icon,
.ask-left-sidebar .ask-theme-sidebar-item .ask-icon,
aside .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
aside .ask-theme-sidebar-item .ask-nav__icon,
aside .ask-theme-sidebar-item .ask-icon{
  order:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item .ask-font-medium,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-nav__label,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__label,
.ask-sidebar .ask-theme-sidebar-item .ask-font-medium,
.ask-sidebar .ask-theme-sidebar-item .ask-nav__label,
.ask-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__label,
.ask-left-sidebar .ask-theme-sidebar-item .ask-font-medium,
.ask-left-sidebar .ask-theme-sidebar-item .ask-nav__label,
.ask-left-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__label,
aside .ask-theme-sidebar-item .ask-font-medium,
aside .ask-theme-sidebar-item .ask-nav__label,
aside .ask-theme-sidebar-item .ask-theme-sidebar-item__label{
  order:2 !important;
  display:block !important;
  width:100% !important;
  text-align:center !important;
  margin:0 !important;
}



/* Force left sidebar items to use column layout on the INNER content row too */
.ask-theme-sidebar .ask-theme-sidebar-item,
.ask-sidebar .ask-theme-sidebar-item,
.ask-left-sidebar .ask-theme-sidebar-item,
aside .ask-theme-sidebar-item{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item > div,
.ask-sidebar .ask-theme-sidebar-item > div,
.ask-left-sidebar .ask-theme-sidebar-item > div,
aside .ask-theme-sidebar-item > div{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  width:100% !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item > div > *,
.ask-sidebar .ask-theme-sidebar-item > div > *,
.ask-left-sidebar .ask-theme-sidebar-item > div > *,
aside .ask-theme-sidebar-item > div > *{
  margin-left:0 !important;
  margin-right:0 !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item svg,
.ask-sidebar .ask-theme-sidebar-item svg,
.ask-left-sidebar .ask-theme-sidebar-item svg,
aside .ask-theme-sidebar-item svg{
  display:block !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-nav__icon,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-icon,
.ask-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
.ask-sidebar .ask-theme-sidebar-item .ask-nav__icon,
.ask-sidebar .ask-theme-sidebar-item .ask-icon,
.ask-left-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
.ask-left-sidebar .ask-theme-sidebar-item .ask-nav__icon,
.ask-left-sidebar .ask-theme-sidebar-item .ask-icon,
aside .ask-theme-sidebar-item .ask-theme-sidebar-item__icon,
aside .ask-theme-sidebar-item .ask-nav__icon,
aside .ask-theme-sidebar-item .ask-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  margin:0 !important;
}

.ask-theme-sidebar .ask-theme-sidebar-item .ask-font-medium,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-nav__label,
.ask-theme-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__label,
.ask-sidebar .ask-theme-sidebar-item .ask-font-medium,
.ask-sidebar .ask-theme-sidebar-item .ask-nav__label,
.ask-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__label,
.ask-left-sidebar .ask-theme-sidebar-item .ask-font-medium,
.ask-left-sidebar .ask-theme-sidebar-item .ask-nav__label,
.ask-left-sidebar .ask-theme-sidebar-item .ask-theme-sidebar-item__label,
aside .ask-theme-sidebar-item .ask-font-medium,
aside .ask-theme-sidebar-item .ask-nav__label,
aside .ask-theme-sidebar-item .ask-theme-sidebar-item__label{
  display:block !important;
  width:100% !important;
  text-align:center !important;
  margin:0 !important;
}






/* Collapsed nav spacing + larger icons */
.ask-theme-sidebar .ask-theme-sidebar-item--collapsed,
.ask-left-sidebar .ask-theme-sidebar-item--collapsed,
aside .ask-theme-toolbar .ask-theme-sidebar-item--horizontal {
  justify-content: center;
}

.ask-theme-toolbar .ask-theme-sidebar-item--horizontal[title] {
  margin: 0 4px;
}



/* Exact horizontal square buttons: remove min-height so hover stays square */





/* Sidebar width + collapsed spacing */

.ask-theme-sidebar--expanded.ask-w-64{
  width: 16rem !important;
  min-width: 16rem !important;
}

.ask-theme-sidebar--collapsed .ask-theme-sidebar-item/* Keep collapsed buttons full-width inside the collapsed sidebar column */
.ask-theme-sidebar-item

/* Clean collapsed sidebar rules */
.ask-theme-sidebar--collapsed{
  width: 56px !important;
  min-width: 56px !important;
}

.ask-theme-sidebar--collapsed .ask-flex-1.ask-flex.ask-flex-col{
  align-items: stretch !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.ask-theme-sidebar--collapsed .ask-theme-sidebar-item.ask-theme-sidebar-item--collapsed{
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: auto !important;
}

.ask-theme-sidebar--collapsed .ask-theme-sidebar-item.ask-theme-sidebar-item--collapsed .ask-icon,
.ask-theme-sidebar--collapsed .ask-theme-sidebar-item.ask-theme-sidebar-item--collapsed svg{
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.ask-theme-sidebar-item.ask-theme-sidebar-item--horizontal.ask-w-10.ask-h-10{
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  flex: 0 0 40px !important;
}


.ask-canvas-actions{display:none!important}


.ask-theme-shell-header.ask-zone-toggle-strip {
  padding: 0 !important;
}

.ask-zone-toggle-wrapper--horizontal {
  background: rgb(var(--ask-color-foreground-rgb) / 0.03);
  align-self: stretch;
}


.ask-tooltip-trigger {
  display: inline-flex;
  max-width: 100%;
}

.ask-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.ask-tooltip.is-visible {
  opacity: 1;
  transform: scale(1);
}

.ask-tooltip__bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: min(240px, calc(100vw - 20px));
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ask-border-default) 88%, white 12%);
  background: color-mix(in srgb, var(--ask-layout-shell-bg) 92%, white 8%);
  color: var(--ask-text-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ask-border-subtle) 52%, transparent),
    0 14px 28px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.ask-tooltip__bubble::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-left: 1px solid color-mix(in srgb, var(--ask-border-default) 88%, white 12%);
  border-top: 1px solid color-mix(in srgb, var(--ask-border-default) 88%, white 12%);
  background: color-mix(in srgb, var(--ask-layout-shell-bg) 92%, white 8%);
}

.ask-tooltip--top .ask-tooltip__bubble::after {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(225deg);
}

.ask-tooltip--bottom .ask-tooltip__bubble::after {
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.ask-tooltip--left .ask-tooltip__bubble::after {
  top: 50%;
  right: -6px;
  transform: translateY(-50%) rotate(135deg);
}

.ask-tooltip--right .ask-tooltip__bubble::after {
  top: 50%;
  left: -6px;
  transform: translateY(-50%) rotate(-45deg);
}


/* Unified zone scroll/drop spacing */
.ask-zone-scroll-area__viewport {
  padding: 0.5rem;
}

.ask-zone-scroll-area__content--horizontal {
  gap: 0.5rem;
}

.ask-zone-drop-slot {
  position: relative;
  flex: 1 1 auto;
  min-height: 3rem;
  margin: 0.5rem;
  border-radius: 1rem;
  border: 1.5px dashed color-mix(in srgb, var(--ask-color-primary, #2563eb) 28%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ask-color-primary-soft, #dbeafe) 18%, transparent), color-mix(in srgb, var(--ask-color-primary-soft, #dbeafe) 10%, transparent)),
    color-mix(in srgb, var(--ask-layout-panel-bg, #ffffff) 82%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ask-color-primary, #2563eb) 8%, transparent),
    0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.ask-zone-drop-slot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.75rem;
  height: 0.375rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.18), rgba(37, 99, 235, 0.88), rgba(96, 165, 250, 0.18));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}

.ask-zone-drop-slot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--ask-color-primary, #2563eb);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.96), 0 0 0 7px rgba(37, 99, 235, 0.14);
}

.ask-zone-drop-slot--horizontal {
  min-height: 2.75rem;
}


/* Modern pointer drag & drop affordances */
.ask-dnd-ghost {
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  max-width: min(260px, 80vw);
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    var(--ask-layout-panel-bg, #fff);
  color: var(--ask-text-primary, #0f172a);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.18),
    0 0 0 4px rgba(37, 99, 235, 0.08);
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transform: translate3d(0, 0, 0);
  backdrop-filter: blur(14px);
}

.ask-dnd-ghost__hint {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--ask-accent-primary, #2563eb);
  padding: 0.15rem 0.45rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}

.ask-dnd-insertion-line {
  pointer-events: none;
  position: fixed;
  z-index: 9998;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.92), rgba(37, 99, 235, 0));
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.10),
    0 10px 22px rgba(37, 99, 235, 0.18);
  animation: ask-dnd-placeholder-pulse 1.1s ease-in-out infinite;
}

.ask-dnd-insertion-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--ask-color-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.98), 0 0 0 6px rgba(37, 99, 235, 0.18);
}

.ask-dnd-insertion-line--vertical {
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0), rgba(37, 99, 235, 1), rgba(96, 165, 250, 0));
}


.ask-dnd-zone-active {
  position: relative;
  outline: 1px solid rgba(37, 99, 235, 0.16);
  outline-offset: -1px;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.08), transparent 62%),
    var(--ask-layout-sidebar-bg, #fff);
}

.ask-dnd-list-placeholder {
  pointer-events: none;
  position: relative;
  min-height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.24), rgba(37, 99, 235, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.22),
    0 8px 22px rgba(37, 99, 235, 0.12);
  animation: ask-dnd-placeholder-pulse 1.1s ease-in-out infinite;
}

.ask-dnd-list-placeholder::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(37, 99, 235, 0.95), rgba(96, 165, 250, 0));
  transform: translateY(-50%);
}

.ask-dnd-list-placeholder::after {
  content: "Drop here";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ask-accent-primary, #2563eb);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
  padding: 0.12rem 0.55rem;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transform: translate(-50%, -50%);
}

.ask-dnd-sort-item--dragging {
  opacity: 0.38;
  transform: scale(0.985);
  filter: saturate(0.86);
}

.ask-dnd-sort-item--over {
  border-radius: 16px;
  outline: 1px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

@keyframes ask-dnd-placeholder-pulse {
  0%, 100% {
    opacity: 0.78;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Module visual standardization */
.ask-module-card {
  color: var(--ask-color-text, inherit);
  background: var(--ask-layout-panel-bg, var(--ask-color-surface-alt, #fff));
}

.ask-module-header {
  min-height: 3.25rem;
}

.ask-module-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ask-module-description {
  max-width: 34rem;
}

.ask-module-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ask-module-section {
  background: var(--ask-color-surface, #fff);
}

.ask-module-actions .ask-theme-btn,
.ask-module-actions button {
  min-height: 2rem;
}

.ask-module-notice {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.ask-module-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ask-module-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 12px;
}

.ask-module-field > span:first-child,
.ask-module-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ask-color-text-main, var(--ask-color-text, inherit));
}

.ask-module-field input,
.ask-module-field select,
.ask-module-field textarea {
  border-radius: 0.875rem;
}

.ask-overlay__panel--panel-left .ask-module-card,
.ask-overlay__panel--panel-right .ask-module-card,
.ask-overlay__panel--panel-top .ask-module-card,
.ask-overlay__panel--panel-bottom .ask-module-card {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ask-overlay__panel--popover .ask-selection-toolbar__module-shell .ask-module-header {
  display: none;
}

.ask-overlay__panel--popover .ask-selection-toolbar__module-shell .ask-module-content {
  padding-top: 1rem;
}



/* Flat inner module surfaces */
.ask-module-card .ask-module-section,
.ask-module-card .ask-module-notice,
.ask-module-card .ask-card:not(.ask-module-card),
.ask-module-card [class*="ask-shadow"] {
  box-shadow: none !important;
}

.ask-module-card .ask-module-section,
.ask-module-card .ask-module-notice {
  background: var(--ask-color-surface, #fff);
}

/* Flat floating module shells */
.ask-overlay__panel--floating .ask-module-card,
.ask-overlay__panel--popover .ask-module-card {
  box-shadow: none !important;
}

/* Flat inner module headers */
.ask-module-card .ask-module-header,
.ask-module-card .ask-card__header {
  border-bottom: 0 !important;
}



/* Theme-aware active cards
   Keep active surfaces opaque enough so dark presets do not reveal light overlays underneath. */
.ask-view-card--active {
  background: var(--ask-layout-panel-bg, var(--ask-color-surface-alt, #fff));
}

@supports (background: color-mix(in srgb, #000 90%, #fff 10%)) {
  .ask-view-card--active {
    background: color-mix(
      in srgb,
      var(--ask-layout-panel-bg, var(--ask-color-surface-alt, #fff)) 90%,
      var(--ask-accent-primary, var(--ask-color-primary, #2563eb)) 10%
    );
  }
}

[data-asuka-theme-preset="linear"] .ask-view-card--active,
[data-asuka-theme-preset="dark"] .ask-view-card--active {
  background: var(--ask-layout-panel-bg, var(--ask-color-surface-alt, #111827));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ask-accent-primary, #7b83eb) 26%, transparent);
}

/* Powered-by branding
   Visible by default on Free/Starter. Hidden automatically when the white-label
   entitlement is active, so Pro/Agency deployments are clean by default. */
.ask-powered-by-asuka {
  position: absolute;
  right: 0.75rem;
  bottom: 0.6rem;
  z-index: 34;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 0.28rem;
  width: max-content;
  height: auto;
  max-width: min(260px, calc(100% - 1.5rem));
  border: 1px solid rgba(215, 223, 235, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ask-text-secondary, #64748b);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 0.28rem 0.55rem;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(12px);
}

.ask-powered-by-asuka__prefix {
  color: var(--ask-text-secondary, #64748b);
  font-weight: 500;
}

.ask-powered-by-asuka__mark {
  display: block;
  /* Storefront themes commonly force every product-gallery image to 100%. */
  width: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  max-height: 13px !important;
  flex: 0 0 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
  box-shadow: none !important;
}

.ask-powered-by-asuka__brand {
  color: var(--ask-accent-primary, #2563eb);
  font-weight: 750;
}

[data-asuka-powered-by-visible="false"] .ask-powered-by-asuka,
[data-asuka-white-label="true"] .ask-powered-by-asuka {
  display: none !important;
}

@media (max-width: 520px) {
  .ask-powered-by-asuka {
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.24rem 0.45rem;
  }
  .ask-powered-by-asuka__prefix {
    display: none;
  }
}

/* Clean module section surfaces */
.ask-module-card .ask-module-section {
  background: var(--ask-color-surface, #fff) !important;
}

/* Menu item surface policy
   Resting layout menu entries stay visually flat in every theme. Hover restores
   the lightweight affordance, while the stronger surface remains reserved for
   the active item. */
.ask-theme-sidebar-item:not(.is-active):not([aria-pressed="true"]):not([data-active="true"]):not(.ask-theme-sidebar-item--active),
.ask-theme-sidebar-compact:not(.is-active):not([aria-pressed="true"]):not([data-active="true"]):not(.ask-theme-sidebar-item--active),
.ask-nav__item:not(.is-active):not([aria-pressed="true"]):not([data-active="true"]),
.ask-menu-item:not(.ask-menu-item--active) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.ask-theme-sidebar-item:hover:not(.is-active):not([aria-pressed="true"]):not([data-active="true"]):not(.ask-theme-sidebar-item--active),
.ask-theme-sidebar-compact:hover:not(.is-active):not([aria-pressed="true"]):not([data-active="true"]):not(.ask-theme-sidebar-item--active),
.ask-nav__item:hover:not(.is-active):not([aria-pressed="true"]):not([data-active="true"]),
.ask-menu-item:hover:not(.ask-menu-item--active) {
  background: var(--ask-layout-sidebar-item-hover-bg) !important;
  border-color: rgb(var(--ask-color-border-default-rgb) / 0.72) !important;
  box-shadow: 0 0 0 1px rgb(var(--ask-color-primary-rgb) / 0.035) !important;
  transform: none !important;
}

.ask-theme-sidebar-item.is-active,
.ask-theme-sidebar-item[aria-pressed="true"],
.ask-theme-sidebar-item[data-active="true"],
.ask-theme-sidebar-item--active,
.ask-nav__item.is-active,
.ask-nav__item[aria-pressed="true"],
.ask-nav__item[data-active="true"],
.ask-menu-item--active {
  background: var(--ask-layout-sidebar-item-active-bg) !important;
  border-style: solid !important;
  border-color: rgb(var(--ask-color-primary-rgb) / 0.36) !important;
  box-shadow: 0 0 0 1px rgb(var(--ask-color-primary-rgb) / 0.08) !important;
}

/* Stable menu typography: hover/active states must not change text metrics.
   The visual feedback is handled by color, background and border only, so long
   vertical labels such as “Drawing Areas” cannot resize their sidebar on hover. */
.ask-theme-sidebar-item .ask-font-medium,
.ask-theme-sidebar-item .ask-font-semibold,
.ask-theme-sidebar-item .ask-nav__label,
.ask-theme-sidebar-item .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item .ask-pointer-events-none,
.ask-theme-sidebar-item:hover .ask-font-medium,
.ask-theme-sidebar-item:hover .ask-font-semibold,
.ask-theme-sidebar-item:hover .ask-nav__label,
.ask-theme-sidebar-item:hover .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item:hover .ask-pointer-events-none,
.ask-theme-sidebar-item.is-active .ask-font-medium,
.ask-theme-sidebar-item.is-active .ask-font-semibold,
.ask-theme-sidebar-item.is-active .ask-nav__label,
.ask-theme-sidebar-item.is-active .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item.is-active .ask-pointer-events-none,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-font-medium,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-font-semibold,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-nav__label,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-pointer-events-none,
.ask-theme-sidebar-item[data-active="true"] .ask-font-medium,
.ask-theme-sidebar-item[data-active="true"] .ask-font-semibold,
.ask-theme-sidebar-item[data-active="true"] .ask-nav__label,
.ask-theme-sidebar-item[data-active="true"] .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item[data-active="true"] .ask-pointer-events-none,
.ask-theme-sidebar-item--active .ask-font-medium,
.ask-theme-sidebar-item--active .ask-font-semibold,
.ask-theme-sidebar-item--active .ask-nav__label,
.ask-theme-sidebar-item--active .ask-theme-sidebar-item__label,
.ask-theme-sidebar-item--active .ask-pointer-events-none {
  font-weight: 500 !important;
}

.ask-theme-sidebar-item .ask-icon,
.ask-theme-sidebar-item .ask-icon--menu,
.ask-theme-sidebar-item svg,
.ask-theme-sidebar-item:hover .ask-icon,
.ask-theme-sidebar-item:hover .ask-icon--menu,
.ask-theme-sidebar-item:hover svg,
.ask-theme-sidebar-item.is-active .ask-icon,
.ask-theme-sidebar-item.is-active .ask-icon--menu,
.ask-theme-sidebar-item.is-active svg,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-icon,
.ask-theme-sidebar-item[aria-pressed="true"] .ask-icon--menu,
.ask-theme-sidebar-item[aria-pressed="true"] svg,
.ask-theme-sidebar-item[data-active="true"] .ask-icon,
.ask-theme-sidebar-item[data-active="true"] .ask-icon--menu,
.ask-theme-sidebar-item[data-active="true"] svg,
.ask-theme-sidebar-item--active .ask-icon,
.ask-theme-sidebar-item--active .ask-icon--menu,
.ask-theme-sidebar-item--active svg {
  stroke-width: inherit;
}


/* Responsive shell / mobile-first runtime pass */
.ask-responsive-shell {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.ask-responsive-shell-card {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  margin: 0 !important;
}

.ask-responsive-shell--tablet {
  padding: 0;
}

.ask-responsive-shell--mobile {
  --ask-responsive-bottom-nav-height: 74px;
  padding: 0;
}

.ask-responsive-shell--mobile .ask-responsive-shell-card {
  border-radius: 1.25rem;
}

.ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail {
  width: 4.75rem !important;
  min-width: 4.75rem !important;
  max-width: 4.75rem !important;
  flex: 0 0 4.75rem !important;
}

.ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail .ask-scroll-area__viewport {
  padding: 0.4rem !important;
}

.ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail .ask-theme-sidebar-item {
  min-height: 3.75rem;
  padding: 0.45rem 0.2rem;
  gap: 0.25rem;
  border-radius: 0.85rem;
}

.ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail .ask-theme-sidebar-item .ask-font-medium {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.ask-responsive-shell--tablet .ask-shell-view-meta,
.ask-responsive-shell--mobile .ask-shell-view-meta {
  white-space: nowrap;
}

.ask-responsive-shell--tablet .ask-shell-view-meta > *,
.ask-responsive-shell--mobile .ask-shell-view-meta > * {
  flex: 0 0 auto;
}

.ask-responsive-shell--mobile .ask-theme-shell-header {
  padding-inline: 0.75rem !important;
}

.ask-responsive-shell--mobile .ask-theme-stage {
  min-height: 0;
}

.ask-responsive-shell--mobile .ask-canvas-host {
  padding: 0.5rem;
}

.ask-responsive-shell--mobile .ask-zone-inline {
  padding: clamp(0.9rem, 4vw, 1.25rem);
  gap: clamp(0.9rem, 4vw, 1.25rem);
}

.ask-responsive-bottom-nav {
  position: relative;
  z-index: 45;
  flex: 0 0 auto;
  border-top: 1px solid var(--ask-border-subtle, #e8edf5);
  background: color-mix(in srgb, var(--ask-layout-toolbar-bg, #fff) 92%, transparent);
  backdrop-filter: blur(16px);
  padding: 0.45rem max(0.55rem, env(safe-area-inset-right)) calc(0.45rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
}

.ask-responsive-bottom-nav__items {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.35rem;
  min-width: 0;
}

.ask-responsive-bottom-nav__item {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: transparent;
  color: var(--ask-nav-tone-text, #475569);
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.45rem 0.35rem;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.05;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.ask-responsive-bottom-nav__item:hover:not(.is-disabled) {
  background: var(--ask-layout-sidebar-item-hover-bg, rgba(37, 99, 235, 0.05));
  border-color: var(--ask-border-subtle, #e8edf5);
}

.ask-responsive-bottom-nav__item.is-active {
  color: var(--ask-accent-primary, #2563eb);
  background: var(--ask-layout-sidebar-item-active-bg, rgba(37, 99, 235, 0.08));
  border-color: color-mix(in srgb, var(--ask-accent-primary, #2563eb) 28%, transparent);
}

.ask-responsive-bottom-nav__item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ask-responsive-bottom-nav__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-responsive-bottom-nav__more-wrap {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.ask-responsive-bottom-nav__more-wrap > .ask-responsive-bottom-nav__item {
  width: 100%;
}

.ask-responsive-bottom-nav__more-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  width: min(16rem, calc(100vw - 1.5rem));
  max-height: min(60vh, 26rem);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--ask-border-subtle, #e8edf5);
  border-radius: 1.25rem;
  background: var(--ask-layout-panel-bg, #fff);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.ask-responsive-bottom-nav__more-panel .ask-responsive-bottom-nav__item {
  min-height: 58px;
  flex: initial;
  background: color-mix(in srgb, var(--ask-layout-sidebar-item-bg, #fff) 88%, var(--ask-layout-app-bg, #f5f7fb));
  border-color: var(--ask-border-subtle, #e8edf5);
}

.ask-responsive-bottom-nav__more-panel[data-asuka-overflow-count="1"] {
  width: min(9rem, calc(100vw - 1.5rem));
  grid-template-columns: minmax(0, 1fr);
}

.ask-responsive-shell--mobile .ask-overlay__panel--fullscreen,
.ask-responsive-shell--mobile [data-asuka-responsive-breakpoint="mobile"] .ask-overlay__panel--fullscreen {
  width: 100dvw !important;
  height: 100dvh !important;
  max-width: 100dvw !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
}

.ask-responsive-shell--mobile [data-asuka-responsive-breakpoint="mobile"].ask-overlay--modal {
  padding: 0 !important;
}

.ask-responsive-shell--mobile [data-asuka-responsive-breakpoint="mobile"] .ask-overlay__panel--modal {
  width: 100dvw !important;
  height: 100dvh !important;
  max-width: 100dvw !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
}

.ask-responsive-shell--mobile [data-asuka-responsive-breakpoint="mobile"] .ask-overlay__content {
  min-height: 0;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

@media (max-width: 520px) {
  .ask-responsive-bottom-nav__item {
    min-height: 50px;
    padding-inline: 0.2rem;
  }

  .ask-responsive-bottom-nav__label {
    font-size: 9px;
  }

  .ask-responsive-bottom-nav__more-panel {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive pass 2: bottom navigation polish and body-portal overlay fixes */
.ask-responsive-bottom-nav {
  position: sticky;
  bottom: 0;
  isolation: isolate;
}

.ask-responsive-bottom-nav__more-panel {
  z-index: 2;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ask-responsive-bottom-nav__item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ask-accent-primary, #2563eb) 72%, transparent);
  outline-offset: 2px;
}

.ask-overlay__content--fullscreen {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

[data-asuka-responsive-breakpoint="mobile"].ask-overlay--modal {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

[data-asuka-responsive-breakpoint="mobile"] .ask-overlay__panel--modal,
[data-asuka-responsive-breakpoint="mobile"] .ask-overlay__panel--fullscreen {
  width: 100dvw !important;
  height: 100dvh !important;
  max-width: 100dvw !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
}

[data-asuka-responsive-breakpoint="mobile"] .ask-overlay__header {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
  padding-top: max(0.65rem, env(safe-area-inset-top));
}

[data-asuka-responsive-breakpoint="mobile"] .ask-overlay__content {
  min-height: 0;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

[data-asuka-responsive-breakpoint="mobile"].ask-overlay--drawer .ask-overlay__panel--drawer-right {
  width: min(22rem, 92dvw, calc(100% - 0.5rem)) !important;
  max-width: min(22rem, 92dvw, calc(100% - 0.5rem)) !important;
  flex-basis: min(22rem, 92dvw, calc(100% - 0.5rem)) !important;
}

[data-asuka-responsive-breakpoint="tablet"].ask-overlay--drawer .ask-overlay__panel--drawer-right {
  width: min(20rem, 72%, calc(100% - 0.75rem)) !important;
  max-width: min(20rem, 72%, calc(100% - 0.75rem)) !important;
  flex-basis: min(20rem, 72%, calc(100% - 0.75rem)) !important;
}

[data-asuka-responsive-breakpoint="mobile"] .ask-overlay__panel,
[data-asuka-responsive-breakpoint="tablet"] .ask-overlay__panel,
[data-asuka-responsive-breakpoint="mobile"] .ask-overlay__content,
[data-asuka-responsive-breakpoint="tablet"] .ask-overlay__content {
  min-width: 0;
}

[data-asuka-responsive-breakpoint="mobile"] .ask-overlay__content :is(input, select, textarea, button),
[data-asuka-responsive-breakpoint="tablet"] .ask-overlay__content :is(input, select, textarea, button) {
  max-width: 100%;
}

.ask-responsive-shell[data-asuka-responsive-safe-area="false"] .ask-responsive-bottom-nav {
  padding: 0.45rem 0.55rem;
}

@media (max-width: 420px) {
  .ask-responsive-bottom-nav__items {
    gap: 0.25rem;
  }

  .ask-responsive-bottom-nav__item {
    border-radius: 0.85rem;
    font-size: 9px;
  }

  .ask-responsive-bottom-nav__more-panel {
    width: min(15rem, calc(100vw - 1rem));
    right: -0.25rem;
  }
}

@media (max-width: 360px) {
  .ask-responsive-shell--mobile {
    padding: 0;
  }

  .ask-responsive-shell--mobile .ask-responsive-shell-card {
    border-radius: 1rem;
  }

  .ask-responsive-bottom-nav {
    padding-inline: max(0.35rem, env(safe-area-inset-left));
  }

  .ask-responsive-bottom-nav__label {
    font-size: 8.5px;
  }
}

@media (max-height: 520px) {
  .ask-responsive-shell {
    padding: 0;
  }

  .ask-responsive-shell-card {
    border-radius: 1rem;
  }

  .ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-zone-scroll-area__viewport,
  .ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-zone-scroll-area__viewport {
    padding: 0.25rem;
  }

  .ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-theme-sidebar-item--horizontal.ask-w-10.ask-h-10,
  .ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-theme-sidebar-item--horizontal.ask-w-10.ask-h-10 {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
  }

  .ask-responsive-shell .ask-theme-shell-header {
    padding-block: 0.25rem !important;
  }

  .ask-responsive-shell .ask-theme-carousel {
    gap: 0.25rem;
    padding-inline: 0.25rem;
  }

  .ask-responsive-shell .ask-theme-carousel__track .ask-scroll-area__viewport {
    padding: 0.25rem !important;
  }

  .ask-responsive-shell .ask-theme-carousel-page {
    min-width: 66px;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.75rem;
  }

  .ask-responsive-shell .ask-theme-carousel-page__preview {
    width: 56px;
    height: 34px;
    border-radius: 0.55rem;
  }

  .ask-responsive-shell .ask-theme-carousel-page__badge {
    left: 4px;
    bottom: 4px;
    min-width: 18px;
    height: 18px;
    padding-inline: 5px;
    font-size: 9px;
  }

  .ask-responsive-shell .ask-theme-carousel__label,
  .ask-responsive-shell .ask-theme-carousel__counter {
    font-size: 9px;
  }

  .ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail .ask-theme-sidebar-item {
    min-height: 50px;
    padding-block: 0.25rem;
  }

  .ask-responsive-shell--mobile {
    --ask-responsive-bottom-nav-height: 58px;
  }

  .ask-responsive-shell--mobile .ask-responsive-bottom-nav {
    padding-block: 0.25rem;
  }

  .ask-responsive-shell--mobile .ask-responsive-bottom-nav__item {
    min-height: 44px;
    padding-block: 0.25rem;
  }
}

/* Sidebar menu focus cleanup: remove only the native mouse-click focus outline.
   Keep the active menu border/box-shadow intact. */
.ask-theme-sidebar-item:focus {
  outline: none !important;
}

.ask-theme-sidebar-item:focus:not(:focus-visible) {
  outline: none !important;
}

.ask-theme-sidebar-item:focus-visible {
  outline: 2px solid rgb(var(--ask-color-primary-rgb) / 0.24) !important;
  outline-offset: 2px;
}


.ask-inline-module-settling {
  position: relative;
  min-height: 2.75rem;
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--ask-color-primary-soft, #dbeafe) 14%, transparent);
  overflow: hidden;
}

.ask-inline-module-settling::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 50%;
  height: 0.375rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ask-color-primary, #2563eb) 28%, transparent), transparent);
  animation: ask-dnd-placeholder-pulse 1.1s ease-in-out infinite;
}

.ask-canvas-frame[data-asuka-engine="3d"] {
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--ask-color-primary-soft, #dbeafe) 34%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--ask-color-surface, #ffffff) 92%, #0f172a), color-mix(in srgb, var(--ask-color-surface, #ffffff) 82%, #0f172a));
  border: 1px solid color-mix(in srgb, var(--ask-color-border, #d1d5db) 78%, transparent);
}

.ask-3d-engine-placeholder {
  pointer-events: none;
}


.ask-3d-engine-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
  border-radius: inherit;
}

.ask-canvas-frame[data-asuka-engine="3d"] .ask-3d-engine-canvas {
  position: absolute;
  inset: 0;
}

.ask-placement-feedback {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 2rem);
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--ask-color-success, #059669) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ask-color-surface, #ffffff) 94%, transparent);
  color: var(--ask-color-text-main, #1f2937);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.1);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.ask-placement-feedback--constrained {
  border-color: color-mix(in srgb, var(--ask-color-warning, #d97706) 30%, transparent);
}

.ask-placement-feedback--blocked {
  border-color: color-mix(in srgb, var(--ask-color-danger, #dc2626) 30%, transparent);
  color: var(--ask-color-danger, #b91c1c);
}

.ask-canvas-hover-tooltip {
  z-index: 8600;
}

/* Unified navigation rhythm
   Top/bottom menus and side rails share one sizing scale per shell breakpoint. */
.ask-responsive-shell {
  --ask-navigation-axis-size: 4.25rem;
  --ask-navigation-side-axis-size: 6rem;
  --ask-navigation-item-size: 3.25rem;
  --ask-navigation-collapsed-item-size: 2.25rem;
  --ask-navigation-collapsed-inset: 0.25rem;
  --ask-navigation-collapsed-size: calc(var(--ask-navigation-collapsed-item-size) + var(--ask-navigation-collapsed-inset) + var(--ask-navigation-collapsed-inset));
  --ask-navigation-collapsed-side-inset: 0.375rem;
  --ask-navigation-collapsed-side-size: calc(var(--ask-navigation-collapsed-item-size) + var(--ask-navigation-collapsed-side-inset) + var(--ask-navigation-collapsed-side-inset));
  --ask-navigation-collapsed-side-gap: 0.3125rem;
  --ask-navigation-collapsed-side-block-padding: 0.5rem;
  --ask-navigation-label-size: 0.625rem;
  --ask-navigation-item-gap: 0.1875rem;
  --ask-navigation-zone-padding: 0.25rem;
  --ask-navigation-side-zone-padding: 0.5rem;
}

.ask-responsive-shell--tablet {
  --ask-navigation-axis-size: 4rem;
  --ask-navigation-side-axis-size: 5.75rem;
  --ask-navigation-item-size: 3rem;
  --ask-navigation-label-size: 0.5625rem;
}

.ask-responsive-shell--mobile {
  --ask-navigation-axis-size: 3.5rem;
  --ask-navigation-side-axis-size: 5.25rem;
  --ask-navigation-item-size: 2.75rem;
  --ask-navigation-collapsed-item-size: 2rem;
  --ask-navigation-label-size: 0.5625rem;
  --ask-navigation-side-zone-padding: 0.375rem;
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"][data-asuka-zone-empty="true"],
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"][data-asuka-zone-empty="true"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  flex-basis: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"],
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] {
  box-sizing: border-box;
  height: var(--ask-navigation-axis-size);
  min-height: var(--ask-navigation-axis-size);
  max-height: var(--ask-navigation-axis-size);
  flex-basis: var(--ask-navigation-axis-size);
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"][data-asuka-zone-collapsed="true"],
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"][data-asuka-zone-collapsed="true"] {
  height: var(--ask-navigation-collapsed-size);
  min-height: var(--ask-navigation-collapsed-size);
  max-height: var(--ask-navigation-collapsed-size);
  flex-basis: var(--ask-navigation-collapsed-size);
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-zone-scroll-area,
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-zone-scroll-area,
.ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-zone-scroll-area__viewport,
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-zone-scroll-area__viewport,
.ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-zone-scroll-area__content,
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-zone-scroll-area__content {
  height: 100%;
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-zone-scroll-area__content,
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-zone-scroll-area__content {
  align-items: center;
  gap: var(--ask-navigation-item-gap) !important;
  padding: var(--ask-navigation-zone-padding) 0.375rem !important;
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-theme-sidebar-item--horizontal:not(.ask-w-10),
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-theme-sidebar-item--horizontal:not(.ask-w-10) {
  box-sizing: border-box;
  min-width: var(--ask-navigation-item-size);
  min-height: var(--ask-navigation-item-size) !important;
  height: var(--ask-navigation-item-size);
  padding: 0.3125rem 0.5rem !important;
  gap: var(--ask-navigation-item-gap) !important;
  margin: 0 !important;
  border-radius: 0.5rem !important;
  font-size: var(--ask-navigation-label-size) !important;
  line-height: 1.1;
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"] .ask-theme-sidebar-item__label,
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"] .ask-theme-sidebar-item__label {
  width: auto !important;
  font-size: inherit !important;
  font-weight: 500 !important;
  line-height: 1.1;
  white-space: nowrap;
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"][data-asuka-zone-collapsed="true"] .ask-theme-sidebar-item--horizontal,
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"][data-asuka-zone-collapsed="true"] .ask-theme-sidebar-item--horizontal {
  width: var(--ask-navigation-collapsed-item-size) !important;
  min-width: var(--ask-navigation-collapsed-item-size) !important;
  max-width: var(--ask-navigation-collapsed-item-size) !important;
  height: var(--ask-navigation-collapsed-item-size) !important;
  min-height: var(--ask-navigation-collapsed-item-size) !important;
  max-height: var(--ask-navigation-collapsed-item-size) !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

.ask-responsive-shell .ask-theme-toolbar[data-zone="top"][data-asuka-zone-collapsed="true"] .ask-zone-scroll-area__content,
.ask-responsive-shell .ask-theme-toolbar[data-zone="bottom"][data-asuka-zone-collapsed="true"] .ask-zone-scroll-area__content {
  padding-block: var(--ask-navigation-collapsed-inset) !important;
}

.ask-responsive-shell .ask-theme-toolbar[data-asuka-zone-collapsed="true"] .ask-theme-sidebar-item__label {
  display: none !important;
}

.ask-responsive-shell .ask-theme-sidebar--expanded:not(.ask-theme-sidebar--inline):not(.ask-theme-sidebar--panels) {
  width: var(--ask-navigation-side-axis-size) !important;
  min-width: var(--ask-navigation-side-axis-size) !important;
  max-width: var(--ask-navigation-side-axis-size) !important;
  flex: 0 0 var(--ask-navigation-side-axis-size) !important;
}

.ask-responsive-shell .ask-theme-sidebar--expanded:not(.ask-theme-sidebar--inline):not(.ask-theme-sidebar--panels) .ask-scroll-area__viewport {
  padding: var(--ask-navigation-side-zone-padding) !important;
}

.ask-responsive-shell .ask-theme-sidebar--expanded:not(.ask-theme-sidebar--inline):not(.ask-theme-sidebar--panels) .ask-theme-sidebar-item:not(.ask-theme-sidebar-item--collapsed) {
  box-sizing: border-box;
  min-height: var(--ask-navigation-item-size) !important;
  padding: 0.3125rem 0.75rem !important;
  gap: var(--ask-navigation-item-gap) !important;
  border-radius: 0.5rem !important;
  font-size: var(--ask-navigation-label-size) !important;
}

.ask-responsive-shell .ask-theme-sidebar--expanded:not(.ask-theme-sidebar--inline):not(.ask-theme-sidebar--panels) .ask-theme-sidebar-item__label {
  font-size: var(--ask-navigation-label-size) !important;
  line-height: 1.1 !important;
}

.ask-responsive-shell .ask-theme-sidebar--collapsed:not(.ask-theme-sidebar--inline):not(.ask-theme-sidebar--panels) {
  width: var(--ask-navigation-collapsed-side-size) !important;
  min-width: var(--ask-navigation-collapsed-side-size) !important;
  max-width: var(--ask-navigation-collapsed-side-size) !important;
  flex: 0 0 var(--ask-navigation-collapsed-side-size) !important;
}

.ask-responsive-shell .ask-theme-sidebar--collapsed:not(.ask-theme-sidebar--inline):not(.ask-theme-sidebar--panels) .ask-collapsed-navigation-list {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  gap: var(--ask-navigation-collapsed-side-gap) !important;
  padding: var(--ask-navigation-collapsed-side-block-padding) var(--ask-navigation-collapsed-side-inset) !important;
  overflow-x: hidden;
}

.ask-responsive-shell .ask-theme-sidebar--collapsed:not(.ask-theme-sidebar--inline):not(.ask-theme-sidebar--panels) .ask-theme-sidebar-item--collapsed {
  width: var(--ask-navigation-collapsed-item-size) !important;
  min-width: var(--ask-navigation-collapsed-item-size) !important;
  max-width: var(--ask-navigation-collapsed-item-size) !important;
  height: var(--ask-navigation-collapsed-item-size) !important;
  min-height: var(--ask-navigation-collapsed-item-size) !important;
  max-height: var(--ask-navigation-collapsed-item-size) !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 var(--ask-navigation-collapsed-item-size) !important;
  box-sizing: border-box !important;
}

.ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail {
  width: var(--ask-navigation-side-axis-size) !important;
  min-width: var(--ask-navigation-side-axis-size) !important;
  max-width: var(--ask-navigation-side-axis-size) !important;
  flex: 0 0 var(--ask-navigation-side-axis-size) !important;
}

.ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail .ask-theme-sidebar-item .ask-font-medium,
.ask-responsive-shell--tablet .ask-theme-sidebar--responsive-rail .ask-theme-sidebar-item__label,
.ask-responsive-shell--mobile .ask-responsive-bottom-nav__label {
  font-size: var(--ask-navigation-label-size) !important;
}

.ask-responsive-shell--mobile .ask-responsive-bottom-nav__item {
  font-size: var(--ask-navigation-label-size);
}

@media (max-height: 520px) {
  .ask-responsive-shell {
    --ask-navigation-axis-size: 3.25rem;
    --ask-navigation-side-axis-size: 5rem;
    --ask-navigation-item-size: 2.5rem;
    --ask-navigation-collapsed-item-size: 2rem;
    --ask-navigation-label-size: 0.53125rem;
    --ask-navigation-side-zone-padding: 0.375rem;
  }
}
