/* Application shell, page structure and navigation. */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
  position: sticky; top: 0; z-index: 20; min-height: var(--header-height);
  display: flex; align-items: center; gap: var(--gap); padding: 0 16px;
  background: #16263d; color: #fff;
}
.app-header__title { font-weight: 700; font-size: 1.1rem; margin-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.app-nav a {
  color: #d7e2f2; text-decoration: none; padding: 0 12px; min-height: var(--tap);
  display: inline-flex; align-items: center; border-radius: var(--radius);
}
.app-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.app-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 600; }
.app-user { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 0.95rem; }
.app-user__name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; }

.app-main { flex: 1; padding: 16px; width: 100%; max-width: 1600px; margin: 0 auto; }
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); margin-bottom: var(--gap); }
.page-header h1 { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.section__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--gap); }
.section__header h2 { margin: 0; }
