/*
 * ============================================================
 * FuzzyCode Editor Compatibility Bridge  |  fc-editor-compat.css
 * ============================================================
 * Styles every class name that script.js creates at runtime.
 * Each rule documents which script.js function creates/uses it.
 * All values use --fc-* design tokens from fc-design-system-base.css.
 *
 * This file exists so index_v2.html can avoid loading style.css
 * while keeping script.js completely unchanged. As script.js is
 * updated to use design-system classes, rules can be removed.
 * ============================================================
 */


/* ── 1. Tab Navigation ─────────────────────────────────────
 *    openTab() — sets className via string replacement
 *    Tab buttons use class="tab-button", content uses class="tab-content"
 */

.fc-v2 .tab-content {
  display: none;
  /* 8px inset so content doesn't abut the glass overlay edges.
     Matches compact mode's padding so default and compact feel like
     the same design language at different scales. */
  padding: var(--fc-space-2);
  /* openTab() sets display:flex via inline style.
     flex-direction: column ensures content stacks vertically.
     flex: 1 + height: 100% lets children use the definite size. */
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-self: stretch;
  overflow-y: auto;
}

.fc-v2 button {
    text-transform: uppercase;
}

.fc-v2 .tab-button {
  /* Tall-narrow tabs (10px vertical, 5px horizontal) match legacy's
     padding: 5px + padding-top/bottom: 10px pattern — tabs dominate
     the workshop header, which keeps them hierarchically above inner
     dropdowns/segments. Gap 5px matches legacy's `button i { margin-
     right: 5px }` between icon and text — keeps total tab width close
     to legacy so promo bar doesn't clip the last tab.
     Text is --fc-white (not --fc-cream) for crisp contrast on brown —
     cream-on-brown reads as "blurry" vs legacy's white. */
  padding: var(--fc-space-2-5) var(--fc-space-1);
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-base);
  font-weight: 500;
  background-color: var(--fc-brown);
  color: var(--fc-cream-light);
  border: 1px var(--fc-navy) solid;
  cursor: pointer;
  transition: background-color var(--fc-ease-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--fc-space-1-5);
  /* Prevent tabs from being shrunk by flex parent — otherwise
     "Save/Load/Share" gets clipped on narrow viewports. */
  flex-shrink: 0;
  white-space: nowrap;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-top: 2px var(--fc-navy) solid;
  text-transform: uppercase;
  padding: 10px;
}

.fc-v2 .tab-button:hover {
  /* Warm orange-hover — matches legacy and sits naturally between
     default brown and active cream. Reads as "about to activate":
     brown → orange-hover (hovering) → cream (clicked/active).
     The cream-light text still contrasts well on the orange. */
  background-color: var(--fc-orange-hover);
}

/* openTab() sets className = "tab-button active" via string concat */
.fc-v2 .tab-button.active {
  background-color: var(--fc-cream);
  color: var(--fc-brown);
}


/* ── 2. Suggestion Cards ───────────────────────────────────
 *    displayActionSuggestions() / showSuggestionsInPanel()
 *    Creates cards inside #suggestionsList
 */

.fc-v2 .suggestion-card {
  background: var(--fc-white);
  border: 1.5px solid var(--fc-gray-200);
  border-radius: var(--fc-radius-lg);
  /* No padding here — .suggestion-card-desc owns its own padding,
     and .suggestion-card-btn is full-width at the bottom edge. */
  padding: 0;
  min-width: 200px;
  max-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* overflow: hidden clips long descriptions inside the card —
     without it, text flows out the bottom of the card in compact
     mode where card heights are short. Legacy style.css does the
     same. The fade-mask on .suggestion-card-desc visually hints
     "there's more." */
  overflow: hidden;
  box-shadow: var(--fc-shadow-sm);
  transition: box-shadow var(--fc-ease-base), transform var(--fc-ease-base), z-index 0s;
  position: relative;
}

.fc-v2 .suggestion-card:hover {
  box-shadow: var(--fc-shadow-lg);
  transform: translateY(-2px);
}

/* On hover: drop the fade mask so the first line of otherwise-hidden
   copy is easier to read. The card itself still clips — the full
   description is surfaced via a native browser tooltip (title attr
   set by script.js). A CSS-only in-place expansion kept fighting
   the surrounding flex-stretch layout; native title is more reliable
   and accessible (screen readers announce it). */
.fc-v2 .suggestion-card:hover .suggestion-card-desc {
  -webkit-mask-image: none;
          mask-image: none;
}

.fc-v2 .suggestion-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.fc-v2 .suggestion-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--fc-space-2);
  flex: 1;
  /* min-height: 0 lets a flex item shrink below its content height
     so overflow: hidden on the parent card actually clips.
     Without it, flex children default to min-content sizing which
     defeats the clip. */
  min-height: 0;
  padding: var(--fc-space-3) var(--fc-space-3) 0 var(--fc-space-3);
}

.fc-v2 .suggestion-card-desc {
  font-family: var(--fc-font-body);
  font-size: var(--fc-text-sm);
  color: var(--fc-gray-700);
  line-height: var(--fc-leading-normal);
  flex: 1;
  overflow: hidden;
  min-height: 0;
  /* Fade out text that overflows — same gradient-mask recipe as
     legacy .suggestion-card-desc so truncated copy hints at more
     below instead of hard-clipping mid-word. */
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  transition: mask-image var(--fc-ease-base), background var(--fc-ease-base);
}

