.app-shell {
  min-height: 0;
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 28px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgb(15 61 46 / 6%);
}

.app-header-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-brand-logo {
  width: 150px;
  height: 102px;
  object-fit: contain;
  flex: 0 0 auto;
}

.app-brand-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.app-brand-copy strong {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
}

.app-brand-copy span {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.35;
}

.app-nav {
  width: 100%;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  padding: 5px;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

.control-main {
  max-width: 1680px;
  padding: 16px;
}

.admin-main {
  max-width: 1180px;
}

.center-screen {
  min-height: 0;
  width: 100%;
  display: grid;
  flex: 1;
  place-items: center;
  padding: 24px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  padding: 10px 20px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.app-footer strong {
  color: var(--color-text);
  font-size: inherit;
}

.app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.suite-return-link {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.suite-return-link:hover,
.suite-return-link:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.page-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 750;
}

.page-subtitle {
  margin: 0;
  color: var(--color-muted);
}

.page-heading,
.section-heading {
  display: grid;
  gap: 16px;
}

.section-block {
  margin-top: 24px;
}

.section-title {
  margin: 0;
  font-size: 20px;
}

@media (min-width: 720px) {
  .page-heading,
  .section-heading {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .app-header {
    padding: 12px 14px 10px;
  }

  .app-header-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .app-brand {
    flex: 1 1 230px;
    gap: 10px;
  }

  .app-brand-logo {
    width: 92px;
    height: 64px;
  }

  .app-brand-copy strong {
    font-size: 16px;
  }

  .app-brand-copy span {
    font-size: 11px;
  }

  .app-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .center-screen {
    padding: 16px;
  }

  .app-footer {
    gap: 3px;
    flex-direction: column;
    padding: 8px 12px;
    font-size: 11px;
  }
}
