/* FS Calculators Core — front (sobriété, stable, responsive) */
.fsc-app[data-fsc-app="1"]{
  --fsc-bg: #ffffff;
  --fsc-surface: #ffffff;
  --fsc-panel: #f8fafc;
  --fsc-border: #e5e7eb;
  --fsc-text: #0f172a;
  --fsc-muted: #64748b;
  --fsc-soft: rgba(15,23,42,.04);
  --fsc-accent: #2563eb;
  --fsc-accent-soft: rgba(37,99,235,.10);
  --fsc-accent-border: rgba(37,99,235,.30);
  --fsc-danger: #dc2626;
  --fsc-radius: 2px;
  --fsc-radius-sm: 2px;
  --fsc-radius-panel: 2px;
  --fsc-radius-input: 2px;
  --fsc-radius-button: 2px;
  --fsc-radius-chip: 2px;
  --fsc-radius-table: 2px;
  --fsc-gap: 12px;
  --fsc-sidebar-width: 320px;
  --fsc-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --fsc-font-size: 14px;
  --fsc-pad-panel: 14px;
  --fsc-pad-sidebar-top: 14px;
  --fsc-pad-sidebar-list: 10px;
  --fsc-field-gap: 6px;
  --fsc-row-gap: 12px;
  --fsc-input-pad-y: 10px;
  --fsc-input-pad-x: 12px;
  --fsc-btn-pad-y: 10px;
  --fsc-btn-pad-x: 14px;
  --fsc-item-pad: 10px;
}

.fsc-app{ font-family: var(--fsc-font); font-size: var(--fsc-font-size); color: var(--fsc-text); background: var(--fsc-bg);  padding: var(--fsc-gap); }
.fsc-app *{ box-sizing:border-box; }

/* Always keep a stable vertical scrollbar on calculator pages.
   This avoids a horizontal "jump" when sections expand/collapse and the browser decides to add/remove
   the page scrollbar. We add one pixel of intentional overflow (imperceptible) to keep the scrollbar present. */
.fsc-app{ min-height: calc(100vh + 1px); }

/* Prevent layout shift when "More Options" expands (scrollbar appears)
   Some themes override overflow on html/body; we force stable scrollbar.
*/
html.fsc-has-app{ overflow-y: scroll !important; scrollbar-gutter: stable both-edges; }
body.fsc-has-app{ overflow-y: scroll !important; }

.fsc-app__shell{
  display:flex;
  gap: var(--fsc-gap);
  /* Keep sidebar height stable when the form expands/collapses */
  align-items: flex-start;
  width:100%;
}

.fsc-app__sidebar{
  width: var(--fsc-sidebar-width);
  min-width: 240px;
  background: var(--fsc-surface);
  border: 1px solid var(--fsc-border);
  border-radius: var(--fsc-radius-panel);
  overflow:hidden;
}

.fsc-sidebar__top{
  padding: var(--fsc-pad-sidebar-top);
  border-bottom: 1px solid var(--fsc-border);
  background: var(--fsc-panel);
}

.fsc-sidebar__search{ margin-bottom: 10px; }
.fsc-sidebar__filters{ display:flex; gap:10px; align-items:center; }

.fsc-sidebar__list{
  padding: var(--fsc-pad-sidebar-list);
  max-height: calc(100vh - 240px);
  overflow:auto;
}

.fsc-item{
  display:flex;
  gap:10px;
  padding: var(--fsc-item-pad);
  border-radius: var(--fsc-radius-chip);
  border: 1px solid transparent;
  cursor:pointer;
}
.fsc-item:hover{ background: var(--fsc-soft); border-color: var(--fsc-border); }
.fsc-item.is-active{ background: var(--fsc-accent-soft); border-color: var(--fsc-accent-border); }

.fsc-item__icon{
  width: 34px; height:34px; border-radius: var(--fsc-radius-chip);
  background: var(--fsc-surface);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}
.fsc-item__icon img{ width:100%; height:100%; object-fit:cover; }

.fsc-item__meta{ min-width:0;  flex:1;}
.fsc-item__name{ font-weight: 650; font-size: 13.5px; line-height: 1.2; }
.fsc-item__desc{ color: var(--fsc-muted); font-size: 12px; margin-top: 4px; line-height: 1.25; }


/* Sidebar items: keep consistent height even with long titles/descriptions */
.fsc-item{ align-items:stretch; }
.fsc-item__meta{ display:flex; flex-direction:column; justify-content:center; }
.fsc-item__name{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height: calc(2 * 1.2em);
}
.fsc-item__desc{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height: calc(2 * 1.25em);
}
.fsc-app__main{
  flex: 1 1 auto;
  min-width: 0;
}

