#tp-form .tp-row { margin: 0 0 1rem; padding: .85rem; border: 1px solid var(--line, #ddd); border-radius: .6rem; min-width: 0; }
#tp-form .tp-row-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
#tp-form .tp-row-title { padding: 0 .3rem; font-weight: 600; }
#tp-form .tp-delete { margin-bottom: .1rem; }
#tp-form input { min-width: 0; max-width: 100%; box-sizing: border-box; }
#tp-form .tp-row-actions { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
#tp-class-table { min-width: 680px; }
#tp-class-table th:first-child { width: 4rem; }
#tp-class-table td { white-space: normal; vertical-align: top; }
#tp-class-table th:nth-child(2) { width: 36%; }
#tp-lookup .tp-filter-field { max-width: 32rem; }
#tp-result .tp-law-note { border-left: 3px solid #b67a20; padding-left: .75rem; }
@media (max-width: 480px) {
  #tp-form .tp-row-grid { grid-template-columns: minmax(0, 1fr); }
  #tp-form .tp-delete { justify-self: start; }
}
