:root {
    --cjf-blue: #0f4c9a;
    --cjf-red: #ef3438;
    --ink: #172033;
    --muted: #667085;
    --line: #e5eaf1;
    --soft: #f4f7fb;
    --paper: #ffffff;
    --app-bg: #eef3f8;
}

html.theme-dark {
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --line: #334155;
    --soft: #1e293b;
    --paper: #111827;
    --app-bg: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--app-bg);
}

a {
    color: inherit;
}

.pwa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: env(safe-area-inset-top) 14px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.pwa-header-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.pwa-header-title img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.pwa-header-title-text {
    min-width: 0;
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.pwa-header-title-main,
.pwa-header-title-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-header-title-text small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.pwa-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.pwa-offers-toggle {
    position: relative;
}

.pwa-offers-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cjf-red);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    font-weight: 800;
}

.pwa-header-child-form {
    max-width: 148px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
}

.pwa-header-child-form i {
    color: var(--cjf-red);
    font-size: 13px;
}

.pwa-header-child-form select {
    min-width: 0;
    max-width: 110px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    outline: none;
}

.pwa-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    font-size: 18px;
}

.pwa-page {
    min-height: 100vh;
    padding: 78px 14px 86px;
}

.pwa-page-narrow {
    max-width: 560px;
    margin: 0 auto;
}

.pwa-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
    padding: 18px;
    margin-bottom: 14px;
}

.pwa-logo-large {
    width: 96px;
    height: 96px;
    display: block;
    margin: 0 auto 14px;
    border-radius: 999px;
}

.pwa-kicker {
    margin: 0 0 4px;
    color: var(--cjf-red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pwa-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.15;
}

.pwa-muted {
    color: var(--muted);
}

.pwa-form label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
}

.pwa-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.pwa-field {
    margin-bottom: 14px;
}

.pwa-check {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 2px 0 16px;
}

.pwa-checkout-options {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.pwa-check-card {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.pwa-check-card span {
    display: grid;
    gap: 2px;
}

.pwa-check-card small {
    color: var(--muted);
    font-weight: 600;
}

.pwa-status {
    min-height: 18px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
}

.pwa-status[data-push-status="success"],
.pwa-status[data-geo-status="success"],
.pwa-status[data-pwa-status="success"] {
    color: #15803d;
}

.pwa-status[data-push-status="warning"],
.pwa-status[data-push-status="error"],
.pwa-status[data-geo-status="error"],
.pwa-status[data-pwa-status="error"] {
    color: #b42318;
}

.pwa-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.pwa-btn {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.pwa-btn-primary {
    color: #fff;
    background: var(--cjf-red);
}

.pwa-btn-secondary {
    color: #fff;
    background: var(--cjf-blue);
}

.pwa-btn-light {
    color: var(--ink);
    background: var(--soft);
}

.pwa-btn-full {
    width: 100%;
}

.pwa-link {
    display: inline-flex;
    color: var(--cjf-blue);
    font-weight: 700;
    text-decoration: none;
}

.pwa-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.pwa-alert-danger {
    color: #8a1220;
    background: #fff1f2;
    border-color: #ffc9cf;
}

.pwa-alert-success {
    color: #0f6b45;
    background: #edf9f3;
    border-color: #b7ead1;
}

.pwa-alert-warning {
    color: #76520a;
    background: #fff8e6;
    border-color: #f4d78b;
}

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

.pwa-tile {
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwa-tile i {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--cjf-blue);
}

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

.pwa-tile span {
    color: var(--muted);
    font-size: 12px;
}

.pwa-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pwa-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--soft);
    font-size: 13px;
}

.pwa-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.pwa-profile-photo {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--soft);
}

.pwa-grid-form {
    grid-template-columns: 1fr 1fr;
}

.pwa-event-edit-rich {
    display: grid;
    gap: 10px;
}

.pwa-event-edit-rich .pwa-grid-form,
.pwa-event-edit-rich .pwa-field,
.pwa-event-edit-rich .pwa-input,
.pwa-event-edit-rich select,
.pwa-event-edit-rich textarea {
    min-width: 0;
    width: 100%;
}

