/* Metrikon application shell — light business system inspired by Yandex Webmaster. */
.app {
  --system-canvas: #f2f2f2;
  --system-surface: #ffffff;
  --system-surface-hover: #f5f5f5;
  --system-surface-active: #ededed;
  --system-text: #171717;
  --system-muted: #777777;
  --system-line: rgb(0 0 0 / 0.075);
  --system-accent-gradient: var(--accent-gradient);
  --system-accent-gradient-hover: var(--accent-gradient-hover);
  --system-accent-shadow: var(--accent-shadow);
  --system-card-radius: 24px;
  --system-card-padding: 20px;
  --system-control-radius: 999px;
  --app-rail-width: 316px;
  grid-template-columns: var(--app-rail-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "rail main";
  gap: 0;
  padding: 0;
  background: var(--system-canvas);
  transition: grid-template-columns 240ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.app[data-rail-collapsed="true"] {
  --app-rail-width: 96px;
}

.app-main {
  grid-area: main;
  margin: 16px 16px 16px 0;
  border-radius: 30px;
  background: var(--system-canvas);
  overflow: hidden;
}

.app-sidebar {
  grid-area: rail;
  position: relative;
  width: calc(var(--app-rail-width) - 28px);
  min-width: 0;
  min-height: 0;
  height: calc(100dvh - 28px);
  margin: 14px;
  border: 0;
  border-radius: 33px;
  background: var(--system-surface);
  color: var(--system-text);
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) auto;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.025);
  overflow: visible;
  transition:
    width 240ms cubic-bezier(0.2, 0.75, 0.25, 1),
    margin 240ms cubic-bezier(0.2, 0.75, 0.25, 1),
    border-radius 240ms ease;
  z-index: 40;
}

.app-sidebar-brand {
  min-width: 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.app-sidebar .tabler-sidebar-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
}

.app-sidebar .tabler-sidebar-brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: none;
}

.app-sidebar .tabler-sidebar-brand-name {
  color: var(--system-text);
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 140ms ease;
}

.app-sidebar .tabler-sidebar-brand-target {
  width: 0.71em;
  height: 0.77em;
  margin: 0 0.02em;
  display: block;
  flex: 0 0 auto;
  transform: translate(0.09em, 0.055em) rotate(45deg);
  filter: drop-shadow(0 0 0.2px rgb(45 116 232 / 0.45));
}

.app-sidebar-account-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% - 6px);
  right: 16px;
  left: 16px;
  padding: 0;
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  background: var(--menu-surface);
  box-shadow: var(--menu-shadow);
  overflow: hidden;
  transform-origin: top center;
  animation: app-sidebar-menu-in 150ms ease-out;
}

.app-sidebar-account-action {
  width: 100%;
  min-height: var(--menu-item-height);
  padding: var(--menu-item-padding);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #252525;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.app-sidebar-account-action:hover {
  background: var(--menu-item-hover);
}

.app-sidebar-account-action svg {
  width: 20px;
  height: 20px;
}

@keyframes app-sidebar-menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-sidebar .tabler-sidebar-scroll {
  padding: 0 8px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.app-sidebar .tabler-sidebar-scroll::-webkit-scrollbar {
  display: none;
}

.app-sidebar .tabler-sidebar-list,
.app-sidebar .tabler-sidebar-group,
.app-sidebar .tabler-sidebar-submenu {
  display: grid;
  gap: 4px;
}

.app-sidebar .tabler-sidebar-link {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #262626;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.2;
  text-align: left;
  list-style: none;
  cursor: pointer;
  overflow: hidden;
}

.app-sidebar .tabler-sidebar-link:hover,
.app-sidebar .tabler-sidebar-group[open] > .tabler-sidebar-link,
.app-sidebar .tabler-sidebar-group[data-active="true"] > .tabler-sidebar-link {
  background: var(--system-surface-hover);
  color: #000000;
}

.app-sidebar .tabler-sidebar-link[data-active="true"],
.app-sidebar .tabler-sidebar-group[data-active="true"] > .tabler-sidebar-link {
  background: var(--system-surface-active);
  color: #000000;
}

.app-sidebar .tabler-sidebar-link-icon {
  width: 28px;
  height: 28px;
  color: currentColor;
  display: grid;
  place-items: center;
}

.app-sidebar .tabler-sidebar-link-icon svg {
  width: 20px;
  height: 20px;
}

.app-sidebar .tabler-sidebar-link-icon .tabler-sidebar-icon-chat {
  width: 23px;
  height: 23px;
}

.app-sidebar .tabler-sidebar-link-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 140ms ease;
}

