/*! Tally · (c) 2026 Antichaos — antichaosdata.com. All rights reserved. Proprietary. */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    display: flex;
}

/* The animated number ------------------------------------------------- */
.wrapper {
    display: flex;
    flex: 1;
}

#myTargetElement {
    margin: 0;
    padding: 0 8px;
    line-height: 1.1;
}

/* No-measure onboarding state (toggled by tally.js via .show) -------- */
#remark_container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--ac-bg, #fbfcfe);
    font-family: var(--ac-font, "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif);
}
#remark_container.show { display: flex; }

.setup-card {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px 26px 22px;
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-line, #e7ecf3);
    border-radius: var(--ac-radius, 16px);
    box-shadow: var(--ac-shadow, 0 4px 14px rgba(20, 28, 42, .08), 0 14px 34px rgba(20, 28, 42, .08));
}

.setup-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--accent-soft, color-mix(in srgb, #4f7cf0 12%, transparent));
    color: var(--accent, #4f7cf0);
    margin-bottom: 2px;
}

.setup-card h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ac-ink, #151b26);
}

.setup-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ac-ink-soft, #5d6878);
}

.setup-shot {
    margin: 6px 0 2px;
    max-width: 110px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--ac-line, #e7ecf3);
    box-shadow: var(--ac-shadow-sm, 0 1px 2px rgba(20, 28, 42, .05), 0 2px 6px rgba(20, 28, 42, .05));
}

.setup-brand {
    margin-top: 8px;
}

/* Keep the welcome card readable on very small tiles. */
@media (max-height: 300px) {
    .setup-shot { display: none; }
    .setup-card { padding: 18px 22px; gap: 7px; }
}

/* Standalone landing — shown when the page is opened outside Tableau (via .show).
   Reuses .setup-card; adds action buttons + a how-to. */
#standalone {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    background: var(--ac-bg, #fbfcfe);
    font-family: var(--ac-font, "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif);
}
#standalone.show { display: flex; }
.sa-card { max-width: 384px; }
.sa-tag {
    margin-top: -4px !important;
    font-size: 11.5px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent, #4f7cf0) !important;
}
.sa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 2px;
}
.sa-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 17px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid var(--ac-line, #e7ecf3);
    background: var(--ac-surface, #fff);
    color: var(--ac-ink, #151b26);
    transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.sa-btn:hover { transform: translateY(-1px); background: var(--ac-bg, #f6f8fc); }
.sa-btn.primary { background: var(--accent, #4f7cf0); color: #fff; border-color: transparent; }
.sa-btn.primary:hover { filter: brightness(1.06); background: var(--accent, #4f7cf0); }
.sa-how {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.6;
    color: var(--ac-ink-soft, #5d6878) !important;
    background: var(--accent-soft, color-mix(in srgb, #4f7cf0 10%, transparent));
    padding: 10px 13px;
    border-radius: 10px;
}
.sa-how code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    background: var(--ac-surface, #fff);
    padding: 1px 5px;
    border-radius: 5px;
    border: 1px solid var(--ac-line, #e7ecf3);
}
