/* ==========================================================================
   Vocate HTML Generator
   Phase 1 — Vocate shell + school-selection screen
   Self-contained: does not import or depend on any file outside
   html-generator/. Does not reuse css/styles.css or css/uma/uma-design-system.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@500;600;700&family=Newsreader:ital@0;1&display=swap');

:root {
  /* Vocate Education Solutions brand guide tokens */
  --vg-ink: #1A3263;
  --vg-ink-dark: #142650;
  --vg-kindle: #F16821;
  --vg-beacon: #FAB95B;
  --vg-dune: #EBE0D7;
  --vg-linen: #FEF9F4;
  --vg-white: #FFFFFF;

  --vg-text-muted: #6B7280;
  --vg-border: #E7E2DA;

  --vg-radius-lg: 20px;
  --vg-radius-pill: 999px;

  --vg-shadow-card: 0 8px 24px rgba(26, 50, 99, 0.08);

  --vg-max-width: 1200px;
  --vg-font-heading: 'Geologica', Arial, Helvetica, sans-serif;
  --vg-font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
}

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

html,
body {
  height: 100%;
}

body.hg-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vg-white);
  color: var(--vg-ink);
  font-family: var(--vg-font-body);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   HEADER (Vocate shell)
   ========================================================================== */

.hg-shell-header {
  background: var(--vg-white);
  border-bottom: 1px solid var(--vg-border);
}

.hg-shell-header-inner {
  max-width: var(--vg-max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hg-brand {
  display: inline-flex;
  align-items: center;
}

.hg-brand-logo {
  height: 40px;
  width: auto;
}

.hg-faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vg-ink);
  font-family: var(--vg-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--vg-radius-pill);
}

.hg-faq-btn:hover,
.hg-faq-btn:focus-visible {
  background: var(--vg-linen);
}

.hg-faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ==========================================================================
   MAIN — hero + school selection
   ========================================================================== */

.hg-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hg-screen-inner {
  max-width: var(--vg-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.hg-screen-inner--narrow {
  max-width: 880px;
}

/* Secondary, button-styled previous/back navigation (polish pass item 8):
   deliberately smaller and quieter than .hg-btn so it never competes with
   the screen's primary action, but still clearly reads as clickable rather
   than a plain text link. */
.hg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: var(--vg-radius-pill);
  border: 1.5px solid var(--vg-border);
  background: var(--vg-white);
  color: var(--vg-ink);
  font-family: var(--vg-font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hg-back-btn:hover {
  border-color: var(--vg-ink);
  background: var(--vg-linen);
}

.hg-back-btn:focus-visible {
  outline: 2px solid var(--vg-ink);
  outline-offset: 2px;
}

/* UMA workflow screen heading: square context logo beside the title/
   subtitle group (polish pass items 5-7), replacing the old standalone
   "Ultimate Medical Academy" eyebrow text. */
.hg-uma-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hg-uma-context-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--vg-border);
  background: var(--vg-white);
}

.hg-uma-heading-text {
  min-width: 0;
}

.hg-uma-heading-text .hg-page-title,
.hg-uma-heading-text .hg-page-subtitle {
  margin-left: 0;
}

.hg-hero {
  text-align: center;
  margin-bottom: 48px;
}

.hg-hero-title {
  font-family: var(--vg-font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3rem);
  color: var(--vg-ink);
  margin: 0 0 20px;
}

.hg-hero-rule {
  width: 90px;
  height: 4px;
  border: none;
  border-radius: var(--vg-radius-pill);
  background: var(--vg-kindle);
  margin: 0 auto 20px;
}

.hg-hero-subtitle {
  font-family: var(--vg-font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--vg-ink);
  margin: 0;
}

.hg-school-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hg-school-card {
  background: var(--vg-white);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  box-shadow: var(--vg-shadow-card);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Approved brand-personality tints (polish pass item 2): a very soft
   double radial glow over white, not a dark-to-light linear gradient. Each
   school's saturation/alpha is tuned so FVI reads clearly deeper/more
   saturated than UMA's pale, airy treatment even though both are blue. */
.hg-school-card[data-school="uma"] {
  background:
    radial-gradient(circle at 88% -10%, rgba(29, 107, 166, 0.10), transparent 60%),
    radial-gradient(circle at -10% 110%, rgba(29, 107, 166, 0.05), transparent 55%),
    var(--vg-white);
  border-color: rgba(29, 107, 166, 0.18);
}

.hg-school-card[data-school="nasium"] {
  background:
    radial-gradient(circle at 88% -10%, rgba(139, 109, 204, 0.13), transparent 60%),
    radial-gradient(circle at -10% 110%, rgba(139, 109, 204, 0.06), transparent 55%),
    var(--vg-white);
  border-color: rgba(139, 109, 204, 0.22);
}

.hg-school-card[data-school="american-institute"] {
  background:
    radial-gradient(circle at 88% -10%, rgba(240, 148, 74, 0.15), transparent 60%),
    radial-gradient(circle at -10% 110%, rgba(240, 148, 74, 0.07), transparent 55%),
    var(--vg-white);
  border-color: rgba(240, 148, 74, 0.24);
}

.hg-school-card[data-school="fvi"] {
  background:
    radial-gradient(circle at 88% -10%, rgba(23, 55, 105, 0.22), transparent 62%),
    radial-gradient(circle at -10% 110%, rgba(23, 55, 105, 0.11), transparent 55%),
    var(--vg-white);
  border-color: rgba(23, 55, 105, 0.32);
}

/* Entrance motion (polish pass item 3): quick, subtle, settles immediately.
   Restarts naturally whenever the screen goes from hidden back to visible
   (browsers restart CSS animations when display flips from none to
   visible), which is fine here — reduced motion still fully disables it. */
@keyframes hgSchoolCardEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hg-school-card {
  animation: hgSchoolCardEnter 0.42s ease-out both;
}

.hg-school-card:nth-child(1) { animation-delay: 0s; }
.hg-school-card:nth-child(2) { animation-delay: 0.05s; }
.hg-school-card:nth-child(3) { animation-delay: 0.1s; }
.hg-school-card:nth-child(4) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .hg-school-card {
    animation: none;
  }
}

/* Hover/focus (polish pass item 4): only the interactive UMA card responds
   — Coming Soon cards keep their tint but never imply clickability. */
.hg-school-card--enabled:hover,
.hg-school-card--enabled:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26, 50, 99, 0.16);
  border-color: rgba(29, 107, 166, 0.4);
}

