.aciz-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.aciz-sidebar {
  background: var(--aciz-color-surface);
  border-right: 1px solid var(--aciz-color-line-soft);
  padding: 12px 10px 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.aciz-sidebar__top {
  padding: 2px 6px 4px;
}

.aciz-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 6px;
  padding: 8px 10px 8px 8px;
  border: 0;
  border-radius: 10px;
  background: var(--aciz-color-transparent);
  color: var(--aciz-color-text-strong);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.aciz-brand:hover,
.aciz-brand:focus-visible {
  text-decoration: none;
  background: var(--aciz-color-surface-hover);
  outline: none;
}

.aciz-brand__logo {
  max-height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.aciz-brand__fallback {
  display: none;
  align-items: center;
  min-height: 34px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--aciz-color-text-subtle);
}

.aciz-brand--fallback .aciz-brand__copy {
  display: none;
}

.aciz-brand--fallback .aciz-brand__fallback {
  display: inline-flex;
}

.aciz-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.aciz-brand__line--strong {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--aciz-color-text-strong);
}

.aciz-brand__line {
  font-size: 0.82rem;
  color: var(--aciz-color-text-subtle);
}

.aciz-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--aciz-color-line-soft) var(--aciz-color-transparent);
}

.aciz-nav__divider {
  border: none;
  border-top: 1px solid var(--aciz-color-line-subtle);
  margin: 4px 2px 2px;
}

.aciz-nav__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 9px;
  color: var(--aciz-color-text-strong);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--aciz-color-transparent);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.aciz-nav__item:hover {
  background: var(--aciz-color-surface-hover);
  border-color: var(--aciz-color-line-strong);
  text-decoration: none;
}

.aciz-nav__item.is-active {
  background: var(--aciz-color-neutral-soft);
  color: var(--aciz-color-text-strong);
  border-color: var(--aciz-color-line-soft);
  font-weight: 600;
}

.aciz-nav__icon {
  width: 16px;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aciz-color-text-muted);
}

.aciz-nav__label {
  display: inline-block;
  line-height: 1.1;
  white-space: nowrap;
}

.aciz-nav__item.is-active .aciz-nav__icon {
  color: var(--aciz-color-text-strong);
}

.aciz-sidebar__bottom {
  margin-top: auto;
  padding: 0 4px 2px;
  display: flex;
}

.aciz-page-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.aciz-topbar {
  min-height: 60px;
  background: var(--aciz-color-surface);
  border-bottom: 1px solid var(--aciz-color-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.aciz-topbar__left,
.aciz-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.aciz-user-chip {
  height: 34px;
  padding: 0 8px 0 8px;
  border: 1px solid var(--aciz-color-transparent);
  background: var(--aciz-color-transparent);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aciz-color-text-subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

.aciz-user-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--aciz-color-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aciz-color-text-muted);
  background: var(--aciz-color-surface-muted);
  font-weight: 600;
}

.aciz-page-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