.fc-v2 .suggestion-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fc-space-2);
  padding: var(--fc-space-2) var(--fc-space-4);
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-sm);
  font-weight: 400;
  background-color: var(--fc-navy);
  color: var(--fc-white);
  border: none;
  /* Full-width bottom-of-card button with bottom corners rounded
     flush to the card. Matches legacy .suggestion-card-btn. The
     flex-shrink: 0 ensures the button never loses height when the
     description is long. */
  border-radius: 0 0 var(--fc-radius-lg) var(--fc-radius-lg);
  cursor: pointer;
  transition: all var(--fc-ease-base);
  white-space: nowrap;
  box-shadow: var(--fc-shadow-btn);
  width: 100%;
  flex-shrink: 0;
}

.fc-v2 .suggestion-card-btn:hover {
  background-color: var(--fc-navy-hover);
  transform: translateY(-1px);
  box-shadow: var(--fc-shadow-btn-hover);
}

.fc-v2 .suggestion-card-btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.fc-v2 .suggestion-card-customize {
  position: absolute;
  top: var(--fc-space-2);
  right: var(--fc-space-2);
  background: none;
  border: none;
  color: var(--fc-gray-400);
  cursor: pointer;
  padding: var(--fc-space-1);
  transition: color var(--fc-ease-fast);
}

.fc-v2 .suggestion-card-customize:hover {
  color: var(--fc-orange);
}


/* ── 3. Suggestion Panel & Tabs ────────────────────────────
 *    switchSuggestionTab() — toggles .active on .suggest-tab
 *    clearSuggestionsCache() — removes .active, .visible, .suggestion-mode
 */

.fc-v2 .suggest-tabs {
  display: flex;
  align-items: center;
  gap: var(--fc-space-2);
  margin-bottom: var(--fc-space-1);
}

.fc-v2 .suggest-tabs-group {
  display: inline-flex;
  background: linear-gradient(180deg, var(--fc-tan) 0%, var(--fc-segment-group) 100%);
  border-radius: var(--fc-radius-xl);
  padding: 3px; /* component-intrinsic: segmented control pill inset */
  box-shadow: var(--fc-shadow-sm), inset 0 1px 0 var(--fc-white-a30);
  border: 2px solid var(--fc-segment-border);
}

.fc-v2 .suggest-tab {
  /* Matches legacy padding/size/weight: 12px bold inside a segment
     control is visibly smaller than the 16px tab-button above it,
     preserving tab > segment hierarchy. */
  padding: var(--fc-space-2) var(--fc-space-3-5);
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-xs);
  font-weight: 600;
  background: linear-gradient(180deg, var(--fc-cream-light) 0%, var(--fc-cream) 100%);
  color: var(--fc-segment-text);
  border: none;
  cursor: pointer;
  transition: all var(--fc-ease-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--fc-space-1);
  box-shadow: var(--fc-shadow-xs), inset 0 1px 0 var(--fc-white-a80);
}

.fc-v2 .suggest-tab:first-child {
  border-radius: var(--fc-radius-xl) 0 0 var(--fc-radius-xl);
}

.fc-v2 .suggest-tab:last-child {
  border-radius: 0 var(--fc-radius-xl) var(--fc-radius-xl) 0;
}

/* Vertical divider between adjacent segments — matches legacy's
   #c9a882 lines. Essential when no segment is active by default. */
.fc-v2 .suggest-tab + .suggest-tab {
  border-left: 1px solid var(--fc-segment-divider);
}

.fc-v2 .suggest-tab:hover {
  background: linear-gradient(180deg, var(--fc-white) 0%, var(--fc-cream-light) 100%);
}

/* switchSuggestionTab() adds .active */
.fc-v2 .suggest-tab.active {
  background: linear-gradient(180deg, var(--fc-segment-active) 0%, var(--fc-segment-active-end) 100%);
  color: var(--fc-white);
  box-shadow: inset 0 2px 4px var(--fc-black-a30), inset 0 0 0 1px var(--fc-black-a12);
}

.fc-v2 .suggest-tab.active:hover {
  background: linear-gradient(180deg, var(--fc-brown-hover) 0%, var(--fc-brown-light) 100%);
}

/* Old toggle button — hidden, replaced by suggest-back-btn in suggestion mode */
.fc-v2 .suggest-toggle {
  display: none;
}

/* Hidden by default; shown via #Update.suggestion-mode rule below.
   Uses the segment tan/chrome color family, not brown/active-tab family —
   back button is a chrome control, distinct from primary action buttons. */
.fc-v2 .suggest-back-btn {
  margin-left: auto;
  padding: var(--fc-space-2) var(--fc-space-3-5);
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-sm);
  font-weight: 400;
  background: var(--fc-segment-border);
  color: var(--fc-white);
  border: 2px solid var(--fc-segment-border-strong);
  border-radius: var(--fc-radius-xl);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: var(--fc-space-1);
  transition: all var(--fc-ease-fast);
}

.fc-v2 .suggest-back-btn:hover {
  background: var(--fc-segment-border-hover);
}

.fc-v2 .suggest-back-btn:active {
  background: var(--fc-segment-border-strong);
}

/* switchSuggestionTab() adds .visible to panel */
.fc-v2 .suggestions-panel {
  display: none;
  margin-bottom: var(--fc-space-1);
}

.fc-v2 .suggestions-panel.visible {
  display: block;
}

.fc-v2 .suggestions-scroll-wrapper {
  display: flex;
  align-items: stretch;
  gap: var(--fc-space-2);
  position: relative;
}

.fc-v2 .suggestions-list {
  display: flex;
  gap: var(--fc-space-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--fc-space-2) 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--fc-gray-300) transparent;
}

/* Empty state text when no suggestions are loaded */
.fc-v2 .suggestions-list:empty::before {
  content: "Pick a category above to see ideas!";
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-sm);
  color: var(--fc-gray-500);
  text-align: center;
  padding: var(--fc-space-5);
  white-space: nowrap;
  align-self: center;
  font-style: italic;
}