.hg-school-card--disabled {
  opacity: 0.72;
}

/* Logo container: white background so the PNGs' own opaque white/light
   backgrounds do not appear as a visible box on a differently colored card. */
.hg-school-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vg-white);
}

.hg-school-logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.hg-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--vg-radius-pill);
  font-family: var(--vg-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  width: 100%;
}

.hg-cta--primary {
  background: var(--vg-ink);
  color: var(--vg-white);
  cursor: pointer;
}

.hg-cta--primary:hover,
.hg-cta--primary:focus-visible {
  background: var(--vg-ink-dark);
}

.hg-cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hg-cta--disabled {
  background: var(--vg-dune);
  color: var(--vg-text-muted);
  cursor: not-allowed;
}

.hg-school-status {
  margin: 0;
  font-family: var(--vg-font-body);
  font-size: 0.85rem;
  color: var(--vg-text-muted);
  min-height: 1.2em;
  text-align: center;
}

.hg-faq-note {
  text-align: center;
  color: var(--vg-text-muted);
  font-size: 0.9rem;
  margin: 32px auto 0;
  max-width: 480px;
}

/* ==========================================================================
   FOOTER (Vocate shell)
   ========================================================================== */

.hg-shell-footer {
  border-top: 1px solid var(--vg-border);
  background: var(--vg-white);
  padding: 20px 24px;
  text-align: center;
}

.hg-shell-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--vg-text-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .hg-school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hg-school-grid {
    grid-template-columns: 1fr;
  }

  .hg-shell-header-inner {
    padding: 14px 16px;
  }

  .hg-screen-inner {
    padding: 40px 16px 32px;
  }

  .hg-uma-context-logo {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   SHARED: kicker label, page eyebrow
   ========================================================================== */

.hg-eyebrow {
  font-family: var(--vg-font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--vg-kindle);
  margin: 0 0 8px;
}

.hg-page-title {
  font-family: var(--vg-font-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--vg-ink);
  margin: 0 0 8px;
}

.hg-page-subtitle {
  color: var(--vg-text-muted);
  margin: 0 0 32px;
  max-width: 640px;
}

/* ==========================================================================
   CREATION METHOD SCREEN
   ========================================================================== */

.hg-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hg-method-card {
  background: var(--vg-white);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  box-shadow: var(--vg-shadow-card);
  padding: 28px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hg-method-card:hover,
.hg-method-card:focus-visible {
  border-color: var(--vg-ink);
}

.hg-method-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hg-method-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--vg-linen);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vg-ink);
}

.hg-method-icon svg { width: 26px; height: 26px; }

.hg-method-arrow { color: var(--vg-text-muted); }

.hg-method-card h3 {
  font-family: var(--vg-font-heading);
  color: var(--vg-ink);
  margin: 0;
  font-size: 1.3rem;
}

