.glass, .panel, dialog, .hero, .card, .modal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  color: var(--text);
}

.panel {
  padding: 18px;
}

.hero {
  padding: 24px;
  display: grid;
  gap: 12px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.section-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-intro h2,
.section-intro p {
  margin: 0;
}

.section-intro p {
  color: var(--muted);
}

.os-module-shell {
  display: grid;
  gap: 18px;
}

.module-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.module-hero-copy {
  display: grid;
  gap: 8px;
  max-width: 840px;
}

.module-hero-copy h1,
.module-hero-copy p {
  margin: 0;
}

.module-hero-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.module-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.module-link-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}


.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: fit-content;
  min-width: min(720px, 100%);
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.modal-card-wide {
  width: fit-content;
  min-width: min(860px, 100%);
  max-width: 100%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px 0;
}

.modal-header h3 {
  margin: 0;
}

.modal-body {
  padding: 20px;
  overflow: auto;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .modal {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-card,
  .modal-card-wide {
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 24px);
  }
}
