/* text-chunker — style.css (RT-AI-007). Tokens only. */
#tch { display: flex; flex-direction: column; gap: 1rem; }
.tch-input {
  width: 100%; min-height: 150px; padding: .75rem; font-size: 16px; line-height: 1.6;
  border: 1px solid var(--rt-border, #d8dce2); border-radius: 10px; resize: vertical;
  background: var(--rt-card, #fff); color: var(--rt-ink, #14213d); font-family: inherit;
}
.tch-input:focus-visible { outline: 2px solid var(--rt-accent, #e8622a); outline-offset: 2px; }
.tch-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tch-field { display: flex; flex-direction: column; gap: .35rem; }
.tch-label { font-size: .8rem; font-weight: 600; color: var(--rt-ink-soft, #2A3340); }
.tch-num {
  width: 100%; min-height: 44px; padding: .5rem .65rem; font-size: 16px;
  border: 1px solid var(--rt-border, #d8dce2); border-radius: 8px;
  background: var(--rt-card, #fff); color: var(--rt-ink, #14213d); font-family: inherit;
}
.tch-num:focus-visible { outline: 2px solid var(--rt-accent, #e8622a); outline-offset: 2px; }
.tch-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tch-btn {
  min-height: 38px; padding: .4rem .85rem; border: 1px solid var(--rt-border, #d8dce2);
  border-radius: 8px; background: var(--rt-card, #fff); color: var(--rt-ink, #14213d); font-weight: 600; cursor: pointer;
}
.tch-btn--primary { background: var(--rt-accent, #e8622a); color: #fff; border-color: var(--rt-accent, #e8622a); }
.tch-btn:hover { filter: brightness(1.03); }
.tch-btn:disabled { opacity: .5; cursor: not-allowed; }
.tch-btn:focus-visible { outline: 2px solid var(--rt-ink, #14213d); outline-offset: 2px; }
.tch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tch-stat {
  display: flex; flex-direction: column; gap: .12rem; padding: .65rem .55rem; text-align: center;
  border: 1px solid var(--rt-border, #d8dce2); border-radius: 10px; background: var(--rt-card, #fff);
}
.tch-stat-val { font-size: 1.2rem; font-weight: 700; color: var(--rt-ink, #14213d); }
.tch-stat-label { font-size: .7rem; font-weight: 600; color: var(--rt-ink-soft, #2A3340); }
.tch-list { display: flex; flex-direction: column; gap: .5rem; max-height: 520px; overflow-y: auto; }
.tch-chunk { border: 1px solid var(--rt-border, #d8dce2); border-radius: 10px; overflow: hidden; }
.tch-chunk-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .4rem .6rem; background: var(--rt-bg, #f7f6f3); border-bottom: 1px solid var(--rt-border, #ebebeb);
}
.tch-chunk-n { font-size: .78rem; font-weight: 700; color: var(--rt-ink, #14213d); }
.tch-chunk-t { font-size: .72rem; color: var(--rt-ink-mute, #6b6760); font-variant-numeric: tabular-nums; }
.tch-chunk-body {
  padding: .55rem .65rem; font-size: .82rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
  font-family: var(--rt-mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace); color: var(--rt-ink, #14213d);
  max-height: 140px; overflow-y: auto;
}
.tch-more { font-size: .76rem; color: var(--rt-ink-mute, #6b6760); margin: .2rem 0 0; text-align: center; }
.tch-status { font-size: .75rem; color: var(--rt-ink-mute, #6b6760); min-height: 1.1em; }
