.weo-shell {
    max-width: 1100px;
    margin: 0 auto;
    color: #f6f0e6;
}

.weo-app-shell {
    width: min(100%, 560px);
    min-height: 100svh;
    padding: max(12px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    background: #121010;
}

.weo-app-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(216, 161, 90, 0.16);
    border-radius: 18px;
    background: #1e1a1a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.weo-install-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid rgba(216, 161, 90, 0.18);
    border-radius: 18px;
    background: #2a2424;
    color: #fff7ed;
}

.weo-install-card div {
    flex: 1;
    min-width: 0;
}

.weo-install-card strong,
.weo-install-card span {
    display: block;
}

.weo-install-card strong {
    color: #ffffff;
    font-size: 1rem;
}

.weo-install-card span {
    margin-top: 4px;
    color: #f4d8ba;
    font-size: 0.92rem;
    line-height: 1.4;
}

.weo-install-card .weo-kicker {
    margin-bottom: 4px;
}

.weo-app-topbar img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.weo-app-topbar div {
    min-width: 0;
    flex: 1;
}

.weo-app-topbar span,
.weo-app-topbar strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weo-app-topbar span {
    color: #d8a15a;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.weo-app-topbar strong {
    color: #ffffff;
    font-size: 1rem;
}

.weo-app-topbar a,
.weo-app-alert-button {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 800;
    padding: 8px 12px;
    text-decoration: none;
}

.weo-app-alert-button {
    cursor: pointer;
}

.weo-app-alert-button:hover,
.weo-app-alert-button:focus,
.weo-app-topbar a:hover,
.weo-app-topbar a:focus {
    background: #c3202d;
    outline: none;
}

.weo-hero {
    background: #231f1f;
    border: 1px solid rgba(195, 32, 45, 0.48);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.weo-app-shell .weo-hero,
.weo-app-shell .weo-card,
.weo-app-shell .weo-choice-card {
    border-radius: 18px;
}

.weo-app-shell .weo-hero {
    padding: 20px;
}

.weo-app-shell .weo-card {
    padding: 20px;
}

.weo-app-shell .weo-hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.55rem);
}

.weo-app-shell .weo-copy {
    font-size: 0.98rem;
}

.weo-login-app .weo-card {
    margin-top: 14px;
}

.weo-login-app .weo-actions {
    margin-top: 18px;
}

.weo-login-app .weo-readonly-context {
    min-height: auto;
}

.weo-mode-switch {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px;
    border: 1px solid rgba(216, 161, 90, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.weo-mode-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    color: #f8e2c3;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.weo-mode-link:hover,
.weo-mode-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.weo-mode-link-active {
    background: #c3202d;
    color: #ffffff;
}

.weo-kicker {
    margin: 0 0 8px;
    color: #d8a15a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.weo-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
}

.weo-copy {
    margin: 12px 0 0;
    color: #f4d8ba;
    font-size: 1rem;
    line-height: 1.6;
}

.weo-location-pill {
    display: inline-block;
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(216, 161, 90, 0.12);
    border: 1px solid rgba(216, 161, 90, 0.28);
    color: #f8e2c3;
    font-size: 0.95rem;
}

.weo-card,
.weo-choice-card {
    background: #1f1b1b;
    border: 1px solid rgba(216, 161, 90, 0.14);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.weo-card {
    margin-top: 24px;
    padding: 28px 32px;
}

.weo-booked-league-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.weo-start-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.weo-start-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.weo-app-shell .weo-start-card {
    align-items: flex-start;
}

.weo-app-shell .weo-start-actions {
    width: 100%;
    justify-content: stretch;
}

.weo-app-shell .weo-start-actions .weo-button,
.weo-app-shell .weo-picker-actions .weo-button,
.weo-app-shell .weo-booked-league-actions .weo-button {
    text-align: center;
}

.weo-app-shell .weo-start-card,
.weo-app-shell .weo-booked-league-card {
    display: block;
}

.weo-app-shell .weo-choice-grid {
    grid-template-columns: 1fr;
}

.weo-app-shell .weo-grid {
    grid-template-columns: 1fr;
}

.weo-app-shell .weo-field-full {
    grid-column: auto;
}

.weo-app-shell .weo-mode-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.weo-app-shell .weo-mode-link {
    text-align: center;
}

.weo-booked-league-card h2 {
    margin: 0;
    color: #ffffff;
}

.weo-booked-league-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.weo-booked-league-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 220px;
}

.weo-quick-picker {
    margin-top: 24px;
}

.weo-picker-label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.weo-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.weo-picker-row .weo-input {
    flex: 1 1 340px;
}

.weo-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.weo-form {
    display: block;
}

.weo-grid,
.weo-choice-grid {
    display: grid;
    gap: 20px;
}

.weo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weo-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    align-items: start;
}

.weo-field label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.weo-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: #121010;
    color: #ffffff;
    padding: 12px 14px;
}

