.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--text-secondary);
}

.boot-screen img { width: 44px; height: 44px; }
.boot-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-primary); font-size: 1.1rem; font-weight: 900; }
.boot-brand strong { display: grid; line-height: 0.9; }
.boot-brand small { color: var(--brand-primary); font-size: 0.58rem; letter-spacing: 0.42em; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  border-right: 1px solid #18274a;
  background: #09142c;
  color: #f4f7f5;
}

.sidebar-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 12px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--radius-sm); color: #f5f8f6; font-weight: 900; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { display: grid; line-height: 0.9; }
.brand small { color: #7898ff; font-size: 0.52rem; letter-spacing: 0.42em; }
.sidebar-close { display: none !important; }
.sidebar-card-cta { flex: 0 0 auto; margin: 0 2px 4px; border: 1px solid #3859aa; background: #132853; color: #f4f7ff; }
.sidebar-card-cta:not([aria-current="page"]) i { color: #9bb0ff; }
.sidebar-card-cta:hover { background: #1a3266; color: #ffffff; }

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 8px 2px 20px;
}

.nav-heading {
  margin: 23px 12px 7px;
  color: #647169;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 0;
  padding: 9px 12px;
  border-radius: 10px;
  color: #a9b4ad;
  font-weight: 600;
}

.nav-link i { width: 20px; flex: 0 0 20px; color: #69766e; font-size: 1.15rem; text-align: center; }
.nav-link:hover { background: #111f3f; color: #f6f8ff; }
.nav-link[aria-current="page"] { background: #172957; color: #9bb0ff; box-shadow: inset 3px 0 #6385fa; }
.nav-link[aria-current="page"] i { color: #9bb0ff; }
.nav-link-accent:not([aria-current="page"]) i { color: #7898ff; }
.admin-navigation { margin-top: 10px; padding-top: 10px; border-top: 1px solid #1c2d53; }
.admin-navigation[hidden] { display: none; }

.sidebar-footer {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid #1c2d53;
}

.locale-control {
  min-height: 44px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 11px;
  padding: 4px 12px;
  border-radius: 10px;
  color: #a9b4ad;
}

.locale-control i { color: #6c7970; font-size: 1.15rem; }
.locale-control select { width: 100%; border: 0; background: transparent; font-weight: 600; cursor: pointer; }
.locale-control select option { background: var(--bg-elevated); color: var(--text-primary); }

.account-chip {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #20335e;
  border-radius: var(--radius-md);
  background: #0e1b38;
  color: #f4f7f5;
  text-align: left;
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.account-copy { min-width: 0; display: grid; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 0.84rem; }
.account-copy small { color: #758179; font-size: 0.72rem; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }

.topbar {
  position: sticky;
  z-index: 30;
  inset-block-start: 0;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 3vw, 46px);
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border-subtle);
  background: rgb(255 255 255 / .94);
  backdrop-filter: blur(15px);
}

.topbar-leading, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.currency-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
}
.currency-button:hover { border-color: var(--border-strong); background: var(--bg-surface-2); }
.currency-symbol {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 900;
}
.page-context { display: grid; gap: 2px; }
.page-context h1 { font-size: 1.05rem; }
.menu-button { display: none !important; }

.main-content { padding: clamp(24px, 3vw, 46px); }
.page-outlet { width: min(100%, var(--content-max)); margin: 0 auto; }

.route-progress {
  position: fixed;
  z-index: 80;
  inset: 0 auto auto var(--sidebar-width);
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  opacity: 0;
}

.route-progress.is-loading { width: calc(100% - var(--sidebar-width)); opacity: 1; transition: width 700ms ease; }
.sidebar-backdrop { display: none; }

.topbar [data-theme-toggle] { display: none !important; }
.topbar .eyebrow { color: var(--brand-primary); }
.page-context h1 { color: #101512; font-weight: 820; letter-spacing: -.035em; }
