/* Logged-in Office Pool Hub: homepage personality inside the app */

.oph-logged-in .content-info {
    background: #eef2f6;
}

.oph-app {
    padding-bottom: 48px;
}

.oph-app-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 36px;
    color: #fff;
    background-color: #0b1f33;
    background-image:
        linear-gradient(90deg, rgba(11, 31, 51, .94) 0%, rgba(11, 31, 51, .78) 48%, rgba(11, 31, 51, .42) 100%),
        var(--oph-hero-image);
    background-size: cover;
    background-position: center right;
}

.oph-app-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 51, .15) 0%, rgba(11, 31, 51, .35) 100%);
    pointer-events: none;
}

.oph-app-hero .container {
    position: relative;
    z-index: 1;
}

.oph-app-back {
    display: inline-block;
    margin-bottom: 14px;
    color: #9fd9c8;
    font-size: 13px;
    font-weight: 700;
}

.oph-app-back:hover,
.oph-app-back:focus {
    color: #fff;
    text-decoration: none;
}

.oph-app-hero h1,
.oph-app-hero h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.oph-app-kicker {
    margin: 0 0 8px;
    color: #9fd9c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.oph-app-lead {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
}

.oph-app-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.oph-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 179, 134, .22);
    color: #d7fff3;
    font-size: 12px;
    font-weight: 800;
}

.oph-pill--muted {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.oph-app-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 22px;
}

.oph-app-meta span {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 700;
}

.oph-app-meta strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.oph-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.oph-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: #00b386;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
}

.oph-btn-primary:hover,
.oph-btn-primary:focus {
    background: #009973;
    color: #fff !important;
}

.oph-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.oph-btn-ghost:hover,
.oph-btn-ghost:focus {
    background: rgba(255, 255, 255, .16);
    color: #fff !important;
}

.oph-app-body {
    padding-top: 28px;
}

.oph-card {
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid #d7e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 31, 51, .06);
}

.oph-card h3,
.oph-card h5 {
    margin: 0 0 6px;
    color: #0b1f33;
    font-size: 18px;
    font-weight: 800;
}

.oph-card__intro {
    margin: 0 0 16px;
    color: #5b7084;
    font-size: 14px;
}

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

.oph-stat-tile {
    padding: 14px 16px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #f7fafc;
}

.oph-stat-tile span {
    display: block;
    color: #5b7084;
    font-size: 12px;
    font-weight: 700;
}

.oph-stat-tile strong {
    display: block;
    margin-top: 6px;
    color: #0b1f33;
    font-size: 20px;
    font-weight: 800;
}

.oph-invite {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 24px;
    align-items: center;
}

.oph-invite__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px dashed #c5d3e0;
    border-radius: 10px;
    background: #f8fafc;
}

.oph-invite__code strong {
    font-size: 28px;
    letter-spacing: .12em;
    color: #0b1f33;
}

.oph-invite__qr {
    text-align: center;
}

.oph-invite__qr canvas,
.oph-invite__qr img {
    display: block;
    margin: 0 auto;
    max-width: 180px;
}

.oph-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.oph-mgmt-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #d7e2ec;
    border-radius: 12px;
    background: #fff;
    color: #0b1f33 !important;
    text-decoration: none !important;
}

.oph-mgmt-tile:hover,
.oph-mgmt-tile:focus {
    border-color: #00b386;
    box-shadow: 0 6px 16px rgba(0, 179, 134, .12);
}

.oph-mgmt-tile strong {
    font-size: 15px;
}

.oph-mgmt-tile span {
    color: #5b7084;
    font-size: 13px;
}

.oph-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.oph-tips {
    margin: 0;
    padding: 0;
    list-style: none;
}

.oph-tips li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 22px;
    color: #374151;
    font-size: 14px;
}

.oph-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00b386;
    font-weight: 800;
}

.oph-pool-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.oph-pool-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid #d7e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 31, 51, .06);
}

