.types-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.types-page h1 { margin: .25rem 0 .75rem; }
.types-page h1 span { color: var(--accent, #b56cff); }
.types-page .intro { max-width: 800px; color: var(--muted, #aaa); line-height: 1.65; margin-bottom: 2rem; }
.types-page .panel { margin: 1.25rem 0; }
.types-page .field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.types-page .field span { color: var(--muted, #aaa); font-size: .82rem; }
.types-page input, .types-page select { width: 100%; min-width: 0; }
.file-picker { display: inline-flex; padding: .75rem 1rem; border: 1px solid rgba(181,108,255,.55); border-radius: 8px; background: rgba(181,108,255,.12); cursor: pointer; }
#types-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.types-page .status { min-height: 1.4em; margin: .8rem 0; color: var(--muted, #aaa); font-size: .88rem; overflow-wrap: anywhere; }
.types-page .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.types-page button { cursor: pointer; }
.types-page button:disabled { opacity: .45; cursor: not-allowed; }
.types-page .secondary { border: 1px solid rgba(255,255,255,.2); border-radius: 7px; padding: .6rem .85rem; background: transparent; color: inherit; }
.filter-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(130px,1fr); gap: 1rem; margin: 1rem 0; }
.types-page .field { display: flex; flex-direction: column; }
.types-table { min-width: 900px; width: 100%; border-collapse: collapse; font-size: .86rem; }
.types-table th, .types-table td { padding: .65rem .55rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.types-table th { color: var(--muted, #aaa); font-weight: 600; }
.types-table .classname-cell { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.types-table code { color: #fff; }
.row-edit { padding: .4rem .65rem; border: 1px solid rgba(181,108,255,.45); border-radius: 6px; color: inherit; background: rgba(181,108,255,.1); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.pagination span { color: var(--muted, #aaa); font-size: .88rem; }
.types-page .note-panel li { margin: .55rem 0; line-height: 1.5; }
.edit-dialog { width: min(620px, calc(100% - 1.5rem)); max-height: 90vh; overflow: auto; border: 1px solid rgba(181,108,255,.45); border-radius: 14px; padding: 1.25rem; background: #14131b; color: #fff; }
.edit-dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-head h2 { margin: .2rem 0; overflow-wrap: anywhere; }
.close-dialog { border: 0; background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; }
.edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
@media(max-width:640px) {
  .filter-row, .edit-grid { grid-template-columns: 1fr; }
  .pagination { gap: .5rem; flex-wrap: wrap; }
  .types-table { font-size: .8rem; }
}