/* No-spaces solver: a panel on the page tokens, so it follows the light and dark themes. */
.nospace { display: grid; gap: 16px; margin: 28px 0 0; padding: 24px; border-radius: var(--r-panel); background: var(--panel); box-shadow: var(--shadow); }
.article .nospace h2 { margin: 0; font-size: 26px; }
.article .nospace p { margin: 0; }
.article .nospace .nospace-note { color: var(--sec); font-size: 15px; }
.nospace-app { display: grid; gap: 16px; min-width: 0; }
.nospace-app[hidden], .nospace-output[hidden], .nospace [hidden] { display: none; }
.nospace-label, .nospace-field { display: grid; gap: 6px; font-weight: 600; }
.nospace textarea, .nospace-field input[type="text"] {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 400;
}
.nospace textarea { min-height: 96px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.nospace-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nospace-example { min-height: 44px; padding: 0 16px; font-size: 15px; }
.nospace-filters { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.nospace-filters legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.nospace-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.nospace-choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tile); cursor: pointer; }
.nospace-choice:has(input:checked) { border: 2px solid var(--ink); padding: 0 15px; font-weight: 650; }
.nospace-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.nospace-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.nospace-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nospace-output { display: grid; gap: 14px; min-width: 0; }
.article .nospace .nospace-status { font-weight: 600; overflow-wrap: anywhere; }
.nospace-digits summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.article .nospace-digits p { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; }
.article .nospace-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.article .nospace-list li { margin: 0; }
.ns-reading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-width: 0; padding: 4px 4px 10px 14px; border-radius: var(--r-tile); background: var(--tile); }
.article .ns-reading .ns-text { font-size: 22px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.ns-actions { display: flex; gap: 2px; }
.ns-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.ns-icon:hover { background: var(--fill); }
.ns-icon svg { width: 20px; height: 20px; }
.ns-code { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; padding-right: 10px; color: var(--ink); }
.ns-group { display: inline-flex; align-items: center; min-height: 16px; padding: 0 6px; border-left: 1px solid var(--ink); }
.ns-group:first-child { padding-left: 0; border-left: 0; }
.ns-group .code { --u: 3px; }
.ns-gap { flex: none; align-self: stretch; width: 12px; margin-left: 2px; border-left: 3px double var(--ink); }
@media (max-width: 480px) {
  .nospace { padding: 18px 16px; }
  .nospace-choice { flex: 1 1 100%; }
  .nospace-actions .btn { flex: 1 1 auto; }
}
