/* Shared application chrome. Business pages keep their own scoped layouts. */
:root {
  --navy: #202a42;
  --blue: #365978;
  --muted: #5e6d7f;
  --line: #e3e8ee;
  --gold: #ae9560;
  --shadow: 0 3px 16px rgba(27, 41, 62, .045);
  color: #28364b;
  background: #f2f4f7;
  font-size: 14px;
}
body { background: #f2f4f7; }
.sidebar {
  width: 228px;
  background: linear-gradient(180deg, #202a40 0%, #182235 100%);
}
.sidebar-brand { height: 80px; padding: 0 18px; gap: 11px; }
.sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  color: #decca7;
  background: #ffffff05;
  border-color: #bca37380;
  border-radius: 10px;
}
.sidebar-brand .brand-name { font-size: 17px; font-weight: 650; letter-spacing: .3px; }
.saas-switcher { padding: 15px 16px 12px; }
.saas-switcher select {
  padding: 10px 11px;
  background: #ffffff09;
  border-color: #ffffff25;
  border-radius: 7px;
  font-size: 14px;
}
.saas-switcher select option { background: #202a40; color: white; }
.saas-switcher p { font-size: 14px; color: #adb9c9; margin: 9px 0 0; }
.nav-items { padding: 6px 12px 18px; }
.saas-nav-group .nav-caption {
  color: #aebbcf;
  font-size: 14px;
  padding: 18px 12px 8px;
  letter-spacing: 1px;
}
.saas-nav-group + .saas-nav-group { margin-top: 3px; border-top: 0; }
.saas-nav-group .nav-item, .nav-item {
  min-height: 42px;
  height: auto;
  padding: 11px 12px;
  margin-bottom: 3px;
  gap: 11px;
  color: #bbc5d2;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 7px;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item.active {
  color: #e4d1a4;
  background: linear-gradient(90deg, #b79c5c26, #b79c5c0a);
  box-shadow: inset 3px 0 #c5a76c;
}
.nav-item.active svg { color: #d2b67b; }
.nav-item:hover { background-color: #ffffff08; color: white; }
.main-wrap { margin-left: 228px; }
.topbar { height: 66px; padding: 0 30px; background: #fffffff5; }
.breadcrumb { font-size: 14px; }
.breadcrumb b { color: #334157; font-weight: 600; }
.topbar .demo-badge { font-size: 14px; padding: 5px 9px; border-radius: 5px; }
.user-name { color: #3a475a; max-width: 160px; }
.user-role { color: var(--muted); font-size: 14px; }
.avatar { color: #536782; background: #edf1f6; }
.content { padding: 28px 30px 48px; max-width: 1480px; }
.page-heading { margin-bottom: 23px; gap: 20px; }
.page-heading h1 { color: #202d42; font-size: 26px; font-weight: 650; margin: 0; }
.page-heading p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 6px 0 0; }
.small { font-size: 14px; line-height: 1.65; }
.muted { color: var(--muted); }
.card { border-color: #e1e6ed; border-radius: 11px; box-shadow: var(--shadow); }
.card-header { padding: 20px 24px; }
.card-header h2 { color: #2d3b50; font-size: 16px; font-weight: 650; }
.card-body { padding: 24px; }
.card-footer { color: #778496; background: #fbfcfd; }
.btn { min-height: 39px; padding: 9px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.btn.primary { background: #26334d; border-color: #26334d; box-shadow: 0 2px 5px #22314d13; }
.btn.primary:hover { background: #35435f; border-color: #35435f; }
.btn.sm { min-height: 32px; padding: 7px 11px; font-size: 14px; }
.btn.soft { background: #f2f5f9; border-color: #dce4ef; color: #3d5e81; }
.text-button { font-size: 14px; }
.input, .select, .textarea { min-height: 40px; border-color: #d8e0e9; color: #34445b; border-radius: 6px; }
.input::placeholder, .textarea::placeholder { color: #939eac; }
.field > label { color: #536276; font-size: 14px; }
.field .hint, .inline-note { color: var(--muted); font-size: 14px; line-height: 1.65; }
.alert { font-size: 14px; line-height: 1.8; border-radius: 8px; color: #536a81; }
.alert.warning { color: #6d561f; background: #fcf8ed; border-color: #eadfbf; }
.badge { font-size: 14px; padding: 5px 8px; font-weight: 500; }
.badge.gray { color: #647286; background: #eef1f5; }
.badge.gold { color: #876b2f; background: #f7f0df; }
.badge.green { color: #326c53; background: #eaf5ee; }
.badge.red { color: #a33f4b; background: #fbedef; }
th { color: #69768a; background: #f7f9fc; font-size: 14px; }
td { color: #44546a; font-size: 14px; line-height: 1.6; }
td .sub { color: var(--muted); font-size: 14px; }
.detail-label { color: var(--muted); font-size: 14px; }
.detail-value { color: #34445b; font-size: 14px; }
.modal { border-radius: 12px; }
.modal-header h2 { font-size: 18px; }
.modal-body { color: #4e6074; }
.empty strong { color: #45566e; font-size: 16px; }
.empty p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.pagination { color: #6f7d90; }

/* Keep forms, messages and notices readable at the same scale as table text. */
.form-error, .toast, .tab-button, .demo-badge, .stat-foot, .qr-caption,
.package-detail, .scope-option p, .upload-box p, .dialog-copy { font-size: 14px; }
.dialog-copy { line-height: 1.65; }
.login-intro h1 { margin: 0; }
.login-form h2 { margin-bottom: 26px; }
.login-sub { margin: -12px 0 24px; color: var(--muted); font-size: 14px; }
.login-form .field > label, .login-form .alert, .login-meta { font-size: 14px; }
.login-form .alert { margin-bottom: 0; }
.login-meta a { color: #365978; text-decoration: underline; text-underline-offset: 3px; }
.h5-header p { font-size: 15px; color: #e0e8f0; }
.h5-identity { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); }
.h5-identity strong { overflow-wrap: anywhere; white-space: normal; }
.h5-identity > div:not(:first-child) strong.mono { font-size: 16px; }
.h5-identity span { color: var(--muted); font-size: 14px; }
.auth-intro { margin: 0 0 12px; }
.auth-scope-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.auth-scope-list li { border: 1px solid #e1e6ed; border-radius: 6px; padding: 7px 10px; background: #f6f8fb; }
.agreement-box { font-size: 15px; color: #46576b; max-height: 280px; }
.agreement-check { font-size: 15px; color: #28364b; }
.agreement-check input { margin-top: 4px; }
@media (max-width: 1150px) and (min-width: 701px) {
  .sidebar { width: 218px; }
  .main-wrap { margin-left: 218px; }
  .sidebar-brand { padding-inline: 14px; gap: 9px; }
  .sidebar-brand .brand-name { font-size: 16px; }
  .content { padding: 24px 24px 40px; }
  .topbar { padding-inline: 24px; }
  .topbar-right { gap: 10px; }
  .user-name { max-width: 110px; }
}
@media (max-width: 700px) {
  .sidebar { width: 236px; }
  .main-wrap { margin-left: 0; }
  .content { padding: 21px 16px 38px; }
  .topbar { height: 61px; padding-inline: 14px; }
  .topbar-right { gap: 5px; }
  .topbar .demo-badge { padding: 4px 6px; }
  .user-name { max-width: 64px; }
  .login-form h2 { margin-bottom: 22px; }
  .h5-identity { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .h5-identity > div:first-child { grid-column: 1 / -1; }
  .page-heading { flex-wrap: wrap; gap: 13px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { max-width: none; font-size: 14px; }
  .page-heading .heading-actions .btn { font-size: 14px; padding: 9px 12px; }
  .card-header, .card-body { padding: 19px; }
  .btn { min-height: 40px; }
  .input, .select, .textarea { min-height: 42px; font-size: 14px; }
  .nav-items { padding-bottom: 28px; }
  .saas-nav-group .nav-item { min-height: 43px; }
  .modal-backdrop { padding: 10px; }
  .modal-body { padding: 19px; }
}
@media print {
  body { background: white; }
  .main-wrap { margin-left: 0; }
  .content { max-width: none; padding: 0; }
}

/* The launch workspace uses the same compact chrome on all verification pages. */
.app-shell[data-launch="true"] .sidebar { background: #11263b; }
.app-shell[data-launch="true"] .sidebar-brand { height: 54px; border-bottom: 1px solid #ffffff14; }
.app-shell[data-launch="true"] .sidebar-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; font-size: 18px; }
.app-shell[data-launch="true"] .saas-switcher { padding: 12px 16px; }
.app-shell[data-launch="true"] .nav-items { padding: 10px 10px 24px; }
.app-shell[data-launch="true"] .nav-item { min-height: 46px; }
.app-shell[data-launch="true"] .nav-item.active { background: #e8d2a31a; color: #f0dcae; }
.app-shell[data-launch="true"] .topbar { height: 54px; padding-inline: 20px; }
.app-shell[data-launch="true"] .breadcrumb b { font-size: 16px; color: #263448; }
.app-shell[data-launch="true"] .content { padding: 20px 20px 42px; }
@media screen and (min-width: 701px) {
  .app-shell[data-launch="true"] .sidebar { width: 215px; }
  .app-shell[data-launch="true"] .main-wrap { margin-left: 215px; }
}
@media screen and (max-width: 700px) {
  .app-shell[data-launch="true"] .topbar { padding-inline: 10px; }
  .app-shell[data-launch="true"] .topbar-left { flex: 1; }
  .app-shell[data-launch="true"] .breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .app-shell[data-launch="true"] .content { padding: 14px 12px 32px; }
  .app-shell[data-launch="true"] .user-role { display: none; }
}
