.app-frame {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.app-header {
  background: var(--blue-950);
  color: #fff;
  border-bottom: 3px solid var(--blue-700);
}

.app-topbar {
  display: grid;
  grid-template-columns: 250px minmax(180px, 1fr) auto;
  align-items: stretch;
  min-height: 66px;
  background: var(--blue-950);
  color: #fff;
}

.brand {
  padding: 12px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.top-focus {
  display: grid;
  align-content: center;
  padding: 10px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.top-focus span {
  font-size: 12px;
  opacity: 0.72;
}

.top-focus strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-width: 0;
}

.app-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 0;
}

.app-body.single-body {
  grid-template-columns: 1fr;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 10px;
}

.nav-group-title {
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sidebar .nav-group-title:first-child {
  margin-top: 2px;
  color: var(--blue-950);
  font-size: 14px;
  font-weight: 900;
}

.nav-btn {
  width: 100%;
  min-height: 46px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  padding: 8px 11px;
}

.nav-btn.active,
.nav-btn:hover {
  border-color: var(--blue-700);
  background: var(--blue-100);
  color: var(--blue-950);
}

.nav-btn.is-p1 {
  border-style: dashed;
  color: var(--muted);
}

.nav-btn small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.nav-btn.active small,
.nav-btn:hover small {
  color: var(--blue-900);
}

.sidebar-note {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--blue-050);
  padding: 10px;
}

.sidebar-note strong {
  color: var(--blue-950);
}

.sidebar-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.main {
  min-width: 0;
  padding: 14px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.page-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
