:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17243e;
    background: #f5f6f8;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f6f8; }
button, input { font: inherit; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 82px; display: flex; align-items: center; gap: 22px; padding: 0 clamp(20px, 5vw, 76px); background: #0c1939; border-bottom: 3px solid #405c8e; }
.brand-logo { width: 218px; height: auto; display: block; filter: brightness(0) invert(1); }
.header-divider { height: 34px; width: 1px; background: rgba(255,255,255,.3); }
.header-product { color: #f4f6fa; font-size: 14px; font-weight: 600; letter-spacing: .025em; }
.logout-button { margin-left: auto; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; background: transparent; cursor: pointer; padding: 9px 16px; font-weight: 600; }
.logout-button:hover { background: rgba(255,255,255,.1); }
main { width: min(1120px, calc(100% - 40px)); margin: 68px auto 54px; flex: 1; }
.login-card { width: min(100%, 420px); margin: 30px auto 0; padding: 38px; border: 1px solid #e1e5eb; border-radius: 8px; background: white; box-shadow: 0 14px 38px rgba(13, 28, 59, .08); }
.eyebrow { color: #536b99; font-size: 11px; font-weight: 750; letter-spacing: .13em; }
h1 { margin: 10px 0 8px; color: #122247; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.intro { color: #637084; line-height: 1.55; margin: 0 0 27px; max-width: 680px; }
label { display: block; margin: 17px 0 7px; color: #35445e; font-size: 13px; font-weight: 650; }
input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cbd2df; border-radius: 5px; background: #fff; color: #17243e; outline: none; }
input:focus { border-color: #526d9f; box-shadow: 0 0 0 3px rgba(61, 88, 139, .14); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 5px; color: white; background: #243d70; font-weight: 650; cursor: pointer; transition: background .15s ease; }
.primary-button:hover:not(:disabled) { background: #172b53; }
.primary-button:disabled { opacity: .72; cursor: wait; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 0 15px; border: 1px solid #bac5d7; border-radius: 5px; color: #243d70; background: #fff; font-weight: 650; cursor: pointer; }
.secondary-button:hover:not(:disabled) { background: #f3f6fb; }
.secondary-button:disabled { opacity: .72; cursor: wait; }
.secondary-button .button-spinner { border-color: rgba(36,61,112,.25); border-top-color: #243d70; }
.login-card .primary-button { width: 100%; margin-top: 23px; }
.search-panel { padding: 0 0 28px; }
.search-form { max-width: 760px; margin-top: 30px; }
.search-form label { margin-top: 0; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }
.search-button { min-width: 130px; }
.loading-card { display: flex; gap: 17px; align-items: center; max-width: 760px; margin-top: 24px; padding: 19px 22px; border: 1px solid #dce2eb; border-radius: 7px; background: #fff; color: #253856; }
.muted { margin-top: 4px; color: #738096; font-size: 13px; }
.button-spinner, .large-spinner { display: inline-block; border: 3px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.button-spinner { width: 15px; height: 15px; }
.large-spinner { width: 27px; height: 27px; flex: 0 0 27px; border-color: #d4dcea; border-top-color: #536b99; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.message { margin-top: 18px; padding: 12px 14px; border-radius: 5px; font-size: 14px; }
.error { color: #923c35; background: #fff0ed; border: 1px solid #f4d3cd; }
.empty-state { margin-top: 25px; padding: 22px; border: 1px dashed #c8d0dc; border-radius: 7px; color: #647188; background: #fff; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 38px 0 14px; }
.results-heading > div { display: flex; align-items: baseline; gap: 14px; }
.results-heading h2 { margin: 0; font-size: 20px; color: #122247; }
.results-heading > div > span { color: #718097; font-size: 13px; }
.result-card { margin: 14px 0; border: 1px solid #e0e4eb; border-radius: 7px; overflow: hidden; background: white; }
.result-title { padding: 13px 16px; background: #f5f7fa; border-bottom: 1px solid #e6e9ef; color: #334d7d; font-size: 13px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 11px 13px; border-bottom: 1px solid #edf0f4; text-align: left; vertical-align: top; white-space: nowrap; }
th { color: #61708a; background: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
footer { padding: 18px 5vw; border-top: 1px solid #e1e5eb; color: #7c879a; font-size: 12px; background: #fff; }
#blazor-error-ui { display: none; }
@media (max-width: 620px) {
    .topbar { gap: 14px; min-height: 72px; }
    .brand-logo { width: 170px; }
    .header-product { font-size: 12px; }
    main { margin-top: 40px; }
    .login-card { padding: 28px 22px; }
    .search-row { flex-direction: column; }
    .search-button { width: 100%; }
    .results-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .results-heading > div { align-items: flex-start; flex-direction: column; gap: 5px; }
}
