/* FontTex Cool Symbols ([fonttex_symbols]). Scoped to .ffs; does not touch .ff-generator.
   Tokens match the FontTex generator so the utility looks native. */
.ffs{--ffs-ink:#172033;--ffs-text:#344054;--ffs-muted:#667085;--ffs-faint:#98a2b3;--ffs-line:#dde5ef;--ffs-line-soft:#edf1f6;
  --ffs-violet:#5b4df7;--ffs-violet-2:#6d60f3;--ffs-violet-ink:#4338ca;--ffs-violet-soft:#f4f2ff;--ffs-green:#12b76a;--ffs-green-soft:#f2fbf6;
  --ffs-bg:#f8fbff;--ffs-radius:11px;
  --ffs-symbol-font:system-ui,-apple-system,"Segoe UI","Segoe UI Symbol","Segoe UI Historic","Noto Sans","Noto Sans Symbols","Noto Sans Symbols 2","Noto Sans Math","Noto Sans Egyptian Hieroglyphs","Noto Sans Javanese","Noto Sans CJK JP","Cambria Math","STIX Two Math","Apple Symbols",sans-serif;
  position:relative;box-sizing:border-box;margin:0 0 28px;color:var(--ffs-ink)}
.ffs *,.ffs *::before,.ffs *::after{box-sizing:border-box}
.ffs button,.ffs input,.ffs textarea{font:inherit}
.ffs button{cursor:pointer}
.ffs [hidden]{display:none!important}
.ffs .ffs-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ffs .ffs-w{width:min(880px,100%);margin-inline:auto}
.ffs .ffs-lede{margin:0 0 14px;color:var(--ffs-muted);font-size:15px;line-height:1.55}