.fsc-main__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 4px;
}

.fsc-main__title{
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fsc-main__meta{
  display:flex; align-items:center; gap: 10px;
}

.fsc-main__content{
  min-width:0;
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--fsc-gap);
  /* Avoid vertical "rubber band" between columns when sections expand */
  grid-auto-rows: min-content;
  align-items: start;
  align-content: start;
}

/* Safety: never stretch columns to match the tallest sibling */
.fsc-main__content > .fsc-col{align-self:start}

.fsc-panel{
  min-width:0;
  background: var(--fsc-panel) !important;
  border: 1px solid var(--fsc-border) !important;
  border-radius: var(--fsc-radius-panel) !important;
  padding: var(--fsc-pad-panel);
}

.fsc-panel--results{ min-height: 180px; }

.fsc-row{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--fsc-row-gap); }
.fsc-row + .fsc-row{ margin-top: var(--fsc-row-gap); }

.fsc-field{ display:flex; flex-direction:column; gap: var(--fsc-field-gap); }
.fsc-label{ font-size: 12px; color: var(--fsc-muted); }
.fsc-help{ font-size: 11.5px; color: var(--fsc-muted); line-height:1.3; }

.fsc-input, .fsc-select{
  width:100%;
  border-radius: var(--fsc-radius-input) !important;
  border: 1px solid var(--fsc-border) !important;
  background: var(--fsc-surface) !important;
  color: var(--fsc-text) !important;
  padding: var(--fsc-input-pad-y) var(--fsc-input-pad-x);
  outline: none;
}
.fsc-input:focus, .fsc-select:focus{ border-color: var(--fsc-accent-border); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.fsc-actions{
  display:flex; gap: 10px; margin-top: 14px; flex-wrap:wrap; align-items:center;
}

.fsc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--fsc-radius-button) !important;
  border: 1px solid var(--fsc-border) !important;
  background: var(--fsc-surface) !important;
  color: var(--fsc-text) !important;
  padding: var(--fsc-btn-pad-y) var(--fsc-btn-pad-x);
  cursor:pointer;
  font-weight: 650;
}
.fsc-btn:hover{ background: var(--fsc-soft); }
.fsc-btn--primary{
  background: var(--fsc-accent-soft) !important;
  border-color: var(--fsc-accent-border) !important;
}
.fsc-btn--primary:hover{ background: rgba(37,99,235,.14); }
.fsc-btn--ghost{
  background: transparent !important;
}
.fsc-btn[disabled]{ opacity:.55; cursor:not-allowed; }

.fsc-section{
  margin-top: 14px;
  border-top: 1px solid var(--fsc-border);
  padding-top: 14px;
}
.fsc-section__head{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.fsc-section__title{
  font-weight: 750;
  letter-spacing:-.01em;
}
.fsc-toggle{
  font-size: 12px;
  color: var(--fsc-accent);
  cursor:pointer;
  background:transparent;
  border:none;
  padding:0;
}

/* Reserve space so toggle text change (MORE/LESS) doesn't reflow */
.fsc-section__head .fsc-toggle{ min-width: 130px; text-align:right; }

.fsc-toggle.fsc-more-toggle{ min-width: 140px; text-align:right; }

.fsc-kpis{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.fsc-kpi{
  border: 1px solid var(--fsc-border);
  border-radius: var(--fsc-radius-panel);
  padding: var(--fsc-input-pad-y) var(--fsc-input-pad-x);
  background: var(--fsc-panel);
}
.fsc-kpi__label{ font-size: 12px; color: var(--fsc-muted); }
.fsc-kpi__value{ font-size: 18px; font-weight: 800; margin-top: 4px; }

.fsc-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--fsc-border);
  border-radius: var(--fsc-radius-table);
  overflow: hidden;
  margin-top: 12px;
  font-size: 12.5px;
}

.fsc-table-wrap{
  width: 100%;
  overflow: auto;
  max-height: 320px; /* prevents long schedules from pushing layout */
  border: 1px solid var(--fsc-border);
  border-radius: var(--fsc-radius-table);
  background: var(--fsc-surface);
  margin-top: 12px;
}

/* Move border responsibility to wrapper for stable scrolling */
.fsc-table{
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 0;
  min-width: 520px; /* ensures columns don't crush; wrapper will scroll horizontally */
}

.fsc-table thead th{
  position: sticky;
  top: 0;
  background: var(--fsc-surface);
  z-index: 2;
}

