/* Night Glow: eigenständiges Dashboard-Layout */

:root[data-lunii-theme-preload="nightglow"],
body.theme-nightglow {
  color-scheme: dark;
}

body.theme-nightglow {
  --ng-bg: #05070d;
  --ng-surface: rgba(9, 15, 24, 0.88);
  --ng-surface-strong: rgba(12, 20, 31, 0.96);
  --ng-surface-soft: rgba(255, 255, 255, 0.045);
  --ng-border: rgba(204, 230, 255, 0.14);
  --ng-border-strong: rgba(126, 255, 204, 0.34);
  --ng-text: #f6fbff;
  --ng-muted: #a9b8c6;
  --ng-dim: #718191;
  --ng-green: #78ffd0;
  --ng-blue: #79aaff;
  --ng-pink: #ff78b9;
  --ng-yellow: #ffe66d;
  --ng-red: #ff6f7f;
  --ng-shadow: rgba(0, 0, 0, 0.48);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ng-bg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ng-green) 10%, transparent), transparent 30%),
    linear-gradient(220deg, color-mix(in srgb, var(--ng-pink) 12%, transparent), transparent 34%),
    linear-gradient(180deg, var(--ng-surface-custom, #09111b) 0%, var(--ng-bg) 58%, var(--ng-bg) 100%);
  color: var(--ng-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.theme-nightglow[data-ng-background="1"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(3, 5, 10, var(--ng-custom-overlay, 0.68)), rgba(3, 5, 10, var(--ng-custom-overlay, 0.68))),
    var(--ng-custom-background-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover, var(--ng-custom-background-size, cover);
}

body.theme-nightglow[data-ng-grid="0"]::before,
body.theme-nightglow[data-ng-effects="0"] .ng-backdrop,
body.theme-nightglow[data-ng-effects="0"] #ng-starfield,
body.theme-nightglow[data-ng-effects="0"] #ng-aurora,
body.theme-nightglow[data-ng-effects="0"] #ng-grid,
body.theme-nightglow[data-ng-effects="0"] #ng-scanline {
  display: none !important;
}

body.theme-nightglow,
body.theme-nightglow * {
  box-sizing: border-box;
}

body.theme-nightglow::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.34;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 78%, transparent);
}

.ng-backdrop,
#ng-starfield,
#ng-aurora,
#ng-grid,
#ng-scanline {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#ng-starfield {
  opacity: 0.32;
}

#ng-aurora {
  height: 46vh;
  background:
    linear-gradient(95deg, transparent, rgba(120, 255, 208, 0.16), transparent 58%),
    linear-gradient(125deg, transparent 16%, rgba(121, 170, 255, 0.14), transparent 72%),
    linear-gradient(78deg, transparent 28%, rgba(255, 120, 185, 0.13), transparent 80%);
  filter: blur(24px);
}

#ng-grid {
  top: auto;
  height: 32vh;
  background:
    linear-gradient(rgba(120, 255, 208, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 170, 255, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(760px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(180deg, transparent, #000 32%, transparent);
}

#ng-scanline {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 5px;
  opacity: 0.06;
}

.ng-backdrop span {
  position: absolute;
  border: 1px solid rgba(120, 255, 208, 0.16);
  background: rgba(255, 255, 255, 0.025);
  transform: rotate(8deg);
}

.ng-backdrop span:nth-child(1) {
  width: 22vw;
  height: 22vw;
  left: 5vw;
  top: 18vh;
}

.ng-backdrop span:nth-child(2) {
  width: 18vw;
  height: 18vw;
  right: 9vw;
  top: 9vh;
  border-color: rgba(255, 120, 185, 0.14);
}

.ng-backdrop span:nth-child(3) {
  width: 24vw;
  height: 14vw;
  right: 18vw;
  bottom: 8vh;
  border-color: rgba(255, 230, 109, 0.12);
}

.ng-public-shell,
.ng-app-shell,
.ng-status-shell {
  position: relative;
  z-index: 1;
  width: min(1680px, calc(100vw - 28px));
  margin: 0 auto;
}

.ng-public-shell,
.ng-app-shell {
  padding: 14px 0 58px;
}

.ng-brand,
.ng-public-links,
.ng-command-status,
.ng-command-actions,
.ng-public-actions,
.ng-status-actions {
  display: flex;
  align-items: center;
}

.ng-brand {
  gap: 10px;
  min-width: 0;
  color: var(--ng-text);
  text-decoration: none;
}

.ng-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ng-green), var(--ng-blue) 55%, var(--ng-pink));
  color: #05101a;
  font-weight: 900;
  font-size: 0.78rem;
  box-shadow: 0 14px 32px rgba(120, 255, 208, 0.18);
}

