.app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.brand-tag {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}

.nav-section {
  margin-top: 18px;
  padding: 0 12px;
}

.nav-section-title {
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 10px;
  margin-bottom: 8px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-bottom: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-left-color: var(--brand);
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--line-soft);
  color: var(--muted);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.5;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.top-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-soft);
}

.page-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.card-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.card-section-label {
  font-size: 11px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  font-weight: 500;
}

.col-12 { grid-column: span 12; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

@media (max-width: 1200px) {
  .col-4, .col-3 { grid-column: span 6; }
}

@media (max-width: 900px) {
  .col-4, .col-3, .col-6, .col-8, .col-9, .col-5, .col-7 { grid-column: span 12; }
}
