html, body { font-family: Inter, system-ui, "Segoe UI", sans-serif; }

/* App bar / brand */
.av-appbar { border-bottom: 1px solid var(--mud-palette-lines-default); }
.av-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-left: 8px; }
.av-brand-mark {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    color: #fff; font-weight: 700; font-size: 14px; letter-spacing: -.5px;
}
.av-brand-name { font-size: 20px; letter-spacing: -.3px; }
.av-drawer { border-right: 1px solid var(--mud-palette-lines-default); }

/* Cards */
.av-card { border: 1px solid var(--mud-palette-lines-default); border-radius: 14px !important; }
.av-stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.av-stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.av-muted { color: var(--mud-palette-text-secondary); }
.av-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.av-vin input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.5px; text-transform: uppercase; }

/* Record-check tiles */
.av-check-tile { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: 14px 16px; height: 100%; }
.av-check-tile.found { border-color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 6%, transparent); }
.av-check-tile.notfound { opacity: .85; }
.av-thumb { max-width: 100%; max-height: 120px; border-radius: 8px; margin-top: 8px; object-fit: cover; }

/* Code samples */
.av-code { background: var(--mud-palette-background); border: 1px solid var(--mud-palette-lines-default); border-radius: 10px;
           padding: 12px 14px; overflow-x: auto; white-space: pre; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* Login */
.av-auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #f5f7fb; }
.av-auth-hero { background: linear-gradient(140deg, #3B5BDB 0%, #2b3fa8 55%, #0CA678 140%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.av-auth-hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -1px; }
.av-auth-hero p { opacity: .85; font-size: 17px; max-width: 460px; }
.av-auth-panel { display: grid; place-items: center; padding: 32px; }
.av-auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 10px 40px rgba(17,24,39,.08); }
.av-auth-card h2 { margin: 0 0 6px; font-size: 24px; }
.av-field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.av-field label { font-size: 13px; font-weight: 600; color: #374151; }
.av-field input { border: 1px solid #d1d5db; border-radius: 10px; padding: 12px 14px; font-size: 15px; font-family: inherit; }
.av-field input:focus { outline: 2px solid #3B5BDB33; border-color: #3B5BDB; }
.av-btn { margin-top: 24px; width: 100%; border: 0; border-radius: 10px; padding: 13px; background: #3B5BDB; color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.av-btn:hover { background: #2f4bc4; }
.av-error { margin-top: 16px; background: #fdecec; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
@media (max-width: 900px) { .av-auth { grid-template-columns: 1fr; } .av-auth-hero { display: none; } }

#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