/* Circular white icon-only buttons — matches legacy style.css conventions
   for scroll/next controls. Circle shape signals "icon-only utility."
   Neutral gray icon keeps the control subtle so cards stay the focus. */
.fc-v2 .suggestions-scroll-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--fc-white);
  border: 1px solid var(--fc-gray-300);
  border-radius: var(--fc-radius-full);
  color: var(--fc-gray-500);
  box-shadow: var(--fc-shadow-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--fc-ease-fast);
  flex-shrink: 0;
}

/* updateSuggestionsScrollButtons() adds .visible */
.fc-v2 .suggestions-scroll-btn.visible {
  display: flex;
}

.fc-v2 .suggestions-scroll-btn:hover {
  background: var(--fc-gray-100);
}

.fc-v2 .suggestions-scroll-btn:active {
  background: var(--fc-gray-200);
}

/* switchSuggestionTab() adds .suggestion-mode to Update tab */
.fc-v2 #Update.suggestion-mode .update-default-ui {
  display: none !important;
}

/* Hide suggestions panel when NOT in suggestion mode */
.fc-v2 #Update:not(.suggestion-mode) .suggestions-panel {
  display: none !important;
}

/* Show back button in suggestion mode */
.fc-v2 #Update.suggestion-mode .suggest-back-btn {
  display: flex;
}

/* Expand suggestions panel to fill when in suggestion mode */
.fc-v2 #Update.suggestion-mode .suggestions-panel {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  background: transparent;
  margin-top: 2px;
}

.fc-v2 #Update.suggestion-mode .main-buttons-group {
  flex: 1;
  min-height: 0;
}

.fc-v2 #Update.suggestion-mode .suggestions-scroll-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.fc-v2 #Update.suggestion-mode .suggestions-list {
  align-items: stretch;
}


/* ── 4. Loading Dots ───────────────────────────────────────
 *    addLoadingDots() — creates .loading-dot-container with .loading-dot children
 */

@keyframes v2-dotBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-8px); }
}

/* Absolute-positioned dot container sits in the button's right edge so the
   button text never reflows when entering/leaving loading state. Matches
   legacy style.css behavior (dots at right: 0.5em of the .button-loading). */
.fc-v2 .loading-dot-container {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: var(--fc-space-1-5);
  align-items: center;
  pointer-events: none;
}

.fc-v2 .loading-dot {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: var(--fc-radius-full);
  animation: v2-dotBounce 1.4s ease-in-out infinite;
}

.fc-v2 .loading-dot:nth-child(2) { animation-delay: 0.2s; }
.fc-v2 .loading-dot:nth-child(3) { animation-delay: 0.4s; }


/* ── 5. Button States ──────────────────────────────────────
 *    updateButtonProgress() — toggles .button-loading / .button-normal
 */

/* Positioning context for the absolute .loading-dot-container above, plus
   nowrap/overflow: visible so the text layout doesn't reflow when dots appear
   in the button's right edge. Matches legacy style.css .button-loading. */
.fc-v2 .button-loading {
  position: relative;
  opacity: 0.9;
  filter: brightness(0.8);
  cursor: not-allowed !important;
  pointer-events: none !important;
  white-space: nowrap;
  overflow: visible;
}

/* Reserve wave-dot space on native buttons so text doesn't sit under
   the dots. !important is needed because rules like
   `.fc-v2 #sendButton { padding: ... }` have ID-level specificity
   (0,1,1,1) that would otherwise beat this class-level rule (0,0,2,1).
   Without !important, the button stays at its base padding and the
   loading dots have no space — they render clipped off the right
   edge. Legacy style.css uses the same !important for the same
   reason. */
.fc-v2 button.button-loading {
  padding-right: 3.2em !important;
  opacity: 0.9 !important;
  filter: brightness(0.8) !important;
  transform: none !important;
}

.fc-v2 .button-normal {
  opacity: 1;
  cursor: pointer;
}


/* ── 6. Version Dropdown ───────────────────────────────────
 *    updateVersionDisplay() — creates dropdown items
 *    Click handler toggles .show on #versionDropdown
 */

.fc-v2 .version-container {
  position: relative;
  display: inline-block;
}

.fc-v2 .version-button {
  display: inline-flex;
  align-items: center;
  gap: var(--fc-space-1);
  padding: 3px var(--fc-space-1-5); /* 3px vertical: component-intrinsic compact button */
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-xs);
  font-weight: 400;
  background: var(--fc-orange);
  color: var(--fc-white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--fc-ease-fast);
  white-space: nowrap;
}

.fc-v2 .version-button:hover {
  background: var(--fc-cream);
}

.fc-v2 .version-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--fc-space-1));
  right: 0;
  min-width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--fc-white);
  border: 1px solid var(--fc-gray-200);
  border-radius: var(--fc-radius-md);
  box-shadow: var(--fc-shadow-xl);
  z-index: var(--fc-z-dropdown);
  padding: var(--fc-space-2) 0;
  /* Left padding gives room for the timeline track dots (positioned at left:-6px) */
  padding-left: var(--fc-space-3);
}

/* Click handler toggles .show */
.fc-v2 .version-dropdown.show {
  display: block;
}

.fc-v2 .version-dropdown a {
  /* JS inline styles set display:flex + justify-content/align-items/padding.
     Do NOT set flex-direction here — JS expects default row layout. */
  text-decoration: none;
  color: var(--fc-gray-800);
  font-size: var(--fc-text-sm);
  transition: background-color var(--fc-ease-fast);
  cursor: pointer;
  border-radius: var(--fc-radius-sm);
}

.fc-v2 .version-dropdown a:hover {
  background-color: var(--fc-cream-light);
}

/* updateVersionDisplay() adds .selected to current version */
.fc-v2 .version-dropdown a.selected {
  background-color: var(--fc-cream);
  font-weight: 600;
}

