:root {
    --app-ink: #17343a;
    --app-muted: #698086;
    --app-surface: #f5f8f6;
    --app-panel: #fff;
    --app-line: #dce7e3;
    --app-primary: #0b7478;
    --app-primary-dark: #07575b;
    --app-mint: #dcefe8;
    --app-epic: #087b68;
    --app-solid: #347e6d;
    --app-possible: #bc7928;
    --app-poor: #8b6f66;
    --app-shadow: 0 18px 50px rgb(30 70 66 / 8%);
}

/* Shared application shell and semantic forecast states. */
.app-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.app-main {
    flex: 1;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: .75rem;
    left: .75rem;
    padding: .65rem 1rem;
    transform: translateY(-200%);
    border-radius: .4rem;
    color: #fff;
    background: var(--app-primary-dark);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.app-page {
    padding-block: clamp(3rem, 8vw, 6rem);
}

.app-flashes {
    padding: 1rem 1rem 0;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 4.75rem);
    padding-block: clamp(2rem, 7vw, 5rem);
    place-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgb(172 220 205 / 38%), transparent 25rem),
        radial-gradient(circle at 85% 80%, rgb(11 116 120 / 10%), transparent 22rem);
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .8fr);
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 1.5rem;
    background: var(--app-panel);
    box-shadow: var(--app-shadow);
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 12vw, 10rem) 1.5rem clamp(5rem, 9vw, 8rem);
    background:
        radial-gradient(circle at 50% 30%, rgb(172 220 205 / 34%), transparent 34rem),
        linear-gradient(180deg, #f8faf8, var(--app-surface));
}

.home-hero::before {
    position: absolute;
    inset: 0;
    opacity: .32;
    background-image:
        linear-gradient(rgb(11 116 120 / 8%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(11 116 120 / 8%) 1px, transparent 1px);
    background-size: 4rem 4rem;
    content: "";
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}

.home-hero .container {
    position: relative;
}

.home-hero__copy {
    max-width: 54rem;
    margin: 0 auto clamp(4.5rem, 8vw, 7rem);
    text-align: center;
}

.home-kicker {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--app-primary-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-kicker span {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--app-epic);
    box-shadow: 0 0 0 .35rem rgb(8 123 104 / 10%);
}

.home-hero__copy .title {
    margin-bottom: 1.75rem;
    font-size: clamp(3.3rem, 7vw, 6.4rem);
    line-height: .96;
    text-wrap: balance;
}

.home-hero__intro {
    max-width: 43rem;
    margin: 0 auto 2.25rem;
    color: var(--app-muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
}

.home-hero__actions > span {
    color: var(--app-muted);
    font-size: .85rem;
}

.home-hero__actions > span a {
    color: var(--app-ink);
    font-weight: 750;
}

.product-preview {
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 1.75rem;
    background: var(--app-panel);
    box-shadow: 0 40px 100px rgb(24 60 56 / 16%);
}

.product-preview__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 4.5rem;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid var(--app-line);
    background: rgb(245 248 246 / 72%);
}

.product-preview__brand,
.product-preview__nav {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.product-preview__brand {
    font-size: .85rem;
}

.product-preview__nav {
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 700;
}

.product-preview__nav span {
    padding: .5rem .8rem;
    border-radius: 999px;
}

.product-preview__nav .is-active {
    color: var(--app-primary-dark);
    background: var(--app-mint);
}

.product-preview__avatar {
    display: grid;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    place-items: center;
    border-radius: 50%;
    color: var(--app-primary-dark);
    background: var(--app-mint);
    font-size: .7rem;
    font-weight: 800;
}

.product-preview__body {
    padding: clamp(2rem, 5vw, 4.5rem);
}

.product-preview__heading {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.product-preview__heading h2 {
    margin-bottom: .4rem;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 750;
    letter-spacing: -.04em;
}

.product-preview__heading > div > p:last-child,
.home-preview-note,
.home-step p,
.home-section-heading > p:last-child,
.home-final__inner > p:not(.eyebrow) {
    color: var(--app-muted);
}

.product-preview__freshness {
    display: flex;
    gap: .5rem;
    align-items: center;
    color: var(--app-muted);
    font-size: .72rem;
}

.product-preview__freshness span {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--app-epic);
}

.session-card {
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-left: 5px solid var(--app-epic);
    border-radius: 1.1rem;
    background: var(--app-panel);
    box-shadow: 0 16px 40px rgb(30 70 66 / 8%);
}

.session-card__identity {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem 1.75rem;
}

.session-card__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: .9rem;
    color: var(--app-primary-dark);
    background: var(--app-mint);
    font-size: 1.6rem;
    font-weight: 800;
}

.session-card__sport {
    margin-bottom: .15rem;
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.session-card__identity h3 {
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -.025em;
}

.session-rating {
    padding: .45rem .8rem;
    border-radius: 999px;
    color: #fff;
    background: var(--app-epic);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.session-card__window {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-block: 1px solid var(--app-line);
    background: var(--app-surface);
}

.session-card__window span {
    color: var(--app-muted);
    font-size: .78rem;
}

.session-card__window strong {
    color: var(--app-primary-dark);
    font-size: 1.05rem;
}

.session-card__conditions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--app-line);
}

.session-card__conditions > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .15rem .65rem;
    padding: 1.4rem 1.5rem;
}

