:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #e3e9f1; background: #11161e; font-synthesis: none; line-height: 1.5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 2rem; border-bottom: 1px solid #334153; background: #161d27; }
.eyebrow { margin: 0 0 .25rem; color: #9cacc0; font: .75rem/1.5 ui-monospace, monospace; letter-spacing: .07em; }
h1 { margin: 0; font-size: 1.5rem; font-weight: 600; }
h2 { margin: 0 0 .6rem; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
p { margin: .5rem 0; }
main { padding: 1rem 2rem 2rem; max-width: 1920px; margin-inline: auto; }
.panel { padding: 1.25rem; background: #19212c; border: 1px solid #334153; border-radius: .35rem; min-width: 0; }
.status { min-height: 1.5rem; margin: 0 0 1rem; color: #a9c6e9; overflow-wrap: anywhere; }
.muted, .hint { color: #a9b6c8; overflow-wrap: anywhere; }
.hint { font-size: .82rem; }
.error { color: #ffb7b7; overflow-wrap: anywhere; }
.error:empty { display: none; }
button, input, select { font: inherit; font-size: 1rem; }
button { min-height: 2.75rem; border: 1px solid #54677e; border-radius: .25rem; padding: .5rem .85rem; background: #263649; color: #f0f5fc; cursor: pointer; }
button:hover:enabled { background: #344b66; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #8fc8ff; outline-offset: 3px; }
input:not([type="checkbox"]), select { display: block; width: 100%; min-height: 2.75rem; padding: .55rem .65rem; border: 1px solid #64758c; border-radius: .25rem; color: #ecf2fa; background: #101720; }
input::placeholder { color: #889ab2; }
label { display: block; margin-bottom: .3rem; color: #c1cedf; font-size: .875rem; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: #85b8f0; }
.check { display: flex; align-items: center; gap: .5rem; margin: 0; min-height: 2.75rem; }
.login-panel { max-width: 30rem; margin: 3rem auto; }
.login-panel form { margin-top: 1.5rem; }
.login-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.toolbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 1.25rem 0; }
.metrics dt { color: #a9b6c8; font-size: .875rem; }
.metrics dd { margin: .3rem 0 0; font: 1.65rem/1.3 ui-monospace, "Cascadia Code", monospace; overflow-wrap: anywhere; }
.workspace { display: grid; grid-template-columns: minmax(19rem, 25rem) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.tables-panel search { display: block; margin-bottom: 1rem; }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid #3c4b60; border-radius: .2rem; }
.table-list-scroll { max-height: 65vh; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; text-align: left; }
th, td { padding: .6rem .7rem; border-bottom: 1px solid #344254; vertical-align: top; }
th { position: sticky; top: 0; background: #243042; color: #cdd9e9; font-weight: 600; z-index: 1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #1d2836; }
.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-list td:first-child { padding: 0; }
.table-select { display: block; border: 0; border-radius: 0; width: 100%; text-align: left; background: transparent; padding: .65rem; font: .85rem/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.table-select[aria-pressed="true"] { color: #b5dbff; background: #2c4560; box-shadow: inset 3px 0 #8fc8ff; }
.filter-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.filter-form > div { flex: 1 1 10rem; min-width: 0; }
.filter-form .filter-value { flex-grow: 2; }
.count-toolbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 1rem 0; font-size: .875rem; }
.rows-scroll { margin-top: 1rem; max-height: 65vh; }
#rows-table { font-family: ui-monospace, "Cascadia Code", monospace; }
#rows-table th { min-width: 9rem; overflow-wrap: anywhere; }
.column-type { display: block; font-size: .73rem; font-weight: 400; color: #a3b6ce; }
#rows-table td { max-width: 22rem; min-width: 9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.cell-open { display: block; min-height: 0; max-width: 22rem; padding: 0; border: 0; border-bottom: 1px dotted #779dc8; background: transparent; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: #b9d9ff; }
.cell-null { color: #9eafc4; font-style: italic; }
.pagination { display: flex; gap: .75rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
#page-info { font-size: .875rem; color: #becbdc; }
dialog { width: min(55rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1.25rem; border: 1px solid #687f9c; border-radius: .35rem; color: #e3e9f1; background: #19212c; }
dialog::backdrop { background: rgb(0 0 0 / .7); }
.dialog-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.dialog-heading h2 { margin: 0; }
dialog pre { max-height: 65vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #101720; padding: 1rem; border: 1px solid #344254; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.monitor-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; border-bottom: 1px solid #334153; padding-bottom: .75rem; }
.monitor-tabs [aria-selected="true"] { border-color: #8fc8ff; background: #2c4560; color: #d6ebff; box-shadow: inset 0 -3px #8fc8ff; }
.instances-filters { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.instances-filters > div { flex: 1 1 16rem; min-width: 0; }
.instances-servers { display: grid; gap: 1rem; margin-top: 1rem; }
.server-card h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.server-card p { font-size: .875rem; }
.host-info, .process-summary { color: #c1cedf; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: .2rem .45rem; border: 1px solid #65758c; border-radius: .25rem; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.badge-ok { color: #b9edc9; background: #1c382d; border-color: #518e68; }
.badge-stale { color: #ffe0a3; background: #3e321c; border-color: #a3884c; }
.badge-unavailable { color: #ffc4c4; background: #42262c; border-color: #a86972; }
.badge-unknown { color: #c6d3e5; background: #293446; border-color: #667c98; }
.instances-scroll { margin-top: 1rem; }
.instances-table { min-width: 70rem; }
.instances-table th:nth-child(1) { min-width: 10rem; }
.instances-table th:nth-child(5) { min-width: 14rem; }
.instances-table td { overflow-wrap: anywhere; max-width: 22rem; }
.instance-subline { display: block; margin-top: .4rem; color: #a9b6c8; font-size: .75rem; }
.instances-table summary { cursor: pointer; padding: .25rem 0; min-height: 2.5rem; color: #b9d9ff; }
.instance-details { min-width: 15rem; max-width: 22rem; font-size: .8rem; }
.instance-details dt { color: #a9b6c8; margin-top: .75rem; }
.instance-details dd { margin: .15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .workspace { grid-template-columns: 1fr; } .table-list-scroll { max-height: 20rem; } }
@media (max-width: 600px) { .header { padding: 1rem; } main { padding: 1rem; } .panel { padding: 1rem; } .metrics { grid-template-columns: 1fr; gap: 1rem; } .metrics dd { font-size: 1.4rem; } .toolbar { width: 100%; gap: .5rem; } .filter-form > div { flex-basis: 100%; } .filter-form > button { flex: 1; } .login-panel { margin: 1rem auto; } .eyebrow { font-size: .65rem; } .pagination { gap: .5rem; } }
@media (pointer: coarse) { button, input:not([type="checkbox"]), select { min-height: 3rem; } .cell-open { min-height: 3rem; } }
@media (max-width: 600px) { .monitor-tabs button { flex: 1; } .instances-filters { gap: .75rem; } .server-card .section-heading { gap: .5rem; } .instances-table { min-width: 65rem; } }
