/* =========================================================
   BISONPOOL APPLICATION UI
   Application-view layer built above the proven visual base.
   ========================================================= */

.application-view {
    display: none;
}

.application-view.active {
    display: block;
}

.view-header {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.view-heading {
    margin: 0;
}

.view-heading .eyebrow {
    display: block;
    margin-bottom: 7px;
}

.view-heading h2 {
    margin: 0;

    font-size: clamp(1.65rem, 2.5vw, 2.4rem);
    line-height: 1;
    letter-spacing: -.025em;
}

.view-heading p {
    max-width: 720px;
    margin: 9px 0 0;

    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

.view-stack {
    display: grid;
    gap: 18px;
}

.view-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.view-placeholder {
    min-height: 260px;

    display: grid;
    place-items: center;

    text-align: center;
}

.view-placeholder strong {
    display: block;
    margin-bottom: 8px;

    color: white;
    font-size: .9rem;
    letter-spacing: .08em;
}

.view-placeholder span {
    color: var(--muted);
    font-size: .75rem;
}

@media (max-width: 900px) {
    .view-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .view-two-column {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MY MINING
   ========================================================= */

.mining-identity-panel {
    margin: 0;
}

.mining-identity-heading {
    margin-bottom: 14px;
}

.evidence-state {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.evidence-state-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--yellow);

    box-shadow:
        0 0 10px rgba(255,196,0,.55);
}

.mining-identity-search input {
    min-height: 44px;

    padding-left: 16px;

    background: #0c0c0c;
}

.mining-identity-search button {
    min-width: 132px;
}

.mining-dashboard {
    margin-top: 0;

    display: grid;
    gap: 18px;
}

.mining-dashboard[hidden] {
    display: none;
}


/* Primary operator observations */

.miner-performance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.miner-performance-card {
    min-width: 0;
    min-height: 128px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.018),
            transparent 55%
        ),
        var(--panel);
}

.miner-performance-card > span {
    color: var(--muted);

    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.miner-performance-card > strong {
    margin-top: 12px;

    color: white;

    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1;
}

.miner-performance-card > small {
    margin-top: auto;
    padding-top: 13px;

    color: #6f6f6f;

    font-size: .64rem;
    line-height: 1.35;
}


/* Accounting + contribution */

.mining-detail-layout {
    margin: 0;
}

.reward-accounting-panel,
.contribution-panel {
    min-height: 270px;
}

.mining-accounting-list dd {
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: .82rem;
}

.contribution-summary {
    min-height: 175px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contribution-summary > span {
    color: var(--muted);

    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.contribution-summary > strong {
    margin-top: 10px;

    color: var(--yellow);

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.contribution-track {
    height: 8px;
    margin-top: 22px;

    overflow: hidden;

    border-radius: 999px;

    background: #080808;
    border: 1px solid #292929;
}

.contribution-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--yellow)
        );

    transition: width .25s ease;
}

.contribution-summary small {
    margin-top: 13px;

    color: #707070;

    font-size: .65rem;
    line-height: 1.45;
}


/* Worker attribution seed */

.miner-workers-panel {
    min-height: 145px;
}

.section-note {
    color: var(--muted);

    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.worker-view-seed {
    display: flex;
    align-items: baseline;
    gap: 10px;

    color: var(--muted);
}

.worker-view-seed strong {
    color: white;

    font-size: 2rem;
    line-height: 1;
}

.worker-view-seed span {
    font-size: .72rem;
}


@media (max-width: 1050px) {
    .miner-performance {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 650px) {
    .miner-performance {
        grid-template-columns: 1fr;
    }

    .miner-performance-card {
        min-height: 110px;
    }

    .evidence-state {
        display: none;
    }
}


/* =========================================================
   WORKERS
   ========================================================= */

.workers-empty {
    min-height: 230px;

    display: grid;
    place-items: center;

    text-align: center;
}

.workers-empty[hidden],
.workers-dashboard[hidden] {
    display: none;
}

.workers-empty h3 {
    margin: 8px 0;
}

.workers-empty p {
    max-width: 500px;
    margin: 0;

    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
}

.workers-identity-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.workers-identity-strip > div:first-child {
    min-width: 0;
}

#workers-wallet {
    display: block;
    max-width: 760px;
    margin-top: 8px;

    overflow: hidden;
    text-overflow: ellipsis;

    color: white;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: .78rem;
    white-space: nowrap;
}

.workers-summary {
    flex: 0 0 auto;

    display: flex;
    gap: 30px;
}

.workers-summary > span {
    color: var(--muted);

    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.workers-summary strong {
    margin-right: 6px;

    color: white;
    font-size: 1rem;
}

.workers-list {
    display: grid;
    gap: 18px;
}

.worker-card {
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.018),
            transparent 45%
        ),
        var(--panel);
}

.worker-card-header {
    padding: 21px 23px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--line);
}

.worker-id {
    color: var(--yellow);

    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.worker-card-header h3 {
    margin: 5px 0 0;

    font-size: 1.15rem;
    letter-spacing: .03em;
}

.worker-state {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.worker-state > span {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}

.worker-state.active {
    color: var(--yellow);
}

.worker-state.active > span {
    background: var(--yellow);
    box-shadow: 0 0 10px rgba(255,196,0,.6);
}

.worker-state.recent {
    color: #c4c4c4;
}

.worker-state.recent > span {
    background: #c4c4c4;
}

.worker-state.inactive {
    color: #666;
}

.worker-state.inactive > span {
    background: #555;
}

.worker-hashrate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-bottom: 1px solid var(--line);
}

.worker-hashrate-grid > div {
    padding: 22px;

    border-right: 1px solid var(--line);
}

.worker-hashrate-grid > div:last-child {
    border-right: 0;
}

.worker-hashrate-grid span,
.worker-evidence-grid span {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);

    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.worker-hashrate-grid strong {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.worker-hashrate-grid small {
    color: var(--yellow);

    font-size: .65rem;
}

.worker-evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.worker-evidence-grid > div {
    padding: 18px 22px;

    border-right: 1px solid var(--line);
}

.worker-evidence-grid > div:last-child {
    border-right: 0;
}

.worker-evidence-grid strong {
    font-size: .75rem;
}


@media (max-width: 850px) {
    .workers-identity-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .workers-summary {
        width: 100%;
        justify-content: space-between;
    }

    .worker-hashrate-grid {
        grid-template-columns: 1fr 1fr;
    }

    .worker-hashrate-grid > div:nth-child(2) {
        border-right: 0;
    }

    .worker-evidence-grid {
        grid-template-columns: 1fr;
    }

    .worker-evidence-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .worker-evidence-grid > div:last-child {
        border-bottom: 0;
    }
}


/* Application view clearance below sticky global header */

.application-view {
    padding-top: 12px;
}


/* =========================================================
   WORKER HISTORICAL EVIDENCE
   ========================================================= */

.workers-history {
    padding: 22px;
}

.workers-history-heading {
    margin-bottom: 16px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.workers-history-heading h3 {
    margin: 5px 0 0;
    font-size: .95rem;
    letter-spacing: .06em;
}

.workers-history-heading p {
    margin: 6px 0 0;

    color: var(--muted);
    font-size: .7rem;
}

.workers-history-list {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.historical-worker {
    min-height: 66px;

    display: grid;
    grid-template-columns:
        minmax(190px, 1.25fr)
        .8fr
        1fr
        1fr;

    align-items: center;

    border-bottom: 1px solid var(--line);
}

.historical-worker:last-child {
    border-bottom: 0;
}

.historical-worker > div {
    min-width: 0;
    padding: 13px 16px;
}

.historical-worker > div + div {
    border-left: 1px solid var(--line);
}

.historical-worker span {
    display: block;
    margin-bottom: 5px;

    color: var(--muted);

    font-size: .57rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.historical-worker strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;

    color: #d5d5d5;
    font-size: .72rem;
    white-space: nowrap;
}

.historical-worker-identity strong {
    color: white;
    font-size: .82rem;
}

@media (max-width: 850px) {

    .workers-history-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .historical-worker {
        grid-template-columns: 1fr 1fr;
    }

    .historical-worker > div {
        border-bottom: 1px solid var(--line);
    }

    .historical-worker > div + div {
        border-left: 0;
    }

    .historical-worker > div:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .historical-worker > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}


/* =========================================================
   Blocks evidence view
   ========================================================= */

.blocks-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 22px 24px;
}

.blocks-summary-strip > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blocks-summary-strip > div:first-child > strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.blocks-summary {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
}

.blocks-summary > span {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.blocks-summary > span > strong {
    color: var(--text-primary);
    font-size: 22px;
    letter-spacing: normal;
}

.blocks-evidence-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blocks-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2px;
}

.blocks-section-heading h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.blocks-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.block-evidence-card {
    overflow: hidden;
}

.block-evidence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}

.block-evidence-header > div {
    min-width: 0;
}

.block-evidence-hash {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    color: var(--text-primary);
}

.block-verified-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.block-verified-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.block-evidence-primary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.block-evidence-primary > div,
.block-evidence-detail > div {
    min-width: 0;
    padding: 17px 22px;
}

.block-evidence-primary > div + div,
.block-evidence-detail > div + div {
    border-left: 1px solid var(--border);
}

.block-evidence-primary span,
.block-evidence-detail span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.block-evidence-primary strong,
.block-evidence-detail strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 14px;
}

.block-evidence-detail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.block-evidence-detail small {
    display: block;
    margin-top: 5px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.blocks-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}


@media (max-width: 900px) {

    .blocks-summary-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .blocks-summary {
        width: 100%;
        justify-content: space-between;
    }

    .block-evidence-primary {
        grid-template-columns: 1fr;
    }

    .block-evidence-primary > div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .block-evidence-detail {
        grid-template-columns: 1fr 1fr;
    }

    .block-evidence-detail > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .block-evidence-detail > div:nth-child(4) {
        border-top: 1px solid var(--border);
    }
}


@media (max-width: 560px) {

    .blocks-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .block-evidence-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .block-evidence-detail {
        grid-template-columns: 1fr;
    }

    .block-evidence-detail > div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}


/* =========================================================
   Compact block log
   ========================================================= */

.blocks-evidence-list {
    gap: 8px;
}

.block-evidence-card {
    overflow: hidden;
}

.block-log-head {
    display: grid;
    grid-template-columns:
        minmax(230px, 1.25fr)
        minmax(150px, 0.75fr)
        minmax(220px, 1fr)
        auto;
    align-items: stretch;
    min-height: 66px;
    border-bottom: 1px solid var(--border);
}

.block-log-head > * {
    min-width: 0;
}

.block-log-identity,
.block-log-head-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 16px;
}

.block-log-head-field {
    border-left: 1px solid var(--border);
}

.block-log-head-field span,
.block-log-evidence span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.block-log-head-field strong,
.block-log-evidence strong {
    color: var(--text-primary);
    font-size: 12px;
}

.block-evidence-hash {
    margin-top: 3px;
    font-size: 13px;
}

.block-verified-state {
    align-self: stretch;
    justify-content: center;
    padding: 0 18px;
    border-left: 1px solid var(--border);
}

.block-log-evidence {
    display: grid;
    grid-template-columns:
        0.65fr
        0.65fr
        1fr
        1fr
        1.35fr;
}

.block-log-evidence > div {
    min-width: 0;
    padding: 10px 16px;
}

.block-log-evidence > div + div {
    border-left: 1px solid var(--border);
}

.block-log-reward {
    position: relative;
}

.block-log-reward small {
    display: inline-block;
    margin-top: 3px;
    color: var(--accent);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}


/* Block log responsive */

@media (max-width: 1050px) {

    .block-log-head {
        grid-template-columns: 1fr 1fr;
    }

    .block-verified-state {
        min-height: 42px;
        border-top: 1px solid var(--border);
    }

    .block-log-head-field:nth-child(3) {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .block-log-evidence {
        grid-template-columns: repeat(3, 1fr);
    }

    .block-log-evidence > div:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .block-log-evidence > div:nth-child(5) {
        border-top: 1px solid var(--border);
    }
}


@media (max-width: 620px) {

    .block-log-head,
    .block-log-evidence {
        grid-template-columns: 1fr;
    }

    .block-log-head > *,
    .block-log-evidence > div {
        border-left: 0;
    }

    .block-log-head > * + *,
    .block-log-evidence > div + div {
        border-top: 1px solid var(--border);
    }

    .block-verified-state {
        justify-content: flex-start;
        padding: 12px 16px;
    }
}


/* Block log ledger definition */

.block-log-head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.block-log-head-field,
.block-verified-state,
.block-log-evidence > div + div {
    border-left-color: rgba(255, 255, 255, 0.10);
}

.block-log-evidence > div {
    position: relative;
}


/* Block log divider visibility */

.block-log-head {
    border-bottom:
        1px solid rgba(255, 255, 255, 0.20);
}

.block-log-head-field,
.block-verified-state,
.block-log-evidence > div + div {
    border-left-color:
        rgba(255, 255, 255, 0.20);
}


/* Block log vertical ledger dividers */

.block-log-head-field,
.block-verified-state {
    border-left:
        1px solid rgba(255, 255, 255, 0.20);
}

.block-log-evidence > div + div {
    border-left:
        1px solid rgba(255, 255, 255, 0.20);
}



/* =========================================================
   Payout evidence / ledger
   ========================================================= */

.payouts-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 22px 24px;
}

.payouts-summary-strip > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payouts-summary-strip > div:first-child > strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.payouts-summary {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.payouts-summary > span {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.payouts-summary > span > strong {
    color: var(--text-primary);
    font-size: 22px;
    letter-spacing: normal;
}

.payouts-evidence-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.payouts-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2px;
}

.payouts-section-heading h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.payouts-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payout-log-card {
    overflow: hidden;
}

.payout-log-head {
    display: grid;
    grid-template-columns:
        minmax(300px, 1.25fr)
        minmax(220px, 0.85fr)
        minmax(220px, 0.85fr)
        auto;
    align-items: stretch;
    min-height: 66px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.20);
}

.payout-log-head > * {
    min-width: 0;
}

.payout-log-identity,
.payout-log-head-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 16px;
}