.hg-method-card p {
  margin: 0;
  color: var(--vg-text-muted);
}

.hg-method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hg-method-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--vg-ink);
  font-size: 0.92rem;
}

.hg-method-list li::before {
  content: "\2713";
  color: var(--vg-kindle);
  font-weight: 700;
  flex: 0 0 auto;
}

/* ==========================================================================
   CREATE FROM DOCUMENT SCREEN (visual only — no parsing)
   ========================================================================== */

.hg-doc-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.hg-doc-template-card {
  background: var(--vg-white);
  border: 2px solid var(--vg-border);
  border-radius: var(--vg-radius-md);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.hg-doc-template-card.is-selected {
  border-color: var(--vg-ink);
}

.hg-doc-template-card h4 {
  margin: 10px 0 6px;
  color: var(--vg-ink);
  font-family: var(--vg-font-heading);
  font-size: 1rem;
}

.hg-doc-template-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--vg-text-muted);
}

.hg-step-block {
  background: var(--vg-white);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.hg-step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
}

.hg-step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vg-ink);
  color: var(--vg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.hg-step-title {
  font-family: var(--vg-font-heading);
  font-weight: 700;
  color: var(--vg-ink);
  margin: 0;
}

.hg-step-desc {
  color: var(--vg-text-muted);
  margin: 0 0 16px 42px;
}

.hg-dropzone {
  margin-left: 42px;
  border: 2px dashed var(--vg-border);
  border-radius: var(--vg-radius-md);
  padding: 32px;
  text-align: center;
  color: var(--vg-text-muted);
}

.hg-dropzone strong { color: var(--vg-ink); }

.hg-future-note {
  margin-left: 42px;
  background: var(--vg-linen);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--vg-text-muted);
}

.hg-doc-status {
  margin-left: 42px;
  min-height: 1.2em;
  color: var(--vg-kindle);
  font-weight: 600;
  font-size: 0.9rem;
}

.hg-doc-selected {
  margin-left: 42px;
  margin-top: 12px;
  background: var(--vg-linen);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vg-ink);
}

.hg-step-action {
  margin-left: 42px;
}

/* ==========================================================================
   MANUAL SETUP SCREEN (layout + H2 style)
   ========================================================================== */

.hg-setup-step {
  margin-bottom: 40px;
}

.hg-setup-step h2 {
  font-family: var(--vg-font-heading);
  color: var(--vg-ink);
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.hg-setup-step > p {
  color: var(--vg-text-muted);
  margin: 0 0 16px;
}

.hg-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hg-choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}

.hg-choice-card {
  background: var(--vg-white);
  border: 2px solid var(--vg-border);
  border-radius: var(--vg-radius-md);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.hg-choice-card.is-selected {
  border-color: var(--vg-ink);
}

.hg-choice-preview {
  position: relative;
  height: 70px;
  border-radius: 8px;
  background: var(--vg-linen);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  overflow: hidden;
}

.hg-choice-preview span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--vg-border);
}

.hg-choice-preview .hg-bar-wide { width: 80%; background: var(--vg-ink); }
.hg-choice-preview .hg-bar-mid { width: 60%; }

/* Kicker variants show a small orange kicker bar above the heading bar */
[data-layout-choice="kicker"] .hg-choice-preview,
[data-layout-choice="kicker-rail"] .hg-choice-preview {
  padding-top: 14px;
}

[data-layout-choice="kicker"] .hg-choice-preview::before,
[data-layout-choice="kicker-rail"] .hg-choice-preview::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 26%;
  height: 4px;
  border-radius: 2px;
  background: var(--vg-kindle);
}

/* Rail variants show small dots along the right edge representing the
   floating section rail */
[data-layout-choice="rail"] .hg-choice-preview::after,
[data-layout-choice="kicker-rail"] .hg-choice-preview::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 8px;
  bottom: 10px;
  width: 6px;
  background-image: radial-gradient(circle, var(--vg-ink) 1.5px, transparent 1.5px);
  background-size: 6px 12px;
  background-repeat: repeat-y;
}

.hg-choice-title {
  font-family: var(--vg-font-heading);
  font-weight: 700;
  color: var(--vg-ink);
  display: block;
  font-size: 0.95rem;
}

.hg-choice-desc {
  font-size: 0.82rem;
  color: var(--vg-text-muted);
}

.hg-review-preview {
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  background: var(--vg-white);
  overflow: hidden;
  max-width: 640px;
}

.hg-review-preview-banner {
  background: linear-gradient(135deg, var(--vg-ink) 0%, #1d4d8a 100%);
  color: var(--vg-white);
  padding: 24px;
}

.hg-review-preview-banner h3 {
  margin: 0 0 4px;
  font-family: var(--vg-font-heading);
}

.hg-review-preview-banner p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.9rem;
}

