
    /* pipeline-compare.css — パイプライン比較ページ固有スタイル（共通スタイルはcommon.cssを参照） */

    /* pipeline-compareは独自カラーテーマを使うため:rootを上書き */
    :root {
      --bg: #0f0f23;
      --card: #1a1a2e;
      --card2: #16213e;
      --border: #2a2d4e;
      /* OpenAI・Groq固有カラー */
      --openai: #10a37f;
      --openai-dim: rgba(16, 163, 127, 0.15);
      --openai-border: rgba(16, 163, 127, 0.4);
      --groq: #f55036;
      --groq-dim: rgba(245, 80, 54, 0.15);
      --groq-border: rgba(245, 80, 54, 0.4);
    }

    html, body {
      height: 100%;
    }

    /* pipeline-compareは独自ヘッダーグラデーション */
    .header {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      justify-content: flex-start;
      gap: 14px;
    }

    /* pipeline-compareのheader-iconは独自グラデーション・border-radius */
    .header-icon {
      background: linear-gradient(135deg, var(--openai), var(--groq));
      border-radius: 10px;
    }

    .header h1 {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
    }

    .header-sub {
      font-size: 12px;
      color: var(--text-muted);
      margin-left: auto;
    }

    /* pipeline-compareの@keyframes pulse（アニメーション値が異なる） */
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    /* メインコンテンツ */
    .main {
      padding: 24px;
      max-width: 1400px;
      margin: 0 auto;
    }

    /* モード切替タブ */
    .mode-tabs {
      display: flex;
      gap: 0;
      margin-bottom: 0;
      border-bottom: 2px solid var(--border);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .mode-tabs::-webkit-scrollbar { display: none; }

    .mode-tab {
      padding: 10px 20px;
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -2px;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .mode-tab:hover {
      color: var(--text);
    }

    .mode-tab.active {
      color: var(--text);
      border-bottom-color: var(--openai);
    }

    .mode-tab[data-tab="groq-rt"].active {
      border-bottom-color: var(--groq);
    }

    .mode-tab .tab-icon {
      font-size: 16px;
    }

    /* リアルタイム会話タブ共通 */
    .rt-tab-content {
      display: none;
    }

    .rt-tab-content.active {
      display: block;
    }

    /* 大きなマイクボタン（リアルタイム用） */
    .rt-mic-btn {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      border: 3px solid var(--openai-border);
      background: var(--card2);
      color: var(--openai);
      font-size: 36px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      -webkit-user-select: none;
      position: relative;
      outline: none;
    }

    .rt-mic-btn.groq-mic {
      border-color: var(--groq-border);
      color: var(--groq);
    }

    .rt-mic-btn:hover {
      background: var(--openai-dim);
      border-color: var(--openai);
      transform: scale(1.05);
    }

    .rt-mic-btn.groq-mic:hover {
      background: var(--groq-dim);
      border-color: var(--groq);
    }

    .rt-mic-btn.rt-active {
      border-color: var(--green);
      background: rgba(34, 197, 94, 0.15);
      color: var(--green);
      animation: rt-mic-pulse 1.5s infinite;
    }

    .rt-mic-btn.rt-speaking {
      border-color: var(--red);
      background: rgba(239, 68, 68, 0.15);
      color: var(--red);
      animation: mic-pulse 1s infinite;
    }

    .rt-mic-btn.rt-thinking {
      border-color: var(--yellow);
      color: var(--yellow);
      cursor: default;
    }

    @keyframes rt-mic-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
      50% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); }
    }

    /* リアルタイム字幕エリア */
    .rt-subtitle {
      background: var(--card2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
      min-height: 72px;
      font-size: 18px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.6;
      text-align: center;
      word-break: break-all;
      margin-bottom: 16px;
      transition: border-color 0.2s;
    }

    .rt-subtitle.openai-active { border-color: var(--openai-border); }
    .rt-subtitle.groq-active { border-color: var(--groq-border); }
    .rt-subtitle.empty { color: var(--text-dim); font-size: 14px; font-weight: 400; }

    /* 状態バー */
    .rt-status-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      background: var(--card2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 16px;
    }

    /* 会話ログ */
    .rt-chat-log {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: 300px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 4px 0;
      margin-bottom: 16px;
    }

    .rt-chat-msg {
      display: flex;
      flex-direction: column;
      max-width: 85%;
    }

    .rt-chat-msg.user {
      align-self: flex-end;
      align-items: flex-end;
    }

    .rt-chat-msg.ai {
      align-self: flex-start;
      align-items: flex-start;
    }

    .rt-chat-bubble {
      padding: 10px 14px;
      border-radius: 14px;
      font-size: 14px;
      line-height: 1.5;
      word-break: break-all;
    }

    .rt-chat-msg.user .rt-chat-bubble {
      background: rgba(59, 130, 246, 0.2);
      border: 1px solid rgba(59, 130, 246, 0.3);
      color: #93c5fd;
      border-bottom-right-radius: 4px;
    }

    .rt-chat-msg.ai.openai-msg .rt-chat-bubble {
      background: var(--openai-dim);
      border: 1px solid var(--openai-border);
      color: var(--text);
      border-bottom-left-radius: 4px;
    }

    .rt-chat-msg.ai.groq-msg .rt-chat-bubble {
      background: var(--groq-dim);
      border: 1px solid var(--groq-border);
      color: var(--text);
      border-bottom-left-radius: 4px;
    }

    .rt-chat-meta {
      font-size: 10px;
      color: var(--text-dim);
      margin-top: 3px;
      padding: 0 4px;
    }

    /* RT計測グリッド */
    .rt-timing-row {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
    }

    .rt-timing-item {
      flex: 1;
      background: var(--card2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 8px 10px;
    }

    .rt-timing-label {
      font-size: 10px;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 2px;
    }

    .rt-timing-value {
      font-size: 17px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--text-muted);
    }

    .rt-timing-value.openai-hl { color: var(--openai); }
    .rt-timing-value.groq-hl { color: var(--groq); }

    /* RVCトグル（rt用） */
    .rt-controls {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .rt-note {
      font-size: 11px;
      color: var(--text-dim);
      font-style: italic;
    }

    /* RT全体レイアウト */
    .rt-layout {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 8px 0 4px;
    }

    .rt-mic-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .rt-mic-label {
      font-size: 13px;
      color: var(--text-muted);
      text-align: center;
    }

    .rt-mic-label strong { color: var(--text); }

    .rt-main-area {
      width: 100%;
    }

    /* 共通入力エリア */
    .input-section {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin-bottom: 24px;
    }

    .input-section-header {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 16px;
    }

    .input-section h2 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .input-row {
      display: flex;
      gap: 12px;
      align-items: flex-end;
    }

    .input-group {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .input-group label {
      font-size: 12px;
      color: var(--text-muted);
    }

    textarea.msg-input {
      width: 100%;
      background: #0f0f23;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text);
      font-size: 14px;
      font-family: inherit;
      padding: 10px 14px;
      resize: vertical;
      min-height: 70px;
      outline: none;
      transition: border-color 0.2s;
    }

    textarea.msg-input:focus {
      border-color: var(--openai);
    }

    .btn {
      padding: 10px 24px;
      border: none;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--openai), #0d8f6f);
      color: #fff;
    }

    .btn-primary:hover:not(:disabled) {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .btn-primary:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .btn-secondary {
      background: var(--card2);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn-secondary:hover {
      border-color: var(--text-muted);
    }

    /* ---- 音声入力モード ---- */
    .voice-input-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 8px 0 4px;
    }

    .mic-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .mic-btn {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      border: 3px solid var(--openai-border);
      background: var(--card2);
      color: var(--openai);
      font-size: 36px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      -webkit-user-select: none;
      position: relative;
      outline: none;
    }

    .mic-btn:hover {
      background: var(--openai-dim);
      border-color: var(--openai);
      transform: scale(1.05);
    }

    .mic-btn.recording {
      border-color: var(--red);
      background: rgba(239, 68, 68, 0.15);
      color: var(--red);
      animation: mic-pulse 1s infinite;
    }

    @keyframes mic-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
      50% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
    }

    .mic-btn.processing {
      border-color: var(--yellow);
      color: var(--yellow);
      cursor: not-allowed;
      opacity: 0.7;
    }

    .mic-instruction {
      font-size: 13px;
      color: var(--text-muted);
      text-align: center;
    }

    .mic-instruction strong {
      color: var(--text);
    }

    /* 波形ビジュアライザー */
    .visualizer-canvas {
      width: 300px;
      height: 48px;
      border-radius: var(--radius-sm);
      background: #080812;
      border: 1px solid var(--border);
    }

    /* STTテキスト表示 */
    .stt-text-display {
      background: var(--card2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      min-height: 44px;
      width: 100%;
      font-size: 13px;
      color: var(--text-dim);
      font-style: italic;
      text-align: center;
    }

    .stt-text-display.has-text {
      color: var(--text);
      font-style: normal;
    }

    /* STS追加計測グリッド */
    .sts-timing-extra {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      margin-bottom: 16px;
    }

    /* 縦並びレイアウト（スマホ対応） */
    .columns {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-bottom: 24px;
    }

    /* パイプラインカード */
    .pipeline-card {
      background: var(--card);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .pipeline-card.openai {
      border: 1px solid var(--openai-border);
    }

    .pipeline-card.groq {
      border: 1px solid var(--groq-border);
    }

    .card-header {
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .pipeline-card.openai .card-header {
      background: var(--openai-dim);
      border-bottom: 1px solid var(--openai-border);
    }

    .pipeline-card.groq .card-header {
      background: var(--groq-dim);
      border-bottom: 1px solid var(--groq-border);
    }

    .card-header-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
    }

    .pipeline-card.openai .card-header-icon {
      background: rgba(16, 163, 127, 0.3);
      color: var(--openai);
    }

    .pipeline-card.groq .card-header-icon {
      background: rgba(245, 80, 54, 0.3);
      color: var(--groq);
    }

    .card-title {
      flex: 1;
    }

    .card-title h3 {
      font-size: 15px;
      font-weight: 700;
    }

    .pipeline-card.openai .card-title h3 { color: var(--openai); }
    .pipeline-card.groq .card-title h3 { color: var(--groq); }

    .card-title p {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    /* 接続ボタン (OpenAI側) */
    .connect-btn {
      padding: 6px 14px;
      border-radius: 6px;
      border: 1px solid var(--openai-border);
      background: transparent;
      color: var(--openai);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .connect-btn:hover {
      background: var(--openai-dim);
    }

    .connect-btn.connected {
      background: var(--openai);
      color: #fff;
      border-color: var(--openai);
    }

    .connect-btn.connecting {
      opacity: 0.6;
      cursor: not-allowed;
    }

    /* RVCトグル */
    .rvc-toggle-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .toggle-switch {
      position: relative;
      width: 36px;
      height: 20px;
      flex-shrink: 0;
    }

    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0; right: 0; bottom: 0;
      background: #2a2d4e;
      border-radius: 20px;
      transition: 0.3s;
    }

    .toggle-slider::before {
      position: absolute;
      content: '';
      width: 14px;
      height: 14px;
      left: 3px;
      bottom: 3px;
      background: #fff;
      border-radius: 50%;
      transition: 0.3s;
    }

    .toggle-switch input:checked + .toggle-slider {
      background: var(--groq);
    }

    .toggle-switch input:checked + .toggle-slider::before {
      transform: translateX(16px);
    }

    /* カードボディ */
    .card-body {
      padding: 20px;
    }

    /* ステータス */
    .status-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      padding: 10px 14px;
      background: var(--card2);
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .status-dot.idle { background: var(--text-dim); }
    .status-dot.processing { background: var(--yellow); animation: pulse 1s infinite; }
    .status-dot.playing { background: var(--green); animation: pulse 0.7s infinite; }
    .status-dot.done { background: var(--green); }
    .status-dot.error { background: #ef4444; }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    .status-text {
      font-size: 13px;
      color: var(--text);
    }

    /* タイムスタンプ計測 */
    .timing-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 16px;
    }

    .timing-grid-3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      margin-bottom: 16px;
    }

    .timing-item {
      background: var(--card2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 12px;
    }

    .timing-label {
      font-size: 10px;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 4px;
    }

    .timing-value {
      font-size: 20px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--text-muted);
    }

    .timing-value.highlight {
      color: var(--openai);
    }

    .pipeline-card.groq .timing-value.highlight {
      color: var(--groq);
    }

    .timing-value.winner {
      color: var(--green);
    }

    .timing-unit {
      font-size: 11px;
      font-weight: 400;
      color: var(--text-dim);
      margin-left: 2px;
    }

    /* タイムスタンプ詳細 */
    .timestamp-table {
      margin-bottom: 16px;
      font-size: 12px;
    }

    .ts-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 0;
      border-bottom: 1px solid var(--border);
    }

    .ts-row:last-child { border-bottom: none; }

    .ts-label { color: var(--text-muted); }
    .ts-val { font-variant-numeric: tabular-nums; color: var(--text); font-family: monospace; }
    .ts-val.pending { color: var(--text-dim); }

    /* 応答テキスト */
    .response-text-box {
      background: var(--card2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 14px;
      min-height: 60px;
      font-size: 13px;
      color: var(--text);
      line-height: 1.7;
      margin-bottom: 14px;
      word-break: break-all;
    }

    .response-text-box.empty {
      color: var(--text-dim);
      font-style: italic;
    }

    /* 音声プレーヤー */
    .audio-player-wrap {
      margin-bottom: 0;
    }

    .audio-player-wrap audio {
      width: 100%;
      height: 36px;
      border-radius: var(--radius-sm);
    }

    .audio-placeholder {
      background: var(--card2);
      border: 1px dashed var(--border);
      border-radius: var(--radius-sm);
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-dim);
      font-size: 12px;
    }

    /* 比較結果 */
    .comparison-section {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin-bottom: 24px;
    }

    .comparison-section h2 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 16px;
    }

    .comparison-result {
      text-align: center;
      padding: 20px;
      background: var(--card2);
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      font-size: 20px;
      font-weight: 700;
      color: var(--text-muted);
      min-height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: pre-wrap;
    }

    .comparison-result.openai-win {
      border-color: var(--openai-border);
      background: var(--openai-dim);
      color: var(--openai);
    }

    .comparison-result.groq-win {
      border-color: var(--groq-border);
      background: var(--groq-dim);
      color: var(--groq);
    }

    .comparison-result.tie {
      border-color: rgba(234, 179, 8, 0.4);
      background: rgba(234, 179, 8, 0.08);
      color: var(--yellow);
    }

    /* STS比較テーブル */
    .sts-compare-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      margin-top: 16px;
    }

    .sts-compare-table th {
      padding: 8px 14px;
      text-align: left;
      color: var(--text-dim);
      font-weight: 600;
      text-transform: uppercase;
      font-size: 11px;
      letter-spacing: 0.04em;
      border-bottom: 1px solid var(--border);
    }

    .sts-compare-table th:nth-child(2) { color: var(--openai); }
    .sts-compare-table th:nth-child(3) { color: var(--groq); }

    .sts-compare-table td {
      padding: 8px 14px;
      border-bottom: 1px solid rgba(42, 45, 78, 0.5);
      color: var(--text);
    }

    .sts-compare-table tr:last-child td { border-bottom: none; }

    .sts-compare-table td.winner-cell {
      color: var(--green);
      font-weight: 700;
    }

    /* 履歴テーブル */
    .history-section {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin-bottom: 24px;
    }

    .history-section h2 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .history-count {
      background: var(--card2);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 2px 10px;
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 400;
    }

    .history-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    .history-table th {
      text-align: left;
      padding: 8px 12px;
      color: var(--text-dim);
      border-bottom: 1px solid var(--border);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    .history-table td {
      padding: 8px 12px;
      border-bottom: 1px solid rgba(42, 45, 78, 0.5);
      color: var(--text);
      vertical-align: middle;
    }

    .history-table tr:last-child td {
      border-bottom: none;
    }

    .history-table tr:hover td {
      background: var(--card2);
    }

    .badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
    }

    .badge.openai { background: var(--openai-dim); color: var(--openai); border: 1px solid var(--openai-border); }
    .badge.groq { background: var(--groq-dim); color: var(--groq); border: 1px solid var(--groq-border); }
    .badge.tie { background: rgba(234,179,8,0.12); color: var(--yellow); border: 1px solid rgba(234,179,8,0.3); }
    .badge.sts { background: rgba(59,130,246,0.12); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }

    .no-history {
      text-align: center;
      padding: 24px;
      color: var(--text-dim);
      font-style: italic;
    }

    /* ログ */
    .log-section {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin-bottom: 24px;
    }

    .log-section h2 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 12px;
    }

    .log-box {
      background: #080812;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 14px;
      height: 160px;
      overflow-y: auto;
      font-family: 'Courier New', monospace;
      font-size: 11px;
      line-height: 1.6;
      color: var(--text-muted);
    }

    .log-line { margin-bottom: 2px; }
    .log-line.info { color: #64748b; }
    .log-line.openai { color: var(--openai); }
    .log-line.groq { color: var(--groq); }
    .log-line.warn { color: var(--yellow); }
    .log-line.err { color: #ef4444; }
    .log-line.sts { color: var(--blue); }

    /* 区切り */
    .section-divider {
      height: 1px;
      background: var(--border);
      margin: 0 0 24px 0;
    }

    /* STS専用タイムスタンプ行 */
    .ts-row.sts-only { display: none; }
    .sts-mode .ts-row.sts-only { display: flex; }

    /* スマホ対応 */
    .main {
      padding: 16px;
    }

    .input-row {
      flex-direction: column;
    }

    .input-btn-group {
      flex-shrink: unset !important;
      width: 100%;
    }

    .input-btn-group .btn {
      width: 100%;
    }

    .mic-btn {
      width: 96px;
      height: 96px;
      min-width: 44px;
      min-height: 44px;
    }

    .visualizer-canvas {
      width: 100%;
      max-width: 300px;
    }

    .pipeline-card {
      width: 100%;
    }

    /* 比較テーブル・履歴テーブルの横スクロール対応 */
    .comparison-section .table-scroll,
    #historyTableWrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .sts-compare-table,
    .history-table {
      min-width: 480px;
    }

    .header h1 {
      font-size: 15px;
    }

    .header-sub {
      display: none;
    }

    .mode-tab {
      padding: 10px 14px;
      font-size: 13px;
    }

    .timing-value {
      font-size: 22px;
    }

    /* ページナビゲーション */
    .page-nav {
      display: flex;
      gap: 8px;
      padding: 12px 16px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      background: #12122a;
      border-bottom: 1px solid #2a2a4a;
    }
    .nav-tab {
      flex-shrink: 0;
      padding: 8px 16px;
      border-radius: 8px;
      background: #1a1a2e;
      color: #a0a0b0;
      text-decoration: none;
      font-size: 14px;
      white-space: nowrap;
      transition: background 0.2s;
    }
    .nav-tab:hover { background: #252545; }
    .nav-tab.active {
      background: #2a2a5a;
      color: #fff;
      font-weight: bold;
    }
  