  .ta-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 276px 1fr 420px;
    gap: 0;
    min-height: 0;
  }

  .ta-panel {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
  }

  section {
    padding: 14px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text3);
    margin-bottom: 10px;
  }

  .section-label-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hint-text {
    font-size: 12px;
    color: var(--text3);
    margin-top: 10px;
    line-height: 1.65;
  }

  .btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn-secondary {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-muted);
    color: var(--text2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  }

  .btn-secondary:hover:not(:disabled) {
    border-color: var(--border-strong);
    color: var(--text);
  }

  .message-block {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--text2);
    line-height: 1.7;
    font-size: 12px;
  }

  #summary {
    font-weight: 600;
    color: var(--text3);
  }

  #summary.is-success { color: #0f766e; }
  #summary.is-danger { color: #dc2626; }

  .ta-editor-area {
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 18px 18px;
    min-height: 0;
    overflow: hidden;
  }

  .editor {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    height: 100%;
  }

  .editor-title {
    font-size: 12px;
    color: var(--text3);
    letter-spacing: 0.03em;
    margin-bottom: 8px;
  }

  .editor-shell {
    flex: 1;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }

  .editor-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }

  .editor-input {
    width: 100%;
    height: 100%;
    min-height: 380px;
    resize: vertical;
    overflow: auto;
    padding: 12px 12px;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
    color: var(--text);
  }

  .ta-output {
    background: var(--surface);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    min-width: 0;
  }

  .output-section {
    padding: 14px 14px;
  }

  .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-item {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    padding: 10px 10px;
    min-width: 0;
  }

  .stat-name {
    font-size: 11px;
    color: var(--text3);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
  }

  .stat-value {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kw-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
    background: var(--surface);
  }

  .empty-output {
    padding: 14px 12px;
    font-size: 12px;
    color: var(--text3);
  }

  .kw-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 12px;
  }

  .kw-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface-muted);
    color: var(--text3);
    text-align: left;
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
  }

  .kw-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    vertical-align: top;
  }

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

  .kw-word { color: var(--text); }
  .kw-count, .kw-pct { text-align: right; }

  @media (max-width: 980px) {
    .ta-workspace {
      grid-template-columns: 1fr;
    }
    .ta-panel {
      border-right: none;
      border-bottom: 1px solid var(--border);
    }
    .ta-editor-area {
      border-right: none;
      border-bottom: 1px solid var(--border);
    }
    .ta-output {
      overflow: visible;
    }
    .stat-grid {
      grid-template-columns: 1fr;
    }
    .btn-row {
      flex-direction: row;
      flex-wrap: wrap;
    }
    .btn-secondary {
      width: auto;
      flex: 1;
      min-width: 120px;
    }
  }