.fc-v2 .version-number {
  font-family: var(--fc-font-brand);
  font-weight: 600;
  color: var(--fc-brown);
}

.fc-v2 .version-summary {
  font-size: var(--fc-text-xs);
  color: var(--fc-gray-500);
}

/* Version display span — orange pill in the toolbar */
.fc-v2 span#versionDisplay {
  font-size: var(--fc-text-xs);
  color: var(--fc-white);
  background-color: var(--fc-orange);
  margin-right: var(--fc-space-0-5);
  padding: 3px;
}


/* ── 7. Fullscreen Toggle ──────────────────────────────────
 *    toggleFullscreen() — adds .iframe-container-forced-fullscreen
 */

.fc-v2 .iframe-container.iframe-container-forced-fullscreen {
  position: fixed;
  inset: 0;
  z-index: var(--fc-z-fullscreen);
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  width: 100dvw;
  border-radius: 0;
  border: none;
  margin: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
}

html.fc-iframe-forced-fullscreen-active,
body.fc-iframe-forced-fullscreen-active,
html.fc-mobile-site-fullscreen-active,
body.fc-mobile-site-fullscreen-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}


/* ── 8. Modal (screenshot, ask) ────────────────────────────
 *    Script uses .modal and .modal-content for screenshot & ask modals
 */

.fc-v2 .modal {
  display: none;
  position: fixed;
  z-index: var(--fc-z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--fc-navy-a50);
  backdrop-filter: blur(2px);
}

.fc-v2 .modal-content {
  background-color: var(--fc-white);
  margin: 10% auto;
  padding: var(--fc-space-6);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-2xl);
  max-width: 600px;
  width: 90%;
  position: relative;
}

.fc-v2 .modal .close {
  position: absolute;
  top: var(--fc-space-3);
  right: var(--fc-space-4);
  color: var(--fc-gray-500);
  font-size: var(--fc-text-2xl);
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: color var(--fc-ease-fast);
}

.fc-v2 .modal .close:hover {
  color: var(--fc-gray-800);
}

/* Screenshot modal — wider than default */
.fc-v2 #screenshotModal .modal-content {
  max-width: 80%;
  width: 80%;
}

/* Ask modal (admin) */
.fc-v2 .ask-modal-content {
  max-width: 700px;
}

/* Ask modal — #askModal specific overrides for wider themed layout */
.fc-v2 #askModal .ask-modal-content {
  width: min(900px, 90vw);
  max-width: min(900px, 90vw);
  background: linear-gradient(135deg, var(--fc-gray-50), var(--fc-cream-light));
  border: 1px solid var(--fc-orange-a15);
  box-shadow: 0 24px 48px rgba(104, 60, 6, 0.15);
  padding: var(--fc-space-6) var(--fc-space-8);
  margin: 6vh auto;
}

.fc-v2 #askModal .ask-modal-content h3 {
  font-family: var(--fc-font-brand);
  color: var(--fc-gray-800);
  font-size: var(--fc-text-xl);
  display: flex;
  align-items: center;
  gap: var(--fc-space-2);
  padding-bottom: var(--fc-space-3);
  border-bottom: 2px solid var(--fc-cream);
  margin-bottom: var(--fc-space-4);
}

.fc-v2 .ask-reasoning-container {
  margin-bottom: var(--fc-space-4);
}

.fc-v2 .ask-reasoning-summary {
  font-family: var(--fc-font-brand);
  font-weight: 600;
  color: var(--fc-brown);
  cursor: pointer;
}

.fc-v2 .ask-reasoning {
  background: var(--fc-gray-900);
  color: var(--fc-code-text);
  padding: var(--fc-space-4);
  border-radius: var(--fc-radius-md);
  font-family: var(--fc-font-mono);
  font-size: var(--fc-text-sm);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.fc-v2 .ask-markdown {
  font-family: var(--fc-font-body);
  line-height: var(--fc-leading-normal);
  color: var(--fc-gray-800);
}

/* ── Ask Modal Markdown Body (.markdown-body inside #askModal) ── */
.fc-v2 #askModal .markdown-body {
  font-family: var(--fc-font-body);
  font-size: 15px; /* component-intrinsic: between --fc-text-sm and --fc-text-base */
  line-height: 1.6;
  color: var(--fc-gray-700);
  word-break: break-word;
}

.fc-v2 #askModal .markdown-body h1,
.fc-v2 #askModal .markdown-body h2,
.fc-v2 #askModal .markdown-body h3,
.fc-v2 #askModal .markdown-body h4 {
  font-family: var(--fc-font-brand);
  color: var(--fc-gray-800);
  margin: 1.5em 0 0.5em;
  font-weight: 600;
}

.fc-v2 #askModal .markdown-body h1:first-child,
.fc-v2 #askModal .markdown-body h2:first-child,
.fc-v2 #askModal .markdown-body h3:first-child {
  margin-top: 0;
}

.fc-v2 #askModal .markdown-body h1 { font-size: var(--fc-text-2xl); }
.fc-v2 #askModal .markdown-body h2 { font-size: var(--fc-text-xl); }
.fc-v2 #askModal .markdown-body h3 { font-size: var(--fc-text-lg); }

.fc-v2 #askModal .markdown-body p {
  margin-bottom: 1em;
}

.fc-v2 #askModal .markdown-body ul,
.fc-v2 #askModal .markdown-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.fc-v2 #askModal .markdown-body li {
  margin-bottom: 0.4em;
}

.fc-v2 #askModal .markdown-body li::marker {
  color: var(--fc-brown);
}

