body.user-shell-enabled {
  background:
    radial-gradient(circle at top left, rgba(22, 93, 255, 0.05), transparent 22%),
    radial-gradient(circle at top right, rgba(54, 207, 201, 0.04), transparent 18%),
    #f7f9fc;
}

body.user-shell-enabled .app-footer a {
  color: #4e5969;
}

body.user-shell-enabled .app-footer a:hover,
body.user-shell-enabled .app-footer a:focus {
  color: #165dff;
}

.user-shell-root {
  position: static;
  inset: auto;
  z-index: auto;
  pointer-events: auto;
}

.pro-shell {
  position: static;
  pointer-events: auto;
}

.pro-shell-topbar,
.pro-shell-sider {
  pointer-events: auto;
}

.pro-shell-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1085;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(15, 35, 95, 0.08);
  box-shadow: 0 12px 38px rgba(15, 35, 95, 0.06);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pro-shell-topbar-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pro-shell-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 240px;
}

.pro-shell-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #165dff 0%, #0fc6c2 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 30px rgba(22, 93, 255, 0.22);
}

.pro-shell-brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1d2129;
}

.pro-shell-brand-subtitle {
  font-size: 0.82rem;
  color: #86909c;
}

.pro-shell-topnav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.pro-shell-topnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: #4e5969;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.pro-shell-topnav-link:hover,
.pro-shell-topnav-link:focus {
  color: #165dff;
  background: rgba(22, 93, 255, 0.08);
}

.pro-shell-topnav-link.is-active {
  color: #165dff;
  background: rgba(22, 93, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(22, 93, 255, 0.1);
}

.pro-shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pro-shell-membership,
.pro-shell-user {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.pro-shell-membership {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #f2f6ff;
  color: #165dff;
  border: 1px solid rgba(22, 93, 255, 0.08);
}

.pro-shell-membership-label {
  font-size: 0.82rem;
  color: #4e5969;
}

.pro-shell-user-name {
  font-weight: 600;
  color: #1d2129;
}

.pro-shell-logout-form {
  margin: 0;
}

.pro-shell-sider {
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  z-index: 1084;
  width: 272px;
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(15, 35, 95, 0.08);
  box-shadow: 14px 0 40px rgba(15, 35, 95, 0.06);
  padding: 1.25rem 1rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.pro-shell-sider::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.pro-shell-sider-head {
  margin-bottom: 1rem;
}

.pro-shell-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #edf4ff;
  color: #165dff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pro-shell-sider-summary,
.pro-shell-sider-summary.arco-typography {
  margin: 0.85rem 0 0;
  color: #86909c;
  font-size: 0.92rem;
  line-height: 1.6;
}

.pro-shell-nav-list {
  display: grid;
  gap: 0.95rem;
}

.pro-shell-nav-group {
  padding: 0.92rem;
  border: 1px solid rgba(15, 35, 95, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 10px 24px rgba(15, 35, 95, 0.04);
}

.pro-shell-nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pro-shell-nav-group-count {
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2f6ff;
  color: #165dff;
  font-size: 0.78rem;
  font-weight: 700;
}

.pro-shell-nav-group-desc {
  margin: 0.7rem 0 0.8rem;
  color: #86909c;
  font-size: 0.84rem;
  line-height: 1.55;
}

.pro-shell-nav-link {
  width: 100%;
  display: block;
  padding: 0.78rem 0.85rem;
  margin-top: 0.45rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pro-shell-nav-link:hover,
.pro-shell-nav-link:focus {
  background: #f4f8ff;
  box-shadow: inset 0 0 0 1px rgba(22, 93, 255, 0.08);
}

.pro-shell-nav-link.is-active {
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(22, 93, 255, 0.12);
}

.pro-shell-nav-link.is-active .pro-shell-menu-item-title,
.pro-shell-nav-link:hover .pro-shell-menu-item-title,
.pro-shell-nav-link:focus .pro-shell-menu-item-title {
  color: #165dff;
}

.pro-shell-nav-link.is-active .pro-shell-menu-item-badge,
.pro-shell-nav-link:hover .pro-shell-menu-item-badge,
.pro-shell-nav-link:focus .pro-shell-menu-item-badge {
  color: #165dff;
}

.pro-shell-nav-empty {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #f7f9fc;
  color: #86909c;
  font-size: 0.84rem;
}

.pro-shell-menu-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.pro-shell-menu-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3ff;
  color: #165dff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pro-shell-menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pro-shell-menu-item-title {
  font-weight: 600;
}

.pro-shell-menu-item-badge {
  font-size: 0.78rem;
  color: #86909c;
}

.pro-shell-action-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pro-shell-guest-actions {
  gap: 0.6rem;
}

.pro-shell-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #165dff 0%, #0fc6c2 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(22, 93, 255, 0.18);
}

.pro-shell-sider-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 35, 95, 0.08);
  display: grid;
  gap: 0.75rem;
}

.pro-shell-side-metric {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 35, 95, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #1d2129;
}

.pro-shell-side-metric span {
  font-size: 0.78rem;
  color: #86909c;
}

.pro-shell-side-metric .value {
  font-size: 1rem;
  font-weight: 700;
  color: #1d2129;
}

.app-shell-main {
  min-height: calc(100vh - 160px);
}

.user-shell-server-content {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  padding-top: 96px;
}

.user-shell-content-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body.shell-route-tool .user-shell-server-content,
body.shell-route-user .user-shell-server-content {
  padding-left: 272px;
}

body.shell-route-tool .user-shell-content-inner,
body.shell-route-user .user-shell-content-inner {
  width: min(100%, 1400px);
}

body.user-shell-enabled .app-main {
  padding-top: 0 !important;
}

body.user-shell-enabled .tool-console-wrapper,
body.user-shell-enabled .user-center-wrapper {
  display: grid;
  gap: 1.5rem;
}

.tool-console-summary-grid,
.user-center-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-summary-card,
.user-summary-card {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 35, 95, 0.08);
  box-shadow: 0 16px 34px rgba(15, 35, 95, 0.06);
}