.pwa-event-edit-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--soft);
    display: grid;
    gap: 10px;
}

.pwa-event-edit-section .pwa-small-title {
    margin: 0;
    font-size: 13px;
    color: var(--cjf-blue);
}

.pwa-event-edit-section [data-edit-free-location] {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.pwa-event-edit-section [data-edit-free-location][hidden],
.pwa-event-edit-section[hidden],
.pwa-event-edit-rich [hidden] {
    display: none !important;
}

.pwa-switch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 12px;
}

.pwa-switch-grid .pwa-check {
    min-height: 42px;
    margin: 0;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-size: 12px;
    font-weight: 800;
}

.pwa-search-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 8px;
    align-items: stretch;
}

.pwa-recurrence-block {
    display: grid;
    gap: 8px;
}

.pwa-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 66px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.pwa-footer form {
    display: contents;
}

.pwa-footer a,
.pwa-footer button {
    border: 0;
    background: transparent;
    color: #2d3748;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
}

.pwa-footer i {
    font-size: 18px;
}

.pwa-footer .active {
    color: var(--cjf-red);
}

.pwa-network-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(env(safe-area-inset-top) + 66px);
    z-index: 60;
    min-height: 42px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .18);
}

.pwa-network-banner.is-visible {
    display: flex;
}

.pwa-network-banner.is-online {
    background: #15803d;
}

.pwa-network-banner.is-offline {
    background: #b42318;
}

.pwa-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    background: rgba(15, 23, 42, .42);
}

.pwa-install-sheet.is-visible {
    display: flex;
}

.pwa-install-panel {
    position: relative;
    width: min(100%, 430px);
    border-radius: 8px;
    background: var(--paper);
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .26);
}

.pwa-install-panel img {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: block;
    margin: 0 0 12px;
}

.pwa-install-panel h2 {
    margin: 0 34px 8px 0;
    font-size: 20px;
    line-height: 1.2;
}

.pwa-install-panel p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

.pwa-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
}

.pwa-install-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pwa-settings-sheet {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    background: rgba(15, 23, 42, .42);
}

.pwa-settings-sheet.is-visible {
    display: flex;
}

.pwa-settings-panel {
    position: relative;
    width: min(100%, 520px);
    max-height: min(86vh, 760px);
    overflow: auto;
    border-radius: 8px;
    background: var(--paper);
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .26);
}

.pwa-offers-list {
    display: grid;
    gap: 12px;
}

.pwa-offer-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--paper);
}

.pwa-offer-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.pwa-offer-card strong,
.pwa-offer-card small,
.pwa-offer-card p {
    display: block;
    min-width: 0;
}

.pwa-offer-card strong {
    font-size: 15px;
    color: var(--ink);
}

.pwa-offer-card small,
.pwa-offer-card p {
    color: var(--muted);
    font-size: 12px;
    margin: 2px 0 0;
}

.pwa-offer-code {
    display: inline-flex;
    margin-top: 7px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(239, 52, 56, .1);
    color: var(--cjf-red);
    font-weight: 800;
    font-size: 12px;
}

@media (max-width: 520px) {
    .pwa-offer-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .pwa-offer-card .pwa-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.pwa-settings-section {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.pwa-settings-section h3 {
    margin: 0 40px 10px 0;
    font-size: 18px;
}

.pwa-preference-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.pwa-choice-btn,
.pwa-swatch {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pwa-choice-btn {
    padding: 8px 12px;
}

.pwa-swatch {
    width: 46px;
    padding: 0;
}

.pwa-choice-btn.is-active,
.pwa-swatch.is-active {
    outline: 3px solid color-mix(in srgb, var(--cjf-red) 28%, transparent);
    border-color: var(--cjf-red);
}

.pwa-swatch span {
    display: block;
    width: 24px;
    height: 24px;
    margin: 6px auto;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .14);
}

.pwa-bg-swatch {
    width: 58px;
    height: 44px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92) 0 36%, transparent 36%),
        var(--paper);
}