.fc-v2 #askModal .markdown-body code {
  font-family: var(--fc-font-mono);
  font-size: 0.9em;
  background: linear-gradient(135deg, var(--fc-cream-light), var(--fc-cream));
  color: var(--fc-brown);
  padding: 2px 6px;
  border-radius: var(--fc-radius-sm);
  border: 1px solid var(--fc-orange-a15);
}

.fc-v2 #askModal .markdown-body pre {
  background: linear-gradient(135deg, var(--fc-gray-900), var(--fc-gray-800));
  padding: var(--fc-space-4) var(--fc-space-5);
  border-radius: var(--fc-radius-md);
  border: 1px solid var(--fc-black-a20);
  overflow: auto;
  margin: 1em 0;
  box-shadow: inset 0 2px 8px var(--fc-black-a15);
}

.fc-v2 #askModal .markdown-body pre code {
  font-family: var(--fc-font-mono);
  font-size: 0.85em;
  background: transparent;
  color: var(--fc-cream);
  padding: 0;
  border: none;
}

.fc-v2 #askModal .markdown-body blockquote {
  border-left: 4px solid var(--fc-cream);
  background: rgba(237, 217, 192, 0.2);
  padding: var(--fc-space-3) var(--fc-space-5);
  margin: 1em 0;
  border-radius: 0 var(--fc-radius-md) var(--fc-radius-md) 0;
  color: var(--fc-gray-600);
  font-style: italic;
}

.fc-v2 #askModal .markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}

.fc-v2 #askModal .markdown-body th,
.fc-v2 #askModal .markdown-body td {
  border: 1px solid var(--fc-cream);
  padding: var(--fc-space-2-5) var(--fc-space-3-5);
  text-align: left;
}

.fc-v2 #askModal .markdown-body th {
  background: linear-gradient(135deg, var(--fc-cream-light), var(--fc-cream));
  font-weight: 600;
  color: var(--fc-gray-800);
}

.fc-v2 #askModal .markdown-body tr:nth-child(even) {
  background: rgba(237, 217, 192, 0.1);
}

.fc-v2 #askModal .markdown-body a {
  color: var(--fc-brown);
  text-decoration: underline;
  text-decoration-color: rgba(104, 60, 6, 0.3);
}

.fc-v2 #askModal .markdown-body a:hover {
  text-decoration-color: var(--fc-brown);
}

.fc-v2 #askModal .markdown-body hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fc-cream), transparent);
  margin: 2em 0;
}

.fc-v2 .ask-modal-actions {
  display: flex;
  gap: var(--fc-space-3);
  margin-top: var(--fc-space-4);
  padding-top: var(--fc-space-4);
  border-top: 1px solid var(--fc-gray-200);
}


/* ── 9. Token Indicator ────────────────────────────────────
 *    Token system — .token-indicator with tier variants
 *    (Tier classes set by script.js based on token count)
 */

.fc-v2 .token-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 25px;
  padding: 0 var(--fc-space-2-5);
  border-radius: 12px; /* component-intrinsic: pill shape relative to 25px height */
  border: 1px solid var(--fc-black-a12);
  position: relative;
  overflow: hidden;
  cursor: default;
  box-shadow: inset 0 1px 3px var(--fc-white-a30), 0 1px 2px var(--fc-black-a08);
  transition: background 0.4s ease, transform 0.15s ease;
}

/* Grain texture overlay */
.fc-v2 .token-indicator::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.25;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.fc-v2 .token-indicator:hover {
  transform: scale(1.03);
}

.fc-v2 .token-indicator.tier-simple {
  background: var(--fc-tier-simple);
}

.fc-v2 .token-indicator.tier-moderate {
  background: var(--fc-tier-moderate);
}

.fc-v2 .token-indicator.tier-growing {
  background: var(--fc-tier-growing);
}

.fc-v2 .token-indicator.tier-complex {
  background: var(--fc-tier-complex);
}

.fc-v2 .token-fill {
  position: absolute;
  inset: 0;
}

.fc-v2 .token-label {
  position: relative;
  color: var(--fc-white);
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-xs);
  font-weight: 600;
  text-shadow: 0 1px 1px var(--fc-black-a20);
  white-space: nowrap;
  letter-spacing: 0.02em;
}


/* ── 10. Subscription Modal ────────────────────────────────
 *    showSubscriptionRequiredModal() — creates full overlay modal
 */

.fc-v2 .subscription-modal {
  position: fixed;
  inset: 0;
  z-index: var(--fc-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-v2 .subscription-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--fc-navy-a60);
  backdrop-filter: blur(4px);
}

.fc-v2 .subscription-modal .modal-content,
.fc-v2 .subscription-modal .subscription-modal-content {
  position: relative;
  background: var(--fc-white);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-2xl);
  padding: var(--fc-space-8);
  max-width: 520px;
  width: 90%;
  z-index: 1;
}

.fc-v2 .subscription-modal .modal-subscription-features {
  margin: var(--fc-space-4) 0;
  padding-left: var(--fc-space-5);
}

.fc-v2 .subscription-modal .modal-buttons {
  display: flex;
  gap: var(--fc-space-3);
  margin-top: var(--fc-space-6);
}

.fc-v2 .subscription-modal .upgrade-btn,
.fc-v2 .subscription-modal .primary-btn {
  flex: 1;
  padding: var(--fc-space-3) var(--fc-space-6);
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-base);
  font-weight: 500;
  background: var(--fc-orange);
  color: var(--fc-white);
  border: none;
  border-radius: var(--fc-radius-sm);
  cursor: pointer;
  transition: all var(--fc-ease-base);
}

.fc-v2 .subscription-modal .upgrade-btn:hover {
  background: var(--fc-orange-hover);
}