.payout-log-head-field,
.payout-completed-state {
    border-left:
        1px solid rgba(255, 255, 255, 0.20);
}

.payout-log-head-field span,
.payout-log-evidence span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.payout-log-head-field strong,
.payout-log-evidence strong {
    color: var(--text-primary);
    font-size: 12px;
}

.payout-log-wallet {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-primary);
}

.payout-completed-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: stretch;
    padding: 0 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.payout-completed-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.payout-log-evidence {
    display: grid;
    grid-template-columns:
        0.75fr
        1.35fr
        1.5fr;
}

.payout-log-evidence > div {
    min-width: 0;
    padding: 10px 16px;
}

.payout-log-evidence > div + div {
    border-left:
        1px solid rgba(255, 255, 255, 0.20);
}

.payout-log-evidence strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payouts-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}


/* Payout ledger responsive */

@media (max-width: 1050px) {

    .payout-log-head {
        grid-template-columns: 1fr 1fr;
    }

    .payout-log-head-field:nth-child(3) {
        border-left: 0;
        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }

    .payout-completed-state {
        min-height: 42px;
        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }

    .payout-log-evidence {
        grid-template-columns: 1fr 1fr;
    }

    .payout-log-transaction {
        grid-column: 1 / -1;
        border-left: 0 !important;
        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }
}


