:root { color-scheme: light; }
body {
    font: 15px/1.45 system-ui, sans-serif;
    margin: 32px auto;
    padding: 0 20px;
    color: #202124;
    max-width: 1500px;
}
a { color: #0b57d0; }
h1 { margin-bottom: 4px; }
button, .button-link {
    display: inline-block;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 6px;
}
button { border: 1px solid #bbb; background: #fff; }
.button-link { border: 1px solid #bbb; text-decoration: none; }
small, .muted { color: #666; }
.top { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid #ddd; border-radius: 8px; }
table { border-collapse: collapse; width: max-content; min-width: 100%; }
th, td {
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #eee;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
th { background: #fafafa; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { background: #f0f0f0; }
.sort-mark { display: inline-block; min-width: 1em; font-size: 10px; }
.numeric { text-align: right; }
.domain-header {
    width: 34px;
    min-width: 34px;
    height: 170px;
    padding: 6px 2px;
    text-align: center;
    vertical-align: bottom;
}
.domain-header span {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}
.permission-cell { text-align: center; padding: 6px 4px; }
.permission-cell input { width: 17px; height: 17px; cursor: pointer; }
.admin-table tbody tr:hover { background: #fafcff; }

.name-editor {
    display: flex;
    align-items: center;
    gap: 4px;
}
.name-display {
    min-width: 1px;
}
.name-input {
    width: 180px;
    padding: 3px 5px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    font: inherit;
}
.edit-name {
    padding: 2px 5px;
    border: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1;
}

.edit-name.editing { background: #f0f0f0; }
