/* Nexus Development – «Font di marca» (public/fontlab.js). Usa i colori di app.css. */
.fl-h2 { font: 750 1.15rem/1.2 var(--display); margin: 2rem 0 .8rem; }
.fl-h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .6rem; }
.fl-empty { margin: 1.2rem 0; }
.fl-rules { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--hi2); border-radius: var(--r); padding: .8rem 1rem; }
.fl-rules summary { cursor: pointer; }
.fl-rules ol { margin: .7rem 0 .2rem; padding-left: 1.3rem; display: grid; gap: .35rem; font-size: .9rem; }

/* elenco */
.fl-pcard { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; padding: 1rem 1.1rem; color: inherit; text-decoration: none; }
.fl-pcard__aa { grid-row: span 2; font-size: 2.6rem; line-height: 1; width: 4.2rem; height: 4.2rem; display: grid; place-items: center; border-radius: 10px; background: var(--soft); }
.fl-pcard__tx { display: grid; min-width: 0; }
.fl-pcard__tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-pcard__st { display: flex; gap: .35rem; flex-wrap: wrap; }
.fl-bases { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.fl-base { display: grid; gap: .25rem; text-align: left; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.fl-base:hover { border-color: var(--ink2); box-shadow: 0 14px 30px -24px rgb(20 20 30 / .45); transform: translateY(-1px); }
.fl-base__aa { font-size: 2.3rem; line-height: 1.15; white-space: nowrap; overflow: hidden; margin-bottom: .35rem; }
.fl-base__nm { font-weight: 800; }
.fl-base__tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .35rem; }
.fl-tag--rfn { background: #fff1d6; color: #7a4b00; }

/* editor */
.fl-ed { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.fl-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .4rem 1.1rem 1rem; }
.fl-sec { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.fl-sec:last-child { border-bottom: 0; }
.fl-sec h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.fl-side input[type="text"], .fl-side select, .fl-side textarea, .fl-custom { width: 100%; padding: .5rem .65rem; border: 1px solid var(--line2); border-radius: 8px; background: #fff; }
.fl-sl { display: grid; gap: .15rem; margin-bottom: .8rem; }
.fl-sl label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 750; color: var(--ink2); }
.fl-sl output { font-variant-numeric: tabular-nums; color: var(--ink); }
.fl-sl input[type="range"] { width: 100%; accent-color: var(--ink); }
.fl-sl small { font-size: .74rem; line-height: 1.35; }
.fl-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 10px; background: #e9ebef; margin-bottom: .7rem; }
.fl-seg button { border: 0; background: none; padding: .35rem .7rem; border-radius: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.fl-seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.fl-seg--sm { margin: 0; }
.fl-langs { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.fl-chk { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; cursor: pointer; }
.fl-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .6rem 0 .3rem; }
.fl-row select { width: auto; flex: 1; }
.fl-note { background: #fff6e2; border-radius: 8px; padding: .5rem .65rem; color: #6b4300; }
.fl-main { min-width: 0; }
.fl-bar { display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; margin-bottom: .8rem; }
.fl-size { display: inline-flex; align-items: center; gap: .4rem; }
.fl-custom { margin-bottom: .8rem; font-size: 1rem; }
.fl-stage { background: #fbfaf7; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2.4rem); min-height: 22rem; overflow: hidden; }
.fl-stage__name { line-height: 1.05; overflow-wrap: anywhere; margin-bottom: 1.4rem; }
.fl-stage__abc { font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3; margin: 0 0 1.2rem; overflow-wrap: anywhere; }
.fl-stage__txt { font-size: 1.25rem; line-height: 1.5; margin: 0; max-width: 60ch; }
.fl-stage__base { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line2); color: var(--muted); }
.fl-stage__base small { font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.fl-status { margin: .5rem 0 0; min-height: 1.3em; }
.fl-warn { color: var(--mid); margin: 0; min-height: 1.2em; }
.fl-checks { margin-top: -.4rem; }
.fl-main > .fl-rules { margin-top: 1rem; }
.fl-acts { justify-content: flex-end; }

/* legature e alternative */
.fl-xlist { list-style: none; margin: .2rem 0 .6rem; padding: 0; display: grid; gap: .35rem; }
.fl-xlist li { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fl-xlist li.muted { border-style: dashed; background: none; }
.fl-xseq { font-size: 1.05rem; min-width: 2.4rem; }
.fl-xlist .btn { margin-left: auto; }
.fl-xopt { display: inline-flex; align-items: center; gap: .3rem; }
.fl-xopt input[type="number"] { width: 4.6rem; padding: .2rem .35rem; border: 1px solid var(--line2); border-radius: 6px; }
.fl-side .fl-row input[type="text"] { flex: 1; min-width: 0; }
.fl-side .fl-row select { min-width: 0; }
.fl-setnames .fl-row { margin: .3rem 0; }
.fl-fx { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--line2); }
.fl-fx__lab { font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.fl-fx__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .8rem; }
.fl-fx__it { display: grid; gap: .2rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fl-fx__pair { font-size: 3rem; line-height: 1.1; display: flex; align-items: center; gap: .5rem; white-space: nowrap; overflow: hidden; }
.fl-fx__ar { font: 400 1rem/1 system-ui, sans-serif; color: var(--muted); }

@media (max-width: 900px) {
  .fl-ed { grid-template-columns: 1fr; }
  .fl-side { position: static; max-height: none; order: 2; }
  .fl-main { order: 1; }
  .fl-acts { justify-content: flex-start; }
}