@media (max-width: 620px) {

    .payouts-summary-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .payout-log-head,
    .payout-log-evidence {
        grid-template-columns: 1fr;
    }

    .payout-log-head > *,
    .payout-log-evidence > div {
        border-left: 0;
    }

    .payout-log-head > * + *,
    .payout-log-evidence > div + div {
        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }

    .payout-completed-state {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .payout-log-transaction {
        grid-column: auto;
    }
}


/* =========================================================
   Set Payout
   ========================================================= */

.set-payout-panel {
    overflow: hidden;
}

.set-payout-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.20);
}

.set-payout-heading h3 {
    margin: 4px 0 3px;
    font-size: 18px;
}

.set-payout-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.payout-setting-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.payout-setting-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.set-payout-grid {
    display: grid;
    grid-template-columns:
        minmax(360px, 1.1fr)
        minmax(520px, 1.9fr);
}

.set-payout-control {
    padding: 18px 22px;
    border-right:
        1px solid rgba(255, 255, 255, 0.20);
}

.set-payout-control label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.payout-threshold-entry {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: stretch;
}

#payout-threshold-input {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border:
        1px solid rgba(255, 255, 255, 0.20);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    outline: none;
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

#payout-threshold-input:focus {
    border-color: var(--accent);
}

.payout-threshold-unit {
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-top:
        1px solid rgba(255, 255, 255, 0.20);
    border-bottom:
        1px solid rgba(255, 255, 255, 0.20);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

#payout-threshold-save {
    padding: 0 20px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: var(--accent);
    color: #111;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    cursor: pointer;
}

