:root {
  --bg: #f5f1e8;
  --bg-alt: #fdfbf7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --ink: #17212f;
  --muted: #5a6474;
  --line: rgba(23, 33, 47, 0.1);
  --brand: #0f5d73;
  --brand-strong: #083a48;
  --accent: #e17c4b;
  --accent-strong: #c55a25;
  --success: #0d7a5f;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(20, 33, 49, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(225, 124, 75, 0.12), transparent 24rem),
    linear-gradient(180deg, #f7f2e9 0%, #fbfaf6 46%, #ffffff 100%);
  color: var(--ink);
  min-height: 100vh;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  width: 18rem;
  height: 18rem;
  background: rgba(225, 124, 75, 0.3);
  top: 2rem;
  right: 4rem;
}

.orb-two {
  width: 22rem;
  height: 22rem;
  background: rgba(15, 93, 115, 0.18);
  bottom: 2rem;
  left: -4rem;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.3rem 0 1rem;
  position: relative;
  z-index: 30;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(23, 33, 47, 0.08);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  letter-spacing: 0.04em;
}

.top-nav,
.workspace-links,
.action-row,
.page-header,
.summary-grid,
.card-grid,
.form-actions,
.choice-builder-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.top-nav,
.workspace-links,
.summary-grid,
.card-grid {
  flex-wrap: wrap;
}

.workspace-nav,
.panel,
.card,
.metric-card,
.table-wrap,
table {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel,
.card {
  padding: 1.5rem;
}

.workspace-nav {
  margin: 0.75rem 0 1.5rem;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.workspace-links {
  justify-content: flex-end;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(15, 93, 115, 0.08);
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease;
}

.nav-pill:hover,
.button:hover,
button:hover {
  transform: translateY(-1px);
}

.nav-pill:hover {
  background: rgba(15, 93, 115, 0.16);
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-avatar {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 93, 115, 0.18);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  min-width: 15rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 33, 47, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(23, 33, 47, 0.14);
  backdrop-filter: blur(16px);
  z-index: 50;
}

.profile-meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem 0.35rem 0.7rem;
  border-bottom: 1px solid rgba(23, 33, 47, 0.08);
  margin-bottom: 0.45rem;
}

.profile-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-link,
.profile-button {
  width: 100%;
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  text-align: left;
}

.profile-link:hover,
.profile-button:hover {
  background: rgba(15, 93, 115, 0.08);
  transform: none;
}

.profile-form {
  margin: 0;
}

.page-header {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 38rem;
}

.page-header h1,
.section-heading h1,
.panel h1,
.panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.panel h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.section-heading {
  margin-bottom: 1.25rem;
}

.split,
.split-layout,
.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 1.5rem;
}

.summary-grid,
.card-grid {
  align-items: stretch;
}

.metric-card,
.card {
  flex: 1 1 220px;
}

.metric-card {
  padding: 1.25rem;
}

.metric-card span {
  display: inline-block;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2.2rem;
}

.dashboard-stack {
  display: grid;
  gap: 1.4rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(225, 124, 75, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 239, 0.96));
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: rgba(15, 93, 115, 0.08);
  filter: blur(10px);
  pointer-events: none;
}

.summary-grid-tight .metric-card {
  flex: 1 1 180px;
}

.compact-card {
  padding: 1rem 1.15rem;
}

.compact-card strong {
  font-size: 1.9rem;
}

.relationship-card p {
  margin: 0.7rem 0 0;
  line-height: 1.5;
}

.panel-form {
  background:
    radial-gradient(circle at top right, rgba(15, 93, 115, 0.08), transparent 22rem),
    var(--surface);
}

.info-card {
  align-self: start;
  border-top: 4px solid var(--accent);
}