/* Search */
.ffs .ffs-search{position:relative;display:flex;align-items:center}
.ffs .ffs-search svg{position:absolute;left:14px;color:var(--ffs-faint);pointer-events:none}
.ffs .ffs-search input{width:100%;height:48px;margin:0;padding:0 14px 0 40px;border:1px solid #d5dcf8;border-radius:13px;background:#fff;color:var(--ffs-ink);font-size:16px;outline:0;box-shadow:0 1px 2px rgba(27,39,80,.03),0 10px 26px rgba(76,84,145,.06)}
.ffs .ffs-search input:focus{border-color:#9b92fb;box-shadow:0 0 0 3px rgba(91,77,247,.1),0 10px 26px rgba(76,84,145,.06)}

/* Group headings */
.ffs .ffs-group{margin-top:18px}
.ffs .ffs-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.ffs .ffs-h{position:relative;margin:0;padding:0 0 0 14px;color:var(--ffs-ink);font-size:16px;font-weight:720;line-height:1.3;letter-spacing:0}
.ffs .ffs-h::before{content:"";position:absolute;left:0;top:50%;width:7px;height:7px;margin-top:-4px;border-radius:50%;background:var(--ffs-violet)}
.ffs .ffs-board .ffs-h::before{background:var(--ffs-green)}
.ffs .ffs-group--quick>.ffs-h{margin-bottom:8px}
.ffs .ffs-meta{color:var(--ffs-faint);font-size:12px;text-align:right}
.ffs .ffs-link{padding:4px 2px;border:0;background:transparent;color:var(--ffs-violet);font-size:13px;font-weight:650}
.ffs .ffs-h:focus{outline:0}
.ffs .ffs-h:focus-visible{outline:3px solid rgba(91,77,247,.22);outline-offset:3px;border-radius:4px}

/* Category chips */
.ffs .ffs-chips{display:flex;gap:6px;margin-top:20px;padding:1px 0 8px;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.ffs .ffs-chip{flex:0 0 auto;min-height:36px;margin:0;padding:7px 12px;border:1px solid #d7e0eb;border-radius:999px;background:#fff;color:#48536a;font-size:13px;font-weight:650;line-height:1.2;white-space:nowrap}
.ffs .ffs-chip:hover{border-color:#b9b2fb;color:var(--ffs-violet-ink)}
.ffs .ffs-chip[aria-pressed="true"]{border-color:var(--ffs-violet);background:linear-gradient(135deg,var(--ffs-violet),#7164f5);color:#fff;box-shadow:0 4px 12px rgba(91,77,247,.14)}

/* Symbol grid */
.ffs .ffs-results>div>.ffs-group:first-child,.ffs .ffs-results>.ffs-group{margin-top:12px}
.ffs .ffs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));grid-auto-flow:row dense;gap:6px;margin:0;padding:0;list-style:none}
.ffs .ffs-tile{position:relative;display:flex;flex-direction:column;min-width:0;margin:0;padding:0;border:1px solid var(--ffs-line);border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,background-color .25s ease}
.ffs .ffs-tile::marker{content:none}
.ffs .ffs-tile:hover{border-color:#c9c3fb;box-shadow:0 5px 14px rgba(31,50,86,.06)}
.ffs .ffs-tile--wide{grid-column:span 2}
.ffs .ffs-tile--row{grid-column:1/-1}
.ffs .ffs-sym{display:flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:52px;margin:0;padding:6px 4px;border:0;border-radius:0;background:transparent;color:var(--ffs-ink);font-family:var(--ffs-symbol-font);font-size:24px;line-height:1.2;cursor:copy}
.ffs .ffs-sym{overflow-wrap:anywhere;text-align:center;word-break:normal}
.ffs .ffs-tile--wide .ffs-sym{font-size:20px}
.ffs .ffs-tile--row .ffs-sym{font-size:18px;letter-spacing:0}
.ffs .ffs-sym:hover{color:var(--ffs-violet-ink);background:#fbfaff}
.ffs .ffs-add{display:flex;align-items:center;justify-content:center;width:100%;min-height:26px;margin:0;padding:0 4px;border:0;border-top:1px solid var(--ffs-line-soft);border-radius:0;background:#fafbff;color:var(--ffs-violet);font-size:11.5px;font-weight:700;line-height:1}
.ffs .ffs-add:hover{background:var(--ffs-violet-soft);color:var(--ffs-violet-ink)}
.ffs .ffs-sym:active,.ffs .ffs-add:active{transform:scale(.97)}
.ffs .ffs-tile.is-flagged{border-color:#8fd9b3;background:var(--ffs-green-soft)}
.ffs .ffs-flag{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;min-height:26px;background:var(--ffs-green);color:#fff;font-size:11.5px;font-weight:700;line-height:1;pointer-events:none}

/* Empty search */
.ffs .ffs-empty{padding:18px;border:1px dashed #d7e0eb;border-radius:12px;background:#fff;color:var(--ffs-muted)}
.ffs .ffs-empty p{margin:0 0 12px;font-size:14px}

/* Buttons */
.ffs .ffs-btn{display:inline-flex;align-items:center;justify-content:center;min-width:76px;height:42px;margin:0;padding:0 14px;border-radius:9px;font-size:13.5px;font-weight:700;white-space:nowrap}
.ffs .ffs-btn--primary{border:0;background:linear-gradient(135deg,var(--ffs-violet),var(--ffs-violet-2));color:#fff;box-shadow:0 4px 10px rgba(91,77,247,.13)}
.ffs .ffs-btn--primary.is-done{background:linear-gradient(135deg,var(--ffs-green),#0e9f5c)}
.ffs .ffs-btn--ghost{border:1px solid #d7e0eb;background:#fff;color:#4a556b}
.ffs .ffs-btn[disabled]{opacity:.45;cursor:default;box-shadow:none}

/* Symbol Board: sits right under Search so it is visible before visitors start tapping Add. */
.ffs .ffs-board{margin-top:14px;padding:10px 14px;border:1px solid var(--ffs-line);border-radius:14px;background:var(--ffs-bg);transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.ffs .ffs-board .ffs-head{margin-bottom:6px}
.ffs .ffs-board .ffs-meta{max-width:52%}
.ffs .ffs-board.is-filled{border-color:#b9b2fb;background:#fff;box-shadow:0 1px 2px rgba(27,39,80,.03),0 10px 26px rgba(76,84,145,.07)}
.ffs .ffs-board-row{display:flex;align-items:flex-start;gap:8px}
.ffs .ffs-board-text{flex:1 1 auto;min-width:0;min-height:40px;max-height:132px;margin:0;padding:8px 12px;border:1px solid var(--ffs-line);border-radius:9px;background:#fff;color:var(--ffs-ink);font-family:var(--ffs-symbol-font);font-size:19px;line-height:1.3;resize:none;outline:0}
.ffs .ffs-board-text:focus{border-color:#9b92fb;box-shadow:0 0 0 3px rgba(91,77,247,.09)}
.ffs .ffs-board-actions{display:flex;gap:6px;flex:0 0 auto}

/* Focus */
.ffs button:focus-visible,.ffs input:focus-visible,.ffs textarea:focus-visible{outline:3px solid rgba(91,77,247,.35);outline-offset:2px}
.ffs .ffs-tile button:focus-visible{outline-offset:-3px;position:relative;z-index:1}

@media(max-width:782px){
  .ffs .ffs-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:5px}
  .ffs .ffs-sym{min-height:48px;font-size:22px}
  .ffs .ffs-group{margin-top:16px}
  .ffs .ffs-h{font-size:15px}
  .ffs .ffs-board{padding:9px 10px}
  .ffs .ffs-board .ffs-meta{display:none}
  .ffs .ffs-board .ffs-head{margin-bottom:5px}
  .ffs .ffs-board-text{font-size:19px;padding:8px 10px}
  .ffs .ffs-board-actions{gap:5px}
  .ffs .ffs-board-actions .ffs-btn{min-width:58px;height:42px;padding:0 10px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.ffs .ffs-tile{transition:none}.ffs .ffs-sym:active,.ffs .ffs-add:active{transform:none}}