#payout-threshold-save:hover {
    filter: brightness(1.08);
}

#payout-threshold-save:disabled {
    opacity: 0.55;
    cursor: wait;
}

#payout-threshold-help {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 9px;
}

.payout-threshold-message {
    min-height: 14px;
    margin-top: 7px;
    font-size: 10px;
    font-weight: 700;
}

.payout-threshold-message[data-state="success"] {
    color: var(--accent);
}

.payout-threshold-message[data-state="error"] {
    color: #ff6b6b;
}

.payout-threshold-message[data-state="working"] {
    color: var(--text-muted);
}

.set-payout-facts {
    display: grid;
    grid-template-columns:
        1.55fr
        0.8fr
        0.9fr
        0.9fr;
}

.set-payout-facts > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 16px;
}

.set-payout-facts > div + div {
    border-left:
        1px solid rgba(255, 255, 255, 0.20);
}

.set-payout-facts span {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.set-payout-facts strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.set-payout-facts small {
    margin-top: 4px;
    color: var(--accent);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}


@media (max-width: 1150px) {

    .set-payout-grid {
        grid-template-columns: 1fr;
    }

    .set-payout-control {
        border-right: 0;
        border-bottom:
            1px solid rgba(255, 255, 255, 0.20);
    }

    .set-payout-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .set-payout-facts > div:nth-child(3) {
        border-left: 0;
        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }

    .set-payout-facts > div:nth-child(4) {
        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }
}


@media (max-width: 620px) {

    .set-payout-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .set-payout-facts {
        grid-template-columns: 1fr;
    }

    .set-payout-facts > div {
        border-left: 0 !important;
    }

    .set-payout-facts > div + div {
        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }

    .payout-threshold-entry {
        grid-template-columns: 1fr auto;
    }

    #payout-threshold-input {
        border-bottom-left-radius: 0;
    }

    .payout-threshold-unit {
        border-right:
            1px solid rgba(255, 255, 255, 0.20);
    }

    #payout-threshold-save {
        grid-column: 1 / -1;
        min-height: 40px;
        border-radius: 0 0 5px 5px;
    }
}