.pwa-bg-swatch span {
    width: 42px;
    height: 28px;
    margin: 7px auto;
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, .12),
        inset 0 10px 0 rgba(255, 255, 255, .48);
}

.pwa-calendar-top {
    padding: 4px 4px 10px;
    text-align: center;
}

.pwa-calendar-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 14px;
}

.pwa-calendar-tabs a {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.pwa-calendar-tabs a.active {
    color: #fff;
    background: var(--cjf-red);
    border-color: var(--cjf-red);
}

.pwa-event-card {
    margin: 0 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 14px 36px rgba(16, 24, 40, .08);
    padding: 16px;
}

.pwa-event-status-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.pwa-event-status-banner span {
    font-weight: 700;
}

.pwa-event-status-banner-cancelled {
    color: #fff;
    background: #dc2626;
}

.pwa-event-status-banner-postponed {
    color: #5f3700;
    background: #facc15;
}

.pwa-event-status-banner-played {
    color: #fff;
    background: var(--cjf-blue);
}

.pwa-event-status-cancelled .pwa-event-head,
.pwa-event-status-cancelled .pwa-versus,
.pwa-event-status-cancelled .pwa-event-focus {
    opacity: .58;
}

.pwa-event-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.pwa-event-datebox {
    width: 54px;
    min-height: 62px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 22px rgba(16, 24, 40, .14);
    text-align: center;
}

.pwa-event-datebox span {
    display: block;
    padding: 6px 2px 4px;
    color: #fff;
    background: var(--cjf-red);
    font-size: 11px;
    font-weight: 800;
}

.pwa-event-datebox strong {
    display: block;
    padding: 8px 2px;
    color: #111827;
    font-size: 24px;
    line-height: 1;
}

.pwa-event-type {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pwa-event-main h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.16;
}

.pwa-event-time {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.pwa-event-time strong {
    font-size: 20px;
}

.pwa-event-time span {
    color: var(--muted);
    font-size: 13px;
}

.pwa-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 20px 0 14px;
}

.pwa-versus-side {
    min-width: 0;
    text-align: center;
}

.pwa-versus-side img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .12);
}

