/* Claara Control — owner control plane.
   Deliberately distinct from the tenant product surface so the owner always
   knows which side of the boundary they are on: darker ground, one accent,
   tabular data over decorative cards. */

:root {
  color-scheme: dark light;

  --accent: #ff8b73;
  --accent-strong: #ff6f52;
  --accent-contrast: #1a0d09;

  --surface-base: #14161a;
  --surface-raised: #1b1e24;
  --surface-sunken: #101216;
  --surface-hover: #22262e;

  --border: #2c313b;
  --border-strong: #3a4150;

  --text-primary: #eef1f6;
  --text-secondary: #a8b0be;
  --text-quiet: #767f8f;

  --info-bg: #17222e;
  --info-border: #27435c;
  --info-text: #b7d4ee;

  --danger-bg: #2a1618;
  --danger-border: #5c2a2f;
  --danger-text: #f3b8bc;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: light) {
  :root {
    --surface-base: #f6f7f9;
    --surface-raised: #ffffff;
    --surface-sunken: #eceef2;
    --surface-hover: #f0f2f6;

    --border: #dde1e8;
    --border-strong: #c4cad5;

    --text-primary: #191d24;
    --text-secondary: #545c6b;
    --text-quiet: #7a8291;

    --info-bg: #eef5fd;
    --info-border: #c3ddf5;
    --info-text: #1d4a71;

    --danger-bg: #fdeff0;
    --danger-border: #f2c4c8;
    --danger-text: #8d2b33;

    --accent-contrast: #ffffff;
    --shadow-card: 0 1px 2px rgba(16, 22, 32, 0.06), 0 12px 32px rgba(16, 22, 32, 0.08);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.body--centered {
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  z-index: 10;
}

.skip-link:focus-visible {
  left: var(--space-3);
}

/* ------------------------------------------------------------------ app bar */

.app-bar {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-5);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.app-bar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-bar__brand span {
  display: flex;
  flex-direction: column;
}

.app-bar__brand strong {
  font-size: 14px;
  font-weight: 600;
}

.app-bar__brand small {
  color: var(--text-quiet);
  font-size: 12px;
}

.app-bar__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  flex: none;
}

.app-bar__nav {
  display: flex;
  gap: var(--space-2);
  margin-inline-end: auto;
}

.app-bar__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 120ms ease, color 120ms ease;
}