/* Set Payout miner-IP confirmation */

.payout-ip-confirm {
    margin-top: 14px;
}

.payout-ip-confirm label {
    margin-bottom: 7px;
}

#payout-ip-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border:
        1px solid rgba(255, 255, 255, 0.20);
    border-radius: 5px;
    outline: none;
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

#payout-ip-input:focus {
    border-color: var(--accent);
}

#payout-ip-input::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}

.payout-ip-hint {
    margin: -1px 0 7px;
    color: var(--text-muted);
    font-size: 9px;
}

.payout-ip-hint strong {
    margin-left: 4px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
}

/* Set Payout save control visibility */

.payout-threshold-entry {
    display: flex;
    align-items: stretch;
    width: 100%;
}

#payout-threshold-input {
    flex: 1 1 auto;
    min-width: 0;
}

.payout-threshold-unit {
    flex: 0 0 auto;
}

#payout-threshold-save {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 39px;
    padding: 0 16px;
    background: #ffc400;
    color: #111;
    border: 0;
    border-radius: 0 5px 5px 0;
    font-weight: 900;
    cursor: pointer;
}

/* BisonPool Evidence Dashboard */

.evidence-dashboard {
    display: grid;
    gap: 18px;
}

.evidence-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.evidence-metric {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.evidence-metric > span,
.evidence-detail-grid span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #999;
}

.evidence-metric > strong {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
}

.evidence-metric small,
.evidence-detail-grid small {
    color: #999;
    font-size: 10px;
}

.evidence-detail-panel {
    overflow: hidden;
}

.evidence-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #383838;
}

.evidence-panel-heading h3 {
    margin: 5px 0 0;
    font-size: 17px;
}

.evidence-panel-heading > strong {
    font-size: 11px;
    letter-spacing: .06em;
    color: #ffc400;
}

.evidence-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evidence-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 22px;
}

.evidence-detail-grid > div + div {
    border-left: 1px solid #383838;
}

.evidence-detail-grid strong {
    font-size: 15px;
    overflow-wrap: anywhere;
}

.evidence-message {
    font-size: 11px;
    color: #999;
}

@media (max-width: 1100px) {
    .evidence-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .evidence-summary-grid,
    .evidence-detail-grid {
        grid-template-columns: 1fr;
    }

    .evidence-detail-grid > div + div {
        border-left: 0;
        border-top: 1px solid #383838;
    }
}

/* BisonPool Network Observation */

.network-dashboard {
    display: grid;
    gap: 18px;
}

.network-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.network-metric {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
}

.network-metric span,
.network-detail-grid span {
    color: #999;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.network-metric strong {
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.network-metric small {
    color: #999;
    font-size: 10px;
}

.network-detail-panel {
    overflow: hidden;
}

.network-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #383838;
}

.network-panel-heading h3 {
    margin: 5px 0 0;
    font-size: 17px;
}

.network-panel-heading > strong {
    color: #ffc400;
    font-size: 11px;
    letter-spacing: .06em;
}

.network-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.network-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 22px;
}

.network-detail-grid > div + div {
    border-left: 1px solid #383838;
}

.network-detail-grid strong {
    font-size: 15px;
    overflow-wrap: anywhere;
}

.network-message {
    color: #999;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .network-summary-grid,
    .network-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .network-summary-grid,
    .network-detail-grid {
        grid-template-columns: 1fr;
    }

    .network-detail-grid > div + div {
        border-left: 0;
        border-top: 1px solid #383838;
    }
}

/* API Explorer — scoped presentation */

#view-api .api-dashboard {
    display: grid;
    gap: 18px;
}

#view-api .api-section {
    padding: 0;
    overflow: hidden;
}

#view-api .api-section-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #383838;
}

#view-api .api-section-heading h3 {
    margin: 5px 0 0;
    font-size: 17px;
}

#view-api .api-section-heading > strong {
    color: #ffc400;
    font-size: 11px;
}

#view-api .api-explorer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
}

