.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--card-border);
  padding: 16px 16px 22px;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  padding: 0 2px 16px;
  margin: 0 0 10px;
  text-align: left;
}

.sidebar-brand:hover {
  background: transparent;
}

.sidebar-brand-logo {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.sidebar-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-brand-title {
  display: block;
  color: #070a1f;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: 0.15px;
  white-space: nowrap;
}

.sidebar-brand-subtitle {
  display: block;
  color: #6f7280;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 0.05px;
  white-space: nowrap;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #334155;
  padding: 10px 10px;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.sidebar-link:hover {
  background: #f2f5fa;
}

.sidebar-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.sidebar-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.sidebar-link-icon-image {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center;
}

.sidebar-link-icon--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef2f9;
  color: #44516a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.sidebar-link-text {
  display: block;
  min-width: 0;
  line-height: 1.2;
}

.app-main {
  min-width: 0;
  padding: 18px 22px 28px;
}

.app-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-height: var(--topbar-height);
  padding-top: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.topbar-icon-button:hover {
  transform: translateY(-1px);
  border-color: #cdd6e4;
  background: #fbfcff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.topbar-icon-button:focus-visible {
  outline: 0;
  border-color: #b9c7de;
  box-shadow: 0 0 0 4px rgba(120, 112, 255, 0.12);
}

.topbar-icon-button.is-open {
  border-color: #d5cdfb;
  background: #f5f1ff;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.10);
}

.topbar-icon-graphic {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
}

.topbar-icon-graphic--notifications {
  transform: translate(2px, 2px) scale(1.55);
}

.topbar-icon-graphic--faq {
  transform: scale(1.18);
}

.topbar-icon-graphic--profile {
  transform: translate(2px, 4px) scale(1.55);
}

.topbar-icon-fallback {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.page-header {
  min-width: 0;
  padding-top: 1px;
}

.page-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.page-description {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.page-content {
  min-width: 0;
}

.notifications-popover {
  position: fixed;
  z-index: 50;
  width: 318px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.notifications-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.notifications-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  border-radius: 10px;
  background: #f7f9fc;
  padding: 10px;
}

.notification-item p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 312px minmax(0, 1fr);
  }

  :root {
    --sidebar-width: 312px;
  }

  .sidebar-brand {
    gap: 12px;
  }

  .sidebar-brand-logo {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
  }

  .sidebar-brand-title {
    font-size: 17px;
    line-height: 21px;
  }

  .sidebar-brand-subtitle {
    font-size: 12.5px;
    line-height: 17px;
  }
}

.sidebar-link.is-active .sidebar-link-icon--fallback.sidebar-link-icon--home {
  color: #6d45ff;
}


.topbar-profile-menu-v217 {
  position: absolute;
  top: 62px;
  right: 0;
  z-index: 60;
  width: 286px;
  padding: 10px;
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.topbar-profile-menu-v217[hidden] {
  display: none !important;
}

.topbar-profile-head-v217 {
  display: grid;
  gap: 4px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f9ff 0%, #f4f1ff 100%);
  margin-bottom: 8px;
}

.topbar-profile-head-v217 strong {
  color: #071127;
  font-size: 14px;
  line-height: 18px;
}

.topbar-profile-head-v217 span {
  color: #526079;
  font-size: 12px;
  line-height: 16px;
}

.topbar-profile-head-v217 small {
  color: #7c3aed;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
}

.topbar-profile-menu-v217 button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  color: #172033;
  font-weight: 700;
}

.topbar-profile-menu-v217 button:hover {
  background: #f3f6fb;
}

.topbar-profile-menu-v217 button.is-danger {
  color: #e11d48;
}


.topbar-profile-menu-v217 button.is-warning {
  color: #7c3aed;
}

.topbar-profile-menu-v217 button.is-warning:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
}

.topbar-profile-menu-v217 button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.topbar-confirm-overlay-v228 {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px);
}

.topbar-confirm-card-v228 {
  width: min(500px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.20);
  padding: 26px 26px 22px;
}

.topbar-confirm-head-v228 {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.topbar-confirm-icon-shell-v228 {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(109, 69, 245, 0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.topbar-confirm-icon-v228 {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5f1ff 0%, #ecebff 100%);
  color: #7c3aed;
  font-size: 31px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(109, 69, 245, 0.14);
}

.topbar-confirm-copy-v228 h3 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.topbar-confirm-note-v228 {
  display: grid;
  gap: 10px;
  border: 1.5px dashed rgba(124, 58, 237, 0.28);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.82) 0%, rgba(248, 250, 252, 0.94) 100%);
  padding: 16px 18px;
}

.topbar-confirm-note-v228 p {
  margin: 0;
  color: #53627a;
  font-size: 14px;
  line-height: 1.58;
  text-align: center;
}

.topbar-confirm-actions-v228 {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 2px;
}

.topbar-confirm-actions-v228 button {
  min-width: 118px;
  min-height: 46px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #ffffff;
  color: #27324a;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar-confirm-actions-v228 button:hover {
  border-color: rgba(124, 58, 237, 0.26);
  background: #f8f7ff;
  box-shadow: 0 10px 18px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.topbar-confirm-actions-v228 button.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d45f5 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(109, 69, 245, 0.22);
}

.topbar-confirm-actions-v228 button.is-primary:hover {
  background: linear-gradient(135deg, #9566f8 0%, #744df7 100%);
  box-shadow: 0 16px 34px rgba(109, 69, 245, 0.28);
}

@media (max-width: 640px) {
  .topbar-confirm-overlay-v228 {
    padding: 16px;
  }

  .topbar-confirm-card-v228 {
    padding: 20px 18px 18px;
    border-radius: 24px;
  }

  .topbar-confirm-copy-v228 h3 {
    font-size: 21px;
  }

  .topbar-confirm-actions-v228 {
    flex-direction: column-reverse;
  }

  .topbar-confirm-actions-v228 button {
    width: 100%;
  }
}