.ng-logo-large {
  width: 64px;
  height: 64px;
  font-size: 1rem;
}

.ng-brand strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
}

.ng-brand small {
  display: block;
  margin-top: 3px;
  color: var(--ng-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.ng-public-top,
.ng-command-top,
.ng-context-panel,
.ng-module-matrix,
.ng-workspace,
.ng-status-panel,
.ng-public-stats article,
.ng-public-grid article {
  border: 1px solid var(--ng-border);
  background:
    linear-gradient(180deg, rgba(10, 17, 27, 0.92), rgba(6, 11, 19, 0.90)),
    linear-gradient(90deg, rgba(120, 255, 208, 0.045), rgba(255, 120, 185, 0.04));
  background-color: var(--ng-surface-custom, #09111b);
  box-shadow: 0 22px 70px var(--ng-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ng-superuser-switch label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--ng-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ng-text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.ng-superuser-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--ng-green);
}

.dashboard-appearance-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}

.dashboard-color-circle-field {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--ng-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.dashboard-color-circle-field input[type="color"] {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.dashboard-color-circle-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.dashboard-color-circle-field input[type="color"]::-webkit-color-swatch,
.dashboard-color-circle-field input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 50%;
}

.dashboard-background-preview {
  width: min(720px, 100%);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--ng-border);
  border-radius: 8px;
  background: var(--ng-bg);
}

.dashboard-background-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ng-public-top,
.ng-command-top {
  position: sticky;
  top: 10px;
  z-index: 40;
  padding: 12px;
  border-radius: 8px;
}

.ng-public-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.ng-public-links {
  gap: 8px;
  justify-content: center;
}

.ng-public-links a,
.ng-mini-btn,
.ng-btn,
#lunii-theme-btn,
.ng-mode,
.ng-module,
.ng-section,
.ng-module-card {
  min-height: 40px;
  border: 1px solid rgba(204, 230, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ng-text);
  text-decoration: none;
  border-radius: 8px;
  font: 700 0.88rem Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ng-public-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
}

.ng-public-links a:hover,
.ng-mini-btn:hover,
.ng-btn:hover,
#lunii-theme-btn:hover,
.ng-mode:hover,
.ng-module:hover,
.ng-section:hover,
.ng-module-card:hover {
  border-color: var(--ng-border-strong);
  background: rgba(120, 255, 208, 0.08);
  transform: translateY(-1px);
}

.ng-btn,
.ng-mini-btn,
#lunii-theme-btn,
.ng-mode {
  cursor: pointer;
}

.ng-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.ng-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ng-green), var(--ng-blue));
  color: #06101a;
}

.ng-btn-ghost {
  color: var(--ng-muted);
}

.ng-mini-btn,
#lunii-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  white-space: nowrap;
}

.ng-inline-form {
  margin: 0;
}

.ng-public-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 24px;
  align-items: stretch;
  padding: 72px 0 28px;
}

.ng-public-copy {
  align-self: center;
  min-width: 0;
  max-width: 100%;
}

.ng-kicker {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 230, 109, 0.32);
  border-radius: 6px;
  color: var(--ng-yellow);
  background: rgba(255, 230, 109, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ng-public-copy h1,
.ng-context-copy h1,
.ng-status-panel h1 {
  margin: 14px 0 12px;
  color: var(--ng-text);
  font-size: 3.25rem;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ng-public-copy p,
.ng-context-copy p,
.ng-status-panel p,
.ng-public-grid p,
.ng-module-group p {
  max-width: 74ch;
  color: #d7e4ef;
  line-height: 1.62;
  overflow-wrap: break-word;
  white-space: normal;
}

.ng-public-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ng-command-preview {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--ng-border);
  border-radius: 8px;
  background: rgba(7, 12, 20, 0.76);
  box-shadow: 0 24px 72px var(--ng-shadow);
}

.ng-preview-top,
.ng-module-group header,
.ng-block-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  color: var(--ng-muted);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.74rem;
}

.ng-preview-map {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  grid-auto-rows: 86px;
  gap: 10px;
  margin-top: 18px;
}

.ng-preview-map span,
.ng-preview-feed article,
.ng-context-stats article {
  border: 1px solid rgba(204, 230, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 255, 208, 0.09), transparent),
    rgba(255, 255, 255, 0.035);
}