/* When table is inside a sub-panel, avoid double borders */
.fsc-subpanel .fsc-table{ margin-top:0; border:none; }
.fsc-subpanel .fsc-table-wrap{ margin-top:0; border:none; max-height: 320px; }
.fsc-subpanel .fsc-table th:first-child{ border-top-left-radius: 0; }
.fsc-subpanel .fsc-table th:last-child{ border-top-right-radius: 0; }
.fsc-table th, .fsc-table td{
  border-bottom: 1px solid var(--fsc-border);
  padding: 8px 6px;
  text-align:left;
}
.fsc-table th{ color: var(--fsc-muted); font-weight:700; }

/* Chart block now renders inside a sub-panel; keep it neutral */
.fsc-chart{ margin-top:0; border-top:none; padding-top:0; }

/* Subpanel inside results (for charts, etc.) */
.fsc-subpanel{
  margin-top: 12px;
  border: 1px solid var(--fsc-border);
  border-radius: var(--fsc-radius-panel);
  background: var(--fsc-panel);
  padding: var(--fsc-pad-panel);
  min-width: 0;
}
.fsc-subpanel canvas{ display:block; width:100% !important; max-width:100%; }


/* Leyenda HTML debajo de gráficos de barras/líneas */
.fsc-chart-legend{
  display:flex;
  width:100%;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
  font-size:12px;
  color: var(--fsc-muted);
}
.fsc-chart-legend__item{
  display:flex;
  align-items:center;
  gap:6px;
}
.fsc-chart-legend__swatch{
  width:10px;
  height:10px;
  border-radius:2px;
  border:1px solid var(--fsc-border);
  background:#999;
}
.fsc-empty{
  color: var(--fsc-muted);
  font-size: 13px;
}

.fsc-main__seo{
  margin-top: 12px;
  padding: 0 2px;
}

.fsc-seo__body{
  margin-top: 10px;
  background: var(--fsc-surface);
  border: 1px solid var(--fsc-border);
  border-radius: var(--fsc-radius-panel);
  padding: 14px;
  color: var(--fsc-muted);
  line-height: 1.5;
  font-size: 13px;
}

/* Responsive: two-column -> stacked */
@media (max-width: 980px){
  .fsc-app__shell{ flex-direction: column; }
  .fsc-app__sidebar{ width:100%; min-width:0; }
  .fsc-sidebar__list{ max-height: 320px; }
  .fsc-main__content{ grid-template-columns: 1fr; }
}

/* Compact controls */
.fsc-sidebar__filters .fsc-select{ flex:1; min-width:0; }

.fsc-iconbtn{
  height: 34px;
  width: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--fsc-border);
  background: var(--fsc-surface);
  color: var(--fsc-text);
  border-radius: var(--fsc-radius-button);
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
.fsc-iconbtn:hover{ background: var(--fsc-soft); }
.fsc-iconbtn.is-active,
.fsc-iconbtn.is-on{ background: var(--fsc-accent-soft); border-color: var(--fsc-accent-border); }
.fsc-iconbtn svg{ width: 18px; height: 18px; display:block; fill: currentColor; }

.fsc-iconbtn[disabled]{
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.fsc-results__toolbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom: 10px;
}

.fsc-results__toolbar .fsc-iconbtn{
  width: auto;
  padding: 0 10px;
  gap: 8px;
}