.hg-review-preview-body {
  padding: 20px 24px;
}

.hg-review-preview-body .hg-eyebrow {
  color: var(--vg-kindle);
  font-size: 0.7rem;
}

.hg-review-heading {
  margin-bottom: 6px;
}

.hg-review-summary {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--vg-border);
  font-size: 0.85rem;
  color: var(--vg-text-muted);
}

.hg-review-summary strong { color: var(--vg-ink); display: block; }

.hg-setup-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.hg-btn {
  font-family: var(--vg-font-heading);
  font-weight: 600;
  border-radius: var(--vg-radius-pill);
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.hg-btn-primary { background: var(--vg-ink); color: var(--vg-white); }
.hg-btn-primary:hover { background: var(--vg-ink-dark); }
.hg-btn-outline { background: var(--vg-white); border: 2px solid var(--vg-border); color: var(--vg-ink); }
.hg-btn-outline:hover { border-color: var(--vg-ink); }
.hg-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ==========================================================================
   BUILDER SCREEN
   ========================================================================== */

.hg-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  transition: grid-template-columns 0.15s ease;
}

.hg-builder-layout[data-panel-state="collapsed"] {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hg-builder-layout[data-panel-state="collapsed"] #hg-component-panel {
  display: none;
}

.hg-builder-layout[data-panel-state="expanded"] .hg-panel-collapsed-toggle {
  display: none;
}

.hg-panel-collapsed-toggle {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  writing-mode: horizontal-tb;
  padding: 12px;
  border-radius: var(--vg-radius-md);
  border: 1px dashed var(--uma-hero-blue, var(--vg-border));
  background: var(--vg-white);
  color: var(--uma-hero-blue, var(--vg-ink));
  font-family: var(--vg-font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: start;
  position: sticky;
  top: 20px;
}

.hg-panel-collapsed-toggle svg { width: 16px; height: 16px; }

.hg-builder-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--vg-white);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--vg-text-muted);
  grid-column: 1 / -1;
}

.hg-builder-summary strong { color: var(--vg-ink); }

.hg-builder-summary-change {
  margin-left: auto;
}

.hg-builder-canvas-wrap {
  grid-column: 1;
  grid-row: 1;
  background: var(--vg-white);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  padding: 24px;
}

/* .hg-page-header-block also carries the real .uma-page-header class (see
   generator.js) so it renders in the builder exactly as it will in the
   generated output. Deliberately not setting border/padding/margin here —
   .uma-page-header already owns that box model; duplicating it would only
   fight the real styling. This adds a purely additive "editable" affordance
   instead. */
.hg-page-header-block:focus-within {
  outline: 2px solid var(--uma-hero-blue, var(--vg-ink));
  outline-offset: 2px;
}

/* .uma-page-header intentionally bleeds 16px past its container on each
   side to fill a real UMA page's own edge padding (see .uma-page). The
   builder canvas has no matching outer padding to bleed into, so neutralize
   just the width/margin bleed here — every other real UMA property
   (colors, border, radius, shadow) is untouched. */
#hg-builder-canvas .uma-page-header {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hg-page-header-block h1 {
  font-family: var(--vg-font-heading);
  color: var(--vg-ink);
  margin: 0 0 8px;
}

.hg-page-header-block p { margin: 0; color: var(--vg-text-muted); }

.hg-section {
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.hg-section.is-active-target {
  border-color: var(--uma-hero-blue, var(--vg-ink));
  box-shadow: 0 0 0 3px var(--uma-info-bg, rgba(26, 50, 99, 0.12));
}

.hg-section.is-active-target .hg-section-toolbar {
  background: var(--uma-info-bg, var(--vg-linen));
}

.hg-section.is-active-target .hg-section-toolbar-label::after {
  content: "Adding components here";
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--vg-radius-pill, 999px);
  background: var(--uma-hero-blue, var(--vg-ink));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* V3: nested container regions (Accordion item / Tab panel / Column) get
   the same active-target treatment, applied to whichever specific region
   card is targeted rather than only ever the enclosing section. */
.uma-accordion-item.is-active-target,
.uma-tab-panel.is-active-target,
.uma-column.is-active-target,
.hg-nested-drop-active {
  outline: 2px solid var(--uma-hero-blue, var(--vg-ink));
  outline-offset: 2px;
  background: var(--uma-info-bg, var(--vg-linen));
}

.hg-component-list {
  min-height: 12px;
}

.hg-component-list:empty {
  min-height: 56px;
  border: 1px dashed var(--vg-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hg-component-list:empty::before {
  content: "Drag a component here";
  color: var(--vg-text-muted);
  font-size: 0.82rem;
}

/* V3: .uma-column has no visual definition of its own in the real UMA
   output (it is only ever a grid-gap-separated block of text) — that stays
   true for the generated page. In the BUILDER specifically, a column is now
   also a drop-target container, so give it a light boundary here (scoped
   to the builder canvas only, not uma-output.css) purely so the region is
   visible while editing. */
#hg-builder-canvas .uma-column {
  border: 1px dashed var(--uma-medium-gray-1, var(--vg-border));
  border-radius: var(--uma-radius-md, 8px);
  padding: 10px;
}

.hg-section-toolbar,
.hg-component-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--vg-linen);
  border-bottom: 1px solid var(--vg-border);
  padding: 8px 12px;
  font-family: var(--vg-font-heading);
  font-size: 0.8rem;
}

