:root {
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: #152634;
    background: #f3f5f7;
    font-size: 14px
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

a {
    color: #16705d;
    text-decoration: none
}

button,.button {
    font: inherit;
    border: 1px solid #cbd6d9;
    border-radius: 6px;
    background: white;
    padding: 9px 14px;
    cursor: pointer;
    display: inline-block
}

button:hover,.button:hover {
    background: #e4f0eb
}

button:disabled {
    opacity: .4;
    cursor: default
}

.button,button[type=submit] {
    background: #176f59;
    color: white;
    border-color: #176f59
}

button.danger {
    color: #a73832
}

.shell {
    display: flex;
    min-height: 100vh
}

aside {
    width: 230px;
    background: #122d31;
    color: #adc4c5;
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    flex-shrink: 0
}

.brand {
    color: #69d4a2;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px
}

.brand span {
    font-size: 17px;
    color: white
}

.nav-caption {
    font-size: 10px;
    letter-spacing: 2px;
    margin: 48px 10px 14px
}

nav {
    display: grid;
    gap: 5px
}

nav a {
    padding: 12px;
    color: #b7cbcd;
    border-radius: 5px
}

nav a.active {
    background: #24474a;
    color: white;
    box-shadow: inset 3px 0 #71d7aa
}

.sidebar-footer {
    margin-top: auto;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 32px 10px 0;
    line-height: 2
}

main {
    min-width: 0;
    flex: 1
}

header {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    border-bottom: 1px solid #dce3e7;
    background: #fff;
    font-size: 11px;
    letter-spacing: 1px
}

header>span:first-child {
    margin-right: auto
}

article {
    padding: 40px;
    max-width: 1600px;
    margin: auto
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    color: #5c7b80;
    font-weight: 700
}

h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 10px 0
}

h2 {
    font-size: 17px;
    margin: 0 0 18px
}

h3 {
    font-size: 21px
}

.subtitle {
    color: #687b84;
    margin: 0 0 30px
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 30px 0
}

.metrics>div {
    background: white;
    border: 1px solid #dce3e7;
    border-radius: 8px;
    padding: 23px
}

.metrics label {
    font-size: 10px;
    letter-spacing: 1px;
    color: #6b7c85
}

.metrics strong {
    display: block;
    font-size: 40px;
    margin-top: 14px;
    font-weight: 600
}

.metrics small {
    font-size: 16px;
    color: #839298
}

section {
    background: white;
    border: 1px solid #dce3e7;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 22px;
    overflow: auto
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px
}

.empty {
    text-align: center;
    padding: 40px;
    color: #627a82
}

.empty h3 {
    color: #24444b
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px
}

th {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #788b94;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid #dbe3e7
}

td {
    padding: 16px 10px;
    border-bottom: 1px solid #eef1f2
}

td button {
    font-size: 12px;
    margin: 2px
}

.badge {
    background: #e7f1eb;
    color: #33705c;
    padding: 5px 9px;
    border-radius: 5px;
    white-space: nowrap
}

.url {
    max-width: 400px;
    overflow-wrap: anywhere
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 20px
}

.form-panel {
    max-width: 720px
}

.form-floating {
    position: relative;
    margin-bottom: 18px
}

.form-floating input,.form-floating select {
    padding: 24px 13px 8px;
    height: 58px;
    width: 100%;
    border: 1px solid #bccbd0;
    border-radius: 6px;
    background: white;
    font: inherit
}

.form-floating label {
    position: absolute;
    left: 13px;
    top: 7px;
    font-size: 11px;
    color: #627780
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0
}

textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border: 1px solid #bccbd0;
    border-radius: 6px;
    font: 13px Consolas, monospace
}

.secret {
    display: block;
    overflow-wrap: anywhere;
    padding: 16px;
    background: #f0f5f3;
    margin: 16px 0
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f3f6f7;
    padding: 18px
}

.source {
    max-height: 450px;
    overflow: auto;
    font-size: 12px
}

p[role=alert] {
    color: #ae3a2f
}

.login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: #122d31
}

.login main {
    background: white;
    padding: 45px;
    border-radius: 12px;
    width: 440px;
    max-width: 95vw
}

.login form {
    margin-top: 28px
}

.login-error {
    font-size: 12px;
    color: #74858b;
    margin-top: 25px
}

.quiet {
    padding: 6px 10px;
    background: none
}

.agent-setup-qr {
    display: block;
    width: 320px;
    height: 320px;
    margin-top: 24px;
    background: white;
    image-rendering: pixelated;
}

.pairing-ready {
    color: #17674a;
    padding: 16px;
    border: 1px solid #67b89f;
    border-radius: 6px;
    background: #f0f8f3;
}

#blazor-error-ui {
    display: none;
    background: #fff0cf;
    position: fixed;
    bottom: 0;
    padding: 12px;
    width: 100%
}

:focus-visible {
    outline: 3px solid #67b89f;
    outline-offset: 3px
}

@media(max-width:850px) {
    aside {
        width: 170px;
        padding: 20px 12px
    }

    .brand span {
        font-size: 13px
    }

    article {
        padding: 20px
    }

    header {
        padding: 0 20px
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr)
    }

}