.fc-v2 .subscription-modal .cancel-btn,
.fc-v2 .subscription-modal .secondary-btn {
  flex: 1;
  padding: var(--fc-space-3) var(--fc-space-6);
  font-family: var(--fc-font-brand);
  font-size: var(--fc-text-base);
  font-weight: 400;
  background: transparent;
  color: var(--fc-gray-600);
  border: 1.5px solid var(--fc-gray-300);
  border-radius: var(--fc-radius-sm);
  cursor: pointer;
  transition: all var(--fc-ease-base);
}

.fc-v2 .subscription-modal .cancel-btn:hover {
  background: var(--fc-gray-100);
}

.fc-v2 .subscription-modal .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--fc-gray-200);
  border-top-color: var(--fc-orange);
  border-radius: var(--fc-radius-full);
  animation: fc-spin 0.8s linear infinite;
}


/* ── 11. Pages Promo Bar ───────────────────────────────────
 *    script.js toggles .show / .minimized on #pagesPromoBar.
 *    Positioned at top, slides down via top transition.
 *    Close button toggles between minimized (thin strip) and expanded.
 */

.fc-v2 .pages-promo-bar {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--fc-orange), var(--fc-orange-light));
  color: var(--fc-white);
  padding: var(--fc-space-2-5) var(--fc-space-5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--fc-z-sticky);
  box-shadow: 0 var(--fc-space-1) var(--fc-space-2) var(--fc-black-a20);
  transition: top 0.5s ease-in-out, opacity 0.3s ease, background 0.3s ease,
              box-shadow 0.3s ease, transform 0.3s ease;
  font-family: var(--fc-font-brand);
  margin: 0 auto;
  width: auto;
  max-width: 80%;
  border-radius: 0 0 var(--fc-radius-lg) var(--fc-radius-lg);
  backdrop-filter: blur(5px);
}

/* Shown: slide down into view */
.fc-v2 .pages-promo-bar.show {
  top: 0;
  transition: all 0.5s ease-in-out;
  border: 1px solid var(--fc-white-a30);
  box-shadow: 0 8px 15px var(--fc-black-a30), 0 2px 5px var(--fc-black-a20);
  transform: translateX(-50%) translateY(2px);
}

/* Minimized: thin strip with centered chevron, content hidden */
.fc-v2 .pages-promo-bar.minimized {
  height: 16px;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  opacity: 0.7;
  background: linear-gradient(90deg, var(--fc-orange-a60), var(--fc-orange-light-a60));
  box-shadow: 0 2px 4px var(--fc-black-a12);
}

.fc-v2 .pages-promo-bar.minimized .promo-content {
  visibility: hidden;
}

.fc-v2 .pages-promo-bar.minimized .close-promo {
  transform: scale(0.7);
  margin: 0;
  opacity: 0.9;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}

/* Icon swaps: chevron-up when expanded, chevron-down when minimized */
.fc-v2 .pages-promo-bar.minimized .close-promo i:before {
  content: "\f078"; /* fa-chevron-down */
}

.fc-v2 .pages-promo-bar:not(.minimized) .close-promo i:before {
  content: "\f077"; /* fa-chevron-up */
}

.fc-v2 .promo-content {
  display: flex;
  align-items: center;
  gap: var(--fc-space-4);
  flex-wrap: wrap;
  justify-content: center;
  transition: all var(--fc-ease-base);
  background-color: var(--fc-black-a12);
  border-radius: var(--fc-space-2-5);
  padding: var(--fc-space-1) var(--fc-space-4);
}

.fc-v2 .promo-button {
  background-color: var(--fc-navy);
  color: var(--fc-white);
  padding: var(--fc-space-1-5) var(--fc-space-4);
  border-radius: var(--fc-radius-xl);
  text-decoration: none;
  font-weight: 700;
  transition: background-color var(--fc-ease-fast), transform 0.2s ease, box-shadow 0.3s ease;
  border: 2px solid var(--fc-white);
  box-shadow: 0 2px 4px var(--fc-black-a30);
}

.fc-v2 .promo-button:hover {
  background-color: var(--fc-blue);
  transform: scale(1.05);
  box-shadow: var(--fc-shadow-lg);
  color: var(--fc-white);
}

.fc-v2 .close-promo {
  background: transparent;
  border: none;
  color: var(--fc-white);
  cursor: pointer;
  font-size: var(--fc-text-lg);
  margin-left: var(--fc-space-4);
  padding: var(--fc-space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.fc-v2 .close-promo:hover {
  transform: scale(1.2);
}


/* ── 12. User Profile Icon ─────────────────────────────────
 *    updateUsername() — toggles fa-bounce, swaps icons
 *    Visual styling now in fc-editor-shell.css (.user-status-island .user-profile-icon)
 */


/* ── 13. Error Container ───────────────────────────────────
 *    Error handling — #error-container visibility
 */

.fc-v2 #error-container {
  display: none;
  padding: var(--fc-space-2) var(--fc-space-3);
  background: var(--fc-cream-warm);
  border: none;
  border-radius: var(--fc-radius-sm);
  align-items: center;
  gap: var(--fc-space-3);
  font-family: var(--fc-font-body);
  font-size: var(--fc-text-sm);
  color: var(--fc-gray-800);
  margin-top: var(--fc-space-2);
}

/* script.js updateContainerVisibility() sets inline display:block.
   Override to flex so align-items centers the span + buttons.
   Two selectors handle both "display: block" and "display:block". */
.fc-v2 #error-container[style*="display: block"],
.fc-v2 #error-container[style*="display:block"] {
  display: flex !important;
}

/* Error span — red highlight only on the error text */
.fc-v2 span#currentErrorSpan {
  font-size: var(--fc-text-sm);
  max-width: calc(100% - 250px);
  background: var(--fc-error-light);
  color: var(--fc-error);
  padding: var(--fc-space-1) var(--fc-space-2);
  border-radius: var(--fc-radius-sm);
  display: inline-flex;
  align-items: center;
}

