@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --ink: #172438;
    --muted: #8290a3;
    --line: #e9edf2;
    --canvas: #f5f7fa;
    --navy: #101c30;
    --teal: #57d6bb;
    --blue: #79a9ff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
    height: 76px;
    padding: 0 max(6.25vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #071e2a;
    background: linear-gradient(145deg, #82efd4, #46c5ae);
    font: 800 15px 'Manrope', sans-serif;
    letter-spacing: -.8px;
    box-shadow: 0 5px 14px #50ceb640;
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font: 800 15px 'Manrope', sans-serif; letter-spacing: -.4px; }
.brand-copy > span { color: #8d99a8; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.topbar-nav { display: flex; height: 100%; align-items: center; gap: 32px; }
.nav-link { display: inline-flex; height: 100%; align-items: center; color: #7d8998; font-weight: 600; }
.nav-link.is-active { color: #1c2a3d; box-shadow: inset 0 -2px #4ac9ae; }
.nav-status, .source-status { display: inline-flex; align-items: center; gap: 8px; color: #657286; font-size: 12px; font-weight: 600; }
.status-dot, .count-pulse { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4aca9e; box-shadow: 0 0 0 4px #4aca9e1a; }

.page-shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 60px; }
.hero {
    min-height: 270px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 37px 53px;
    border: 1px solid #1c2c43;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(ellipse at 76% 120%, #183d4a 0, transparent 43%),
        linear-gradient(112deg, #101c30 0%, #14243a 72%, #12263b 100%);
    box-shadow: 0 13px 32px #15243b16;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #77dfc6; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.eyebrow-line { width: 20px; height: 1px; background: #63d5ba; }
.hero h1 { margin: 16px 0 11px; font: 700 clamp(30px, 3.5vw, 43px)/1.14 'Manrope', sans-serif; letter-spacing: -1.8px; }
.hero h1 span { color: #69d9bf; }
.hero-description { max-width: 420px; margin: 0; color: #aab7c7; font-size: 14px; line-height: 1.7; }
.hero-art { position: absolute; width: 275px; height: 275px; right: 8.5%; top: 50%; transform: translateY(-50%); }
.orbit { position: absolute; inset: 12px; border: 1px solid #8fe7d01a; border-radius: 50%; }
.orbit-outer::before, .orbit-inner::after { content: ''; position: absolute; width: 7px; height: 7px; top: 39px; right: 43px; border-radius: 50%; background: #71e0c2; box-shadow: 0 0 16px #71e0c2aa; }
.orbit-inner { inset: 43px; border-color: #8fe7d026; }
.orbit-inner::after { top: auto; right: auto; bottom: 31px; left: 15px; width: 5px; height: 5px; background: #86adff; box-shadow: 0 0 12px #86adff99; }
.art-core {
    position: absolute;
    inset: 77px;
    display: grid;
    place-items: center;
    border: 1px solid #70d9c34d;
    border-radius: 50%;
    background: radial-gradient(circle at 33% 28%, #254e5b, #152a3d 70%);
    box-shadow: 0 0 44px #55d7bd1b, inset 0 0 28px #7ce1cc12;
}
.art-core span { color: #94efda; font: 800 42px 'Manrope', sans-serif; letter-spacing: -4px; }
.art-core i { position: absolute; width: 6px; height: 6px; bottom: 35px; right: 32px; border-radius: 50%; background: #76b0ff; box-shadow: 0 0 11px #76b0ff; }
.art-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #78e2c8; box-shadow: 0 0 12px #78e2c8; }
.spark-one { top: 52px; left: 60px; }
.spark-two { right: 52px; bottom: 51px; width: 3px; height: 3px; background: #91b4ff; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 17px; margin-top: 20px; }
.summary-card { min-height: 151px; position: relative; overflow: hidden; padding: 19px 22px; border: 1px solid #e9edf2; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px #26354a05; }
.summary-card-featured { border-color: #d9f0e9; }
.summary-icon { width: 33px; height: 33px; display: grid; place-items: center; float: right; border-radius: 10px; color: #31aa8d; background: #e7f8f2; }
.summary-icon-blue { color: #5e8ce1; background: #edf3ff; }
.summary-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.summary-label { margin-top: 5px; color: #8c98a8; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.summary-value { margin-top: 7px; font: 700 29px 'Manrope', sans-serif; letter-spacing: -1px; }
.summary-value-date { font-size: 23px; letter-spacing: -.7px; }
.summary-note { margin-top: 4px; color: #95a0ae; font-size: 11px; }
.summary-card-source { padding-top: 23px; }
.source-status { color: #8793a3; font-size: 10px; letter-spacing: 1.1px; }
.source-name { position: relative; z-index: 1; margin-top: 12px; font: 700 21px 'Manrope', sans-serif; }
.source-decoration { position: absolute; right: 21px; bottom: 0; height: 53px; display: flex; align-items: end; gap: 5px; opacity: .63; }
.source-decoration span { width: 5px; height: 22px; border-radius: 3px 3px 0 0; background: #c3efe2; }
.source-decoration span:nth-child(3n) { height: 37px; background: #b1e5f3; }
.source-decoration span:nth-child(4n) { height: 28px; }
.source-decoration span:nth-child(5n) { height: 46px; background: #d4e2ff; }

.records-panel { margin-top: 25px; overflow: hidden; border: 1px solid #e8edf2; border-radius: 15px; background: #fff; box-shadow: 0 6px 21px #26354a08; }
.panel-heading { min-height: 111px; display: flex; align-items: center; justify-content: space-between; padding: 23px 27px 20px; }
.panel-eyebrow { color: #2eaf92; font-size: 9px; letter-spacing: 1.5px; }
.panel-heading h2 { margin: 7px 0 3px; font: 700 21px 'Manrope', sans-serif; letter-spacing: -.65px; }
.panel-description { margin: 0; color: #929dad; font-size: 12px; }
.panel-count { display: inline-flex; align-items: center; gap: 9px; color: #7c8999; font-size: 11px; font-weight: 600; }
.count-pulse { width: 6px; height: 6px; flex-basis: 6px; }

.table-toolbar { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 26px; border-top: 1px solid #f0f2f5; border-bottom: 1px solid #e9edf2; background: #fcfdfe; }
.search-box { width: min(365px, 50%); height: 37px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid #e6ebf0; border-radius: 8px; background: #fff; }
.search-box:focus-within { border-color: #8bd9c7; box-shadow: 0 0 0 3px #5bcdb319; }
.search-box svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #9aa6b5; stroke-width: 1.7; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #28364a; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #a3adba; }
.search-hint { flex: 0 0 auto; color: #adb6c1; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.toolbar-right { display: flex; align-items: center; gap: 9px; }
.page-size-label { color: #8c97a5; font-size: 11px; }
.page-size-select { height: 34px; padding: 0 26px 0 9px; border: 1px solid #e6ebf0; border-radius: 7px; color: #526075; background: #fff; font-size: 11px; }
.refresh-button { height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid #e4eaf0; border-radius: 7px; color: #647287; background: #fff; font-size: 11px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.refresh-button:hover { border-color: #b4e6da; color: #239779; background: #f6fcfa; }
.refresh-button:disabled { opacity: .55; cursor: wait; }
.refresh-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.table-scroll { width: 100%; overflow-x: auto; }
.records-table { width: 100%; min-width: 920px; border-collapse: collapse; text-align: left; }
.records-table th { height: 41px; padding: 0 14px; color: #8995a5; background: #f9fafb; font-size: 9px; font-weight: 700; letter-spacing: .85px; white-space: nowrap; }
.records-table th:first-child, .records-table td:first-child { padding-left: 27px; }
.records-table th:last-child, .records-table td:last-child { padding-right: 26px; }
.records-table td { height: 51px; padding: 0 14px; border-top: 1px solid #f0f2f5; color: #536176; font-size: 11px; white-space: nowrap; }
.records-table tbody tr:hover { background: #f8fbfa; }
.records-table td.date-cell { color: #26374d; font-weight: 600; }
.records-table td.day-cell { color: #8390a0; }
.record-id { display: inline-block; margin-left: 6px; color: #abb5c0; font-size: 9px; font-weight: 500; }
.result-pill { min-width: 25px; display: inline-grid; place-items: center; padding: 4px 6px; border-radius: 5px; color: #667489; background: #f3f5f8; font-size: 10px; font-weight: 600; }
.event-label { max-width: 125px; overflow: hidden; display: inline-block; color: #657387; text-overflow: ellipsis; vertical-align: bottom; }
.table-message { height: 150px !important; color: #8491a1 !important; text-align: center; }
.loading-indicator { width: 14px; height: 14px; display: inline-block; margin-right: 8px; border: 2px solid #dcece7; border-top-color: #39b899; border-radius: 50%; vertical-align: -3px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.table-footer { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 10px 25px 10px 27px; border-top: 1px solid #edf0f4; color: #929dad; font-size: 11px; }
.pagination { display: flex; align-items: center; gap: 7px; }
.page-button { width: 30px; height: 30px; border: 1px solid #e6ebf0; border-radius: 7px; color: #526177; background: #fff; font-size: 14px; cursor: pointer; }
.page-button:hover:not(:disabled) { border-color: #8bd9c7; color: #269c81; }
.page-button:disabled { color: #bdc5ce; background: #fafbfc; cursor: not-allowed; }
.page-number { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #218f79; background: #e8f7f2; font-size: 11px; font-weight: 700; }
.error-toast { margin-top: 16px; padding: 13px 16px; border: 1px solid #f2d0c7; border-radius: 9px; color: #984633; background: #fff6f3; font-size: 12px; line-height: 1.55; }
.site-footer { width: min(1320px, calc(100% - 64px)); min-height: 65px; display: flex; align-items: center; justify-content: space-between; margin: auto; border-top: 1px solid #e7ebf0; color: #99a3af; font-size: 10px; }

@media (max-width: 760px) {
    .topbar { height: 66px; padding: 0 21px; }
    .topbar-nav { gap: 17px; }
    .nav-status { font-size: 0; }
    .nav-status .status-dot { margin-right: 2px; }
    .page-shell { width: calc(100% - 32px); padding-top: 25px; }
    .hero { min-height: 250px; padding: 30px 25px; }
    .hero h1 { font-size: 34px; }
    .hero-description { max-width: 320px; font-size: 12px; }
    .hero-art { right: -96px; opacity: .5; }
    .summary-grid { grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
    .summary-card { min-height: 139px; padding: 16px; }
    .summary-card-source { grid-column: 1 / -1; min-height: 125px; }
    .panel-heading { min-height: 100px; padding: 19px 17px; }
    .panel-count { max-width: 102px; text-align: right; font-size: 10px; }
    .table-toolbar { align-items: stretch; flex-direction: column; padding: 13px 16px; }
    .search-box { width: 100%; }
    .toolbar-right { justify-content: flex-end; }
    .records-table th:first-child, .records-table td:first-child { padding-left: 17px; }
    .records-table th:last-child, .records-table td:last-child { padding-right: 17px; }
    .table-footer { padding: 10px 16px; }
    .site-footer { width: calc(100% - 36px); }
}

@media (max-width: 390px) {
    .brand-copy > span { font-size: 8px; }
    .hero { padding-right: 18px; padding-left: 20px; }
    .hero h1 { font-size: 30px; }
    .hero-description { max-width: 280px; }
    .summary-value { font-size: 25px; }
    .summary-value-date { font-size: 20px; }
    .panel-heading h2 { font-size: 19px; }
}
