/* =====================================================================
   style.css — 行の操作（ソート・重複削除）ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 入力・出力の複数行テキスト */
.sg-textarea-lines {
  font-family: var(--sg-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  resize: vertical;
}
#out-text {
  background: var(--sg-surface-2, #f7f8fb);
}

/* サブラベル・セレクト */
.sg-label--sub {
  font-weight: 500;
  font-size: 0.9rem;
}
.sg-select {
  max-width: 100%;
}

/* 並べ替えの向き（ラジオ） */
.sg-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* 整形・変換（チェックボックス群） */
.sg-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}
.sg-check--nested {
  margin-left: 26px;
  font-size: 0.9rem;
  color: var(--sg-muted, #666);
}
.sg-check input:disabled + span {
  opacity: 0.45;
}

/* 操作ボタン列 */
.sg-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 統計 */
.sg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: var(--sg-space-2, 8px);
}
.sg-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.9rem;
}
.sg-stat__label {
  color: var(--sg-muted, #777);
}
.sg-stat__val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
