/* ASCII Table & Converter — только этот инструмент */
#tool .io { min-height: 0; resize: vertical; }
#tool [data-action="download"] { display: none; }
.ascii-sec { margin: 32px 0 8px; scroll-margin-top: 80px; }
.ascii-sec h2 { margin: 0 0 12px; }
.ascii-sec [hidden] { display: none !important; }
.ascii-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.ascii-controls .segmented label { padding: 7px 12px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; }
.ascii-search { position: relative; display: inline-flex; flex: 1 1 280px; max-width: 420px; }
.ascii-search input { width: 100%; font: 15px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 40px 9px 12px; }
.ascii-search input::-webkit-search-cancel-button { display: none; }
.ascii-search input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.ascii-search button { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); height: 36px; font-size: 18px; }
.ascii-allcols { display: none; align-items: center; gap: 6px; cursor: pointer; }
.ascii-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.ascii-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ascii-table caption { caption-side: top; text-align: left; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.ascii-table th, .ascii-table td { padding: 6px 12px; text-align: left; border-top: 1px solid var(--border); white-space: nowrap; }
.ascii-table td { font-family: var(--mono); font-size: 13px; }
.ascii-table td.c-desc { font-family: var(--font); font-size: 14px; white-space: normal; min-width: 180px; }
.ascii-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; box-shadow: 0 1px 0 var(--border); }
.ascii-table tr.grp th { background: var(--code-bg); font-size: 13px; color: var(--muted); font-weight: 600; }
.ascii-table abbr { text-decoration: none; font-weight: 600; }
.ascii-table code { font-size: 13px; }
.ascii-table.js td:not(.c-desc) { cursor: copy; }
.ascii-table.js td:not(.c-desc):hover { background: var(--blue-tint); }
.ascii-table tr.hl td { background: var(--blue-tint); }
.ascii-table td.copied { position: relative; }
.ascii-table td.copied::after { content: attr(data-copied); position: absolute; left: 50%; top: -4px; transform: translate(-50%, -100%); background: var(--ink); color: var(--surface); font: 600 12px var(--font); padding: 3px 8px; border-radius: 6px; pointer-events: none; z-index: 3; }
.ascii-foot { margin-top: 10px; }
@media (max-width: 768px) {
  .ascii-allcols { display: inline-flex; }
  .ascii-table:not(.all) .c-oct, .ascii-table:not(.all) .c-html { display: none; }
  .ascii-table th, .ascii-table td { padding: 6px 8px; }
  .ascii-table td.c-desc { min-width: 140px; }
  .ascii-controls .segmented { display: flex; width: 100%; }
  .ascii-controls .segmented label { flex: 1; justify-content: center; min-height: 44px; }
  .ascii-search { max-width: none; }
  .ascii-search input { min-height: 44px; }
  .bt-base { display: flex; width: 100%; }
  .bt-base label { flex: 1; justify-content: center; min-height: 44px; padding: 7px 4px; }
  #tool .options .field { width: 100%; }
}
