/* Shared application geometry: stable header, centered identity, bounded page viewport. */
body.platform-app {
  --platform-header-height: 80px;
  --platform-header-side: 250px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
body.platform-app #app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
body.platform-app .site-header {
  position: relative;
  display: flex;
  flex: 0 0 var(--platform-header-height);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: var(--platform-header-height);
  min-width: 0;
  padding: 0 18px;
  z-index: 50;
}
body.platform-app .header-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 47px;
  min-width: 0;
  height: 47px;
  gap: 12px;
}
body.platform-app .header-identity {
  display: flex;
  align-items: center;
  flex: 0 1 var(--platform-header-side);
  gap: 12px;
  min-width: 0;
}
body.platform-app .brand {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  gap: 0;
}
body.platform-app .brand-symbol,
body.platform-app .brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}
body.platform-app .platform-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - var(--platform-header-side) * 2);
  height: 44px;
  min-width: 0;
  color: var(--text);
  text-align: center;
  text-decoration: none;
}
body.platform-app .brand-name {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 1.7px;
  line-height: 1.2;
  white-space: nowrap;
}
body.platform-app .brand-caption { display: none; }
body.platform-app .header-clock {
  display: block;
  max-width: 210px;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.platform-app .header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 var(--platform-header-side);
  gap: 12px;
  min-width: 0;
  margin-left: auto;
  order: 0;
}
body.platform-app .header-tools > #fullscreen {
  display: inline-flex;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 5px;
}
body.platform-app .account-trigger { min-height: 34px; padding: 3px; gap: 6px; }
body.platform-app .account-name { display: block; max-width: 94px; font-size: 12px; }
body.platform-app .avatar { width: 28px; height: 28px; }
body.platform-app .site-nav {
  display: flex;
  flex: 0 0 32px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  order: 0;
  min-height: 32px;
  height: 32px;
  gap: 28px;
  margin: 0;
}
body.platform-app .site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 110px;
  gap: 7px;
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 4px 10px 5px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
body.platform-app .site-nav svg { width: 17px; height: 17px; }
body.platform-app .nav-end,
body.platform-app .site-footer { display: none; }
body.platform-app .page-content {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 10px;
  overscroll-behavior: contain;
}
body.platform-app .page-content:not(.monitor-page) { overflow: auto; }
body.platform-app .page-content[aria-busy="true"] { position: relative; }
.ui-auth-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: min(50vh, 320px);
  color: var(--muted);
  font-size: 13px;
}
.ui-auth-check-mark { color: var(--blue); }
@media (max-width: 1199px) {
  body.platform-app { --platform-header-side: 170px; }
  body.platform-app .header-clock { display: none; }
  body.platform-app .brand-name { font-size: 20px; letter-spacing: 1px; }
}
@media (max-width: 849px) {
  body.platform-app { --platform-header-side: 80px; }
  body.platform-app .site-header { padding-inline: 12px; }
  body.platform-app .account-name { display: none; }
  body.platform-app .header-tools { gap: 6px; }
  body.platform-app .brand-name { font-size: 18px; letter-spacing: .6px; }
  body.platform-app .site-nav { gap: 10px; }
  body.platform-app .site-nav a { flex-basis: 100px; }
}
@media (max-width: 649px) {
  body.platform-app { --platform-header-side: 42px; }
  body.platform-app .site-header { padding-inline: 10px; }
  body.platform-app .brand { width: 28px; flex-basis: 28px; }
  body.platform-app .brand-symbol,
  body.platform-app .brand-logo { width: 26px; height: 26px; }
  body.platform-app .brand-name { font-size: clamp(12px, 3.5vw, 17px); letter-spacing: 0; }
  body.platform-app .header-tools > #fullscreen,
  body.platform-app .account-chevron,
  body.platform-app .site-nav .nav-label { display: none; }
  body.platform-app .account-trigger { padding: 0; min-height: 34px; }
  body.platform-app .site-nav { gap: 5px; justify-content: center; }
  body.platform-app .site-nav a { flex: 0 1 78px; min-width: 36px; padding-inline: 6px; }
  body.platform-app .site-nav svg { width: 19px; height: 19px; }
  body.platform-app .page-content { padding: 7px; }
}