#view-api #api-endpoint {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background: #101010;
    color: #fff;
    border: 1px solid #383838;
    border-radius: 5px;
    font: inherit;
}

#view-api .api-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#view-api #api-execute {
    appearance: none;
    background: #ffc400;
    color: #111;
    border: 0;
    border-radius: 5px;
    min-height: 40px;
    padding: 10px 22px;
    font-weight: 900;
    cursor: pointer;
}

#view-api .api-response-output {
    display: block;
    margin: 0;
    padding: 22px;
    max-height: 480px;
    overflow: auto;
    background: #101010;
    color: #ddd;
    font: 12px/1.6 monospace;
    white-space: pre;
}

#view-api .api-disclaimer {
    color: #999;
    font-size: 11px;
}

#view-api .api-endpoint-description {
    color: #aaa;
    font-size: 12px;
    line-height: 1.6;
}

#view-api .api-button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#view-api #api-copy {
    min-height: 40px;
    padding: 10px 16px;
    background: transparent;
    color: #ffc400;
    border: 1px solid #ffc400;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
}

#view-api .api-copy-message {
    color: #ffc400;
    font-size: 11px;
    min-height: 14px;
}

@media (max-width: 650px) {
    #view-api .api-action-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* BisonPool Help and PROVABLE */

#view-help .help-dashboard {
    display: grid;
    gap: 18px;
}

#view-help .help-panel {
    padding: 0;
    overflow: hidden;
}

#view-help .help-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #383838;
}

#view-help .help-heading h3 {
    margin: 5px 0 0;
    font-size: 17px;
}

#view-help .help-heading > strong {
    color: #ffc400;
    font-size: 10px;
    letter-spacing: .05em;
}

#view-help .help-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
}

#view-help .help-selector-grid > div {
    display: grid;
    gap: 9px;
}

#view-help .help-selector-grid label,
#view-help .help-connection > span {
    font-size: 10px;
    color: #999;
    font-weight: 800;
}

#view-help select {
    width: 100%;
    min-height: 42px;
    padding: 10px;
    background: #101010;
    color: #fff;
    border: 1px solid #383838;
    border-radius: 5px;
}

#view-help .help-connection {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 22px;
    padding: 16px;
    border: 1px solid #383838;
    border-radius: 6px;
}

#view-help .help-connection strong {
    font-size: 24px;
    color: #ffc400;
}

#view-help .help-connection small,
#view-help #help-connection-message {
    color: #aaa;
    font-size: 11px;
}

#view-help #help-connection-message {
    padding: 0 22px 22px;
}

#view-help .help-topics details {
    border-bottom: 1px solid #383838;
    padding: 16px 22px;
}

#view-help .help-topics details:last-child {
    border-bottom: 0;
}

#view-help .help-topics summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

#view-help .help-topics details p {
    color: #aaa;
    font-size: 12px;
    line-height: 1.7;
    max-width: 850px;
}

#view-help .help-doctrine-intro {
    padding: 20px 22px 0;
    color: #ccc;
    font-size: 13px;
    line-height: 1.7;
}

#view-help .help-doctrine-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 20px 22px;
    gap: 10px;
}

#view-help .help-doctrine-grid > div {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
    border: 1px solid #383838;
    border-radius: 6px;
}

#view-help .help-doctrine-grid b {
    font-size: 25px;
    color: #ffc400;
}

#view-help .help-doctrine-grid strong {
    font-size: 11px;
}

#view-help .help-doctrine-grid span {
    color: #aaa;
    font-size: 11px;
    line-height: 1.5;
}

#view-help .help-doctrine-footer {
    margin: 0;
    padding: 18px 22px;
    border-top: 1px solid #383838;
    color: #ffc400;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1000px) {
    #view-help .help-doctrine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    #view-help .help-selector-grid,
    #view-help .help-doctrine-grid {
        grid-template-columns: 1fr;
    }

    #view-help .help-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* BTC worker cards */

.btc-worker-card {
    padding: 18px 20px;
    margin-bottom: 12px;
}

.btc-worker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #383838;
}

.btc-worker-name {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.btc-worker-status {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.btc-worker-status.active {
    color: #ffc400;
}

.btc-worker-status.inactive {
    color: #999;
}

.btc-worker-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.btc-worker-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    min-width: 0;
}

.btc-worker-metrics > div + div {
    border-left: 1px solid #383838;
}

.btc-worker-metrics span {
    color: #999;
    font-size: 10px;
    font-weight: 800;
}

.btc-worker-metrics strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {
    .btc-worker-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btc-worker-metrics > div:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 500px) {
    .btc-worker-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btc-worker-metrics {
        grid-template-columns: 1fr;
    }

    .btc-worker-metrics > div + div {
        border-left: 0;
        border-top: 1px solid #383838;
    }
}

/* Network-specific payout isolation */
[data-payout-network][hidden] {
    display: none !important;
}

/* BTC payout accounting */

.btc-payout-status {
    padding: 22px;
}

.btc-payout-status > p {
    color: #999;
    font-size: 13px;
    margin: 18px 0;
}

.btc-payout-state-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #383838;
}

