* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #1c293e; --muted: #68758a; --line: #e0e6ef; --blue: #2456cf; }
body { margin: 0; background: #f5f7fb; color: var(--ink); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, a, input, select { outline-offset: 4px; }
.topbar { min-height: 86px; display: flex; align-items: center; gap: 32px; padding: 16px 3.2vw; background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 26px; font-weight: 700; white-space: nowrap; }
.brand-product { color: var(--muted); font-size: 22px; font-weight: 400; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--blue); color: white; border-radius: 8px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 8px; }
.topbar nav a { padding: 10px 16px; color: var(--ink); border-radius: 7px; font-weight: 500; }
.topbar nav a.active { background: #edf2ff; color: var(--blue); }
.account { margin-left: auto; display: flex; align-items: center; gap: 24px; min-width: 0; }
.account > a { overflow-wrap: anywhere; }
.account form { margin: 0; }
.container { max-width: 1600px; margin: 0 auto; padding: 32px 3.2vw; }
h1 { margin: 0; font-size: 44px; letter-spacing: -1px; line-height: 1.25; }
h2 { font-size: 20px; margin: 0 0 8px; }
.muted, .hint { color: var(--muted); }
.page-heading { margin-bottom: 28px; }
.page-heading p { margin: 8px 0 0; font-size: 20px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 8px; }
.table-wrap { overflow-x: auto; padding: 14px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { background: #f8fafe; color: var(--muted); font-size: 14px; font-weight: 600; }
th, td { padding: 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { overflow-wrap: anywhere; max-width: 360px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.destination { display: block; color: var(--muted); margin-top: 5px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 18px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: white; font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.button:hover { background: #1c45a7; text-decoration: none; }
.button-secondary { background: white; color: var(--ink); border-color: #cbd5e3; }
.button-secondary:hover { background: #edf2ff; }
.button-full { width: 100%; }
.disabled { opacity: .5; cursor: default; }
.form-stack { display: grid; gap: 22px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; }
input, select { display: block; width: 100%; min-height: 48px; background: white; color: var(--ink); border: 1px solid #cbd5e3; border-radius: 6px; padding: 10px 14px; font-size: 16px; }
input:focus, select:focus { outline: 2px solid #b7cbff; border-color: var(--blue); }
[aria-invalid="true"] { border-color: #bd3434; }
.hint { font-size: 13px; margin: 12px 0 0; }
.login-card { max-width: 440px; margin: 54px auto; padding: 32px; }
.login-card h1 { font-size: 28px; }
.login-card > .muted { margin: 12px 0 27px; }
.entry { max-width: 640px; margin: 64px auto; padding: 40px; }
.entry .button { margin-top: 12px; }
.notice { padding: 14px 18px; margin-bottom: 24px; border: 1px solid; border-radius: 8px; }
.notice-error { background: #fff2f2; border-color: #efcece; color: #922e2e; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--ink); }
.badge { display: inline-block; padding: 6px 12px; background: #edf0f5; color: #68758a; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.badge-error { background: #ffe9e9; color: #ad2727; }
.badge-success { background: #e5f7e9; color: #26703a; }
.search-panel { padding: 24px; margin-bottom: 32px; }
.search-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.search-form .field { flex: 1 1 300px; }
.request-filters { display: grid; grid-template-columns: .95fr 1.1fr 1.1fr 1.05fr .85fr .85fr auto; gap: 14px; align-items: end; }
.filter-actions { display: flex; gap: 8px; }
.request-table { min-width: 1000px; }
.request-table td:first-child { min-width: 80px; white-space: nowrap; }
.request-table td:nth-child(2) { min-width: 220px; }
.request-table td:nth-child(3) { white-space: nowrap; }
.request-table code { font: inherit; }
.mobile-table-hint { display: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 8px 10px; min-width: 560px; font-size: 14px; }
.privacy-note { margin-top: 24px; }
.back-link { display: inline-block; margin-bottom: 16px; }
.request-details { padding: 24px; margin-bottom: 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 36px; margin: 24px 0; }
.detail-grid dt { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.payload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.payload-panel { padding: 24px; min-width: 0; }
.json-data { background: #f5f7fb; padding: 16px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 600px; overflow: auto; }
.request-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary-caption { margin: -12px 0 12px; }
.metric { padding: 20px 24px; min-width: 0; }
.metric-value { display: block; font-size: 32px; line-height: 1.3; font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.statistics-filters { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto; gap: 16px; align-items: end; margin-bottom: 24px; }
.statistics-presets { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.statistics-presets .hint { margin: 0; }
.statistics-presets [aria-current] { font-weight: 700; text-decoration: underline; }
.statistics-note { margin: -8px 0 24px; }
.statistics-chart { padding: 24px; margin-bottom: 24px; }
.chart-heading, .chart-axis { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-heading .hint { margin: 0; }
.legend-total { color: var(--blue); }
.legend-error { color: #ad2727; margin-left: 12px; }
.daily-chart { display: block; width: 100%; height: 200px; }
.daily-chart a:focus rect { stroke: var(--ink); stroke-width: 2; }
.chart-axis { color: var(--muted); font-size: 13px; }
.statistics-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.statistics-tabs .selected { background: #edf2ff; border-color: var(--blue); color: var(--blue); }
.statistics-table { min-width: 800px; }
.statistics-table .numeric { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1200px) {
    .topbar { flex-wrap: wrap; }
    .statistics-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .request-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-actions { grid-column: 1 / -1; }
    .topbar { gap: 24px; }
}
@media (max-width: 720px) {
    .request-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .metric { padding: 16px; }
    .metric-value { font-size: 28px; }
    .statistics-filters .field:nth-of-type(-n+2) { grid-column: 1 / -1; }
    .statistics-chart { padding: 16px; }
    .chart-axis { font-size: 11px; }
    .daily-chart { height: 150px; }

    .topbar { padding: 16px; gap: 16px; flex-wrap: wrap; }
    .brand { width: 100%; font-size: 22px; }
    .topbar nav { gap: 0; width: 100%; }
    .topbar nav a { padding: 8px 12px; }
    .account { margin-left: 0; width: 100%; justify-content: space-between; font-size: 13px; }
    .container { padding: 24px 16px; }
    h1 { font-size: 30px; }
    .page-heading p { font-size: 16px; }
    .login-card, .entry { margin: 20px auto; padding: 24px; }
    .request-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .request-filters .field:nth-child(-n+4) { grid-column: 1 / -1; }
    .mobile-table-hint { display: block; margin: 0 0 12px; }
    input { min-width: 0; }
    .search-form > .button { flex: 1; }
    .detail-grid, .payload-grid { grid-template-columns: minmax(0, 1fr); }
    .pagination { min-width: 0; flex-wrap: wrap; justify-content: center; }
    .pagination .muted { width: 100%; order: -1; text-align: center; }
    .request-details, .payload-panel { padding: 20px; }
}