.session-card__conditions > div + div {
    border-left: 1px solid var(--app-line);
}

.condition-icon {
    grid-row: 1 / 4;
    color: var(--app-primary);
    font-size: 1rem;
}

.session-card__conditions span:not(.condition-icon) {
    color: var(--app-muted);
    font-size: .68rem;
}

.session-card__conditions strong {
    font-size: 1rem;
}

.session-card__conditions small {
    color: var(--app-muted);
    font-size: .65rem;
}

.session-card__timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .4rem;
    padding: 1.5rem 1.75rem 1.25rem;
}

.session-card__timeline div {
    display: grid;
    gap: .5rem;
    text-align: center;
}

.timeline-bar {
    height: .45rem;
    border-radius: 999px;
    background: var(--app-line);
}

.timeline-bar--possible {
    background: #d8ae76;
}

.timeline-bar--solid {
    background: var(--app-solid);
}

.timeline-bar--epic {
    background: var(--app-epic);
}

.session-card__timeline small {
    color: var(--app-muted);
    font-size: .58rem;
}

.home-preview-note {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .75rem;
}

.home-how {
    padding: clamp(7rem, 12vw, 11rem) 1.5rem;
}

.home-section-heading {
    max-width: 44rem;
    margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.home-section-heading > p:last-child {
    max-width: 36rem;
    line-height: 1.65;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.home-step {
    padding-top: 1.75rem;
    border-top: 1px solid var(--app-line);
}

.home-step__number {
    display: inline-block;
    margin-bottom: 3rem;
    color: var(--app-primary-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.home-step .title {
    margin-bottom: .75rem;
}

.home-step p {
    line-height: 1.6;
}

.home-final {
    padding: 0 1.5rem clamp(6rem, 12vw, 10rem);
}

.home-final__inner {
    padding: clamp(3rem, 8vw, 6.5rem);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 85% 15%, rgb(255 255 255 / 40%), transparent 24rem),
        var(--app-mint);
    text-align: center;
}

.home-final__inner .title {
    max-width: 18ch;
    margin: 0 auto 1.25rem;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.02;
}

.home-final__inner > p:not(.eyebrow) {
    max-width: 38rem;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.app-mobile-login {
    display: none;
    margin-left: auto;
    font-size: .85rem;
    font-weight: 700;
}

.auth-card__main,
.auth-card__aside {
    padding: clamp(1.75rem, 5vw, 3.5rem);
}

.auth-card__main .title {
    margin-bottom: .75rem;
}

.auth-intro {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: var(--app-muted);
    line-height: 1.65;
}

.auth-card .field:not(:last-child) {
    margin-bottom: 1.25rem;
}

.auth-card .input {
    border-color: var(--app-line);
    box-shadow: none;
}

.auth-card .input:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 .125em rgb(11 116 120 / 15%);
}

.auth-card .help,
.auth-card form ul {
    color: var(--app-muted);
    font-size: .8rem;
}

.auth-card form ul {
    margin-top: .4rem;
}

.auth-card form li {
    color: #b42318;
}

.auth-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
}

.auth-card__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--app-ink);
    background: var(--app-mint);
}