.ng-preview-map .wide {
  grid-column: span 2;
}

.ng-preview-map .tall {
  grid-row: span 2;
}

.ng-preview-feed {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ng-preview-feed article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.ng-preview-feed span {
  color: var(--ng-green);
  font-weight: 900;
}

.ng-preview-feed strong,
.ng-preview-feed small {
  grid-column: 2;
  min-width: 0;
}

.ng-preview-feed strong,
.ng-public-grid h2,
.ng-module-group h3,
.ng-block-head h2 {
  color: var(--ng-text);
}

.ng-preview-feed small {
  display: block;
  margin-top: 4px;
  color: var(--ng-muted);
  line-height: 1.45;
}

.ng-public-stats,
.ng-public-grid {
  display: grid;
  gap: 12px;
}

.ng-public-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ng-public-stats article,
.ng-public-grid article {
  padding: 18px;
  border-radius: 8px;
}

.ng-public-stats span,
.ng-public-grid span,
.ng-context-stats span,
.ng-module-group header span,
.ng-block-head span {
  color: var(--ng-dim);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ng-public-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.ng-public-stats small {
  color: var(--ng-muted);
}

.ng-public-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.ng-command-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 0.9fr) minmax(420px, 1.3fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ng-command-status,
.ng-command-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.ng-command-status {
  justify-content: center;
}

.ng-command-status > span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  max-width: 230px;
  padding: 0 12px;
  border: 1px solid rgba(204, 230, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ng-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ng-status-dot.is-online {
  color: var(--ng-green);
  border-color: rgba(120, 255, 208, 0.28);
}

.ng-status-dot.is-offline {
  color: var(--ng-red);
  border-color: rgba(255, 111, 127, 0.30);
}

.ng-command-actions {
  justify-content: flex-end;
}

.ng-mode-switch,
.ng-guild-switch {
  display: inline-grid;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(204, 230, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ng-mode-switch {
  grid-template-columns: repeat(2, minmax(74px, 1fr));
}

.ng-mode {
  min-height: 32px;
  border: 0;
  background: transparent;
}

.ng-mode.is-active {
  background: linear-gradient(135deg, var(--ng-green), var(--ng-yellow));
  color: #06101a;
}

.ng-guild-switch {
  grid-template-columns: auto minmax(150px, 220px) auto;
}

.ng-guild-switch label {
  padding-left: 6px;
  color: var(--ng-dim);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ng-guild-switch select,
.ng-content select,
.ng-content input,
.ng-content textarea,
.ng-content .input {
  min-height: 36px;
  border: 1px solid rgba(204, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 8, 14, 0.92);
  color: var(--ng-text);
}

.ng-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ng-section {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.ng-section.is-active {
  border-color: var(--ng-border-strong);
  background:
    linear-gradient(135deg, rgba(120, 255, 208, 0.13), rgba(121, 170, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.ng-section-index,
.ng-section-count {
  color: var(--ng-yellow);
  font-size: 0.72rem;
}

.ng-section-main strong {
  display: block;
}

.ng-section-main small {
  display: block;
  margin-top: 6px;
  color: var(--ng-muted);
  line-height: 1.35;
}

.ng-context-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 8px;
}

.ng-context-copy {
  min-width: 0;
}

.ng-context-copy h1 {
  font-size: 2.35rem;
}

.ng-module-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ng-module {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--ng-muted);
}

.ng-module span {
  color: var(--ng-green);
}

.ng-module.is-active {
  border-color: var(--ng-border-strong);
  color: var(--ng-text);
  background: rgba(120, 255, 208, 0.08);
}

.ng-context-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ng-context-stats article {
  min-width: 0;
  padding: 14px;
}

.ng-context-stats strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ng-module-matrix,
.ng-workspace {
  margin-top: 14px;
  padding: 18px;
  border-radius: 8px;
}

.ng-block-head {
  align-items: start;
  text-transform: none;
}

.ng-block-head span {
  display: block;
  color: var(--ng-yellow);
}

.ng-block-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ng-module-group {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(204, 230, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.ng-module-group header {
  align-items: start;
  text-transform: none;
}

.ng-module-group h3 {
  margin: 4px 0 0;
}

.ng-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ng-module-card {
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.ng-module-card.is-active {
  border-color: rgba(255, 230, 109, 0.38);
  background: rgba(255, 230, 109, 0.07);
}

.ng-module-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(120, 255, 208, 0.10);
  color: var(--ng-green);
  font-weight: 900;
}

.ng-module-card-copy strong,
.ng-module-card-copy small {
  display: block;
}

.ng-module-card-copy small {
  margin-top: 6px;
  color: var(--ng-muted);
  line-height: 1.36;
}

.ng-workspace {
  background:
    linear-gradient(180deg, rgba(10, 17, 27, 0.94), rgba(6, 11, 19, 0.94)),
    linear-gradient(90deg, rgba(120, 255, 208, 0.035), rgba(121, 170, 255, 0.035));
}

.ng-content {
  display: grid;
  gap: 14px;
}

.ng-content .page {
  padding: 0;
}

.ng-content .page-header,
.ng-content .workspace-page-header,
.ng-content .page-header-economy {
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(204, 230, 255, 0.10);
}

.ng-content .page-header h1,
.ng-content h1,
.ng-content h2,
.ng-content h3,
.ng-content .summary-title {
  color: var(--ng-text);
}

.ng-content p,
.ng-content .muted,
.ng-content .summary-body {
  color: #c5d2de;
}

.ng-content .card,
.ng-content .summary-card,
.ng-content .panel-card,
.ng-content .feature-card,
.ng-content .stat-card,
.ng-content .metric-card,
.ng-content .economy-module-card {
  border: 1px solid rgba(204, 230, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.ng-content .btn {
  border-radius: 8px;
}

.ng-content .btn.primary {
  background: linear-gradient(135deg, var(--ng-green), var(--ng-blue));
  color: #06101a;
}

.ng-content .pill {
  border-color: rgba(120, 255, 208, 0.24);
  border-radius: 6px;
  background: rgba(120, 255, 208, 0.08);
  color: var(--ng-green);
}

.ng-content table,
.ng-content .table {
  border-color: rgba(204, 230, 255, 0.12);
}

.ng-content th {
  background: rgba(120, 255, 208, 0.08);
  color: var(--ng-green);
}

.ng-status-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.ng-status-panel {
  width: min(680px, 100%);
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  border-radius: 8px;
}

.ng-status-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.notices {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.notice {
  border-radius: 8px;
  border: 1px solid rgba(204, 230, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.notice.error {
  border-color: rgba(255, 111, 127, 0.32);
}

@media (max-width: 1180px) {
  .ng-public-top,
  .ng-command-row,
  .ng-context-panel,
  .ng-public-hero,
  .ng-public-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ng-command-top,
  .ng-public-top {
    position: relative;
    top: auto;
  }

  .ng-command-status,
  .ng-command-actions,
  .ng-public-links {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .ng-public-shell,
  .ng-app-shell,
  .ng-status-shell {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    overflow-x: hidden;
  }

  .ng-public-shell,
  .ng-app-shell {
    padding-top: 8px;
  }

  .ng-public-top,
  .ng-command-top,
  .ng-context-panel,
  .ng-module-matrix,
  .ng-workspace,
  .ng-status-panel,
  .ng-command-preview,
  .ng-public-stats article,
  .ng-public-grid article {
    min-width: 0;
    max-width: 100%;
    padding: 12px;
  }

  .ng-public-links,
  .ng-command-actions,
  .ng-command-status,
  .ng-public-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ng-public-links a,
  .ng-public-actions > *,
  .ng-public-actions .ng-btn,
  .ng-inline-form,
  .ng-inline-form .ng-btn,
  .ng-command-actions > *,
  .ng-command-actions form,
  .ng-command-actions button,
  #lunii-theme-btn {
    width: 100%;
  }

  .ng-guild-switch {
    grid-template-columns: 1fr;
  }

  .ng-public-hero {
    gap: 16px;
    padding-top: 34px;
    min-width: 0;
  }

  .ng-public-copy,
  .ng-public-copy p {
    width: 100%;
    max-width: 100%;
  }

  .ng-public-copy h1,
  .ng-context-copy h1,
  .ng-status-panel h1 {
    font-size: 2rem;
  }

  .ng-public-stats,
  .ng-context-stats,
  .ng-module-grid {
    grid-template-columns: 1fr;
  }

  .ng-sections {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .ng-section {
    flex: 0 0 84vw;
  }
}

@media (max-width: 520px) {
  .ng-public-copy h1,
  .ng-context-copy h1,
  .ng-status-panel h1 {
    font-size: 1.64rem;
  }

  .ng-preview-map {
    grid-template-columns: 1fr;
    grid-auto-rows: 64px;
  }

  .ng-preview-map .wide,
  .ng-preview-map .tall {
    grid-column: auto;
    grid-row: auto;
  }
}