/* Error nav/copy buttons — reset defaults, brown icons, centered */
.fc-v2 #prevErrorButton,
.fc-v2 #nextErrorButton,
.fc-v2 #copyErrorButton {
  background: none;
  border: none;
  color: var(--fc-brown);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: var(--fc-space-1);
  border-radius: var(--fc-radius-sm);
  transition: color var(--fc-ease-fast), background var(--fc-ease-fast);
}

.fc-v2 #prevErrorButton:hover,
.fc-v2 #nextErrorButton:hover,
.fc-v2 #copyErrorButton:hover {
  color: var(--fc-brown-light);
  background: var(--fc-black-a06);
}


/* ── 14. Advanced Settings Popup ───────────────────────────
 *    Advanced settings overlay
 */

.fc-v2 .advanced-settings {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--fc-white);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-2xl);
  padding: var(--fc-space-8);
  z-index: var(--fc-z-modal);
  min-width: 320px;
}

.fc-v2 .advanced-settings h2 {
  font-family: var(--fc-font-brand);
  color: var(--fc-brown);
  margin-bottom: var(--fc-space-4);
}

.fc-v2 .advanced-settings label {
  font-family: var(--fc-font-body);
  font-size: var(--fc-text-sm);
  color: var(--fc-gray-700);
  display: flex;
  align-items: center;
  gap: var(--fc-space-2);
  margin-bottom: var(--fc-space-3);
}

.fc-v2 .advanced-settings button {
  margin-top: var(--fc-space-4);
}


/* ── 15. Compact Mode ──────────────────────────────────────
 *    toggleCompactMode() — adds .compact-mode to body
 *    Original uses max(5%, 220px) for the tab area height.
 */

/* Compact mode: lock to viewport, no scrolling.
   .compact-mode is on <html>, .fc-v2 is on <body>. */
.compact-mode {
  height: 100vh !important;
  overflow: hidden !important;
}

.compact-mode .fc-v2 {
  height: 100vh;
  overflow: hidden;
}

.compact-mode .fc-v2-container {
  display: flex;
  flex-direction: column;
  height: calc(100% - 2%);
  margin: 1% 2% 1% 2%;
  width: 96%;
}

/* Override normal workshop flex/min-height with a fixed compact height.
   Keep default padding (12px 20px) — using the tighter 8px/12px compact
   padding pushed the Create tab's top-left corner into the workshop's
   50px border-radius, so the tab appeared to poke outside the curve. */
.compact-mode .fc-v2-workshop {
  flex: 0 0 auto;
  max-height: max(5%, 220px);
  min-height: max(5%, 220px);
}

/* Reduce internal spacing in compact mode */
.compact-mode .fc-v2 .tab-content {
  padding: var(--fc-space-2);
}

.compact-mode .fc-v2 .text-and-clear {
  min-height: 0;
  /* Give textarea priority — grow to fill available space */
  flex: 1 1 auto;
}

.compact-mode .fc-v2 .clear-text-btn {
  min-height: var(--fc-space-8);
  min-width: var(--fc-space-10);
}

/* Keep height: 100% from default so the Create tab's textarea can
   flex-grow into available space. Overriding to `auto` collapsed the
   container to its content size, leaving a tall empty gap below the
   Fuzzy Code It button instead of giving that space to the textarea. */
.compact-mode .fc-v2 .directions-container {
  gap: var(--fc-space-1);
}

/* In compact mode, the attachments paperclip should stay collapsed
   and not steal space from the textarea */
.compact-mode .fc-v2 .update-default-ui {
  gap: var(--fc-space-1);
}

.compact-mode .fc-v2 history-attachments-ui {
  flex: 0 0 auto;
  max-height: 24px;
  overflow: hidden;
}

/* Buttons row stays fixed height */
.compact-mode .fc-v2 .button-group {
  flex: 0 0 auto;
}

/* Suggest tabs row stays compact */
.compact-mode .fc-v2 .suggest-tabs {
  margin-bottom: var(--fc-space-1);
}

/* Ensure tab area can scroll in compact mode */
.compact-mode .fc-v2-tab-area {
  overflow-y: auto;
  min-height: 0;
}

/* Iframe takes remaining space */
.compact-mode .fc-v2 .iframe-container {
  flex: 1 1 auto;
  overflow: visible;
}

.compact-mode .fc-v2 .sidebar-wrapper {
  top: 200px;
}

.compact-mode .fc-v2 #screenshotImage {
  max-height: 90px !important;
}


/* ── 16. Responsive short/long button labels ───────────────
 */

.fc-v2 .short-button {
  display: none;
}

@media (max-width: 600px) {
  .fc-v2 .long-button {
    display: none;
  }
  .fc-v2 .short-button {
    display: inline;
  }

  .fc-v2 .suggest-tab {
    padding: var(--fc-space-1-5) var(--fc-space-2-5);
    font-size: var(--fc-text-xs);
  }
}


/* ── 17. Misc Dynamic Elements ─────────────────────────────
 */

/* Utility classes — script.js toggles .hide/.show on elements dynamically */
.fc-v2 .hide { display: none; }
.fc-v2 .show { display: block; }

/* Apply Custom Changes button — prevent stretching to full width in Update tab */
.fc-v2 button#applyCustomChangesButton {
  width: fit-content;
}

/* Switch/toggle for visibility (publish section) */
.fc-v2 .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.fc-v2 .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.fc-v2 .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--fc-gray-300);
  transition: 0.3s;
}

.fc-v2 .slider.round {
  border-radius: 22px;
}

.fc-v2 .slider.round:before {
  border-radius: 50%;
}

.fc-v2 .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--fc-white);
  transition: 0.3s;
  border-radius: 50%;
}