.auth-card__aside > p:not(.eyebrow) {
    margin-bottom: 1.5rem;
    color: var(--app-muted);
    line-height: 1.6;
}

.auth-card__aside .button {
    margin-top: .25rem;
}

.auth-benefits {
    display: grid;
    gap: 1rem;
    margin: .5rem 0 2rem;
}

.auth-benefits li {
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.5;
}

.auth-benefits li::before {
    position: absolute;
    top: .1rem;
    left: 0;
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border-radius: 50%;
    color: var(--app-primary-dark);
    background: var(--app-panel);
    content: "✓";
    font-size: .75rem;
    font-weight: 800;
}

.auth-card__signin {
    padding-top: 1.25rem;
    border-top: 1px solid rgb(11 116 120 / 18%);
    font-size: .9rem;
}

.auth-card__signin a {
    display: inline-block;
    margin-left: .25rem;
    font-weight: 750;
}

.auth-policy {
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: .75rem;
    background: var(--app-surface);
}

.auth-policy .checkbox {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    line-height: 1.45;
}

.auth-policy input {
    flex: 0 0 auto;
    margin-top: .25rem;
}

.empty-state,
.error-state {
    max-width: 42rem;
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px solid var(--app-line);
    border-radius: 1.25rem;
    background: var(--app-panel);
    box-shadow: var(--app-shadow);
    text-align: center;
}

.empty-state > *,
.error-state > * {
    margin-inline: auto;
}

.empty-state p,
.error-state p {
    max-width: 34rem;
    color: var(--app-muted);
}

.empty-state-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    place-items: center;
    border-radius: 50%;
    color: var(--app-primary-dark);
    background: var(--app-mint);
    font-size: 1.5rem;
    font-weight: 800;
}

.empty-state-hint,
.error-state .button {
    margin-top: 1.5rem;
}

.setup-panel {
    max-width: 46rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--app-line);
    border-radius: 1.25rem;
    background: var(--app-panel);
    box-shadow: var(--app-shadow);
}

.setup-panel__intro {
    max-width: 38rem;
}

.setup-checklist {
    display: grid;
    gap: 0;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.setup-step {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--app-muted);
    border-top: 1px solid var(--app-line);
}

.setup-step:last-child {
    border-bottom: 1px solid var(--app-line);
}

.setup-step.is-current {
    color: var(--app-text);
}

.setup-step.is-complete {
    color: var(--app-primary-dark);
}

.setup-step__marker {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 2px solid currentcolor;
    border-radius: 50%;
    font-weight: 800;
}

.setup-step p {
    color: var(--app-muted);
}

.dashboard-section {
    max-width: 64rem;
}

.opportunity-group + .opportunity-group {
    margin-top: 2rem;
}

.dashboard-opportunity {
    display: block;
    height: 100%;
    color: inherit;
}

.dashboard-opportunity:hover,
.dashboard-opportunity:focus-visible {
    border-color: var(--app-primary);
    color: inherit;
}

.dashboard-overviews {
    display: grid;
    gap: 1.25rem;
}

.dashboard-days {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--app-line);
    border-radius: .75rem;
    overflow: hidden;
}

.dashboard-day {
    min-width: 0;
    padding: 1rem;
}

.dashboard-day + .dashboard-day {
    border-left: 1px solid var(--app-line);
}

.legal-copy {
    max-width: 46rem !important;
}

.app-status {
    --status-color: var(--app-muted);
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--status-color);
    font-size: .78rem;
    font-weight: 750;
}

.app-status-marker {
    width: .65rem;
    height: .65rem;
    border: 2px solid currentcolor;
    border-radius: 50%;
    background: currentcolor;
    box-shadow: inset 0 0 0 2px var(--app-panel);
}