.fsc-results__toolbar .fsc-iconbtn .fsc-sr{
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
}
.fsc-sr{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.fsc-table tr:last-child td{ border-bottom: none; }


/* Layout blocks (spans edited via Layout Tools) */
.fsc-block{min-width:0;}
.fsc-block--form,.fsc-panel--form{grid-column: span var(--fsc-span-form, 6); order: var(--fsc-order-form, 1);} 
.fsc-block--results,.fsc-panel--results{grid-column: span var(--fsc-span-results, 6); order: var(--fsc-order-results, 2);} 
.fsc-block--seo{grid-column: span var(--fsc-span-form, 6); order: var(--fsc-order-seo, 3);}  

@media (max-width: 900px){
  .fsc-block--form, .fsc-block--results, .fsc-panel--form, .fsc-panel--results, .fsc-block--seo{grid-column: 1 / -1;}
}

/* Stability fixes: prevent layout shift when expanding sections */
.fsc-main__content > *{ min-width:0; }
.fsc-row, .fsc-field{ min-width:0; }
.fsc-label, .fsc-help{ overflow-wrap:anywhere; word-break:break-word; }
.fsc-section__head{ flex-wrap:nowrap; gap:10px; }
.fsc-section__title{ flex:1 1 auto; min-width:0; }
.fsc-section__toggle{ flex:0 0 auto; display:inline-flex; align-items:center; justify-content:flex-end; white-space:nowrap; }



/* Basic calculator (home default) */
.fsc-basiccalc { max-width: 520px; }
.fsc-basiccalc-display{
  width: 100%;
  font-size: 28px;
  line-height: 1.2;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: var(--fsc-surface);
  margin-bottom: 12px;
  text-align: right;
}
.fsc-basiccalc-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.fsc-basiccalc-btn{
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}
.fsc-basiccalc-btn:hover{ background: rgba(0,0,0,0.06); }
.fsc-basiccalc-btn:active{ transform: translateY(1px); }


/* Favorites */
.fsc-main__titlebar{ display:flex; align-items:center; gap:10px; }
/* Favorito en header desactivado: el UX vive en la barra lateral */
.fsc-favbtn{ display:none !important; }

.fsc-sidebar__favorites{ margin-top: 10px; }
.fsc-favtoggle{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--fsc-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.fsc-favtoggle svg{ width:18px; height:18px; fill: currentColor; }
.fsc-favtoggle.is-on,
.fsc-favtoggle.is-active{
  color: #f5c400;
  border-color: rgba(245,196,0,0.35);
  background: rgba(245,196,0,0.08);
}

.fsc-item__fav{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px; height:34px;
  border:1px solid transparent;
  border-radius: var(--fsc-radius-chip);
  background: transparent;
  color: #2b2f36;
  opacity: 0.75;
  cursor:pointer;
}
.fsc-item__fav:hover{ background: var(--fsc-soft); border-color: var(--fsc-border); color: var(--fsc-text); }
.fsc-item__fav svg{ width:20px; height:20px; fill: currentColor; }
.fsc-item__fav.is-on{ color: #f5c400; opacity: 1; }

/* --- Favorites icon hardening (theme override) --- */
.fsc-item__fav{
  color: var(--fsc-text) !important;
  background: transparent !important;
  opacity:1 !important;
}
.fsc-item__fav svg{
  display:block !important;
  width:20px !important;
  height:20px !important;
  fill: currentColor !important;
}
.fsc-item__fav svg path{ fill: currentColor !important; }
.fsc-item__fav.is-on{ color:#f5c400 !important; }

/* --- Favorites icon: text-star fallback for hostile theme SVG rules --- */
.fsc-item__fav{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  padding:0 !important;
  border:1px solid transparent !important;
  border-radius: var(--fsc-radius-chip) !important;
  background: transparent !important;
  color: var(--fsc-text) !important;
  opacity:1 !important;
}
.fsc-item__fav .fsc-fav-icon{
  display:block !important;
  font-size:18px !important;
  line-height:1 !important;
  color: currentColor !important;
}
.fsc-item__fav.is-on{ color:#f5c400 !important; }

/* En esquema oscuro, la estrella apagada debe ser visible sin dominar el layout */
.fsc-app[data-fsc-scheme="dark"] .fsc-item__fav{ color: var(--fsc-muted) !important; }
.fsc-app[data-fsc-scheme="dark"] .fsc-item__fav:hover{ color: var(--fsc-text) !important; }
.fsc-app[data-fsc-scheme="dark"] .fsc-item__fav.is-on{ color:#f5c400 !important; }

/* === FSC Hardened Layout (no overflow / no sidebar eating) === */
.fsc-app, .fsc-app * { box-sizing: border-box; }
.fsc-app { overflow-x: hidden; }
.fsc-app__shell { max-width: var(--fsc-max-width, 1120px); margin: 0 auto; }
.fsc-app__content { min-width: 0; }
.fsc-app__main { min-width: 0; }
.fsc-results, .fsc-result, .fsc-panel, .fsc-card { min-width: 0; max-width: 100%; }
.fsc-results { overflow-wrap: anywhere; word-break: break-word; }
.fsc-results table { width: 100%; table-layout: fixed; }
.fsc-results th, .fsc-results td { overflow-wrap: anywhere; word-break: break-word; }
.fsc-table-wrap { width: 100%; overflow-x: auto; }
html { scrollbar-gutter: stable; }

/* === Calculator Core — Anti-movimiento (configurable) === */
html.fsc-lock-layout { scrollbar-gutter: stable both-edges; }
html.fsc-lock-layout .fsc-app .fsc-main__content{
  width: 100%;
  max-width: var(--fsc-max-width, 1120px);
  margin-left: auto;
  margin-right: auto;
}
html.fsc-lock-layout .fsc-panel--results,
html.fsc-lock-layout .fsc-block--results,
html.fsc-lock-layout .fsc-results{
  min-height: var(--fsc-results-min-h, 360px);
}
html.fsc-lock-layout .fsc-seo,
html.fsc-lock-layout .fsc-seo *{
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}
html.fsc-lock-layout .fsc-table,
html.fsc-lock-layout .fsc-table *{
  overflow-wrap:anywhere;
  word-break:break-word;
}


/* Calculator Core: forzar flechas en inputs numéricos */
.fsc-app input[type="number"]{
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
}
.fsc-app input[type="number"]::-webkit-outer-spin-button,
.fsc-app input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: auto !important;
  margin: 0;
  opacity: 1;
}



/* === Calculator Core — Anti-movimiento (controlable por Ajustes) === */
.fsc-app.fsc-lock-layout html { scrollbar-gutter: stable both-edges; }

.fsc-app.fsc-lock-layout .fsc-main__content{
  width: 100%;
  max-width: var(--fsc-max-width, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.fsc-app.fsc-lock-layout .fsc-panel--results,
.fsc-app.fsc-lock-layout .fsc-block--results,
.fsc-app.fsc-lock-layout .fsc-results{
  min-height: var(--fsc-results-min-h, 360px);
}

.fsc-app.fsc-lock-layout .fsc-seo,
.fsc-app.fsc-lock-layout .fsc-seo *{
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}

.fsc-app.fsc-lock-layout .fsc-table,
.fsc-app.fsc-lock-layout .fsc-table *{
  overflow-wrap:anywhere;
  word-break:break-word;
}



/* Column wrappers (form + SEO left, results right) to avoid SEO being pushed down by tall results */
.fsc-col--left{
  grid-column: span var(--fsc-span-form, 6);
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: var(--fsc-gap);
}
.fsc-col--right{
  grid-column: span var(--fsc-span-results, 6);
  min-width:0;
}
@media (max-width: 960px){
  .fsc-col--left, .fsc-col--right{
    grid-column: 1 / -1;
  }
}


/* Modal SEO (móvil) */
.fsc-seo-modal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  z-index: 999999;
  padding: 16px;
}

.fsc-seo-modal{
  width: min(920px, 96vw);
  max-height: 88vh;
  background: var(--fsc-surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}

.fsc-seo-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fsc-border);
}

.fsc-seo-modal__title{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.fsc-seo-modal__close{
  appearance: none;
  border: 1px solid var(--fsc-border);
  background: var(--fsc-panel);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.fsc-app[data-fsc-scheme="dark"] .fsc-seo-modal{ box-shadow: 0 20px 60px rgba(0,0,0,.60); }

.fsc-seo-modal__body{
  padding: 14px;
  overflow: auto;
}

body.fsc-modal-open{
  overflow: hidden;
}


/* Numeric input wrapper + steppers (to allow thousands separators while keeping ↑↓ UX) */
.fsc-numwrap{
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.fsc-numwrap .fsc-input{
  position: relative;
  z-index: 1;
  padding-right: 42px;
  width: 100%;
}

.fsc-stepperbox{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  pointer-events: auto;
}

.fsc-stepper{
  width: 28px;
  height: 18px;
  line-height: 16px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: inherit;
  font-size: 11px;
}

.fsc-stepper:active{
  transform: translateY(1px);
}

/* Currency selector */
.fsc-input--currency{width:100%; margin:6px 0 8px 0; padding:8px 10px; border:1px solid rgba(255,255,255,0.14); border-radius:10px; background:rgba(255,255,255,0.06); color:inherit;}



/* ===========================
   Ajustes UX
   - Selector de moneda compacto (sin layout shift)
   - Título ancla en resultados
   =========================== */

.fsc-main__meta{ min-height: 84px; } /* reserva espacio para evitar saltos al cargar */

.fsc-currency{
  max-width: 260px;
  width: 100%;
}
.fsc-currency .fsc-label{
  font-size: 12px;
  margin-bottom: 6px;
  opacity: .85;
}
.fsc-currency .fsc-input,
.fsc-currency .fsc-select{
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  font-size: 13px;
}
.fsc-currency .fsc-input{
  height: 30px;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.fsc-currency .fsc-select{
  height: 34px;
  padding: 6px 10px;
}

/* Visual más sutil: el buscador se contrae si no está en foco */
.fsc-currency:not(:focus-within) .fsc-input{
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
}
.fsc-currency:focus-within .fsc-input{
  opacity: 1;
  pointer-events: auto;
}

.fsc-currency--loading{
  opacity: .55;
  pointer-events: none;
}

/* Resultados: título ancla + altura mínima para estabilidad visual */
.fsc-panel--results{ min-height: 360px; }
.fsc-results__head{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  opacity: .95;
}
