[hidden] { display: none !important; }
button, input, select { font-family: inherit; }
.test-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border: 1px solid #ffcf5a; border-radius: 5px; color: #171c24; background: #ffcf5a; font: 700 10px/1.4 Manrope,sans-serif; vertical-align: 2px; letter-spacing: .08em; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #a0e6ff; outline-offset: 3px; }
.controls { min-width: 0; }
.controls > .field:not(#searchField), .controls > .btn { min-width: 110px; flex: 1 1 176px; }
.app-nav { flex: 0 0 45px; display: flex; justify-content: space-between; align-items: stretch; padding: 0 22px; background: #091323; border-bottom: 1px solid var(--glass-edge); z-index: 15; }
.tab-buttons { display: flex; gap: 26px; }
.tab-buttons button { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 0 2px; cursor: pointer; }
.tab-buttons button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.account { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 12px; }
#accountName { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button { padding: 5px 0; border: 0; background: none; color: var(--cyan); cursor: pointer; }
.content-panel { min-height: 0; flex: 1; overflow: auto; padding: 26px 30px; background: radial-gradient(ellipse at top right,#12283f 0,transparent 55%),#080f1d; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
h1 { font: 400 21px/1.4 Unbounded,Manrope,sans-serif; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 14px; font-weight: 600; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.section-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.section-switch button { padding: 9px 14px; border: 1px solid #29415b; border-radius: 8px; background: #0c1a2b; color: #b5c9dc; cursor: pointer; font-size: 12px; }
.section-switch button[aria-pressed="true"] { color: #f5d78e; border-color: #b08e47; background: #302919; }
.section-switch .count { margin-left: 7px; opacity: .7; }
.directory-search { width: min(100%,450px); height: 38px; margin-bottom: 16px; padding: 0 12px; color: var(--text); border: 1px solid #29415b; background: #0a1728; border-radius: 8px; }
.directory-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,390px); align-items: start; gap: 20px; }
.table-wrap { overflow: auto; border: 1px solid #253a50; border-radius: 11px; background: #0b1726; max-height: calc(100vh - 305px); }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th { text-align: left; position: sticky; top: 0; z-index: 2; font-weight: 600; color: #a8c0d6; background: #102138; }
th, td { padding: 12px 14px; border-bottom: 1px solid #203249; vertical-align: top; line-height: 1.5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-id] { cursor: pointer; }
tbody tr[data-id]:hover { background: #152941; }
tbody tr[aria-selected="true"] { background: #20364a; box-shadow: 3px 0 #e6c16c inset; }
.row-name { border: 0; background: none; color: inherit; text-align: left; padding: 0; cursor: pointer; font-weight: 500; font-size: inherit; }
.record-card, .settings-card { border: 1px solid #2b425a; background: rgba(13,27,44,.95); border-radius: 12px; padding: 21px; min-width: 0; }
.record-card { position: sticky; top: 0; }
.record-card h2 { font-size: 17px; line-height: 1.5; color: #f1ddb0; }
dl { margin: 0; }
dt { color: #8da9c0; font-size: 11px; margin: 17px 0 5px; }
dd { margin: 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.series-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.series-chip { display: inline-block; padding: 2px 7px; color: #a2e1f5; background: #122e43; border-radius: 5px; font-size: 11px; }
.primary-button { border: 1px solid #d3ab54; background: #e7c36d; border-radius: 8px; color: #171c24; font-size: 12px; font-weight: 700; padding: 10px 16px; cursor: pointer; }
.primary-button:disabled { cursor: default; opacity: .5; }
.secondary-button { border: 1px solid #3a536c; background: #15263b; color: #d9e7f2; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-size: 12px; }
.card-actions { margin-top: 22px; }
.empty-state { padding: 24px 8px; font-size: 13px; color: #9bb4cc; line-height: 1.7; }
.site-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-links button { font-size: 12px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; align-items: start; gap: 20px; }
.form-grid { display: grid; gap: 15px; }
.form-grid label:not(.check-label) { display: grid; gap: 7px; font-size: 12px; color: #b6cce0; }
.form-grid input:not([type="checkbox"]) { border: 1px solid #39516a; background: #081526; border-radius: 7px; padding: 10px 11px; color: #edf5ff; min-width: 0; font-size: 14px; }
.check-label { display: flex; gap: 9px; align-items: center; font-size: 12px; color: #d5e0eb; }
input[type="checkbox"] { accent-color: #e5c370; width: 15px; height: 15px; }
fieldset { border: 1px solid #2b435a; border-radius: 8px; margin: 0; padding: 14px; display: grid; gap: 11px; }
legend { padding: 0 5px; font-size: 11px; color: #9bb4cc; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-error { color: #ffb9aa; font-size: 12px; margin: 0; line-height: 1.6; }
.notice { position: fixed; z-index: 100; bottom: 22px; right: 24px; max-width: 420px; padding: 14px 18px; color: #ecf7ff; border: 1px solid #6e9c9a; border-radius: 10px; background: #15333a; box-shadow: 0 5px 30px #0006; font-size: 13px; }
.auth-page { overflow: auto; display: grid; min-height: 100vh; place-items: center; background: radial-gradient(ellipse at 50% 20%,#193b5b,transparent 65%),#050a12; padding: 24px; }
.auth-card { width: min(100%,430px); padding: 34px; border: 1px solid #3a536d; background: #0b192c; border-radius: 16px; box-shadow: 0 24px 80px #0005; }
.auth-card .brand { margin-bottom: 30px; min-width: 0; }
.auth-card .brand .sub { margin-top: 10px; font-size: 11px; line-height: 1.6; }
.auth-card .primary-button { margin-top: 3px; }
.auth-card h1 { font-family: Manrope,sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 20px; }
@media(max-width:1100px) { .directory-layout,.settings-layout { grid-template-columns: minmax(0,1fr) 320px; } .content-panel { padding: 20px; } .toolbar { padding-left: 12px; padding-right: 12px; gap: 10px; } #searchField { min-width: 175px; flex-basis:175px; } }
@media(max-width:800px) { .directory-layout,.settings-layout { grid-template-columns: 1fr; } .record-card { position: static; } .table-wrap { max-height: 40vh; } .app-nav { padding: 0 12px; } .tab-buttons { gap: 14px; } .account { gap: 8px; } }