.pwa-versus-side strong {
    display: block;
    min-height: 34px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pwa-versus-middle {
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.pwa-event-focus {
    min-height: 74px;
    margin: 18px 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
}

.pwa-event-focus i {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--cjf-blue);
}

.pwa-event-focus strong {
    font-size: 16px;
}

.pwa-event-meta {
    display: grid;
    gap: 7px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.pwa-event-meta span {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.pwa-event-meta i {
    width: 16px;
    color: #94a3b8;
}

.pwa-event-meta .pwa-route-links {
    align-items: center;
    gap: 7px;
}

.pwa-route-link {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.pwa-route-link i {
    width: auto;
    color: #fff;
    font-size: 10px;
}

.pwa-route-waze {
    background: #31c6f7;
}

.pwa-route-apple {
    background: #111827;
}

.pwa-route-google {
    background: #1a73e8;
}

.pwa-presence-summary {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    color: #93c5fd;
    font-size: 11px;
}

.pwa-presence-box {
    padding-top: 14px;
}

.pwa-presence-box p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.pwa-presence-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.pwa-presence-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #df9f0d;
    font-weight: 900;
    text-transform: uppercase;
}

.pwa-presence-actions button.is-active {
    outline: 3px solid color-mix(in srgb, var(--cjf-blue) 26%, transparent);
    background: var(--cjf-blue);
}

.pwa-presence-actions i {
    margin-right: 8px;
}

.pwa-carpool-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0;
    color: var(--muted);
    font-size: 13px;
}

.pwa-carpool-line button {
    width: 48px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: var(--line);
    padding: 3px;
}

.pwa-carpool-line button span {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
}

.pwa-event-menus {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 8px;
}

.pwa-event-menus > button,
.pwa-event-menus summary {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    cursor: pointer;
}

.pwa-event-menus summary::-webkit-details-marker {
    display: none;
}

.pwa-event-menus summary::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}

.pwa-event-menus details[open] summary::after {
    content: "\f077";
}

.pwa-event-menus i {
    color: var(--cjf-red);
}

.pwa-event-menu-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.pwa-event-menu-list a,
.pwa-event-menu-list button {
    min-height: 42px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.pwa-convocation-public {
    display: none;
}

.pwa-birthday-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px 52px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 112px;
    overflow: hidden;
    border-color: #f0c24f;
    background: linear-gradient(135deg, #fffaf0 0%, #fff 58%, #edf8f2 100%);
}

.pwa-birthday-card::after {
    content: "";
    position: absolute;
    top: -18px;
    right: -15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(22, 134, 75, .08);
}

.pwa-birthday-date {
    align-self: stretch;
    display: grid;
    align-content: center;
    justify-items: center;
    border-radius: 8px;
    background: var(--cjf-navy, #102653);
    color: #fff;
    text-transform: uppercase;
}

.pwa-birthday-date span {
    font-size: 11px;
    font-weight: 800;
}

.pwa-birthday-date strong {
    font-size: 25px;
    line-height: 1;
}

.pwa-birthday-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5c84c;
    color: #102653;
    font-size: 21px;
}

.pwa-birthday-content {
    min-width: 0;
}

.pwa-birthday-content p {
    margin: 0 0 3px;
    color: #16864b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pwa-birthday-content h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.15;
}

.pwa-birthday-content span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 390px) {
    .pwa-birthday-card { grid-template-columns: 52px 42px minmax(0, 1fr); gap: 9px; }
    .pwa-birthday-icon { width: 40px; height: 40px; font-size: 18px; }
    .pwa-birthday-content h2 { font-size: 16px; }
}

.pwa-event-menus > .pwa-convocation-button {
    width: auto;
    min-height: 42px;
    margin: 4px 0 10px;
    padding: 0 16px;
    border-radius: 8px;
    background: #16864b;
    color: #fff;
    box-shadow: 0 7px 18px rgba(22, 134, 75, .22);
}

.pwa-event-menus > .pwa-convocation-button:hover,
.pwa-event-menus > .pwa-convocation-button:focus-visible {
    background: #11713f;
}

.pwa-event-menus > .pwa-convocation-button i {
    color: #fff;
}

.pwa-convocation-button [data-convocation-count] {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: 3px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    font-size: 12px;
}

.pwa-modal-open {
    overflow: hidden;
}

.pwa-public-convocation-panel {
    padding: 24px 20px 20px;
}

.pwa-public-convocation-list {
    margin-top: 18px;
}

.pwa-public-convocation-list ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: convocated-player;
}

.pwa-public-convocation-list li {
    counter-increment: convocated-player;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    font-size: 15px;
    font-weight: 800;
}

.pwa-public-convocation-list li::before {
    content: counter(convocated-player);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #16864b;
    color: #fff;
    font-size: 12px;
}

.pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    background: rgba(15, 23, 42, .46);
}

.pwa-modal.is-visible {
    display: flex;
}

.pwa-modal-panel {
    position: relative;
    width: min(100%, 680px);
    max-height: calc(100vh - 28px);
    overflow: auto;
    border-radius: 8px;
    background: var(--paper);
    padding: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.pwa-modal-close {
    position: sticky;
    z-index: 12;
    top: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -4px -4px -40px auto;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .2);
    cursor: pointer;
}

.pwa-modal-bottom-actions {
    display: flex;
    justify-content: center;
    clear: both;
    width: 100%;
    margin-top: 30px;
    padding: 16px 0 max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
}

.pwa-modal-bottom-actions .pwa-btn {
    min-width: 150px;
    min-height: 46px;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--soft);
    font-size: 14px;
}

.pwa-convocation-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.pwa-convocation-row {
    min-height: 56px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px;
    background: var(--soft);
}

