/* Independent customer screens keep one brand, with no service workspace around them. */
body.app-page { min-height: 100svh; display: flex; flex-direction: column; }
.app-header { border-bottom: 1px solid var(--quiet-border); background: var(--surface); }
.app-header-inner { min-height: 80px; display: flex; align-items: center; gap: 28px; position: relative; }
.app-nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.app-nav a { font-size: 14px; color: var(--muted); padding-block: 18px; white-space: nowrap; }
.app-nav a[aria-current=page] { color: var(--text); }
.app-account-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.app-nav + .app-account-actions { margin-left: 0; }
.app-account-actions #account-link { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: 8px 16px; white-space: nowrap; font-size: 13px; background: var(--surface); }
#header-balance { color: var(--accent); font-size: 13px; white-space: nowrap; }
[data-menu-toggle] { display: none; min-height: 44px; min-width: 44px; background: transparent; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; }
.app-main { flex: 1; padding-block: 38px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font: 600 32px/1.2 var(--font-display); }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.page-back { display: inline-flex; color: var(--muted); font-size: 13px; min-height: 32px; align-items: center; margin-bottom: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 26px; min-width: 0; }
.panel h2 { font: 600 24px/1.25 var(--font-display); }
.status-message { color: var(--muted); font-size: 14px; line-height: 1.8; }
.status-message.is-error, .status-message.error { color: var(--error); }
.app-footer { border-top: 1px solid var(--quiet-border); padding-block: 24px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.app-footer a { color: var(--accent); }
.text-link { color: var(--accent); }
@media(max-width:900px) {
  .app-header-inner { min-height: 72px; gap: 14px; flex-wrap: wrap; }
  .app-header .brand-wordmark { font-size: 28px; }
  .app-header .brand img { width: 33px; height: 33px; }
  .app-nav { display: none; position: absolute; top: 100%; left: calc(-1 * var(--page-gutter)); right: calc(-1 * var(--page-gutter)); margin: 0; padding: 14px var(--page-gutter); background: var(--surface); border-bottom: 1px solid var(--border); z-index: 20; }
  .app-nav.is-open { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .app-nav a { min-height: 44px; padding-block: 10px; }
  [data-menu-toggle] { display: inline-grid; place-items: center; }
  .app-nav + .app-account-actions { margin-left: auto; }
  .app-account-actions { gap: 8px; }
  .app-main { padding-top: 28px; }
  .page-head h1 { font-size: 28px; }
}
@media(max-width:600px) {
  .app-header .brand { gap: 7px; }
  .app-header .brand-wordmark { font-size: 24px; }
  .app-header .brand img { width: 27px; height: 27px; }
  .app-account-actions #account-link { padding-inline: 10px; font-size: 12px; }
  #header-balance { display: none; }
  .page-head { gap: 16px; margin-bottom: 22px; }
  .page-head h1 { font-size: 27px; }
  .page-head p { font-size: 13px; }
  .panel { padding: 20px; }
  .app-footer { flex-wrap: wrap; gap: 8px 20px; }
}
@media(max-width:350px) { .app-header .brand-wordmark { font-size: 19px; } .app-header .brand img { width: 23px; height: 23px; } .app-header-inner { gap: 8px; } .app-account-actions { gap: 6px; } .app-account-actions #account-link { padding-inline: 8px; } }