.choice-builder {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.choice-card {
  padding: 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.compact-heading {
  margin-bottom: 1rem;
}

.compact-heading h2 {
  margin-top: 0.15rem;
}

.compact-heading-tight {
  margin-bottom: 0.65rem;
}

.message {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin: 0 0 1rem;
  background: rgba(15, 93, 115, 0.1);
  color: var(--ink);
  list-style: none;
}

.message.error {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.messages {
  padding: 0;
  margin: 0 0 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.filter-bar-strong {
  border-color: rgba(15, 93, 115, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 243, 235, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.filter-field {
  flex: 1 1 220px;
}

.filter-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.modern-form {
  display: grid;
  gap: 1rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.form-field-inline label {
  margin-bottom: 0;
}

.input-control,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="number"] {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(23, 33, 47, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.input-control:focus,
textarea:focus,
select:focus,
input:focus {
  outline: none;
  border-color: rgba(15, 93, 115, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 93, 115, 0.08);
  background: white;
}

.multi-control {
  min-height: 8rem;
}

.file-control {
  padding: 1rem;
  border: 1px dashed rgba(15, 93, 115, 0.35);
  background: rgba(15, 93, 115, 0.05);
}

.checkbox-row {
  display: inline-flex;
  align-items: start;
  gap: 0.8rem;
  cursor: pointer;
}

.checkbox-control {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
}

.field-help,
.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}

.field-help {
  color: var(--muted);
}

.field-error {
  color: var(--danger);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(225, 124, 75, 0.24);
}

.button-ghost {
  background: rgba(15, 93, 115, 0.08);
  color: var(--brand-strong);
  box-shadow: none;
}

.button-secondary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 26px rgba(15, 93, 115, 0.22);
}

.button-ghost:hover {
  background: rgba(15, 93, 115, 0.14);
}

.form-actions {
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.table-wrap {
  overflow: hidden;
}

.table-wrap-compact {
  border-radius: 16px;
}

.series-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.series-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

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

.series-actions .table-action {
  min-height: 1.4rem;
  padding: 0.14rem 0.42rem;
  border-radius: 10px;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 93, 115, 0.14);
  background: rgba(15, 93, 115, 0.04);
  color: var(--brand-strong);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
}

.table-action:hover {
  background: rgba(15, 93, 115, 0.08);
  transform: none;
}

.table-action-send {
  border-color: rgba(15, 93, 115, 0.16);
  background: rgba(15, 93, 115, 0.05);
}

.table-action-disabled,
.table-action:disabled {
  border-color: rgba(90, 100, 116, 0.12);
  background: rgba(90, 100, 116, 0.05);
  color: rgba(90, 100, 116, 0.78);
  cursor: not-allowed;
  opacity: 1;
}

.confirm-dialog {
  width: min(28rem, calc(100% - 1.5rem));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.confirm-dialog::backdrop {
  background: rgba(23, 33, 47, 0.38);
  backdrop-filter: blur(6px);
}

.confirm-dialog-card {
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 46px rgba(23, 33, 47, 0.18);
}

.confirm-dialog-card h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.35rem;
}

.confirm-dialog-card p {
  margin-top: 0;
}

.confirm-dialog-actions {
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: none;
  background: transparent;
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(23, 33, 47, 0.07);
}

thead {
  background: rgba(15, 93, 115, 0.06);
}

tbody tr:hover {
  background: rgba(15, 93, 115, 0.035);
}

.table-dense th,
.table-dense td {
  padding: 0.7rem 0.8rem;
  font-size: 0.94rem;
}

a {
  color: var(--brand-strong);
}

.code-sample {
  overflow: auto;
  padding: 1rem;
  border-radius: 16px;
  background: #112430;
  color: #f3f0e8;
  font-size: 0.92rem;
}

.inline-form {
  display: inline;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.question-shell,
.group-directory,
.question-bank-panel,
.analytics-panel {
  position: relative;
}

.group-list,
.question-stack {
  display: grid;
  gap: 0.9rem;
}

.question-workspace {
  overflow: hidden;
}

.group-selected-shell {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 33, 47, 0.08);
}

.group-summary-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 1rem;
}

.group-summary-copy h2 {
  margin: 0;
  font-size: 1.3rem;
}

.group-summary-copy p {
  margin: 0.3rem 0 0;
  max-width: 48rem;
}

.group-summary-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.group-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.group-list-dense {
  gap: 0.55rem;
}

.group-list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(15, 93, 115, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 238, 0.86));
  box-shadow: 0 14px 26px rgba(23, 33, 47, 0.07);
}

.group-list-item-dense {
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  box-shadow: none;
}

.group-list-item strong,
.question-card h3 {
  display: block;
  margin: 0;
}

.group-list-item-copy > span {
  display: block;
  margin-top: 0.25rem;
}

.group-list-item-trailing {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.group-list-item-trailing .status-pill {
  margin-top: 0;
}

.status-pill-attachment {
  position: relative;
}

.status-pill-attachment::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
  margin-right: 0.45rem;
}

.status-pill-attached {
  background: rgba(15, 93, 115, 0.08);
  color: var(--brand-strong);
}

.status-pill-unattached {
  background: rgba(90, 100, 116, 0.09);
  color: var(--muted);
}

.group-list-item-selected {
  border-color: rgba(225, 124, 75, 0.45);
  box-shadow: 0 18px 30px rgba(225, 124, 75, 0.12);
}

.group-list-item-dense.group-list-item-selected {
  box-shadow: 0 10px 20px rgba(225, 124, 75, 0.1);
}

.group-card-grid {
  display: grid;
  gap: 1rem;
}

.group-card {
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 93, 115, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 238, 0.9));
  box-shadow: 0 16px 30px rgba(23, 33, 47, 0.08);
}

.group-card-selected {
  border-color: rgba(225, 124, 75, 0.5);
  box-shadow: 0 18px 34px rgba(225, 124, 75, 0.14);
}

.group-card-header,
.group-card-actions,
.chip-row {
  display: flex;
  gap: 0.75rem;
}

.group-card-header,
.group-card-actions {
  justify-content: space-between;
  align-items: flex-start;
}

.group-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.group-card-header p,
.group-card-actions,
.chip-row {
  margin-top: 0.7rem;
}

.group-card-actions {
  align-items: center;
  flex-wrap: wrap;
}

.group-card-actions a {
  font-weight: 700;
  text-decoration: none;
}

.chip-row {
  flex-wrap: wrap;
}

.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.chip {
  background: rgba(15, 93, 115, 0.08);
  color: var(--brand-strong);
}

.chip-outline {
  border: 1px solid rgba(15, 93, 115, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.status-pill-active {
  background: rgba(13, 122, 95, 0.12);
  color: var(--success);
}

.status-pill-muted {
  background: rgba(90, 100, 116, 0.12);
  color: var(--muted);
}

.analytics-panel .page-header {
  margin-bottom: 0.6rem;
}

.group-details {
  margin: 1rem 0 1.25rem;
}

.group-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
}

.group-meta-item {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(15, 93, 115, 0.06);
  border: 1px solid rgba(15, 93, 115, 0.08);
}

.group-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.group-meta-item strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.2rem;
  line-height: 1.1;
}

.group-subsection {
  margin-top: 0.95rem;
}

.group-subsection-compact {
  margin-top: 0.2rem;
}

.dense-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.dense-section-label {
  margin: 0;
  color: rgba(23, 33, 47, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dense-section-header .muted {
  margin: 0;
  font-size: 0.9rem;
}

.attached-quiz-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(23, 33, 47, 0.07);
}

.attached-quiz-row {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(23, 33, 47, 0.07);
  background: transparent;
}

.attached-quiz-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
}

.attached-quiz-top strong {
  font-size: 0.95rem;
}

.attached-quiz-link {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.attached-quiz-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.35rem;
}

.attached-quiz-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.attached-quiz-label {
  color: rgba(23, 33, 47, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.group-subsection-questions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 33, 47, 0.08);
  padding-top: 0.9rem;
}

.question-table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(23, 33, 47, 0.07);
  background: rgba(255, 255, 255, 0.78);
}