.pwa-convocation-row img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
}

.pwa-convocation-row strong {
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-convocation-row .pwa-btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}

.pwa-empty-row {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 14px;
    color: var(--muted);
    text-align: center;
}

.pwa-thread-list,
.pwa-attendance-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.pwa-thread-row,
.pwa-attendance-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--soft);
}

.pwa-thread-row strong,
.pwa-attendance-row strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.pwa-thread-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.pwa-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.pwa-photo-thumb {
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
    font-size: 11px;
}

.pwa-photo-thumb img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    background: var(--soft);
}

.pwa-photo-thumb span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-small-title {
    margin: 16px 0 8px;
    font-size: 15px;
}

.pwa-mini-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.pwa-mini-actions button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.pwa-mini-actions button.active {
    color: #fff;
    background: var(--cjf-blue);
    border-color: var(--cjf-blue);
}

.pwa-live-screen {
    display: grid;
    gap: 14px;
}

.pwa-live-head {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.pwa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cjf-blue);
    text-decoration: none;
    font-weight: 900;
    margin-bottom: 12px;
}

.pwa-live-tabs {
    position: sticky;
    top: 56px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 0;
    background: var(--app-bg);
}

.pwa-live-tabs button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.pwa-live-tabs button i {
    display: block;
    margin-bottom: 3px;
}

.pwa-live-tabs button.active {
    color: #fff;
    background: var(--cjf-red);
    border-color: var(--cjf-red);
}

.pwa-live-panel {
    display: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.pwa-live-panel.active {
    display: block;
}

.pwa-live-kindness {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--cjf-blue) 8%, var(--paper));
    color: var(--muted);
    font-size: 13px;
}

.pwa-live-kindness strong {
    color: var(--ink);
    font-size: 15px;
}

.pwa-live-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.pwa-live-actions button {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.pwa-live-actions button i {
    display: block;
    margin-bottom: 5px;
    color: var(--cjf-red);
}

.pwa-live-actions button:disabled {
    opacity: .55;
}

.pwa-live-feed {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.pwa-live-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.pwa-live-time {
    color: var(--cjf-blue);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.pwa-live-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pwa-live-main strong {
    font-size: 14px;
}

.pwa-live-main span {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.pwa-live-main small {
    color: var(--muted);
}

.pwa-live-row-yellow_card {
    border-left: 4px solid #f4c430;
}

.pwa-live-row-red_card,
.pwa-live-row-goal_against {
    border-left: 4px solid var(--cjf-red);
}

.pwa-live-row-goal_for {
    border-left: 4px solid #16a34a;
}

.pwa-status.is-ok {
    color: #128248;
}

.pwa-status.is-error {
    color: #dc2626;
}

.pwa-live-photo-grid {
    margin-bottom: 16px;
}

.pwa-role-filter,
.pwa-switch-grid.pwa-directory-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pwa-role-filter label,
.pwa-directory-row,
.pwa-chat-contacts a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.pwa-role-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 800;
}

.pwa-role-filter .pwa-filter-switch {
    min-height: 42px;
    cursor: pointer;
    user-select: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.pwa-role-filter .pwa-filter-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pwa-filter-switch-track {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #d8dee8;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
    transition: background .18s ease, box-shadow .18s ease;
}

.pwa-filter-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .22);
    transition: transform .18s ease;
}

.pwa-filter-switch input:checked + .pwa-filter-switch-track {
    background: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.pwa-filter-switch input:checked + .pwa-filter-switch-track::after {
    transform: translateX(16px);
}

.pwa-filter-switch:has(input:checked) {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
    background: color-mix(in srgb, var(--primary) 8%, var(--paper));
}

.pwa-filter-switch:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.pwa-role-filter .pwa-input {
    grid-column: 1 / -1;
    width: 100%;
}

.pwa-directory-list,
.pwa-chat-contacts,
.pwa-chat-messages {
    display: grid;
    gap: 8px;
}

.pwa-directory-row,
.pwa-chat-contacts a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding: 9px;
    text-decoration: none;
}

.pwa-directory-row-partner {
    border-left: 4px solid var(--cjf-red);
}

.pwa-directory-row img,
.pwa-chat-contacts img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
}

.pwa-directory-row span,
.pwa-chat-contacts span {
    min-width: 0;
}

.pwa-directory-row strong,
.pwa-directory-row small,
.pwa-chat-contacts strong,
.pwa-chat-contacts small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-directory-row small,
.pwa-chat-contacts small,
.pwa-contact-details {
    color: var(--muted);
}

.pwa-contact-card {
    text-align: center;
}

.pwa-contact-card > img {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    margin: 0 auto 12px;
}

.pwa-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.pwa-contact-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    background: var(--cjf-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
}

.pwa-contact-details {
    display: grid;
    gap: 8px;
    text-align: left;
}

.pwa-contact-details p {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.pwa-chat-layout {
    display: grid;
    gap: 12px;
}

.pwa-chat-contacts {
    max-height: 240px;
    overflow: auto;
}

.pwa-chat-contacts a.active {
    border-color: var(--cjf-red);
    box-shadow: inset 3px 0 0 var(--cjf-red);
}

.pwa-chat-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.pwa-chat-title a {
    color: var(--cjf-blue);
    font-weight: 900;
    text-decoration: none;
}

.pwa-chat-messages {
    min-height: 220px;
    max-height: 48vh;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.pwa-chat-message {
    max-width: 82%;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--paper);
}

.pwa-chat-message.mine {
    justify-self: end;
    color: #fff;
    background: var(--cjf-blue);
}

.pwa-chat-message p {
    margin: 0 0 4px;
}

.pwa-chat-message small {
    opacity: .75;
}

.pwa-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
    margin-top: 10px;
}

.pwa-chat-list-screen,
.pwa-chat-person-list,
.pwa-chat-conversation-screen {
    display: grid;
    gap: 10px;
}

.pwa-chat-person {
    display: grid;
    grid-template-columns: 10px 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
}

.pwa-chat-person img,
.pwa-chat-conversation-head img {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
}

.pwa-presence-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background: #9ca3af;
}