.app-status-detail::before {
    content: "·";
    margin-right: .45rem;
}

.app-status--epic,
.app-status--high,
.app-status--current {
    --status-color: #087b68;
}

.app-status--solid,
.app-status--medium {
    --status-color: #347e6d;
}

.app-status--possible,
.app-status--low,
.app-status--stale {
    --status-color: #925a12;
}

.app-status--poor,
.app-status--unavailable {
    --status-color: #77554b;
}

.footer-data,
.footer-disclaimer {
    color: var(--app-muted);
    font-size: .75rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --app-ink: #e5efec;
        --app-muted: #a7bbb6;
        --app-surface: #101817;
        --app-panel: #182321;
        --app-line: #334440;
        --app-primary: #4bb5b5;
        --app-primary-dark: #78d0cd;
        --app-mint: #213d38;
        --app-shadow: 0 18px 50px rgb(0 0 0 / 24%);
    }

    .app-navbar,
    .app-footer,
    .overview-section,
    .detail-hero,
    .dashboard-hero {
        background: rgb(16 24 23 / 94%);
    }

    .title,
    .subtitle,
    .content,
    .navbar-item,
    .button,
    .content h1,
    .content h2 {
        color: var(--app-ink);
    }

    .button.is-primary {
        color: #071312;
    }

    .button.is-white,
    .button.is-light {
        background: var(--app-panel);
    }

    .app-status--epic,
    .app-status--high,
    .app-status--current {
        --status-color: #70d6bb;
    }

    .app-status--solid,
    .app-status--medium {
        --status-color: #8ac6b5;
    }

    .app-status--possible,
    .app-status--low,
    .app-status--stale {
        --status-color: #f0b55e;
    }

    .app-status--poor,
    .app-status--unavailable {
        --status-color: #d8aaa0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 768px) {
    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding: 4.5rem 1.25rem 4rem;
    }

    .home-hero__copy {
        margin-bottom: 3.5rem;
    }

    .home-hero__copy .title {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .home-hero__actions {
        flex-direction: column;
    }

    .product-preview__bar {
        grid-template-columns: 1fr auto;
    }

    .product-preview__nav {
        display: none;
    }

    .product-preview__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .session-card__identity {
        grid-template-columns: auto 1fr;
        padding: 1.25rem;
    }

    .session-rating {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .session-card__window {
        align-items: flex-start;
        flex-direction: column;
        gap: .4rem;
        padding: 1rem 1.25rem;
    }

    .session-card__conditions {
        grid-template-columns: repeat(2, 1fr);
    }

    .session-card__conditions > div {
        border-top: 1px solid var(--app-line);
    }

    .session-card__conditions > div:nth-child(3) {
        border-left: 0;
    }

    .session-card__timeline {
        overflow-x: auto;
        min-width: 29rem;
    }

    .home-how {
        padding: 6rem 1.25rem;
    }

    .home-step__number {
        margin-bottom: 1.75rem;
    }

    .home-final {
        padding-inline: 1.25rem;
    }

    .home-final__inner {
        border-radius: 1.5rem;
    }

    .app-mobile-login {
        display: flex;
    }

    .auth-page {
        display: block;
        padding: 1.25rem;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-card__aside {
        border-top: 1px solid var(--app-line);
    }

    .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-actions .button {
        width: 100%;
    }
}

html {
    background: var(--app-surface);
}

body {
    min-height: 100vh;
    color: var(--app-ink);
    background: var(--app-surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
.button {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgb(11 116 120 / 35%);
    outline-offset: 3px;
}

.title,
.subtitle,
.content,
.navbar-item,
.button {
    color: var(--app-ink);
}

.title {
    letter-spacing: -.035em;
}

.button.is-primary {
    border-color: transparent;
    color: #fff;
    background: var(--app-primary);
}

.button.is-primary:hover {
    background: var(--app-primary-dark);
}

.button.is-dark {
    background: var(--app-ink);
}

.button.is-white,
.button.is-light {
    border: 1px solid var(--app-line);
    background: rgb(255 255 255 / 72%);
}

.container.is-max-desktop {
    max-width: 1120px !important;
}

.app-navbar {
    min-height: 4.75rem;
    border-bottom: 1px solid rgb(220 231 227 / 85%);
    background: rgb(245 248 246 / 90%);
    backdrop-filter: blur(16px);
}

.app-navbar .navbar-item {
    font-size: .9rem;
}

.app-navbar .navbar-start > .navbar-item {
    margin-inline: .2rem;
    border-radius: 999px;
}

.app-navbar .navbar-start > .navbar-item.is-active,
.app-navbar .navbar-start > .navbar-item:hover {
    color: var(--app-primary-dark);
    background: var(--app-mint);
}

.app-brand {
    display: inline-flex;
    gap: .7rem;
    align-items: center;
    color: var(--app-ink);
    font-weight: 750;
    letter-spacing: -.025em;
}

.brand-mark {
    position: relative;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--app-primary);
}

.brand-mark span {
    position: absolute;
    left: .35rem;
    width: 1.3rem;
    height: .55rem;
    border-bottom: 2px solid #fff;
    border-radius: 50%;
}

.brand-mark span:first-child {
    top: .45rem;
}

.brand-mark span:last-child {
    top: .85rem;
}

.brand-mark.is-small {
    width: 1.7rem;
    height: 1.7rem;
}

.brand-mark.is-small span {
    left: .3rem;
    width: 1.1rem;
}

.user-avatar,
.sport-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    margin-right: .55rem;
    border-radius: 50%;
    color: var(--app-primary-dark);
    background: var(--app-mint);
    font-size: .7rem;
    font-weight: 750;
}

.dashboard-hero {
    padding-top: 5.25rem;
    padding-bottom: 4.5rem;
    background:
        radial-gradient(circle at 80% 10%, rgb(172 220 205 / 32%), transparent 28rem),
        linear-gradient(180deg, #f8faf8, var(--app-surface));
}

.page-heading {
    margin-bottom: 4rem;
}

.page-heading .subtitle,
.detail-heading .subtitle {
    max-width: 43rem;
    margin-top: 1rem;
    color: var(--app-muted);
    line-height: 1.7;
}

.eyebrow {
    margin-bottom: .55rem;
    color: var(--app-primary-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-heading .title {
    margin-bottom: 0;
}

.card {
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 1.25rem;
    box-shadow: var(--app-shadow);
}

.opportunity-card,
.compact-opportunity,
.window-card {
    position: relative;
}

.opportunity-card::before,
.compact-opportunity::before,
.window-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--app-epic);
    content: "";
}

.rating-solid::before {
    background: var(--app-solid);
}

.opportunity-card .card-content {
    padding: 1.6rem 1.75rem 1.35rem;
}

.compact-opportunity {
    height: 100%;
}

.compact-opportunity .card-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.6rem;
}

.opportunity-topline {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.rating-tag {
    color: #fff;
    background: var(--app-epic);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rating-solid .rating-tag {
    background: var(--app-solid);
}

.day-label {
    margin-left: .55rem;
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 700;
}

.confidence {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    color: var(--app-muted);
    font-size: .72rem;
}

.confidence-dot {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--app-primary);
    box-shadow: 0 0 0 4px rgb(11 116 120 / 10%);
}

.opportunity-copy {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.sport-label {
    margin-bottom: .25rem;
    color: var(--app-primary-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.opportunity-copy .title,
.compact-opportunity .title {
    margin-bottom: .35rem;
}

.window-time {
    text-align: right;
}

.window-time span,
.compact-window span,
.window-summary span {
    display: block;
    margin-bottom: .2rem;
    color: var(--app-muted);
    font-size: .68rem;
    font-weight: 650;
    text-transform: uppercase;
}

.window-time strong {
    font-size: 1.15rem;
}

.forecast-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid var(--app-line);
    border-radius: .85rem;
}

.forecast-strip > div {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .75rem;
    border-right: 1px solid var(--app-line);
}

.forecast-strip > div:last-child {
    border-right: 0;
}

.forecast-strip .is-highlighted {
    background: #edf7f2;
}

.forecast-strip span,
.overview-days span {
    color: var(--app-muted);
    font-size: .65rem;
    text-transform: uppercase;
}

.forecast-strip strong,
.overview-days strong {
    font-size: .8rem;
}

.forecast-strip small,
.overview-days small {
    color: var(--app-muted);
    font-size: .65rem;
}

.rating-epic-text {
    color: var(--app-epic);
}

.rating-solid-text {
    color: var(--app-solid);
}

.rating-possible-text {
    color: var(--app-possible);
}

.rating-poor-text {
    color: var(--app-poor);
}

.card-footer-action {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    color: var(--app-muted);
    font-size: .75rem;
}

.compact-window {
    margin: auto 0 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--app-line);
    border-bottom: 1px solid var(--app-line);
}

.compact-window strong {
    font-size: 1.25rem;
}

.text-link {
    color: var(--app-primary-dark);
    font-size: .82rem;
    font-weight: 750;
}

.overview-section {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    background: #edf2ef;
}

.overview-card {
    box-shadow: none;
}

.overview-card .card-content {
    display: grid;
    grid-template-columns: 1.2fr 2.5fr auto;
    gap: 1.5rem;
    align-items: center;
}

.overview-identity {
    display: flex;
    align-items: center;
}

.overview-identity p {
    color: var(--app-muted);
    font-size: .75rem;
}

.overview-days {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.overview-days > div {
    display: flex;
    flex-direction: column;
    padding: .25rem .8rem;
    border-left: 1px solid var(--app-line);
}

.overview-arrow {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--app-primary-dark);
    background: var(--app-mint);
    font-weight: 700;
}

.detail-hero {
    padding-top: 3.5rem;
    padding-bottom: 0;
    background:
        radial-gradient(circle at 75% 15%, rgb(172 220 205 / 30%), transparent 25rem),
        #f8faf8;
}

.breadcrumb a {
    color: var(--app-primary-dark);
}

.detail-heading {
    margin: 2rem 0 3.5rem;
}

.day-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--app-line);
}

.day-tabs button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .1rem 1rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--app-ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.day-tabs button:hover,
.day-tabs button.is-active {
    background: rgb(220 239 232 / 45%);
}

.day-tabs button.is-active {
    border-bottom-color: var(--app-primary);
}

.day-tabs span {
    font-size: .75rem;
    font-weight: 700;
}

.day-tabs strong {
    grid-row: span 2;
    align-self: center;
    font-size: .8rem;
}

.day-tabs small {
    color: var(--app-muted);
}

.detail-content {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.window-card,
.timeline-card,
.explanation-card {
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 35px rgb(30 70 66 / 6%);
}

.window-card .card-content {
    padding: 1.5rem;
}

.window-card .opportunity-topline {
    margin-bottom: 1.25rem;
}

.window-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.window-summary > div {
    padding: .35rem 1.1rem;
    border-left: 1px solid var(--app-line);
}

.window-summary > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.window-summary strong {
    font-size: 1.05rem;
}

.timeline-card .card-content,
.explanation-card .card-content {
    padding: 1.5rem;
}

.timeline-legend {
    display: flex;
    gap: 1rem;
    color: var(--app-muted);
    font-size: .68rem;
}

.timeline-legend span {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
}

.timeline-legend i {
    width: .65rem;
    height: .65rem;
    border-radius: 2px;
}

.legend-best {
    background: #e0f2ea;
}

.legend-daylight {
    border: 1px solid var(--app-line);
    background: #fff;
}

.timeline-table {
    width: 100%;
    margin-bottom: .5rem;
    background: transparent;
    font-size: .72rem;
}

.timeline-table th,
.timeline-table td {
    padding: .65rem .55rem;
    border-color: #e7efec;
    text-align: center !important;
    white-space: nowrap;
}

.timeline-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    text-align: left !important;
}

.timeline-table .best-hour {
    background: #edf7f2;
}

.rating-dot {
    display: inline-grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
}

.rating-dot.is-epic {
    background: var(--app-epic);
}

.rating-dot.is-solid {
    background: var(--app-solid);
}

.rating-dot.is-possible {
    background: var(--app-possible);
}

.table-note {
    color: var(--app-muted);
    font-size: .65rem;
}

.condition-list {
    margin-top: 1.5rem;
}

.condition-item {
    display: flex;
    gap: .8rem;
    padding: 1rem 0;
    border-top: 1px solid var(--app-line);
}

.condition-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    color: #fff;
    background: var(--app-epic);
    font-size: .75rem;
    font-weight: 800;
}

.condition-item.is-good .condition-icon {
    background: var(--app-possible);
}

.condition-item p {
    color: var(--app-ink);
    font-size: .76rem;
}

.condition-item small {
    color: var(--app-muted);
    font-size: .65rem;
}

.forecast-note {
    border: 1px solid #d7e5e1;
    border-radius: 1rem;
    color: var(--app-muted);
    background: #eaf2ef;
    font-size: .72rem;
    line-height: 1.6;
}

.forecast-note strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--app-ink);
}

