/* LZ OS critical shell — first paint before lz-hosted.css */
:root {
  --lz-red: #c62828;
  --lz-red-soft: #fff5f5;
  --lz-border: #e8eaed;
  --lz-text: #1a1a2e;
  --lz-muted: #64748b;
  --lz-bg: #f1f4f9;
  --lz-card: #ffffff;
  --lz-radius: 12px;
  --lz-radius-sm: 8px;
  --lz-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --sidebar-w: 280px;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--lz-bg);
  color: var(--lz-text);
  font-size: 14px;
  line-height: 1.5;
}
.hidden { display: none !important; }
html.lz-dash-dedicated-portal #appShell:not(.lz-dash-portal-ready) {
  display: none !important;
}
.lz-boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(198, 40, 40, 0.13), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--lz-bg) 100%);
  color: var(--lz-text);
}
.lz-boot-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.lz-boot-loader__mark {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #c62828, #8f1d1d);
  color: #fff;
  box-shadow: 0 18px 45px rgba(198, 40, 40, 0.24);
}
.lz-boot-loader__mark-core {
  position: relative;
  z-index: 2;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 24px;
}
.lz-boot-loader__orbit {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(198, 40, 40, 0.22);
  border-left-color: rgba(198, 40, 40, 0.9);
  border-radius: 999px;
  animation: lz-boot-spin 1.35s linear infinite;
}
.lz-boot-loader__orbit--two {
  inset: 7px;
  border-color: rgba(255, 255, 255, 0.25);
  border-right-color: rgba(255, 255, 255, 0.9);
  animation-duration: 1.9s;
  animation-direction: reverse;
}
.lz-boot-loader__title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.lz-boot-loader__text {
  min-height: 20px;
  color: var(--lz-muted);
  font-size: 13px;
  font-weight: 600;
}
.lz-boot-loader__bar {
  width: 156px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(198, 40, 40, 0.12);
}
.lz-boot-loader__bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--lz-red), transparent);
  animation: lz-boot-bar 1.4s ease-in-out infinite;
}
@keyframes lz-boot-spin {
  to { transform: rotate(360deg); }
}
@keyframes lz-boot-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}
@media (prefers-reduced-motion: reduce) {
  .lz-boot-loader__orbit,
  .lz-boot-loader__bar span {
    animation: none;
  }
}
.hosted-error-panel,
.dashboard-status-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--lz-bg);
}
.hosted-error-card,
.dashboard-status-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 28px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--lz-shadow);
}
.hosted-error-card h2,
.dashboard-status-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--lz-red);
}
.hosted-error-card p,
.dashboard-status-card p {
  margin: 0 0 16px;
  color: var(--lz-text);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.hosted-error-actions,
.dashboard-status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.app-shell.lz-boot-pending #sidebarNav,
.app-shell.lz-boot-pending #sidebarFoot a,
.app-shell.lz-boot-pending .lz-portal-launcher,
.app-shell.lz-boot-pending .lz-portal-strip,
.app-shell.lz-boot-pending .header-portal-nav,
.app-shell.lz-boot-pending #lzosUnifiedHeaderNav {
  pointer-events: none !important;
  user-select: none;
}
.app-shell.lz-boot-pending #sidebarNav a[href] {
  pointer-events: none !important;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fafbfc;
  border-right: 1px solid var(--lz-border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 120;
}
.sidebar-head {
  flex-shrink: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lz-border);
  margin-bottom: 14px;
}
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.sidebar-foot {
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid var(--lz-border);
}
.dashboard-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--lz-card);
  border-bottom: 1px solid var(--lz-border);
  flex-shrink: 0;
}
.main-content {
  flex: 1;
  min-width: 0;
  padding: 22px 24px;
  overflow-y: auto;
}
