/* UI29: compact, icon-first desktop navigation. */
@media (min-width: 1024px) {
  body.ui29-sidebar--compact .app-canvas > div.relative.z-10 {
    padding-left: 80px !important;
    transition: padding-left 180ms ease;
  }

  .ui29-sidebar {
    transition: width 180ms ease, padding 180ms ease;
  }

  body.ui29-sidebar--compact .ui29-sidebar {
    width: 80px !important;
    padding: 24px 10px !important;
  }

  body.ui29-sidebar--compact .ui29-sidebar > div:first-child {
    justify-content: center;
    padding: 0;
  }

  .ui29-sidebar > div:first-child .leading-tight {
    max-width: 150px;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    transition: max-width 180ms ease, opacity 120ms ease, transform 180ms ease;
  }

  .ui29-sidebar > div.mt-7 {
    max-height: 32px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 180ms ease, opacity 120ms ease, margin 180ms ease;
  }

  .ui29-sidebar nav a {
    width: 100%;
    transition: width 180ms ease, gap 180ms ease, padding 180ms ease, background-color 150ms ease;
  }

  .ui29-sidebar nav a > span.flex-1,
  .ui29-sidebar nav a > span.min-w-\[20px\] {
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    white-space: nowrap;
    transition: max-width 180ms ease, opacity 120ms ease, transform 180ms ease;
  }

  body.ui29-sidebar--compact .ui29-sidebar > div:first-child .leading-tight,
  body.ui29-sidebar--compact .ui29-sidebar nav a > span.flex-1,
  body.ui29-sidebar--compact .ui29-sidebar nav a > span.min-w-\[20px\] {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
  }

  body.ui29-sidebar--compact .ui29-sidebar > div.mt-7 {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
  }

  body.ui29-sidebar--compact .ui29-sidebar nav {
    align-items: center;
  }

  body.ui29-sidebar--compact .ui29-sidebar nav a {
    width: 52px;
    min-height: 52px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  body.ui29-sidebar--compact .ui29-sidebar nav a svg {
    width: 24px;
    height: 24px;
  }

  body.ui29-sidebar--compact .ui29-sidebar nav a:hover::after,
  body.ui29-sidebar--compact .ui29-sidebar nav a:focus-visible::after {
    content: attr(aria-label);
    position: absolute;
    left: 60px;
    z-index: 80;
    white-space: nowrap;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
    pointer-events: none;
  }

  .ui29-sidebar-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    right: 12px;
    top: auto;
    bottom: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--accent-solid) 42%, var(--border));
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--accent-solid);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }

  body.ui29-sidebar--compact .ui29-sidebar-toggle {
    right: 22px;
  }

  .ui29-sidebar-toggle:hover,
  .ui29-sidebar-toggle:focus-visible {
    color: var(--text);
    background: var(--surface-hover);
    outline: 2px solid var(--accent-solid);
    outline-offset: 2px;
  }
}

.ui29-sidebar > div.mt-auto { display: none !important; }
.ui29-sidebar-toggle { display: none; }
@media (min-width: 1024px) { .ui29-sidebar-toggle { display: grid; } }

.ui29-brand-logo {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--accent-solid) !important;
  font-size: 0 !important;
}

.ui29-brand-logo svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.ui29-brand-logo path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui29-brand-logo circle { fill: currentColor; }