.hg-section-toolbar-label,
.hg-component-toolbar-label {
  font-weight: 700;
  color: var(--vg-ink);
  flex: 1;
}

.hg-section-toolbar-actions,
.hg-component-toolbar-actions {
  display: flex;
  gap: 4px;
}

.hg-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--vg-border);
  background: var(--vg-white);
  cursor: pointer;
  color: var(--vg-ink);
  line-height: 1;
}

.hg-icon-btn:hover { background: var(--vg-dune); }
.hg-icon-btn--danger:hover { background: #fbdcdc; border-color: #d98a8a; }

.hg-section-content { padding: 20px; }

/* Compact, SECONDARY accessible-insertion control (V3 — instruction 7).
   Drag-and-drop into the section/region itself (or its empty-state drop
   area) is the primary desktop workflow now; this small control is the
   non-drag/keyboard/touch fallback, so it is deliberately understated
   rather than a large full-width call to action. Used identically for a
   section's own list and for every nested container region. */
.hg-inline-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px dashed var(--vg-border);
  border-radius: var(--vg-radius-pill);
  background: none;
  color: var(--vg-text-muted);
  font-family: var(--vg-font-heading);
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
}

.hg-inline-add-btn:hover { border-color: var(--vg-ink); color: var(--vg-ink); background: var(--vg-linen); }

.hg-component {
  border: 1px solid var(--vg-border);
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--vg-white);
}

.hg-component.is-dragging {
  opacity: 0.4;
}

.hg-component-body { padding: 16px; }

.hg-drag-handle {
  cursor: grab;
  color: var(--vg-text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
}

/* Shared drop-zone indicator: shown by builder.js while dragging either an
   existing component (reorder) or a new one from the library, at the exact
   spot it would land. */
.hg-drop-indicator {
  height: 44px;
  margin: 6px 0;
  border: 2px dashed var(--uma-hero-blue, var(--vg-ink));
  border-radius: 8px;
  background: var(--uma-info-bg, var(--vg-linen));
  position: relative;
}

.hg-drop-indicator::after {
  content: "Drop component here";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vg-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--uma-hero-blue, var(--vg-ink));
}

.hg-repeat-add-btn,
.hg-image-swap-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: var(--vg-radius-pill);
  border: 1px solid var(--vg-ink);
  background: var(--vg-white);
  color: var(--vg-ink);
  font-family: var(--vg-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.hg-remove-item-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #fbdcdc;
  color: #8a2c2c;
  cursor: pointer;
  line-height: 1;
  font-size: 0.8rem;
  z-index: 2;
}

.hg-image-swap-wrap {
  display: block;
  position: relative;
}

.hg-icon-swap-select {
  margin-top: 6px;
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--vg-border);
}

.hg-href-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.82rem;
}

.hg-href-edit-row label { color: var(--vg-text-muted); }

.hg-href-edit-input {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid var(--vg-border);
  border-radius: 6px;
  font-size: 0.82rem;
}

.hg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hg-add-section-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--vg-radius-md);
  border: 2px dashed var(--vg-ink);
  background: none;
  color: var(--vg-ink);
  font-family: var(--vg-font-heading);
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.hg-builder-footer-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.hg-builder-footer-actions .hg-btn-group { display: flex; gap: 12px; }

/* ---- Component picker side panel ---- */

#hg-component-panel {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--vg-white);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

#hg-component-panel.hg-flash {
  box-shadow: 0 0 0 3px rgba(29, 107, 166, 0.4);
}

.hg-component-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

#hg-component-panel h3 {
  font-family: var(--vg-font-heading);
  color: var(--vg-ink);
  margin: 0;
  font-size: 1rem;
}

.hg-panel-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--vg-border);
  background: var(--vg-white);
  color: var(--vg-ink);
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hg-panel-collapse-btn:hover { background: var(--vg-dune); }
.hg-panel-collapse-btn svg { width: 16px; height: 16px; }