.pwa-presence-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.pwa-chat-person-main {
    min-width: 0;
}

.pwa-chat-person-main strong,
.pwa-chat-person-main small,
.pwa-chat-person-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-chat-person-main small {
    color: var(--muted);
}

.pwa-chat-person-main em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.pwa-unread-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--cjf-red);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.pwa-chat-page-conversation {
    padding-bottom: 96px;
}

.pwa-chat-conversation-screen {
    min-height: calc(100vh - 174px);
}

.pwa-chat-conversation-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.pwa-chat-conversation-head strong,
.pwa-chat-conversation-head small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-chat-conversation-head small {
    color: var(--muted);
}

.pwa-chat-conversation-head small .pwa-presence-dot {
    margin-right: 6px;
    vertical-align: middle;
}

.pwa-chat-conversation-head a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--cjf-blue);
    text-decoration: none;
    background: var(--soft);
}

.pwa-chat-messages-full {
    min-height: calc(100vh - 250px);
    max-height: none;
}

.pwa-chat-sendbar {
    position: fixed;
    z-index: 55;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
    padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .10);
}

.theme-dark .pwa-chat-sendbar {
    background: rgba(15, 23, 42, .96);
}

.pwa-chat-sendbar textarea {
    width: 100%;
    min-height: 46px;
    max-height: 120px;
    resize: vertical;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.pwa-chat-sendbar button {
    width: 52px;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--cjf-red);
    color: #fff;
    font-weight: 900;
}

.pwa-club-search,
.pwa-club-picker {
    display: grid;
    gap: 6px;
}

.pwa-club-search label,
.pwa-club-picker label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.pwa-club-picker-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.pwa-club-picker-box .pwa-btn {
    min-width: 52px;
    min-height: 44px;
    padding: 0 12px;
}

.pwa-native-club-select {
    display: none;
}