.question-cell-order {
  white-space: nowrap;
  color: var(--brand-strong);
  font-weight: 700;
}

.question-cell-prompt {
  min-width: 20rem;
  line-height: 1.35;
}

.question-cell-help {
  color: var(--muted);
  line-height: 1.35;
}

.quiz-stack {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.question-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 93, 115, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 238, 0.88));
  box-shadow: 0 16px 28px rgba(23, 33, 47, 0.08);
}

.question-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.question-actions {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.question-card h3 {
  margin-top: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.32;
}

.question-stack-tight {
  gap: 0.7rem;
}

.empty-state-compact {
  padding: 1rem 1.1rem;
}

ol,
ul {
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .workspace-nav,
  .page-header,
  .choice-builder-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-links {
    justify-content: flex-start;
  }

  .split,
  .split-layout,
  .signup-shell {
    grid-template-columns: 1fr;
  }

  .group-meta-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header .container {
    border-radius: 26px;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav,
  .action-row,
  .form-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .top-nav .button,
  .action-row .button,
  .form-actions .button,
  .form-actions button {
    width: 100%;
  }

  .group-card-header,
  .group-card-actions,
  .group-list-item,
  .question-card-header,
  .attached-quiz-top,
  .series-actions,
  .group-summary-bar,
  .dense-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .group-list-item-trailing {
    justify-content: flex-start;
  }

  .group-summary-meta {
    justify-content: flex-start;
  }

  th,
  td {
    padding: 0.8rem 0.7rem;
  }
}