.oph-pool-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: #00b386;
}

.oph-pool-card h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.oph-pool-card__sport {
    margin: 0 0 12px;
    color: #5b7084;
    font-size: 13px;
    font-weight: 700;
}

.oph-pool-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.oph-pool-card__code {
    margin-top: 12px;
    color: #5b7084;
    font-size: 13px;
}

.oph-sc-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.oph-sc-panel {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.oph-sc-panel span {
    display: block;
    color: #9fd9c8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.oph-sc-panel strong {
    display: block;
    margin: 6px 0 4px;
    color: #fff;
    font-size: 18px;
}

.oph-sc-panel p {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

.oph-shark-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 22px;
    border-radius: 14px;
    background: #0b1f33;
    color: #fff;
}

.oph-shark-card img {
    width: 88px;
    height: auto;
}

.oph-shark-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 20px;
}

.oph-shark-card p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .78);
}

.oph-pill--solid {
    background: #00b386;
    color: #fff;
}

.oph-pill--muted-light {
    background: #e8eef5;
    color: #0b1f33;
}

.oph-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.oph-timeline li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e8eef5;
}

.oph-timeline li:first-child {
    border-top: 0;
    padding-top: 0;
}

.oph-timeline strong {
    display: block;
    color: #0b1f33;
}

.oph-timeline span {
    display: block;
    margin-top: 4px;
    color: #5b7084;
    font-size: 13px;
}

.oph-pool-card--nfl::before { background: #013369; }
.oph-pool-card--mlb::before { background: #c8102e; }
.oph-pool-card--nba::before { background: #1d428a; }
.oph-pool-card--nhl::before { background: #111111; }

.oph-pool-card--nfl {
    background-image: linear-gradient(90deg, rgba(1, 51, 105, .06), transparent 42%);
}
.oph-pool-card--mlb {
    background-image: linear-gradient(90deg, rgba(200, 16, 46, .06), transparent 42%);
}
.oph-pool-card--nba {
    background-image: linear-gradient(90deg, rgba(29, 66, 138, .06), transparent 42%);
}
.oph-pool-card--nhl {
    background-image: linear-gradient(90deg, rgba(17, 17, 17, .06), transparent 42%);
}

.oph-pool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oph-pool-list__label {
    margin: 0 0 8px;
    color: #5b7084;
    font-size: 13px;
    font-weight: 800;
}

.oph-pool-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
    padding: 14px 16px 14px 22px;
    border: 1px solid #d7e2ec;
    border-radius: 12px;
    background: #fff;
}

.oph-pool-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: #00b386;
}

.oph-pool-row h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0b1f33;
}

.oph-pool-row__meta {
    margin: 4px 0 0;
    color: #5b7084;
    font-size: 13px;
    line-height: 1.4;
}

.oph-pool-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.oph-card.shark-scoring-help > summary {
    cursor: pointer;
    list-style: none;
}

.oph-card.shark-scoring-help > summary::-webkit-details-marker {
    display: none;
}

.oph-card.shark-scoring-help > summary::after {
    content: "Show";
    float: right;
    color: #5b7084;
    font-size: 12px;
    font-weight: 700;
}

.oph-card.shark-scoring-help[open] > summary::after {
    content: "Hide";
}

.pool-operator-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pool-operator-summary > div {
    padding: 14px 16px;
    border: 1px solid #d7e2ec;
    border-radius: 12px;
    background: #f7fafc;
}

.pool-operator-summary span,
.pool-operator-summary strong {
    display: block;
}

.pool-operator-summary span {
    color: #5b7084;
    font-size: 12px;
    font-weight: 700;
}

.pool-operator-summary strong {
    margin-top: 4px;
    color: #0b1f33;
    font-size: 26px;
}

.pool-operator-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pool-operator-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border: 1px solid #d7e2ec;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    box-shadow: 0 8px 24px rgba(11, 31, 51, .06);
}

