:root {
    --vt-sidebar: #111827;
    --vt-sidebar-muted: #9ca3af;
    --vt-bg: #f4f7fb;
    --vt-panel: #ffffff;
    --vt-border: #e5e7eb;
    --vt-primary: #2563eb;
}

body {
    background: var(--vt-bg);
    color: #172033;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    background: var(--vt-sidebar);
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 1.25rem;
    position: fixed;
    top: 0;
    width: 260px;
}

.brand {
    align-items: center;
    color: inherit;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 700;
    gap: .75rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: var(--vt-primary);
    border-radius: .75rem;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.sidebar .nav-link,
.offcanvas .nav-link {
    align-items: center;
    color: var(--vt-sidebar-muted);
    display: flex;
    gap: .75rem;
    padding: .7rem .85rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: auto;
    padding-top: 1rem;
}

.main-panel {
    min-height: 100vh;
}

@media (min-width: 992px) {
    .main-panel {
        margin-left: 260px;
    }
}

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--vt-border);
    display: flex;
    gap: 1rem;
    min-height: 84px;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.content-wrap {
    padding: 1.5rem;
}

@media (min-width: 1200px) {
    .content-wrap {
        padding: 2rem;
    }
}

.eyebrow {
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 750;
}

.metric-card,
.panel {
    background: var(--vt-panel);
    border: 1px solid var(--vt-border);
    border-radius: .9rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}

.metric-card {
    padding: 1.15rem;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    margin-top: .35rem;
}

.metric-label {
    color: #64748b;
    font-size: .85rem;
    font-weight: 700;
}

.panel {
    padding: 1.25rem;
}

.panel-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 750;
    margin: 0;
}

.table thead th {
    color: #64748b;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.table-url {
    max-width: 360px;
}

.login-page {
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
    display: flex;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-card {
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .12);
    margin: auto;
    max-width: 420px;
    padding: 2rem;
    width: 100%;
}

.output-card {
    background: #f8fafc;
    border: 1px solid var(--vt-border);
    border-radius: .75rem;
    padding: 1rem;
}

.errorlist {
    color: #dc2626;
    font-size: .85rem;
    list-style: none;
    margin: .35rem 0 0;
    padding: 0;
}

.pairing-code {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: .5rem;
    color: #3730a3;
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .16em;
    padding: .25rem .5rem;
}

.small-code {
    font-size: .85rem;
}
.metric-tile {
    background: #f8fafc;
    border: 1px solid var(--vt-border);
    border-radius: .75rem;
    padding: .85rem;
}

.metric-tile span {
    color: #64748b;
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-tile strong {
    display: block;
    font-size: 1.35rem;
    margin-top: .2rem;
}

.screenshot-preview {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--vt-border);
    border-radius: .75rem;
    display: block;
    object-fit: cover;
    width: 100%;
}
