.gf-form h2 { font-size: 1.15rem; margin: 4px 0 6px; }
.gf-form section { display: flex; flex-direction: column; gap: 10px; }
.gf-form section:empty { display: none; }
.gf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gf-tabs button { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.gf-tabs button[aria-selected="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.gf-bankbar { display: grid; gap: 10px; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); }
@media (max-width: 600px) { .gf-bankbar { grid-template-columns: 1fr; } }
.gf-results { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; padding-right: 4px; }
.gf-res { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); }
.gf-res > div { flex: 1; min-width: 0; }
.gf-res p { margin: 4px 0 0; line-height: 1.45; }
.gf-res u { text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.gf-para { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 2px solid var(--line); font-size: 1.15rem; line-height: 2.1; }
.gf-w { font: inherit; color: inherit; background: none; border: 0; padding: 1px 2px; margin: 0; border-radius: 6px; cursor: pointer; line-height: 1.4; }
.gf-w:hover { background: var(--web-soft); }
.gf-w.gap { background: var(--hi); color: #151935; font-weight: 700; padding: 1px 6px; box-shadow: inset 0 -3px 0 rgba(21,25,53,.35); }
.gf-w.gap i { font-style: normal; font-size: .72em; margin-right: 5px; padding: 0 5px; border-radius: 99px; background: #151935; color: var(--hi); vertical-align: 1px; }
.gf-w:focus-visible { outline: 3px solid var(--web); outline-offset: 1px; }
.gf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 99px; background: var(--ink); color: var(--card); font-weight: 700; }
.gf-chip button { font: inherit; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: inherit; cursor: pointer; line-height: 1; }
.gf-add { display: inline-flex; gap: 6px; align-items: center; }
.gf-add input { width: 180px; padding: 6px 10px; }
.gf-sugg { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.gf-s { font: inherit; font-size: .9rem; padding: 4px 10px; border-radius: 99px; border: 1.5px dashed var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.gf-s:hover { border-color: var(--ink); border-style: solid; }
.gf-prevbox { padding: 16px 18px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); font-size: 1.1rem; display: flex; flex-direction: column; gap: 10px; }
.gf-prevbox .st-para { margin: 0; line-height: 1.9; }
.gf-prevbox .st-gb span { visibility: visible; color: var(--muted); }
.st-para { margin: 0; text-align: left; font-weight: 600; line-height: 1.55; }
/* Gap Fill */
.k-gapfill .st-in { gap: .5em; }
.st-gb { position: relative; font: inherit; color: inherit; display: inline-flex; align-items: baseline; gap: .2em; padding: 0 .15em; margin: 0 .05em; border: 0; border-bottom: .09em solid currentColor;
  background: none; cursor: pointer; line-height: 1.15; min-width: calc(var(--gw, 6ch) + 1.6em); justify-content: flex-start; }
.st-gb i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: .62em; display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; border-radius: 99px;
  background: color-mix(in srgb, var(--tint, #151935) 55%, #151935); color: #fff; align-self: center; }
.st-gb span { visibility: hidden; font-weight: 800; position: absolute; left: 1.4em; }   /* out of the way until shown: every gap is the same width */
.st-gb.on span, .gf-prevbox .st-gb span { position: static; }
.st-gb.on { border-bottom-color: #23a05c; background: #d8f3e3; border-radius: .12em .12em 0 0; }
.st-gb.on i { background: #23a05c; color: #fff; }
.st-gb.on span { visibility: visible; color: #13774f; }
[data-page="dark"] .st-gb.on { background: #123a25; } [data-page="dark"] .st-gb.on span { color: #9be7bb; }
.st-bank { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35em .5em; padding: .45em .7em; border-radius: .5em; border: .09em dashed var(--line); font-size: .85em; }
.st-bl { font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: .3em; }
.st-bw { padding: .1em .55em; border-radius: .4em; background: var(--bg); border: .07em solid var(--line); font-weight: 700; transition: opacity .25s; }
.st-bw.used { opacity: .35; text-decoration: line-through; }


.k-gapfill .st-body { overflow: auto; }
.k-gapfill .st-in { flex: none; overflow-wrap: anywhere; }
.k-gapfill .st-gb, .gf-prevbox .st-gb { min-width: min(100%, calc(var(--gw, 6ch) + 1.6em)); max-width: 100%; }
.gf-form textarea { min-height: 8em; width: 100%; font: inherit; }
.gf-form section { min-width: 0; }
.gf-sugg .note { margin-right: .25em; }