.hg-panel-target-label {
  margin: 8px 0 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--vg-linen);
  font-size: 0.78rem;
  color: var(--vg-text-muted);
}

.hg-panel-target-label strong { color: var(--vg-ink); }

/* Tabs stay visible ("sticky") at the top of the panel while the component
   list beneath scrolls independently — switching categories never needs
   the whole page to scroll. */
#hg-component-panel-tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  background: var(--vg-white);
  border-bottom: 1px solid var(--vg-border);
  flex: 0 0 auto;
}

.hg-component-tab {
  padding: 6px 10px;
  border-radius: var(--vg-radius-pill);
  border: 1px solid var(--vg-border);
  background: var(--vg-white);
  font-size: 0.78rem;
  font-family: var(--vg-font-heading);
  font-weight: 600;
  color: var(--vg-ink);
  cursor: pointer;
}

.hg-component-tab[aria-selected="true"] {
  background: var(--vg-ink);
  color: var(--vg-white);
  border-color: var(--vg-ink);
}

#hg-component-panel-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.hg-component-group {
  display: grid;
  gap: 6px;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 2px;
}

/* BUG FIX: .hg-component-group's own `display: grid` has the same
   specificity as the browser's built-in `[hidden] { display: none }` rule,
   and author styles win ties — so every category group stayed visible
   regardless of the hidden attribute set by the tab-switching JS. This
   re-asserts hidden with higher specificity. */
.hg-component-group[hidden] {
  display: none;
}

.hg-component-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--vg-border);
  background: var(--vg-white);
  cursor: grab;
  font-size: 0.85rem;
  color: var(--vg-ink);
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.hg-component-picker-item:hover { background: var(--vg-linen); border-color: var(--vg-ink); }

.hg-component-picker-item.is-dragging { opacity: 0.4; }

.hg-component-picker-label { flex: 1; }

/* The grip handle is now the ONE interaction affordance on each row (the
   old competing "+" icon was removed — instruction 4) — sized up slightly
   and given a stronger resting color so it reads clearly as "grab me." */
.hg-component-picker-handle {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--vg-text-muted);
}

.hg-component-picker-item:hover .hg-component-picker-handle,
.hg-component-picker-item:focus-visible .hg-component-picker-handle {
  color: var(--uma-hero-blue, var(--vg-ink));
}

.hg-component-picker-handle svg { width: 18px; height: 18px; fill: currentColor; }

.hg-component-picker-item:active { cursor: grabbing; }

/* ==========================================================================
   MODALS (Preview + Generate)
   ========================================================================== */

.hg-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(20, 30, 50, 0.6);
  padding: 20px;
}

.hg-modal[hidden] { display: none; }

.hg-modal-dialog {
  background: var(--vg-white);
  border-radius: var(--vg-radius-lg);
  width: min(1100px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vg-border);
}

.hg-modal-header h2 {
  font-family: var(--vg-font-heading);
  color: var(--vg-ink);
  margin: 0;
  font-size: 1.1rem;
}

.hg-modal-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--vg-text-muted);
}

.hg-modal-body {
  padding: 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#hg-preview-frame {
  width: 100%;
  height: 70vh;
  border: none;
}

.hg-generate-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
}

.hg-generate-tabs button {
  padding: 8px 16px;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  font-family: var(--vg-font-heading);
  font-weight: 600;
  color: var(--vg-text-muted);
  cursor: pointer;
}

.hg-generate-tabs button[aria-selected="true"] {
  color: var(--vg-ink);
  border-bottom-color: var(--vg-ink);
}

.hg-generate-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--vg-border);
  flex-wrap: wrap;
  gap: 10px;
}

.hg-generate-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hg-line-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--vg-text-muted);
}

#hg-generate-preview-frame {
  width: 100%;
  height: 60vh;
  border: none;
}

#hg-generate-code-wrap {
  overflow: auto;
  background: #1c2333;
  max-height: 60vh;
}

.hg-code-lines {
  margin: 0;
  padding: 12px 16px 12px 16px;
  list-style: none;
  counter-reset: hg-line;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  color: #d8dee9;
}

.hg-code-lines li {
  white-space: pre-wrap;
  word-break: break-word;
  padding-left: 0;
}

#hg-generate-code-wrap.hg-show-line-numbers .hg-code-lines {
  counter-reset: hg-line;
}

#hg-generate-code-wrap.hg-show-line-numbers .hg-code-lines li {
  counter-increment: hg-line;
  padding-left: 3.2em;
  position: relative;
}

#hg-generate-code-wrap.hg-show-line-numbers .hg-code-lines li::before {
  content: counter(hg-line);
  position: absolute;
  left: 0;
  width: 2.6em;
  text-align: right;
  color: #6b7686;
}