.pwa-club-search-results {
    display: grid;
    gap: 6px;
    max-height: 180px;
    overflow: auto;
    position: relative;
    z-index: 2;
}

.pwa-club-result {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
}

.pwa-club-result img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
}

.pwa-club-result strong,
.pwa-club-result small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-club-result small {
    color: var(--muted);
}

.pwa-shop-grid {
    display: grid;
    gap: 12px;
}

.pwa-shop-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pwa-shop-card a {
    color: inherit;
    text-decoration: none;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 112px;
}

.pwa-shop-card img,
.pwa-product-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.pwa-shop-body {
    display: grid;
    gap: 4px;
    padding: 12px;
    align-content: center;
}

.pwa-shop-body small,
.pwa-license-row small,
.pwa-package-choice-head small,
.pwa-cart-row small {
    color: var(--muted);
    display: block;
}

.pwa-shop-price {
    font-weight: 800;
    color: var(--cjf-red);
}

.pwa-shop-price em {
    margin-left: 6px;
    color: var(--muted);
    text-decoration: line-through;
    font-style: normal;
    font-weight: 600;
}

.pwa-shop-price-large {
    font-size: 24px;
}

.pwa-product-hero {
    height: 240px;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

.pwa-cart-row,
.pwa-license-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.pwa-license-row {
    grid-template-columns: minmax(0, 1fr);
}

.pwa-cart-row:last-child,
.pwa-license-row:last-child {
    border-bottom: 0;
}

.pwa-cart-row img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.pwa-cart-actions {
    display: grid;
    grid-template-columns: 68px 44px;
    gap: 6px;
}

.pwa-icon-danger {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: #dc2626;
    background: transparent;
}

.pwa-cart-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.pwa-order-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.pwa-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .12);
    overflow: hidden;
    margin: 14px 0 10px;
}

.pwa-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--cjf-red);
}

.pwa-order-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    font-size: 10px;
    color: var(--muted);
}

.pwa-order-steps span {
    min-width: 0;
    text-align: center;
}

.pwa-order-steps .done {
    color: var(--text);
    font-weight: 800;
}

.pwa-order-meta {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.pwa-order-meta div {
    display: grid;
    gap: 2px;
}

.pwa-order-meta strong {
    font-size: 12px;
}

.pwa-partner-card .pwa-contact-actions a {
    min-width: 96px;
}

.pwa-order-meta span {
    color: var(--muted);
    font-size: 13px;
}

.pwa-order-payment-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pwa-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.pwa-license-payment-box {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.pwa-license-payment-grid {
    display: grid;
    gap: 8px;
}

.pwa-license-custom-payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.pwa-order-lines {
    margin-top: 14px;
}

.pwa-wallet-balance {
    font-size: 30px;
    line-height: 1;
    margin: 4px 0 8px;
    font-weight: 900;
    color: var(--cjf-red);
}

.pwa-package-choice-card {
    margin-bottom: 12px;
}

.pwa-package-choice-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.pwa-package-choice-head img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

@media (max-width: 767px) {
    .pwa-modal {
        padding: 6px;
        align-items: flex-end;
    }

    .pwa-modal-panel {
        width: 100%;
        max-height: calc(100vh - 12px);
        padding: 14px;
    }

    .pwa-event-edit-rich .pwa-grid,
    .pwa-event-edit-rich .pwa-grid-form,
    .pwa-switch-grid {
        grid-template-columns: 1fr;
    }

    .pwa-search-line {
        grid-template-columns: minmax(0, 1fr) 48px;
    }
}

@media (min-width: 768px) {
    .pwa-page {
        max-width: 960px;
        margin: 0 auto;
    }

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

    .pwa-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pwa-install-sheet,
    .pwa-settings-sheet,
    .pwa-modal {
        align-items: center;
    }

    .pwa-event-card {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .pwa-live-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pwa-role-filter {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pwa-chat-person-list,
    .pwa-chat-conversation-screen {
        max-width: 760px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .pwa-event-edit-rich .pwa-grid-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
