.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--bg-primary);
}
.app-shell-nav {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-bottom: 1px solid var(--border-subtle);
  height: 56px;
  flex-shrink: 0;
}
.app-shell-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.app-shell-brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  letter-spacing: -0.01em;
}
.app-shell-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.app-shell-theme-toggle svg {
  width: 15px;
  height: 15px;
}
.app-shell-theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.app-shell-theme-toggle:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.app-shell-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: var(--bg-primary);
}
.nav-sidebar {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nav-group {
  margin-bottom: 0;
}
.nav-group + .nav-group {
  margin-top: 4px;
}
.nav-group-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s ease;
  text-align: left;
  gap: 12px;
}
.nav-group-header:hover {
  color: var(--text-secondary);
}
.nav-group-header:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
  border-radius: 8px;
}
.nav-group-label {
  flex: 1;
}
.nav-group-chevron {
  opacity: 0.5;
  transition: transform 0.2s ease;
}
.nav-group-chevron svg {
  width: 12px;
  height: 12px;
}
.nav-group.open .nav-group-chevron {
  transform: rotate(0deg);
}
.nav-group-items {
  position: relative;
  padding: 2px 0 4px;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
  opacity: 1;
}
.nav-group-items::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 4px;
  width: 1px;
  background: var(--border-color);
}
.nav-group:not(.open) .nav-group-items {
  max-height: 0;
  opacity: 0;
  padding: 0;
}
.nav-group:not(.open) .nav-group-items::before {
  display: none;
}
.nav-item {
  display: flex;
  align-items: center;
  width: calc(100% - 12px);
  margin-left: 8px;
  padding: 6px 12px;
  padding-left: 24px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  gap: 8px;
  position: relative;
}
.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.nav-item.active {
  color: var(--accent-primary);
  background: var(--accent-glow);
  font-weight: 500;
}
.nav-item:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
}
.nav-sidebar > .nav-item {
  width: calc(100% - 8px);
  margin-left: 0;
  margin-right: 8px;
  padding-left: 16px;
  gap: 12px;
}
.nav-icon {
  width: 16px;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.65;
  flex-shrink: 0;
}
.nav-icon svg {
  width: 14px;
  height: 14px;
}
.nav-item.active .nav-icon {
  opacity: 1;
}
.nav-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item-badge {
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 500;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: 10px;
  line-height: 1.4;
}
.nav-item.active .nav-item-badge {
  background: var(--accent-primary);
  color: white;
}
.shell-content {
  padding: 24px;
  width: 100%;
}
.nav-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 960px;
}
.app-shell-hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 101;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.app-shell-hamburger:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.app-shell-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
@media (max-width: 768px) {
  .app-shell-hamburger {
    display: flex;
  }
  .app-shell-backdrop.open {
    display: block;
  }
  .app-shell-nav {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: left 0.3s ease;
  }
  .app-shell-nav.open {
    left: 0;
  }
  .app-shell-content {
    width: 100%;
  }
  .shell-content {
    padding: 16px;
  }
}
.c-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-container--padded {
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 768px) {
  .c-container--padded {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.c-hero {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  color: var(--text-primary);
  position: relative;
}
.c-hero--center {
  justify-content: center;
  text-align: center;
}
.c-hero--left {
  justify-content: flex-start;
  text-align: left;
}
.c-hero--right {
  justify-content: flex-end;
  text-align: right;
}
.c-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  max-width: 800px;
  z-index: 1;
}
.c-hero--center .c-hero-content {
  align-items: center;
}
.c-hero--left .c-hero-content {
  align-items: flex-start;
}
.c-hero--right .c-hero-content {
  align-items: flex-end;
}
.c-hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: inherit;
}
.c-hero-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}
.c-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .c-hero-content {
    padding: 24px;
  }
  .c-hero-title {
    font-size: 1.5rem;
  }
}
.c-split {
  display: flex;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.c-split--horizontal {
  flex-direction: row;
}
.c-split--vertical {
  flex-direction: column;
}
.c-split-pane {
  overflow: auto;
  min-width: 0;
  min-height: 0;
}
.c-split-handle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  transition: background 0.15s ease;
  z-index: 1;
}
.c-split-handle:hover {
  background: var(--hover);
}
.c-split-handle--horizontal {
  width: 8px;
  cursor: col-resize;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.c-split-handle--vertical {
  height: 8px;
  cursor: row-resize;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.c-split-handle-bar {
  border-radius: 2px;
  background: var(--text-muted);
}
.c-split-handle--horizontal .c-split-handle-bar {
  width: 2px;
  height: 24px;
}
.c-split-handle--vertical .c-split-handle-bar {
  height: 2px;
  width: 24px;
}
.c-split-handle:hover .c-split-handle-bar {
  background: var(--primary);
}
.c-stack {
  display: flex;
  width: 100%;
}
.c-stack--vertical {
  flex-direction: column;
}
.c-stack--horizontal {
  flex-direction: row;
  align-items: stretch;
}
.c-stack-divider {
  flex-shrink: 0;
}
.c-stack--vertical .c-stack-divider {
  height: 1px;
  background: var(--border);
}
.c-stack--horizontal .c-stack-divider {
  width: 1px;
  background: var(--border);
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.tab {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s ease;
  font-weight: 500;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab:hover {
  color: var(--text-primary);
}
.tab:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
}
.tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.tab-content {
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .tab {
    padding: 12px 16px;
    min-height: 44px;
  }
}
