:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --ink: #172033;
    --muted: #667085;
    --line: #d9e0ea;
    --brand: #1769aa;
    --ok: #16803c;
    --bad: #b42318;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar .container-fluid {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.topbar p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.feed-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bad);
}

.feed-status.online .status-dot {
    background: var(--ok);
}

.app-shell {
    padding-top: 18px;
    padding-bottom: 28px;
}

.toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.toolbar .field {
    min-width: 190px;
}

.toolbar label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.data-section {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
}

.debug-pill {
    position: fixed;
    right: 14px;
    bottom: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .topbar .container-fluid {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar .field,
    .toolbar button {
        width: 100%;
    }
}