.btc-payout-state-grid > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.btc-payout-state-grid > div + div {
    border-left: 1px solid #383838;
}

.btc-payout-state-grid span {
    color: #999;
    font-size: 10px;
    font-weight: 800;
}

.btc-payout-state-grid strong {
    font-size: 14px;
}

@media (max-width: 650px) {
    .btc-payout-state-grid {
        grid-template-columns: 1fr;
    }

    .btc-payout-state-grid > div + div {
        border-left: 0;
        border-top: 1px solid #383838;
    }
}


/* BISONPOOL RC1 — KAS WORKER DENSITY */
@media (min-width: 900px) {

  .workers-list {
    gap: 8px;
  }

  .worker-card-header {
    padding: 10px 14px;
    gap: 10px;
  }

  .worker-card-header h3 {
    margin-top: 3px;
  }

  .worker-hashrate-grid > div {
    padding: 8px 14px;
  }

  .worker-evidence-grid > div {
    padding: 7px 14px;
  }
}

/* BISONPOOL RC1 — SINGLE-ROW KAS WORKER STATISTICS */

@media (min-width: 1100px) {

  /* Each worker card uses a shared seven-column grid */
  .workers-list > .worker-card {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 0;
    margin-bottom: 0;
  }

  /* Header stays full width */
  .workers-list > .worker-card > .worker-card-header {
    grid-column: 1 / -1;
    padding: 9px 14px;
  }

  /* Four hashrate columns */
  .workers-list > .worker-card > .worker-hashrate-grid {
    grid-column: span 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 0;
  }

  /* Three evidence columns */
  .workers-list > .worker-card > .worker-evidence-grid {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 0;
  }

  /* Compact all seven cells */
  .workers-list > .worker-card
  > .worker-hashrate-grid > div,
  .workers-list > .worker-card
  > .worker-evidence-grid > div {
    min-width: 0;
    padding: 10px 9px;
  }

  /* Maintain separation without creating another row */
  .workers-list > .worker-card
  > .worker-evidence-grid {
    border-left: 1px solid var(--line);
  }

  /* Prevent long timestamps from expanding columns */
  .workers-list > .worker-card
  > .worker-evidence-grid strong {
    overflow-wrap: anywhere;
  }

  .workers-list {
    gap: 8px;
  }
}



/* BISONPOOL RC1 — MINING WORKSPACE NAVIGATION */











/* BISONPOOL RC1 — OPEN PASTURE */

.mining-workspace-shell[hidden] {
    display: none;
}

.mining-workspace-shell {
    padding: 14px 18px 0;
    margin-bottom: 12px;
    background: #141414;
    border-bottom: 1px solid var(--line);
}

.workspace-identity {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 12px;
}

.workspace-identity strong {
    font-size: .75rem;
    overflow-wrap: anywhere;
}

.workspace-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 14px;
}

.workspace-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.workspace-metrics span {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
}

.workspace-metrics strong {
    color: white;
    font-size: 1.25rem;
}







@media (max-width: 750px) {
    .workspace-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .workspace-identity {
        display: block;
    }
}



/* OPEN PASTURE RC1.0.2 */

.kas-mode-controls,
.kas-mode-evidence {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}

.kas-mode-controls[hidden],
.kas-mode-evidence[hidden] {
    display: none;
}

.kas-mode-controls button {
    border: 1px solid #444;
    border-radius: 5px;
    background: transparent;
    color: #aaa;
    padding: 6px 13px;
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.kas-mode-controls button.active {
    background: #ffcc00;
    color: #111;
    border-color: #ffcc00;
}

#kas-mode-status {
    color: #999;
    font-size: .7rem;
}

.kas-mode-evidence {
    border-top: 1px solid #333;
    font-size: .7rem;
    color: #aaa;
}

.kas-mode-evidence strong {
    color: white;
    margin-left: 5px;
}

body[data-view="my-mining"] .miner-performance {
    display: none;
}

/*
=========================================================
BISONPOOL OPEN PASTURE — CONSOLIDATED DESIGN LAYER
RC1.0.8

Existing visual behavior preserved.
No API, accounting, or navigation changes.
=========================================================
*/


:root {
    --sidebar-width: 0px;
}

body .site-sidebar,
body .mobile-menu-button {
    display: none !important;
}

