.ts-eventhub-chart {
    --ts-bg: #001232;
    --ts-text: #fff;
    --ts-border: rgba(168, 181, 199, .4);
    margin: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--ts-bg);
    color: var(--ts-text);
    font-family: "Open Sans", Arial, sans-serif;
}

html.white-mode .ts-eventhub-chart {
    --ts-bg: #f5f7fb;
    --ts-text: #18283e;
    --ts-border: #c6cfdd;
}

.ts-eventhub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--ts-border);
}

.ts-eventhub-header h1 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ts-eventhub-chart a {
    color: inherit;
}

.ts-eventhub-logo a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 6px;
    flex-shrink: 0;
}

.ts-eventhub-chart .ts-eventhub-back {
    box-sizing: border-box;
    text-decoration: none;
}

.ts-eventhub-main {
    flex: 1;
    min-height: 0;
}

.ts-eventhub-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.ts-eventhub-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 12px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--ts-border);
}

.ts-eventhub-logo img {
    display: block;
    box-sizing: border-box;
    height: 48px;
    width: auto;
    max-width: 100%;
    padding-top: 3px;
    padding-bottom: 5px;
}

.ts-eventhub-chart :is(a, button):focus-visible {
    outline: 2px solid #31d7a9;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .ts-eventhub-header {
        padding: 6px 12px;
        gap: 8px;
    }

    .ts-eventhub-header h1 {
        font-size: 14px;
    }
}