.weo-input:focus {
    outline: none;
    border-color: #c3202d;
    box-shadow: 0 0 0 3px rgba(195, 32, 45, 0.22);
}

.weo-password-shell {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.weo-password-shell .weo-input {
    min-width: 0;
}

.weo-password-toggle {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 14px;
}

.weo-password-control {
    position: relative;
    display: flex;
    align-items: center;
}

.weo-password-control .weo-input {
    padding-right: 76px;
}

.weo-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: #2b2222;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
    z-index: 2;
}

.weo-password-toggle:hover,
.weo-password-toggle:focus {
    background: #c3202d;
    outline: none;
}

.weo-readonly-context {
    min-height: 48px;
    background: #231d1d;
    border-color: #704d4d;
}

.weo-readonly-context strong,
.weo-readonly-context span {
    display: block;
}

.weo-readonly-context span {
    margin-top: 4px;
    color: #f0d4ad;
}

.weo-inline-link {
    color: #f8e2c3;
    font-weight: 700;
}

.weo-inline-link:hover,
.weo-inline-link:focus {
    color: #ffffff;
}

.weo-field-full {
    grid-column: 1 / -1;
}

.weo-actions {
    margin-top: 24px;
}

.weo-remember-device {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    color: #f6e6c4;
    font-size: 0.95rem;
    font-weight: 700;
}

.weo-remember-device input {
    width: 16px;
    height: 16px;
    accent-color: #d51f32;
}

.weo-button {
    display: inline-block;
    border: none;
    border-radius: 999px;
    background: #c3202d;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 22px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.weo-button:hover,
.weo-button:focus {
    background: #a91b26;
    color: #ffffff;
}

.weo-button-secondary {
    background: #3a2e2e;
}

.weo-button-secondary:hover,
.weo-button-secondary:focus {
    background: #524141;
}

.weo-choice-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.weo-choice-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
}

.weo-choice-card p {
    color: #f4d8ba;
    line-height: 1.6;
    margin: 0;
}

.weo-validation,
.weo-field-error {
    color: #ff8b93;
}

.weo-validation {
    margin-bottom: 20px;
}

.weo-code-line {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .weo-booked-league-card,
    .weo-start-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .weo-booked-league-actions,
    .weo-start-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .weo-picker-row {
        align-items: stretch;
    }

    .weo-grid,
    .weo-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .weo-app-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .weo-app-shell .weo-hero,
    .weo-app-shell .weo-card,
    .weo-app-shell .weo-choice-card {
        padding: 14px;
    }

    .weo-app-topbar {
        gap: 8px;
        padding: 10px;
    }

    .weo-app-topbar img {
        width: 40px;
        height: 40px;
    }

    .weo-app-alert-button,
    .weo-app-topbar a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .weo-install-card {
        display: grid;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .weo-install-card .weo-button {
        width: 100%;
    }

    .weo-login-app .weo-hero {
        padding: 14px;
    }

    .weo-login-app .weo-copy {
        margin-top: 8px;
        line-height: 1.45;
    }

    .weo-login-app .weo-card {
        padding: 14px;
    }

    .weo-app-shell .weo-start-actions,
    .weo-app-shell .weo-picker-actions,
    .weo-app-shell .weo-booked-league-actions,
    .weo-app-shell .weo-choice-grid {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .weo-app-shell .weo-button {
        width: 100%;
        text-align: center;
    }

    .weo-app-shell .weo-location-pill {
        border-radius: 14px;
    }
}

/* Readability pass: larger form text and less cramped labels. */
.weo-kicker {
    font-size: 0.86rem;
    letter-spacing: 0;
}

.weo-hero h1 {
    line-height: 1.15;
}

.weo-copy,
.weo-choice-card p {
    font-size: 1rem;
    line-height: 1.65;
}

.weo-mode-link,
.weo-button,
.weo-field label,
.weo-picker-label {
    font-size: 1rem;
}

.weo-input {
    font-size: 1rem;
    line-height: 1.4;
}
