.bins-page {
    --bins-accent: #ff9024;
    --bins-surface: #2d2d2d;
    --bins-surface-alt: #363636;
    --bins-border: rgba(255, 144, 36, 0.55);
    --bins-text: #f3f3f3;
    --bins-muted: #bdbdbd;
    font-family: 'Mulish', 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bins-page #mainSection {
    max-width: 960px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.bins-page .appstorebutton {
    display: inline-block;
    height: 48px;
    margin: 0.35rem 0.45rem;
    border-radius: 0.45rem;
}

.bins-page .imageHolder {
    text-align: center;
    width: 100%;
    margin: 1rem 0 1.4rem;
}

.bins-page .screenshot {
    width: 100%;
    max-width: 820px;
    height: auto;
    border-radius: 0.6rem;
}

.bins-status {
    background: var(--bins-surface);
    border: 1px solid var(--bins-border);
    border-radius: 0.5rem;
    padding: 1rem 1.2rem;
    color: var(--bins-muted);
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
}

.bins-status.is-error {
    border-color: #f87171;
    color: #fecaca;
}

.bins-dashboard {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.bins-dashboard.is-ready {
    opacity: 1;
}

.chart-card {
    background: var(--bins-surface);
    border: 1px solid var(--bins-border);
    border-radius: 0.6rem;
    padding: 1.15rem 1.25rem 1.35rem;
    margin: 0 auto 1.6rem;
    box-sizing: border-box;
}

.chart-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.chart-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.chart-card-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: var(--bins-muted);
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pill-btn {
    background: var(--bins-surface-alt);
    color: var(--bins-text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.32rem 0.78rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pill-btn:hover {
    border-color: var(--bins-accent);
}

.pill-btn.is-active {
    background: var(--bins-accent);
    border-color: var(--bins-accent);
    color: #1a1a1a;
}

.chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 360px;
}

.chart-canvas-wrap.chart-tall {
    height: 400px;
}

.hexmap-frame {
    background: #f5f5f5;
    border-radius: 0.45rem;
    padding: 1rem 1.5rem 1.25rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.hexmap-wrap {
    margin: 0 auto;
    width: 92%;
    max-width: 100%;
    font-size: 0.58rem;
    text-align: center;
    color: #111111;
}

.hexmap-wrap .hex {
    background: #f5f5f5;
}

.hexmap-wrap .wardValue {
    margin-top: 2px;
    font-size: 1.45em;
    font-weight: 700;
}

.export-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.export-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 155px;
    min-width: 140px;
}

.export-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bins-muted);
    margin-bottom: 0.3rem;
}

.export-field input,
.export-field select {
    background: #1f1f1f;
    color: #ffffff;
    border: 1px solid var(--bins-border);
    border-radius: 0.4rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
    font-family: inherit;
}

.export-btn {
    background: var(--bins-accent);
    color: #1a1a1a;
    border: 1px solid var(--bins-accent);
    border-radius: 0.4rem;
    padding: 0.56rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.export-btn:hover {
    background: #ffa64d;
}

.council-table-wrap {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.council-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: var(--bins-text);
}

.council-table th,
.council-table td {
    padding: 0.55rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    white-space: nowrap;
}

.council-table th:first-child,
.council-table td:first-child {
    text-align: left;
}

.council-table th {
    color: var(--bins-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.council-table tfoot td {
    font-weight: 700;
    border-top: 2px solid var(--bins-border);
    border-bottom: none;
    color: #ffffff;
}

.council-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.bins-links-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0 1.4rem;
}

.bins-link-chip {
    display: inline-block;
    background: var(--bins-surface);
    border: 1px solid var(--bins-border);
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.bins-link-chip:hover {
    background: var(--bins-accent);
    color: #1a1a1a;
}

@media (max-width: 640px) {
    .chart-canvas-wrap {
        height: 290px;
    }
    .chart-canvas-wrap.chart-tall {
        height: 320px;
    }
    .chart-card {
        padding: 0.9rem 0.85rem 1rem;
    }
}