.app-sidebar .tabler-sidebar-badge {
  transition: opacity 140ms ease;
}

.app-sidebar .tabler-sidebar-group-toggle::-webkit-details-marker {
  display: none;
}

.app-sidebar .tabler-sidebar-group-chevron {
  width: 18px;
  height: 18px;
  color: #777777;
  display: grid;
  place-items: center;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.app-sidebar .tabler-sidebar-group[open] .tabler-sidebar-group-chevron {
  transform: rotate(90deg);
}

.app-sidebar .tabler-sidebar-submenu {
  margin: 2px 0 6px 40px;
  padding: 2px 0 2px 12px;
  border-left: 1px solid #dedede;
  background: transparent;
  box-shadow: none;
}

.app-sidebar .tabler-sidebar-submenu::before {
  display: none;
}

.app-sidebar .tabler-sidebar-subitem {
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #666666;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.app-sidebar .tabler-sidebar-subitem:hover,
.app-sidebar .tabler-sidebar-subitem[data-active="true"] {
  background: var(--system-surface-active);
  color: #111111;
}

.app-sidebar-footer {
  min-width: 0;
  margin: 0 4px 10px;
  padding: 12px 0 0 6px;
  border-top: 1px solid var(--system-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.app-sidebar-notifications {
  position: relative;
  order: 1;
  width: max-content;
  margin-left: 3px;
}

.app-sidebar-profile-menu {
  position: relative;
  order: 2;
  min-width: 0;
}

.app-sidebar-profile-trigger {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #252525;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  overflow: hidden;
}

.app-sidebar-profile-trigger::-webkit-details-marker {
  display: none;
}

.app-sidebar-profile-trigger:hover,
.app-sidebar-profile-menu[open] > .app-sidebar-profile-trigger {
  background: var(--system-surface-hover);
}

.app-sidebar-profile-trigger .avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 11px;
}

.app-sidebar-profile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  transition: opacity 140ms ease;
}

.app-sidebar-profile-copy .me-name,
.app-sidebar-profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-profile-copy .me-name {
  color: #191919;
  font-size: 12px;
  font-weight: 650;
}

.app-sidebar-profile-copy small {
  color: var(--system-muted);
  font-size: 9px;
}

.app-sidebar-profile-chevron {
  width: 18px;
  height: 18px;
  color: var(--system-muted);
  display: grid;
  place-items: center;
  transition:
    opacity 140ms ease,
    transform 160ms ease;
}

.app-sidebar-profile-chevron svg {
  width: 16px;
  height: 16px;
}

.app-sidebar-profile-menu[open] .app-sidebar-profile-chevron {
  transform: rotate(-90deg);
}

.app-sidebar-profile-popover {
  top: auto;
  right: auto;
  bottom: calc(100% + 6px);
  left: 0;
  width: 220px;
}

.app-sidebar-utility {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #252525;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.app-sidebar-utility:hover {
  background: var(--system-surface-active);
}

.app-sidebar-utility svg {
  width: 20px;
  height: 20px;
}

.app-sidebar-notification-count {
  position: absolute;
  top: -5px;
  right: -8px;
  border: 2px solid #ffffff;
}

.app-sidebar-collapse {
  position: absolute;
  top: 38px;
  right: -16px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 4px solid var(--system-canvas);
  border-radius: 50%;
  background: #ffffff;
  color: #777777;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 4;
}

.app-sidebar-collapse:hover {
  color: #000000;
}

.app-sidebar-collapse svg {
  width: 16px;
  height: 16px;
  transition: transform 240ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.app:not([data-rail-collapsed="true"]) .app-sidebar-collapse svg {
  transform: rotate(180deg);
}

.app-sidebar .app-header-notification-popover {
  top: auto;
  right: 0;
  bottom: 50px;
  left: auto;
  width: min(372px, calc(100vw - 32px));
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 55px rgb(0 0 0 / 0.16);
}

.app[data-rail-collapsed="true"] .app-sidebar-brand {
  padding: 0 15px;
  justify-content: flex-start;
}

.app[data-rail-collapsed="true"] .tabler-sidebar-brand-name,
.app[data-rail-collapsed="true"] .tabler-sidebar-link-title,
.app[data-rail-collapsed="true"] .tabler-sidebar-badge,
.app[data-rail-collapsed="true"] .tabler-sidebar-group-chevron {
  opacity: 0;
  pointer-events: none;
}

.app[data-rail-collapsed="true"] .tabler-sidebar-submenu {
  display: none;
}

.app[data-rail-collapsed="true"] .app-sidebar .tabler-sidebar-scroll {
  padding: 0 8px 12px;
}

.app[data-rail-collapsed="true"] .app-sidebar .tabler-sidebar-link {
  width: 52px;
  min-height: 48px;
  margin-inline: 0;
  padding: 0 12px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.app[data-rail-collapsed="true"] .app-sidebar-footer {
  margin: 0 4px 10px;
  padding: 12px 0 0 6px;
  justify-items: start;
}

.app[data-rail-collapsed="true"] .app-sidebar-profile-trigger {
  width: 48px;
  padding: 6px;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
}

.app[data-rail-collapsed="true"] .app-sidebar-profile-copy,
.app[data-rail-collapsed="true"] .app-sidebar-profile-chevron {
  opacity: 0;
  pointer-events: none;
}

.app[data-rail-collapsed="true"] .app-sidebar-notifications {
  margin-left: 10px;
}

.app[data-rail-collapsed="true"] .app-sidebar-profile-popover {
  top: auto;
  right: auto;
  bottom: 0;
  left: 54px;
  width: 220px;
}

.app[data-rail-collapsed="true"] .app-sidebar-utility {
  width: 28px;
  height: 36px;
}

.app[data-rail-collapsed="true"] .app-sidebar-utility svg {
  width: 17px;
  height: 17px;
}

/* Non-chat pages use one shared rounded surface language. */
.app:not([data-mode="workspace"]) .admin-shell,
.app:not([data-mode="workspace"]) .leads-shell,
.app:not([data-mode="workspace"]) .scripts-page {
  height: 100%;
  min-height: 0;
  background: transparent;
}

.app:not([data-mode="workspace"]) .admin-shell {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  grid-auto-rows: min-content;
  gap: 20px;
  padding: 10px 0;
  overflow: auto;
}

.app:not([data-mode="workspace"]) .admin-shell[data-admin-tab="analytics"],
.app:not([data-mode="workspace"]) .admin-shell[data-admin-tab="clients"],
.app:not([data-mode="workspace"]) .admin-shell[data-admin-tab="managers"],
.app:not([data-mode="workspace"]) .admin-shell[data-admin-tab="security"],
.app:not([data-mode="workspace"]) .admin-shell[data-admin-tab="journal"] {
  grid-template-columns: minmax(0, 1fr);
}

.app:not([data-mode="workspace"]) .admin-header {
  min-height: 50px;
  padding: 0 10px 0;
  border: 0;
  background: transparent;
}

.app:not([data-mode="workspace"]) .admin-header h2 {
  color: var(--system-text);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.app:not([data-mode="workspace"]) .admin-header-description {
  color: var(--system-muted);
  font-size: 13px;
}

.app:not([data-mode="workspace"]) :where(
  .settings-card,
  .stat-card,
  .template-card,
  .channel-console-connected-group,
  .channel-console-profile,
  .channel-console-widget,
  .admin-context-card,
  .admin-table-wrap,
  .lead-column,
  .lead-table-card,
  .scripts-panel
) {
  border: 0;
  border-radius: var(--system-card-radius);
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.025);
}

/* Every content card uses the same inset; data rows keep their table/list rhythm. */
.app:not([data-mode="workspace"]) :where(
  .settings-card,
  .stat-card,
  .template-card,
  .admin-context-card,
  .channel-console-instructions
) {
  padding: var(--system-card-padding);
}

.app:not([data-mode="workspace"]) :where(
  .channel-console-connection,
  .channel-console-site-chat-detail,
  .channel-console-widget-section,
  .channel-console-widget-install,
  .channel-console-widget-form,
  .channel-console-widget-side
) {
  padding: var(--system-card-padding);
}

/* The site widget editor is three peer cards plus a standalone save action. */
.app:not([data-mode="workspace"]) .channel-console-widget-page .channel-console-widget {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.app:not([data-mode="workspace"]) .channel-console-widget-page .channel-console-widget-layout {
  display: block;
}

.app:not([data-mode="workspace"]) .channel-console-widget-page .channel-console-widget-form {
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 16px;
}

.app:not([data-mode="workspace"]) .channel-console-widget-page :where(
  .channel-console-widget-section,
  .channel-console-widget-install
) {
  margin: 0;
  padding: var(--system-card-padding);
  border: 0;
  border-radius: var(--system-card-radius);
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.025);
}

.app:not([data-mode="workspace"]) .channel-console-widget-page .channel-console-widget-section + .channel-console-widget-section {
  margin: 0;
  padding-top: var(--system-card-padding);
}

.app:not([data-mode="workspace"]) .channel-console-widget-page .channel-console-widget-actions {
  justify-content: flex-end;
  padding: 2px 0 0;
}

.app:not([data-mode="workspace"]) .channel-console-widget-page .channel-console-widget-save {
  width: 100%;
  min-width: 0;
}

.app:not([data-mode="workspace"]) :where(.btn-primary, .btn-secondary, .btn-subtle, .btn-danger) {
  min-height: 42px;
  padding-inline: 17px;
  border-radius: var(--system-control-radius);
  font-size: 13px;
  font-weight: 600;
}

.app:not([data-mode="workspace"]) .btn-primary {
  border: 0;
  background: var(--system-accent-gradient);
  color: #ffffff;
  box-shadow: var(--system-accent-shadow);
}

.app:not([data-mode="workspace"]) .btn-primary:hover:not(:disabled) {
  border: 0;
  background: var(--system-accent-gradient-hover);
  color: #ffffff;
  opacity: 1;
}

.app:not([data-mode="workspace"]) .btn-secondary {
  border-color: transparent;
  background: #ededed;
  color: #191919;
}

.app:not([data-mode="workspace"]) .btn-subtle {
  border-color: transparent;
  background: #f4f4f4;
  color: #333333;
}

.app:not([data-mode="workspace"]) :where(
  input:not(.search-input):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  textarea,
  select
) {
  min-height: 44px;
  border: 1px solid #dfdfdf !important;
  border-radius: 14px !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.app:not([data-mode="workspace"]) :where(input:not(.search-input), textarea, select):focus {
  border-color: #8c8c8c !important;
  outline: 3px solid rgb(0 0 0 / 0.055);
}

.app:not([data-mode="workspace"]) :where(
  .popover,
  .dropdown-menu,
  .admin-actions-menu-popover,
  .app-sidebar-account-menu,
  .lead-filter-popover
) {
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  background: var(--menu-surface);
  box-shadow: var(--menu-shadow);
}

.app:not([data-mode="workspace"]) select:not(:disabled):hover {
  border-color: var(--border-2) !important;
  background-color: var(--select-hover-surface) !important;
}

.app:not([data-mode="workspace"]) .channel-console-auth-action {
  width: auto;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f4;
  color: #252525;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
}

.app:not([data-mode="workspace"]) .channel-console-auth-action svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.app:not([data-mode="workspace"]) .channel-console-auth-action:hover:not(:disabled) {
  background: #e9e9e9;
  color: #191919;
}

.app:not([data-mode="workspace"]) .channel-console-connection-head {
  min-height: 32px;
  align-items: center;
  gap: 16px;
}

.app:not([data-mode="workspace"]) .channel-console-connection-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app:not([data-mode="workspace"]) .channel-console-connection-heading h3 {
  margin: 0;
  color: #252525;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.app:not([data-mode="workspace"]) .channel-console-connection-status,
.app:not([data-mode="workspace"]) .channel-console-connection-heading .channel-console-auth-state {
  min-height: 28px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #666666;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.app:not([data-mode="workspace"]) .channel-console-connection-status .channel-console-connected-state {
  width: 6px;
  height: 6px;
}

.app:not([data-mode="workspace"]) :is(
  .channel-console-connection-status,
  .channel-console-connection-heading .channel-console-auth-state
)[data-tone="success"] {
  background: #ecfdf3;
  color: #15803d;
}

.app:not([data-mode="workspace"]) :is(
  .channel-console-connection-status,
  .channel-console-connection-heading .channel-console-auth-state
)[data-tone="danger"] {
  background: #fef2f2;
  color: #dc2626;
}

.app:not([data-mode="workspace"]) .channel-console-connection-heading .channel-console-auth-warning-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.app:not([data-mode="workspace"]) .overlay {
  background: rgb(0 0 0 / 0.25);
  backdrop-filter: blur(3px);
}

.app:not([data-mode="workspace"]) :where(.auth-card, .lead-detail-card, .modal-card) {
  border: 0;
  border-radius: 26px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.18);
}

.app:not([data-mode="workspace"]) .admin-plus-btn,
.app:not([data-mode="workspace"]) .plus-btn {
  border: 0;
  border-radius: 50%;
  background: var(--system-accent-gradient);
  color: #ffffff;
  box-shadow: var(--system-accent-shadow);
}

.app:not([data-mode="workspace"]) :where(.admin-plus-btn, .plus-btn):hover:not(:disabled) {
  background: var(--system-accent-gradient-hover);
  color: #ffffff;
  opacity: 1;
}

.app[data-mode="leads"] .leads-shell {
  display: block;
  padding: 0;
  overflow: auto;
}

.app[data-mode="leads"] .leads-main {
  min-height: 100%;
  border-radius: 28px;
  background: #ffffff;
  overflow: hidden;
}

.app[data-mode="scripts"] .scripts-page {
  overflow: auto;
}

.app[data-mode="scripts"] .scripts-layout {
  gap: 18px;
}

@media (max-width: 1180px) {
  .app {
    --app-rail-width: 96px;
  }

  .app-sidebar {
    grid-template-rows: 76px minmax(0, 1fr) auto;
  }

  .app-sidebar-brand {
    padding: 0 15px;
    justify-content: flex-start;
  }

  .app-sidebar .tabler-sidebar-brand-name,
  .app-sidebar .tabler-sidebar-link-title,
  .app-sidebar .tabler-sidebar-badge,
  .app-sidebar .tabler-sidebar-group-chevron {
    opacity: 0;
    pointer-events: none;
  }

  .app-sidebar .tabler-sidebar-submenu {
    display: none;
  }

  .app-sidebar .tabler-sidebar-scroll {
    padding: 0 8px 12px;
  }

  .app-sidebar .tabler-sidebar-link {
    width: 52px;
    min-height: 48px;
    margin-inline: 0;
    padding: 0 12px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .app-sidebar-footer {
    margin: 0 4px 10px;
    padding: 12px 0 0 6px;
    justify-items: start;
  }

  .app-sidebar-profile-trigger {
    width: 48px;
    padding: 6px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
  }

  .app-sidebar-profile-copy,
  .app-sidebar-profile-chevron {
    opacity: 0;
    pointer-events: none;
  }

  .app-sidebar-notifications {
    margin-left: 10px;
  }

  .app-sidebar-utility {
    width: 28px;
    height: 36px;
  }

  .app-sidebar-utility svg {
    width: 17px;
    height: 17px;
  }

  .app-sidebar-profile-popover {
    top: auto;
    right: auto;
    bottom: 0;
    left: 54px;
    width: 220px;
  }

  .app:not([data-mode="workspace"]) .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .app {
    --app-rail-width: 74px;
    --system-card-padding: 16px;
  }

  .app-sidebar {
    width: 58px;
    height: calc(100dvh - 16px);
    margin: 8px;
    border-radius: 22px;
    grid-template-rows: 62px minmax(0, 1fr) auto;
  }

  .app-sidebar-brand {
    padding-inline: 14px;
  }

  .app-sidebar .tabler-sidebar-brand-mark,
  .app-sidebar .tabler-sidebar-brand-mark img {
    width: 30px;
    height: 30px;
  }

  .app-sidebar .tabler-sidebar-scroll {
    padding-inline: 6px;
  }

  .app-sidebar .tabler-sidebar-link {
    width: 46px;
    padding: 0 9px;
  }

  .app-sidebar-footer {
    margin: 0 5px 10px;
    padding-left: 0;
  }

  .app-sidebar-collapse {
    display: none;
  }

  .app-main {
    margin: 8px 8px 8px 0;
    border-radius: 22px;
  }

  .app:not([data-mode="workspace"]) .admin-shell,
  .app[data-mode="scripts"] .scripts-page {
    padding: 14px;
  }

  .app[data-mode="leads"] .leads-shell {
    padding: 0;
  }
}
