
:root {
  --noor-bg: #010309;
  --noor-ink: #e8f4f8;
  --noor-muted: #8fb4c0;
  --noor-line: #1b4a5c;
  --noor-green: #2ecc71;
  --noor-gold: #d4af37;
  --noor-chrome-h: 56px;
  --noor-ribbon-h: 36px;
  --noor-status-h: 28px;
  --noor-font: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}
html.noor-shell, body.noor-shell {
  margin: 0;
  min-height: 100%;
  background: var(--noor-bg);
  color: var(--noor-ink);
  font-family: var(--noor-font);
}
body.noor-shell {
  padding: calc(var(--noor-chrome-h) + 16px) 24px calc(var(--noor-ribbon-h) + var(--noor-status-h) + 16px);
  box-sizing: border-box;
}
.noor-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--noor-chrome-h);
  z-index: 1000;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: rgba(1, 3, 9, 0.92);
  border-bottom: 1px solid var(--noor-line);
  backdrop-filter: blur(10px);
}
.noor-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--noor-ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.noor-logo svg { width: 28px; height: 28px; display: block; }
.noor-permanent-nav {
  display: inline-flex;
  gap: 6px;
}
.noor-nav-btn {
  min-width: 72px;
  height: 32px;
  border: 1px solid var(--noor-line);
  background: #07111a;
  color: var(--noor-ink);
  border-radius: 8px;
  cursor: pointer;
  font: 600 12px/1 var(--noor-font);
}
.noor-nav-btn:hover { border-color: var(--noor-green); }
.noor-nav-settings {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.noor-hierarchy {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: auto;
  white-space: nowrap;
  min-width: 0;
  font-size: 13px;
}
.noor-crumb {
  color: var(--noor-muted);
  text-decoration: none;
}
.noor-crumb-current { color: var(--noor-ink); font-weight: 650; }
.noor-crumb-sep { color: var(--noor-green); opacity: 0.7; font-size: 11px; }
.noor-preview-url {
  justify-self: end;
  color: var(--noor-muted);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.noor-preview-url:hover { color: var(--noor-ink); }
.noor-live-ribbon {
  position: fixed;
  left: 0; right: 0; bottom: var(--noor-status-h);
  height: var(--noor-ribbon-h);
  overflow: hidden;
  z-index: 1000;
  background: #07110d;
  border-top: 1px solid #14532d;
  color: var(--noor-muted);
  font-size: 12px;
}
.noor-live-ribbon-track {
  display: inline-flex;
  gap: 36px;
  padding: 10px 24px;
  white-space: nowrap;
  animation: noor-ribbon-scroll 48s linear infinite;
}
.noor-ribbon-item { opacity: 0.92; }
.honesty-UNKNOWN { color: #9bb8c4; }
.honesty-OBSERVED { color: var(--noor-green); }
.honesty-KNOWN { color: var(--noor-gold); }
@keyframes noor-ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.noor-globe-stage {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
}
.noor-globe {
  position: relative;
  width: min(520px, 86vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.noor-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.noor-globe-disk {
  fill: url(#globe-glow);
  stroke: #2ecc7144;
  stroke-width: 1.2;
}
.noor-meridians ellipse {
  fill: none;
  stroke: #54c98b28;
  stroke-width: 1;
}
.orbit-path { fill: none; stroke: #72e7a848; stroke-width: 1.15; }
.orbit-light { fill: #d4af37; filter: drop-shadow(0 0 6px #d4af37); }
.orbit-spin { transform-origin: 200px 200px; animation: noor-orbit 42s linear infinite; }
.orbit-spin.b { animation-duration: 28s; animation-direction: reverse; }
.orbit-spin.c { animation-duration: 36s; }
@keyframes noor-orbit { to { transform: rotate(360deg); } }
.noor-globe-core {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.noor-globe-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 650;
  letter-spacing: 0.18em;
}
.noor-virtues {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--noor-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
}
.noor-jawshan {
  max-width: 38rem;
  width: min(38rem, 92vw);
  min-height: 4.5rem;
  text-align: center;
  padding: 8px 16px 0;
  margin: 0 auto;
  transition: opacity 1.6s ease;
}
.noor-jawshan.is-fading { opacity: 0; }
.noor-jawshan-ar {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.75;
  font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", "Arabic Typesetting", serif;
  color: var(--noor-gold);
  font-weight: 500;
}
.noor-jawshan-fa {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--noor-muted);
  font-family: "Noto Naskh Arabic", "Geeza Pro", "Tahoma", sans-serif;
}
body[data-noor-workspace="home"] #noor-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--noor-chrome-h) - var(--noor-ribbon-h) - 32px);
  width: 100%;
}
.noor-home-enter {
  display: inline-block;
  margin-top: 8px;
  color: var(--noor-ink);
  border: 1px solid var(--noor-green);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  .orbit-spin, .noor-live-ribbon-track, .noor-jawshan { animation: none !important; }
}