.tool-summary-card .label,
.user-summary-card .label {
  font-size: 0.82rem;
  color: #86909c;
  margin-bottom: 0.45rem;
}

.tool-summary-card .value,
.user-summary-card .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d2129;
}

.tool-feature-header,
.user-overview-card {
  border-radius: 22px;
  overflow: hidden;
}

.user-shell-footer {
  background: rgba(255, 255, 255, 0.94);
  transition: opacity 0.16s ease;
}

body.shell-is-routing .user-shell-content-inner {
  opacity: 0.62;
  transform: translateY(6px);
}

body.shell-is-routing .pro-shell-sider,
body.shell-is-routing .pro-shell-topbar,
body.shell-is-routing .user-shell-footer {
  opacity: 0.92;
}

body.shell-route-tool .user-shell-footer,
body.shell-route-user .user-shell-footer {
  margin-left: 272px;
}

@media (max-width: 1199.98px) {
  .tool-console-summary-grid,
  .user-center-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .user-shell-root {
    position: static;
    inset: auto;
    pointer-events: auto;
  }

  .pro-shell {
    position: sticky;
    top: 0;
    z-index: 1085;
    pointer-events: auto;
  }

  .pro-shell-topbar {
    position: sticky;
    top: 0;
  }

  .pro-shell-topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .pro-shell-topnav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .pro-shell-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pro-shell-sider {
    position: static;
    width: auto;
    max-height: none;
    padding-bottom: 1rem;
  }

  body.shell-route-tool .user-shell-server-content,
  body.shell-route-user .user-shell-server-content,
  body.shell-route-tool .user-shell-footer,
  body.shell-route-user .user-shell-footer {
    padding-left: 0;
    margin-left: 0;
  }

  .user-shell-server-content {
    padding-top: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .user-shell-content-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tool-console-summary-grid,
  .user-center-summary-grid {
    grid-template-columns: 1fr;
  }

  .pro-shell-topnav-link {
    flex: 1 0 auto;
  }

  .pro-shell-membership,
  .pro-shell-user {
    width: 100%;
  }
}