body .site-shell {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

body .site-header {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px clamp(16px, 2.5vw, 40px);
}

body .site-header .brand {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

body .site-header .brand h1 {
    font-size: 1.15rem !important;
    letter-spacing: .09em;
}

body .site-header .brand p {
    display: block !important;
}

.pasture-header-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

body .pasture-navigation {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 7px 18px;
    background: #171717;
    border-bottom: 1px solid #333;
    overflow-x: auto;
    scrollbar-width: thin;
    z-index: 5;
}

body .pasture-navigation .sidebar-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto !important;
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    white-space: nowrap;
    font-size: .78rem;
}

body .pasture-navigation .sidebar-link.active {
    background: #292929;
    color: #ffcb05;
}

body .pasture-navigation .sidebar-link.active::before,
body .pasture-navigation .sidebar-rule {
    display: none !important;
}

body .pasture-navigation .nav-icon {
    margin-right: 5px;
}

body .dashboard {
    position: relative;
    isolation: isolate;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

body .dashboard::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 0;
    background-image: url("../assets/bison.png");
    background-repeat: no-repeat;
    background-position: right 3% top 120px;
    background-size: min(46vw, 640px) auto;
    opacity: .065;
}

body .dashboard > * {
    position: relative;
}

@media (max-width: 900px) {
    body .pasture-navigation {
        justify-content: flex-start;
        padding: 6px 12px;
    }

    body .pasture-navigation .sidebar-link {
        padding: 7px 10px;
    }

    .pasture-header-logo {
        width: 38px;
        height: 38px;
    }

    body .dashboard::before {
        background-size: 75vw auto;
        background-position: right top 130px;
        opacity: .045;
    }
}



:root {
    --pasture-content-max: 1180px;
    --pasture-gutter: clamp(20px, 3vw, 48px);
}

/* Header and navigation remain full-width. */

body .dashboard {
    width: calc(100% - 2 * var(--pasture-gutter)) !important;
    max-width: var(--pasture-content-max) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
}

/* Prevent nested sections from exceeding the content area. */

body .dashboard > *,
body .dashboard .mining-workspace-shell {
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile keeps modest margins. */

@media (max-width: 700px) {
    :root {
        --pasture-gutter: 12px;
    }
}




/* Center the primary navigation as one group */
body .pasture-navigation {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 2px !important;
    padding-block: 4px !important;
    min-height: 40px;
}

body .pasture-navigation .sidebar-link {
    min-height: 30px !important;
    padding: 6px 12px !important;
    font-size: .76rem !important;
}

/* Tighten the persistent mining workspace */
body .mining-workspace-shell {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
}

body .kas-mode-controls {
    gap: 8px !important;
    padding-block: 4px !important;
}

body .kas-mode-evidence {
    gap: 10px !important;
    padding-block: 5px !important;
}

body .workspace-metrics {
    gap: 10px !important;
    margin-block: 4px !important;
}



/* Reduce excessive vertical spacing between sections */
body .dashboard {
    row-gap: 10px !important;
}

body .dashboard .panel {
    margin-bottom: 10px !important;
}

body .dashboard .panel-header {
    padding-block: 10px !important;
}

body .dashboard .panel-body {
    padding-block: 10px !important;
}

/* Preserve readable spacing on mobile */
@media (max-width: 900px) {
    body .pasture-navigation {
        justify-content: flex-start !important;
    }

    body .pasture-navigation .sidebar-link {
        padding: 7px 10px !important;
    }
}





/* Mining Identity becomes part of the open workspace. */
body #view-my-mining .mining-identity-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    margin: 0 !important;
}

/* Remove the workspace's rectangular enclosure. */
body #view-my-mining #mining-workspace-shell {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
}

/* Keep metrics grouped without individual cages. */
body #view-my-mining .workspace-metrics {
    background: transparent !important;
    border: 0 !important;
    padding: 8px 0 !important;
    margin: 0 !important;
}

/* Reduce unnecessary separation. */
body #view-my-mining .view-stack {
    gap: 8px !important;
}

body #view-my-mining .mining-detail-layout {
    gap: 12px !important;
}

/* Keep accounting information readable without heavy cards. */
body #view-my-mining .reward-accounting-panel,
body #view-my-mining .contribution-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
}

/* Preserve subtle separation between information groups. */
body #view-my-mining .reward-accounting-panel {
    border-right: 1px solid #303030 !important;
    padding-right: 18px !important;
}

@media (max-width: 800px) {
    body #view-my-mining .reward-accounting-panel {
        border-right: 0 !important;
        border-bottom: 1px solid #303030 !important;
        padding-right: 0 !important;
    }
}