.pool-operator-row:hover {
    border-color: #00b386;
    text-decoration: none;
}

.pool-operator-row__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pool-operator-row h2 {
    margin: 0;
    color: #0b1f33;
    font-size: 20px;
    font-weight: 800;
}

.pool-operator-row__main > p {
    margin: 5px 0 0;
    color: #5b7084;
    font-size: 13px;
}

.pool-operator-row__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    color: #334e68;
    font-size: 13px;
    font-weight: 700;
}

.pool-operator-row__attention {
    margin-top: 10px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.pool-operator-row__open {
    flex-shrink: 0;
    color: #007e68;
    font-weight: 800;
}

.pool-workspace-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 6px;
    border: 1px solid #d7e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 31, 51, .05);
}

.pool-workspace-tabs a {
    flex: 1 0 auto;
    padding: 11px 14px;
    border-radius: 9px;
    color: #334e68;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.pool-workspace-tabs a:hover,
.pool-workspace-tabs a.is-active {
    background: #0b1f33;
    color: #fff;
    text-decoration: none;
}

.pool-attention-list {
    display: grid;
    gap: 10px;
}

.pool-attention-list a {
    display: block;
    padding: 13px 15px;
    border: 1px solid #d7e2ec;
    border-radius: 10px;
    background: #f7fafc;
}

.pool-attention-list strong,
.pool-attention-list span {
    display: block;
}

.pool-attention-list strong {
    color: #0b1f33;
}

.pool-attention-list span {
    margin-top: 3px;
    color: #5b7084;
    font-size: 13px;
}

.pool-history-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pool-history-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pool-history-filter label {
    display: block;
    margin-bottom: 6px;
    color: #334e68;
    font-size: 12px;
    font-weight: 800;
}

.pool-history-filter--wide {
    grid-column: span 2;
}

.pool-history-actions {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.pool-history-pagination {
    margin-top: 18px;
}

.oph-logged-in .panel-box {
    border: 1px solid #d7e2ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(11, 31, 51, .06);
    overflow: hidden;
}

.oph-logged-in .panel-box .titles {
    background: #0b1f33;
    border: 0;
    padding: 16px 22px;
}

.oph-logged-in .panel-box .titles h4,
.oph-logged-in .panel-box .titles h5 {
    margin: 0;
    color: #fff;
    font-weight: 800;
}

.oph-logged-in .panel-box .info-panel {
    padding: 20px 22px;
}

.oph-app-hero.pool-hero {
    padding: 28px 0 36px;
}

.oph-app-hero .breadcrumbs,
.oph-app-hero .breadcrumbs a,
.oph-app-hero .breadcrumbs li {
    color: rgba(255, 255, 255, .82);
}

.oph-logged-in .pool-hub-drawer {
    margin-bottom: 20px;
    padding: 8px 22px 16px;
    border: 1px solid #d7e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 31, 51, .06);
}

.oph-logged-in .picks-deadline-banner {
    border-radius: 14px;
    margin-bottom: 20px;
}

.pool-page--sheet-picks .picks-save-bar {
    position: relative !important;
    bottom: auto;
    z-index: 1;
}

@media (max-width: 991px) {
    .oph-app-hero h1,
    .oph-app-hero h2 {
        font-size: 26px;
    }

    .oph-app-meta,
    .oph-stat-grid,
    .oph-sc-grid,
    .oph-pool-cards,
    .oph-split,
    .oph-invite {
        grid-template-columns: 1fr;
    }

    .oph-mgmt-grid {
        grid-template-columns: 1fr;
    }

    .oph-pool-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pool-operator-summary,
    .pool-history-filters {
        grid-template-columns: 1fr;
    }

    .pool-operator-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pool-history-filter--wide {
        grid-column: auto;
    }

    .pool-workspace-tabs a {
        flex: 0 0 auto;
    }
}