.app-bar__link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.app-bar__link.is-current {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.app-bar__session {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-bar__owner {
  color: var(--text-quiet);
  font-size: 13px;
}

/* -------------------------------------------------------------------- main */

.main {
  padding: var(--space-6) var(--space-5) var(--space-7);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.page__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page__header h1 {
  font-size: 24px;
  font-weight: 600;
}

.page__header p {
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ------------------------------------------------------------------ sign in */

.sign-in {
  width: 100%;
  max-width: 420px;
}

.sign-in__card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sign-in__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sign-in__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  margin-bottom: var(--space-2);
}

.sign-in__brand h1 {
  font-size: 20px;
  font-weight: 600;
}

.sign-in__brand p {
  color: var(--text-secondary);
  font-size: 14px;
}

.sign-in__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* -------------------------------------------------------------------- form */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field input {
  width: 100%;
  padding: 10px var(--space-3);
  font: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:hover {
  border-color: var(--text-quiet);
}

.field input:focus-visible,
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 139, 115, 0.25);
}

.button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--primary:active {
  transform: translateY(1px);
}

.button--quiet {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.button--quiet:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.button:focus-visible,
.app-bar__link:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- notices */

.notice {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 14px;
}

.notice--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

/* Status is never carried by colour alone: the error notice is also the only
   notice with a leading rule and an assertive role in the markup. */
.notice--error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  border-left-width: 3px;
  color: var(--danger-text);
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.empty-state h2 {
  font-size: 16px;
  font-weight: 600;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 48ch;
  font-size: 14px;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 767px) {
  .app-bar {
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }

  .app-bar__nav {
    order: 3;
    width: 100%;
    margin-inline-end: 0;
  }

  .app-bar__session {
    margin-inline-start: auto;
  }

  .app-bar__owner {
    display: none;
  }

  .main {
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .sign-in__card {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .button--primary:active {
    transform: none;
  }
}

/* ------------------------------------------------------------------ tokens */

:root {
  --positive-bg: #14241c;
  --positive-border: #245239;
  --positive-text: #8fd8ac;

  --warning-bg: #261e12;
  --warning-border: #574123;
  --warning-text: #e8c184;
}

@media (prefers-color-scheme: light) {
  :root {
    --positive-bg: #eaf7ef;
    --positive-border: #bde2cb;
    --positive-text: #1f6138;

    --warning-bg: #fdf4e6;
    --warning-border: #f0dcb8;
    --warning-text: #7a5312;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-quiet {
  color: var(--text-quiet);
}

.footnote {
  color: var(--text-quiet);
  font-size: 13px;
  max-width: 70ch;
}

.notice--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  border-left-width: 3px;
  color: var(--warning-text);
}

/* -------------------------------------------------------------- breadcrumb */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-quiet);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ status chips */

/* The dot is a shape cue, not the message: the label always carries the state
   in words, so status never depends on colour alone. */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.status-chip > span[aria-hidden="true"] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status-chip[data-tone="positive"] {
  background: var(--positive-bg);
  border-color: var(--positive-border);
  color: var(--positive-text);
}

.status-chip[data-tone="warning"] {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.status-chip[data-tone="critical"] {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

/* -------------------------------------------------------------------- table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-quiet);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--surface-hover);
}

.data-table__link {
  color: var(--text-primary);
  text-decoration: none;
}

.data-table__link:hover {
  text-decoration: underline;
}

.data-table__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.data-table__sub {
  display: block;
  color: var(--text-quiet);
  font-size: 12.5px;
}

/* -------------------------------------------------------------------- facts */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-3);
}

/* Each fact carries its own frame, so an incomplete final row leaves real
   whitespace instead of a filled, meaningless cell. */
.fact {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fact dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.fact dd {
  margin: 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.fact dd code {
  font-size: 13px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px var(--space-2);
}

/* --------------------------------------------------- responsive data table */

@media (max-width: 767px) {
  /* Rows become labelled blocks rather than forcing a horizontal scroll. */
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    border-bottom: 1px solid var(--border);
    padding: var(--space-2) 0;
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table td {
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-2) var(--space-4);
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-quiet);
    flex: none;
  }

  .data-table__sub {
    display: inline;
  }
}

/* ------------------------------------------------- shared module catalog

   The markup in resources/views/owner/module-catalog.php is shared with the
   tenant, but the theming is not: the tenant sheet styles these same class
   names with its own tokens. Re-theming here is intentional, and keeps the
   single copy of the markup and its state vocabulary intact.

   The shared view emits an icon-font element the control plane does not ship,
   so the icon slot is hidden rather than left as an empty box. */

.module-state-catalog {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.module-state-catalog__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.module-state-catalog__header h2 {
  font-size: 18px;
  font-weight: 600;
}

.module-state-catalog__header p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 70ch;
}

.module-state-catalog__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.module-state-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  overflow: hidden;
}

.module-state-row {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.module-state-list > .module-state-row:last-child {
  border-bottom: 0;
}

.module-state-row:hover {
  background: var(--surface-hover);
}

.module-state-row__summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.module-state-row__icon {
  display: none;
}

.module-state-row__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.module-state-row__copy h3 {
  font-size: 14px;
  font-weight: 600;
}

.module-state-row__copy p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* State is carried by the written label; the dot only reinforces it. */
.module-state-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}

.module-state-badge > span[aria-hidden="true"] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.module-state-badge[data-tone="positive"] {
  background: var(--positive-bg);
  border-color: var(--positive-border);
  color: var(--positive-text);
}

.module-state-badge[data-tone="warning"],
.module-state-badge[data-tone="progress"] {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.module-state-badge[data-tone="danger"] {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.module-state-badge[data-tone="muted"] {
  opacity: 0.75;
}

.module-state-details {
  margin-top: var(--space-2);
}

.module-state-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-quiet);
  padding: var(--space-1) 0;
  border-radius: var(--radius-sm);
  list-style: none;
}

.module-state-details summary::-webkit-details-marker {
  display: none;
}

.module-state-details summary::before {
  content: "›";
  display: inline-block;
  margin-inline-end: var(--space-2);
  transition: transform 120ms ease;
}

.module-state-details[open] summary::before {
  transform: rotate(90deg);
}

.module-state-details summary:hover {
  color: var(--text-primary);
}

.module-state-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.module-state-details__body {
  padding: var(--space-2) 0 var(--space-1) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-secondary);
}

.module-state-dependencies {
  color: var(--warning-text);
}

.module-state-message {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.module-state-message h3 {
  font-size: 14px;
  font-weight: 600;
}

.module-state-message p {
  color: var(--text-secondary);
  font-size: 13px;
}

.module-state-message--error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.module-state-message i,
.module-state-empty i {
  display: none;
}

.module-state-empty {
  border-style: dashed;
  text-align: center;
  justify-content: center;
}

.module-state-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.module-state-skeleton span {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-sunken), var(--surface-hover), var(--surface-sunken));
  background-size: 200% 100%;
  animation: module-state-shimmer 1.4s ease-in-out infinite;
}

.module-state-skeleton span:nth-child(1) { width: 30%; }
.module-state-skeleton span:nth-child(2) { width: 65%; }
.module-state-skeleton span:nth-child(3) { width: 45%; }

@keyframes module-state-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 767px) {
  .module-state-row__summary {
    flex-wrap: wrap;
  }

  .module-state-badge {
    order: -1;
  }
}

/* ---------------------------------------------------------- draft form */

.page__header--actions {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.page__header--actions > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page__header--actions .button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.notice--warning strong {
  display: block;
  margin-bottom: var(--space-1);
}

.draft-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.draft-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  padding: var(--space-5);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.draft-section legend {
  padding: 0 var(--space-2);
  margin-inline-start: calc(var(--space-2) * -1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field textarea,
.field select {
  width: 100%;
  padding: 10px var(--space-3);
  font: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 72px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
}

.field textarea:focus-visible,
.field select:focus-visible,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 139, 115, 0.25);
}

/* An invalid field is marked by border, message, and aria-invalid — never by
   colour alone. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger-border);
}

.field__error {
  font-size: 13px;
  color: var(--danger-text);
}

.field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-inline-end: var(--space-2);
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.field__hint {
  font-size: 13px;
  color: var(--text-quiet);
  max-width: 70ch;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.choice {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 14px;
  cursor: pointer;
}

.choice input {
  margin: 3px 0 0;
  accent-color: var(--accent);
  flex: none;
  width: 16px;
  height: 16px;
}

.choice input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice--block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--surface-sunken);
  align-items: flex-start;
}

.choice--block:hover {
  background: var(--surface-hover);
}

.choice--block:has(input:checked) {
  border-color: var(--accent);
}

.choice__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice__copy strong {
  font-size: 14px;
  font-weight: 600;
}

.choice__copy small {
  font-size: 12.5px;
  color: var(--text-quiet);
}

.choice__deps {
  color: var(--text-secondary);
}

.module-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.form-actions .button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 767px) {
  .draft-section {
    padding: var(--space-4);
  }

  .module-choices {
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    flex: 1 1 auto;
    justify-content: center;
  }
}