.hg-copy-status {
  font-size: 0.82rem;
  color: var(--vg-text-muted);
}

#hg-copy-html-btn.is-copied {
  background: var(--vg-white);
  border-color: #2f9e5c;
  color: #2f9e5c;
}

#hg-copy-html-btn.is-error {
  border-color: #c0392b;
  color: #c0392b;
}

/* ==========================================================================
   UMA WORKSPACE VISUAL LANGUAGE
   Applies once the user has selected UMA: Creation Method, Create from
   Document, Manual Setup (layout/H2 selection), and the Builder all carry
   the .hg-uma-scope wrapper class. This file remains the single owner of
   these rules (generator application UI, per the architecture), but the
   VALUES below are the real UMA design tokens — the custom properties
   (--uma-legend-blue etc.) are defined by the genuine, unmodified copy at
   html-generator/uma/css/uma-output.css, loaded on this same page, so there
   is exactly one source of truth for what "UMA blue" means; nothing here
   redefines or approximates a UMA color. The Vocate shell (header/footer)
   and School Selection screen intentionally keep the Vocate tokens instead
   and are NOT inside .hg-uma-scope.
   ========================================================================== */

.hg-uma-scope {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: var(--uma-integrity-gray);
}

.hg-uma-scope .hg-eyebrow {
  color: var(--uma-hero-blue);
  font-family: Roboto, Arial, sans-serif;
  font-weight: 800;
}

.hg-uma-scope .hg-page-title,
.hg-uma-scope .hg-setup-step h2,
.hg-uma-scope #hg-component-panel h3 {
  font-family: Roboto, Arial, sans-serif;
  color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-page-subtitle,
.hg-uma-scope .hg-setup-step > p {
  color: var(--uma-integrity-gray);
}

.hg-uma-scope .hg-back-btn {
  color: var(--uma-legend-blue);
  border-color: var(--uma-medium-gray-1);
  font-family: Roboto, Arial, sans-serif;
}

.hg-uma-scope .hg-back-btn:hover {
  border-color: var(--uma-legend-blue);
  background: var(--uma-info-bg);
}

/* Creation method cards */
.hg-uma-scope .hg-method-card {
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
}

.hg-uma-scope .hg-method-card:hover,
.hg-uma-scope .hg-method-card:focus-visible {
  border-color: var(--uma-hero-blue);
}