.app-footer {
    padding: 3rem 1.5rem 2.5rem;
    color: #a9bcbe;
    background: #17343a;
}

.footer-brand {
    color: #fff;
}

.footer-note {
    max-width: 30rem;
    margin-top: .75rem;
    font-size: .75rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    font-size: .75rem;
}

.footer-links a {
    color: #d9e4e4;
}

.footer-links a:hover {
    color: #fff;
}

.footer-rule {
    height: 1px;
    margin: 1.5rem 0;
    background: rgb(255 255 255 / 10%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --app-ink: #e7f0ee;
        --app-muted: #9db1af;
        --app-surface: #102629;
        --app-panel: #193336;
        --app-line: #2a4a4c;
        --app-mint: #214a48;
        --app-primary: #55bbb4;
        --app-primary-dark: #7ad0c9;
        --app-shadow: 0 18px 50px rgb(0 0 0 / 16%);
    }

    .app-navbar,
    .dashboard-hero,
    .detail-hero {
        background-color: rgb(16 38 41 / 94%);
    }

    .card,
    .box,
    .notification,
    .setup-panel,
    .timeline-table th:first-child {
        color: var(--app-ink);
        background: var(--app-panel);
    }

    .box .has-text-grey,
    .notification.is-light {
        color: var(--app-muted) !important;
    }

    .overview-section {
        background: #0d2022;
    }

    .forecast-strip .is-highlighted,
    .timeline-table .best-hour,
    .day-tabs button:hover,
    .day-tabs button.is-active {
        background: #21433e;
    }

    .button.is-white,
    .button.is-light {
        color: var(--app-ink);
        background: var(--app-panel);
    }
}

@media screen and (max-width: 768px) {
    .dashboard-days {
        grid-template-columns: 1fr;
    }

    .dashboard-day + .dashboard-day {
        border-top: 1px solid var(--app-line);
        border-left: 0;
    }

    .section {
        padding-inline: 1rem;
    }

    .dashboard-hero {
        padding-top: 3rem;
    }

    .page-heading {
        margin-bottom: 3rem;
    }

    .page-heading .level-right,
    .detail-heading .level-right {
        margin-top: 1.5rem;
    }

    .opportunity-copy,
    .card-footer-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .window-time {
        text-align: left;
    }

    .forecast-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .forecast-strip > div:nth-child(2) {
        border-right: 0;
    }

    .forecast-strip > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--app-line);
    }

    .overview-card .card-content {
        grid-template-columns: 1fr auto;
    }

    .overview-days {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow-x: auto;
    }

    .overview-days > div {
        min-width: 7rem;
    }

    .day-tabs {
        overflow-x: auto;
    }

    .day-tabs button {
        min-width: 9rem;
    }

    .window-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0;
    }

    .window-summary > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .timeline-scroll {
        overflow-x: auto;
    }

    .footer-links {
        margin-top: 1rem;
        flex-wrap: wrap;
    }
}