/* On-state uses the brand orange — green (--fc-success) was the
   semantic "success" color but it clashed visually with the warm
   tan/brown/cream palette of the Publish card. Orange keeps the
   toggle in-family while still reading as "active". */
.fc-v2 .switch input:checked + .slider {
  background-color: var(--fc-orange);
}

.fc-v2 .switch input:checked + .slider:before {
  transform: translateX(18px);
}

.fc-v2 .visibility-label {
  font-family: var(--fc-font-body);
  font-size: var(--fc-text-sm);
  color: var(--fc-gray-600);
}

/* Title refresh button */
.fc-v2 .title-refresh-button {
  background: none;
  border: 1px solid var(--fc-gray-300);
  border-radius: var(--fc-radius-sm);
  padding: var(--fc-space-1) var(--fc-space-2);
  cursor: pointer;
  color: var(--fc-gray-500);
  transition: all var(--fc-ease-fast);
}

.fc-v2 .title-refresh-button:hover {
  color: var(--fc-orange);
  border-color: var(--fc-orange);
}

/* Outlined group (SaveLoadShare tab sections) — matches original:
   flex column, border, minimal margin, NO padding (content handles its own) */
.fc-v2 .outlined-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--fc-gray-300);
  border-radius: var(--fc-radius-sm);
  margin: 0 var(--fc-space-1);
}


/* ── 18. Image Importer ───────────────────────────────────
 *    Image import/drop feature for uploading reference images
 */

.fc-v2 .image-importer-container {
  border: 1px solid var(--fc-gray-800);
  padding: var(--fc-space-2-5);
  background-color: var(--fc-cream-light);
}

.fc-v2 .image-importer-dropzone {
  width: 300px;
  height: 200px;
  border: 2px dashed var(--fc-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--fc-gray-100);
}

.fc-v2 .image-importer-dropzone.focused {
  background-color: var(--fc-cream);
}

.fc-v2 .image-importer-dropzone.dragging {
  border-color: var(--fc-orange);
}

.fc-v2 .image-importer-dropzone img {
  max-width: 100%;
  max-height: 100%;
}

.fc-v2 .image-importer-remove-button {
  display: none;
  margin-top: var(--fc-space-2-5);
}


/* Install button (PWA) */
.fc-v2 #installButton {
  display: none;
  position: absolute;
  bottom: var(--fc-space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--fc-z-sticky);
}


/* ── 19. Responsive — 600px ───────────────────────────────
 *    Suggestions shrink, fullscreen label hides, promo bar tightens
 */

@media (max-width: 600px) {
  .fc-v2 .suggest-tabs {
    gap: var(--fc-space-1-5);
    flex-wrap: wrap;
  }

  .fc-v2 .suggest-tabs-group {
    padding: 2px;
    border-radius: var(--fc-radius-xl);
  }

  .fc-v2 .suggest-tab {
    padding: var(--fc-space-1-5) var(--fc-space-2-5);
    font-size: 11px; /* component-intrinsic: smaller than --fc-text-xs for tight mobile fit */
  }

  .fc-v2 .suggest-tab:first-child {
    border-radius: 14px 0 0 14px;
  }

  .fc-v2 .suggest-tab:last-child {
    border-radius: 0 14px 14px 0;
  }

  .fc-v2 .suggest-back-btn {
    padding: var(--fc-space-1-5) var(--fc-space-2-5);
    font-size: 11px;
  }

  .fc-v2 .suggestion-card {
    min-width: 160px;
    max-width: 200px;
  }

  .fc-v2 .suggestion-card-desc {
    font-size: var(--fc-text-sm);
    padding: var(--fc-space-2);
  }

  .fc-v2 .suggestion-card-btn {
    font-size: var(--fc-text-xs);
    padding: var(--fc-space-1-5);
  }

  .fc-v2 .suggestions-scroll-btn {
    width: 30px;
    height: 30px;
    font-size: var(--fc-text-xs);
  }

  /* Hide fullscreen button label, keep icon */
  .fc-v2 #fullscreenBtn span {
    display: none;
  }

  /* Promo bar tighter on mobile */
  .fc-v2 .pages-promo-bar {
    padding: var(--fc-space-2) var(--fc-space-2-5);
  }

  .fc-v2 .promo-content {
    font-size: var(--fc-text-sm);
    gap: var(--fc-space-2);
  }

  .fc-v2 .promo-button {
    padding: var(--fc-space-1) var(--fc-space-2-5);
  }
}


/* ── 20. Responsive — 400px (Icon-Only Tabs) ─────────────
 *    Tab buttons hide text, show only icons for mobile usability
 */

@media (max-width: 400px) {
  .fc-v2 .tab-button {
    font-size: 0;
  }

  .fc-v2 .tab-button i {
    font-size: 20px;
  }

  .fc-v2 .short-button {
    display: none;
  }

  .fc-v2 .main-buttons-group button {
    padding-left: var(--fc-space-5);
    padding-right: var(--fc-space-5);
  }
}


/* ── 21. Responsive — 480px (Subscription Modal) ─────────
 *    Subscription modal stacks buttons vertically on mobile
 */

@media (max-width: 480px) {
  .fc-v2 .subscription-modal .modal-content,
  .fc-v2 .subscription-modal .subscription-modal-content {
    padding: var(--fc-space-6);
    width: 95%;
  }

  .fc-v2 .subscription-modal h2 {
    font-size: var(--fc-text-2xl);
  }

  .fc-v2 .subscription-modal .modal-subscription-features {
    padding: var(--fc-space-4);
  }

  .fc-v2 .subscription-modal .modal-buttons {
    flex-direction: column;
  }

  .fc-v2 .subscription-modal button {
    width: 100%;
  }
}