.hg-uma-scope .hg-method-icon {
  background: var(--uma-info-bg);
  color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-method-card h3 {
  color: var(--uma-legend-blue);
  font-family: Roboto, Arial, sans-serif;
}

.hg-uma-scope .hg-method-list li::before {
  color: var(--uma-hero-blue);
}

/* Create from Document */
.hg-uma-scope .hg-step-block {
  border-radius: var(--uma-radius-lg);
}

.hg-uma-scope .hg-step-number {
  background: var(--uma-legend-blue);
}

.hg-uma-scope .hg-step-title {
  color: var(--uma-legend-blue);
  font-family: Roboto, Arial, sans-serif;
}

.hg-uma-scope .hg-doc-template-card.is-selected {
  border-color: var(--uma-hero-blue);
}

.hg-uma-scope .hg-doc-template-card h4 {
  color: var(--uma-legend-blue);
  font-family: Roboto, Arial, sans-serif;
}

.hg-uma-scope .hg-future-note {
  background: var(--uma-info-bg);
}

/* Buttons throughout the UMA workspace (not the Preview/Generate modal
   chrome, which stays generator-neutral — see the report). */
.hg-uma-scope .hg-btn {
  font-family: Roboto, Arial, sans-serif;
}

/* Primary UMA action (Continue, Generate HTML): Journey Green with dark
   Legend Blue text/border for accessible contrast on the bright green —
   white-on-green was rejected (item 9: do not assume white text on Journey
   Green has sufficient contrast). Hover deepens to solid Legend Blue. */
.hg-uma-scope .hg-btn-primary {
  background: var(--uma-journey-green);
  color: var(--uma-legend-blue);
  border: 2px solid var(--uma-journey-green);
}

.hg-uma-scope .hg-btn-primary:hover {
  background: var(--uma-legend-blue);
  color: var(--vg-white);
  border-color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-btn-primary:focus-visible {
  outline: 2px solid var(--uma-legend-blue);
  outline-offset: 2px;
}

.hg-uma-scope .hg-btn-primary:disabled,
.hg-uma-scope .hg-btn-primary:disabled:hover {
  background: var(--uma-journey-green);
  color: var(--uma-legend-blue);
  border-color: var(--uma-journey-green);
}

/* Secondary/structural UMA actions: Legend Blue outline — a clear step
   below the green primary action, still visually confident. */
.hg-uma-scope .hg-btn-outline {
  color: var(--uma-legend-blue);
  border-color: var(--uma-medium-gray-1);
}

.hg-uma-scope .hg-btn-outline:hover {
  border-color: var(--uma-legend-blue);
  background: var(--uma-info-bg);
}

/* Manual Setup: layout + H2 choice cards */
.hg-uma-scope .hg-choice-card.is-selected {
  border-color: var(--uma-hero-blue);
}

.hg-uma-scope .hg-choice-title {
  color: var(--uma-legend-blue);
  font-family: Roboto, Arial, sans-serif;
}

.hg-uma-scope .hg-choice-preview {
  background: var(--uma-info-bg);
}

.hg-uma-scope .hg-choice-preview .hg-bar-wide {
  background: var(--uma-legend-blue);
}

.hg-uma-scope [data-layout-choice="kicker"] .hg-choice-preview::before,
.hg-uma-scope [data-layout-choice="kicker-rail"] .hg-choice-preview::before {
  background: var(--uma-journey-green);
}

.hg-uma-scope [data-layout-choice="rail"] .hg-choice-preview::after,
.hg-uma-scope [data-layout-choice="kicker-rail"] .hg-choice-preview::after {
  background-image: radial-gradient(circle, var(--uma-legend-blue) 1.5px, transparent 1.5px);
}

.hg-uma-scope .hg-review-preview {
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
}

.hg-uma-scope .hg-review-preview-banner {
  background: linear-gradient(135deg, var(--uma-legend-blue) 0%, var(--uma-hero-blue) 100%);
}

/* Builder */
.hg-uma-scope .hg-builder-summary {
  background: var(--uma-info-bg);
}

.hg-uma-scope .hg-builder-summary strong {
  color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-add-section-btn {
  border-color: var(--uma-hero-blue);
  color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-add-section-btn:hover {
  background: var(--uma-info-bg);
}

.hg-uma-scope .hg-page-header-block {
  border-color: var(--uma-medium-gray-1);
}

.hg-uma-scope .hg-section-toolbar,
.hg-uma-scope .hg-component-toolbar {
  background: var(--uma-gracious-gray);
}

.hg-uma-scope .hg-section-toolbar-label,
.hg-uma-scope .hg-component-toolbar-label {
  color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-icon-btn {
  color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-icon-btn:hover {
  background: var(--uma-info-bg);
}

.hg-uma-scope #hg-component-panel {
  border-radius: var(--uma-radius-lg);
}

.hg-uma-scope .hg-component-tab[aria-selected="true"] {
  background: var(--uma-legend-blue);
  border-color: var(--uma-legend-blue);
}

.hg-uma-scope .hg-component-picker-item:hover {
  background: var(--uma-info-bg);
  border-color: var(--uma-hero-blue);
}

.hg-uma-scope .hg-repeat-add-btn,
.hg-uma-scope .hg-image-swap-btn,
.hg-uma-scope .hg-inline-add-btn:hover {
  border-color: var(--uma-hero-blue);
  color: var(--uma-legend-blue);
}

/* ==========================================================================
   RESPONSIVE — additional screens
   ========================================================================== */

@media (max-width: 960px) {
  .hg-method-grid { grid-template-columns: 1fr; }
  .hg-doc-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hg-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Collapse is a desktop space-saving feature (component 11 explicitly
     scopes it to desktop). Below 960px the layout stacks to one column and
     the library is always shown, in normal flow, beneath the canvas. */
  .hg-builder-layout,
  .hg-builder-layout[data-panel-state="collapsed"] {
    grid-template-columns: 1fr;
  }
  .hg-builder-canvas-wrap,
  #hg-component-panel {
    grid-column: 1;
  }
  .hg-builder-canvas-wrap { grid-row: 1; }
  #hg-component-panel {
    grid-row: 2;
    position: static;
    max-height: none;
    margin-top: 20px;
  }
  .hg-builder-layout[data-panel-state="collapsed"] #hg-component-panel {
    display: flex;
  }
  .hg-panel-collapsed-toggle { display: none !important; }
  .hg-component-group { max-height: 320px; }
}

@media (max-width: 560px) {
  .hg-doc-template-grid { grid-template-columns: 1fr; }
  .hg-choice-grid,
  .hg-choice-grid--two { grid-template-columns: 1fr; }
  .hg-step-desc,
  .hg-dropzone,
  .hg-future-note,
  .hg-doc-status { margin-left: 0; }
  .hg-setup-actions { flex-direction: column-reverse; }
  .hg-builder-footer-actions { flex-direction: column; }
}
