body.wap-meteor-reference {
    --wap-brand: var(--accent);
    --wap-brand-soft: var(--accent-soft);
    --wap-brand-strong: var(--accent-brand);
    --wap-bg: var(--primary-bg);
    --wap-panel: var(--panel-bg);
    --wap-card: var(--card-bg);
    --wap-card-solid: var(--secondary-bg);
    --wap-line: var(--border-soft);
    --wap-text: var(--text-main);
    --wap-muted: var(--text-muted-strong);
    --wap-on-brand: var(--color-ink-on-accent);
    --wap-danger: var(--accent-danger);
    --wap-success: var(--accent-success);
    margin: 0;
    min-width: 0;
    color: var(--wap-text);
    background-color: var(--wap-bg);
    background-image:
        linear-gradient(180deg, color-mix(in srgb, var(--wap-brand) 24%, transparent), transparent 230px),
        var(--wap-tenant-background, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

body.wap-meteor-reference,
body.wap-meteor-reference * {
    box-sizing: border-box;
}

body.wap-meteor-reference a {
    color: var(--wap-brand);
}

body.wap-meteor-reference .wap-container {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-panel) 94%, transparent);
    border-inline: 1px solid color-mix(in srgb, var(--wap-line) 84%, transparent);
}

body.wap-meteor-reference .wap-content {
    padding: 14px 12px 28px;
}

body.wap-meteor-reference .meteor-qris-raster {
    display: flex;
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--wap-card-solid);
    border: 1px solid var(--wap-line);
}

body.wap-meteor-reference .meteor-qris-raster-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.wap-meteor-reference .wap-reference-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    gap: 10px;
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-card-solid) 88%, var(--wap-bg));
    border-bottom: 3px solid var(--wap-brand);
}

body.wap-meteor-reference .wap-reference-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: var(--wap-text);
    text-decoration: none;
}

body.wap-meteor-reference .wap-reference-brand .wap-brand-logo {
    display: inline-flex;
    width: auto;
    max-width: 132px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

body.wap-meteor-reference .wap-reference-brand img {
    display: block;
    width: auto;
    max-width: 132px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
}

body.wap-meteor-reference .wap-reference-brand strong {
    max-width: 180px;
    overflow: hidden;
    color: var(--wap-text);
    font-size: 18px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wap-meteor-reference .wap-reference-brand > span:last-child small {
    display: block;
    margin-top: 4px;
    color: var(--wap-brand-soft);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

body.wap-meteor-reference .wap-reference-brand .wap-brand-logo + span strong {
    display: none;
}

body.wap-meteor-reference .wap-reference-brand .wap-brand-logo + span small {
    margin-top: 0;
}

body.wap-meteor-reference .wap-reference-brand .wap-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--wap-on-brand);
    background: linear-gradient(135deg, var(--wap-brand), var(--wap-brand-soft));
    border: 1px solid var(--wap-brand-strong);
    border-radius: 8px;
    font-weight: 800;
}

body.wap-meteor-reference .wap-reference-account {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
    min-width: 132px;
    max-width: 190px;
    gap: 6px;
    color: var(--wap-muted);
    font-size: 12px;
    text-align: right;
}

body.wap-meteor-reference .wap-reference-account > span,
body.wap-meteor-reference .wap-reference-account > strong {
    display: block;
}

body.wap-meteor-reference .wap-reference-account > strong {
    color: var(--wap-brand);
    font-weight: 700;
}

body.wap-meteor-reference .wap-topbar-balance {
    display: grid;
    width: 100%;
    gap: 2px;
}

body.wap-meteor-reference .wap-topbar-balance span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wap-meteor-reference .wap-topbar-balance strong {
    color: var(--wap-brand);
    font-size: 13px;
}

body.wap-meteor-reference .wap-reference-account-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

body.wap-meteor-reference .wap-reference-account-actions a {
    display: inline-flex;
    min-width: 43px;
    min-height: 30px;
    padding: 6px 9px;
    align-items: center;
    justify-content: center;
    color: var(--wap-on-brand);
    background: var(--wap-brand);
    border: 1px solid var(--wap-brand-strong);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

body.wap-meteor-reference .wap-reference-account-actions a:first-child {
    color: var(--wap-brand);
    background: var(--wap-card);
}

body.wap-meteor-reference .wap-reference-running {
    overflow: hidden;
    padding: 5px 0;
    color: var(--wap-brand-soft);
    background: color-mix(in srgb, var(--wap-brand) 13%, var(--wap-card-solid));
    border-bottom: 1px solid var(--wap-brand);
    font-size: 11px;
    white-space: nowrap;
}

body.wap-meteor-reference .wap-reference-running > div {
    width: max-content;
    padding-left: 100%;
    animation: meteor-wap-running 36s linear infinite;
}

@keyframes meteor-wap-running {
    to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    body.wap-meteor-reference .wap-reference-running > div {
        width: auto;
        padding-inline: 10px;
        overflow: hidden;
        animation: none;
        text-overflow: ellipsis;
    }
}

body.wap-meteor-reference .content {
    padding: 10px;
}

body.wap-meteor-reference .content > .content {
    padding: 0;
}

body.wap-meteor-reference h1,
body.wap-meteor-reference h2,
body.wap-meteor-reference h3,
body.wap-meteor-reference h4,
body.wap-meteor-reference p {
    margin-top: 0;
}

body.wap-meteor-reference .page-header {
    margin: 0 0 10px;
}

body.wap-meteor-reference .page-header h3 {
    margin: 7px 0 4px;
    color: var(--wap-brand-soft);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

body.wap-meteor-reference .wap-success-mode { text-align: center; }

body.wap-meteor-reference .wap-success-panel {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 16px;
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-card) 94%, transparent);
    border: 1px solid var(--wap-brand);
    border-radius: 10px;
}

body.wap-meteor-reference .wap-success-panel > strong,
body.wap-meteor-reference .wap-success-panel h4 {
    margin: 0;
    color: var(--wap-brand-soft);
    text-align: center;
}

body.wap-meteor-reference .wap-ticket-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body.wap-meteor-reference .wap-ticket-strip span {
    max-width: 100%;
    padding: 6px 8px;
    overflow-wrap: anywhere;
    color: var(--wap-on-brand);
    background: var(--wap-brand);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

body.wap-meteor-reference .wap-summary-list {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--wap-line);
    border-radius: 8px;
    overflow: hidden;
}

body.wap-meteor-reference .wap-summary-list > div {
    display: flex;
    min-width: 0;
    padding: 9px 10px;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--wap-line);
}

body.wap-meteor-reference .wap-summary-list > div:last-child { border-bottom: 0; }
body.wap-meteor-reference .wap-summary-list dt { color: var(--wap-muted); font-weight: 600; }
body.wap-meteor-reference .wap-summary-list dd { margin: 0; color: var(--wap-text); font-weight: 800; overflow-wrap: anywhere; text-align: right; }

body.wap-meteor-reference .page-header h4 {
    color: var(--wap-brand-soft);
}

body.wap-meteor-reference .wap-home-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 54px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--wap-brand-soft);
    background: color-mix(in srgb, var(--wap-card-solid) 82%, var(--wap-brand) 18%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-home-link > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--wap-on-brand);
    background: linear-gradient(180deg, var(--wap-brand-soft), var(--wap-brand-strong));
    border-radius: 8px;
}

body.wap-meteor-reference .wap-home-link strong,
body.wap-meteor-reference .wap-home-link small {
    display: block;
    line-height: 1.1;
}

body.wap-meteor-reference .wap-home-link small {
    color: var(--wap-muted);
    font-size: 10px;
}

body.wap-meteor-reference .back-link {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    color: var(--wap-brand);
    font-size: 12px;
    font-weight: 700;
}

body.wap-meteor-reference .text-muted,
body.wap-meteor-reference .page-info,
body.wap-meteor-reference .market-schedule,
body.wap-meteor-reference .market-time {
    color: var(--wap-muted) !important;
}

body.wap-meteor-reference .wap-reference-auth {
    padding: 22px 6px 36px;
    text-align: center;
}

body.wap-meteor-reference .wap-reference-auth-brand {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

body.wap-meteor-reference .wap-reference-auth-brand .wap-brand-logo-large {
    display: inline-flex;
    width: min(82%, 260px);
    max-width: 260px;
    height: auto;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    background: var(--wap-card-solid);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-reference-auth-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 86px;
    object-fit: contain;
}

body.wap-meteor-reference .wap-reference-auth-brand h1 {
    margin: 0;
    color: var(--wap-text);
    font-size: 24px;
    line-height: 1.15;
}

body.wap-meteor-reference .wap-reference-auth-brand p,
body.wap-meteor-reference .wap-reference-auth-links {
    color: var(--wap-muted);
    font-size: 12px;
}

body.wap-meteor-reference form {
    width: 100%;
}

body.wap-meteor-reference .wap-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    text-align: left;
}

body.wap-meteor-reference .wap-form .btn {
    width: 100%;
}

body.wap-meteor-reference .form-group {
    margin-bottom: 10px;
}

body.wap-meteor-reference .form-group label {
    margin-bottom: 4px;
    color: var(--wap-text);
    font-size: 13px;
    font-weight: 700;
}

body.wap-meteor-reference input,
body.wap-meteor-reference select,
body.wap-meteor-reference textarea,
body.wap-meteor-reference button {
    font: inherit;
}

body.wap-meteor-reference .form-group input,
body.wap-meteor-reference .form-group select,
body.wap-meteor-reference .form-group textarea,
body.wap-meteor-reference input[type="text"],
body.wap-meteor-reference input[type="password"],
body.wap-meteor-reference input[type="number"],
body.wap-meteor-reference select,
body.wap-meteor-reference textarea {
    min-height: 44px;
    padding: 9px 10px;
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-card-solid) 88%, var(--wap-bg));
    border: 1px solid color-mix(in srgb, var(--wap-line) 62%, var(--wap-brand));
    border-radius: 8px;
}

body.wap-meteor-reference input[readonly],
body.wap-meteor-reference input:disabled,
body.wap-meteor-reference select:disabled {
    color: var(--wap-muted) !important;
    background: color-mix(in srgb, var(--wap-card-solid) 70%, var(--wap-bg)) !important;
    opacity: 1;
}

body.wap-meteor-reference input:focus-visible,
body.wap-meteor-reference select:focus-visible,
body.wap-meteor-reference textarea:focus-visible,
body.wap-meteor-reference button:focus-visible,
body.wap-meteor-reference a:focus-visible {
    outline: 2px solid var(--wap-brand);
    outline-offset: 2px;
}

body.wap-meteor-reference .btn {
    min-height: 44px;
    padding: 9px 12px;
    color: var(--wap-text);
    background: var(--wap-card-solid);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .btn-primary {
    color: var(--wap-on-brand);
    background: var(--wap-brand);
    border-color: var(--wap-brand-strong);
}

body.wap-meteor-reference .btn-danger {
    color: var(--wap-text);
    background: var(--wap-danger);
    border-color: var(--wap-danger);
}

body.wap-meteor-reference .btn:hover,
body.wap-meteor-reference .btn:active {
    filter: brightness(1.08);
}

body.wap-meteor-reference .main-menu {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

body.wap-meteor-reference .main-menu > a,
body.wap-meteor-reference .main-menu > div {
    display: grid;
    min-height: 72px;
    align-content: center;
    justify-content: stretch;
    justify-items: start;
    gap: 2px;
    margin: 0;
    padding: 14px;
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-card-solid) 84%, var(--wap-brand) 16%);
    border: 1px solid var(--wap-line);
    border-left: 4px solid var(--wap-brand);
    border-radius: 8px;
    font-size: 15px;
    text-align: left;
    text-decoration: none;
}

body.wap-meteor-reference .wap-menu-card strong {
    font-weight: 900;
}

body.wap-meteor-reference .wap-menu-card small {
    color: var(--wap-muted);
    font-size: 13px;
}

body.wap-meteor-reference .main-menu > a:hover,
body.wap-meteor-reference .main-menu > a:active {
    color: var(--wap-on-brand);
    background: var(--wap-brand);
}

body.wap-meteor-reference .wap-reference-section-title {
    margin: 24px 0 12px;
    color: var(--wap-brand-soft);
    font-size: 23px;
    text-align: center;
}

body.wap-meteor-reference .wap-reference-support {
    margin-top: 14px;
    padding: 12px;
    background: color-mix(in srgb, var(--wap-card-solid) 84%, var(--wap-brand) 16%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-support-title {
    color: var(--wap-brand-soft);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

body.wap-meteor-reference .wap-reference-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

body.wap-meteor-reference .wap-reference-support-grid a,
body.wap-meteor-reference .wap-reference-support-grid span {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    overflow: hidden;
    color: var(--wap-text);
    background: var(--wap-card-solid);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
    font-size: 11px;
    text-decoration: none;
}

body.wap-meteor-reference .wap-reference-support-grid i {
    flex: 0 0 26px;
    color: var(--wap-brand);
    font-size: 20px;
    text-align: center;
}

body.wap-meteor-reference .wap-reference-support-grid b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wap-meteor-reference .wap-support-icon {
    display: grid;
    width: 34px;
    height: 34px;
    min-height: 34px !important;
    flex: 0 0 34px;
    padding: 0 !important;
    place-items: center;
    color: var(--wap-on-brand);
    background: linear-gradient(180deg, var(--wap-brand-soft), var(--wap-brand-strong));
    border: 0 !important;
    border-radius: 8px;
}

body.wap-meteor-reference .wap-support-copy {
    display: grid !important;
    min-width: 0;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 1px;
    background: transparent !important;
    border: 0 !important;
    line-height: 1.15;
}

body.wap-meteor-reference .wap-support-copy strong,
body.wap-meteor-reference .wap-support-copy small {
    overflow-wrap: anywhere;
}

body.wap-meteor-reference .wap-support-copy small {
    color: var(--wap-muted);
    font-size: 10px;
}

body.wap-meteor-reference .tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    overflow-x: auto;
    border: 0;
    scrollbar-width: thin;
}

body.wap-meteor-reference .tab-nav a {
    flex: 1 0 auto;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    color: var(--wap-muted);
    background: var(--wap-card-solid);
    border: 1px solid var(--wap-line);
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}

body.wap-meteor-reference .tab-nav a.active {
    color: var(--wap-on-brand);
    background: var(--wap-brand);
    border-color: var(--wap-brand-strong);
}

body.wap-meteor-reference .market-list {
    display: grid;
    gap: 5px;
}

body.wap-meteor-reference .wap-market-groups {
    display: grid;
    gap: 28px;
    margin-top: 22px;
}

body.wap-meteor-reference .wap-market-group {
    padding: 14px;
    background: color-mix(in srgb, var(--wap-card-solid) 82%, var(--wap-brand) 18%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-market-group > h3 {
    margin: 0 0 12px;
    color: var(--wap-brand-soft);
    font-size: 23px;
    text-align: center;
}

body.wap-meteor-reference .wap-market-group-list {
    display: grid;
    gap: 8px;
}

body.wap-meteor-reference .wap-market-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    min-height: 76px;
    overflow: hidden;
    background: color-mix(in srgb, var(--wap-card-solid) 90%, var(--wap-bg));
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-market-row-copy {
    min-width: 0;
    padding: 10px;
}

body.wap-meteor-reference .wap-market-row-copy > strong {
    display: inline;
    max-width: 100%;
    color: var(--wap-text);
    font-size: 13px;
}

body.wap-meteor-reference .wap-market-row-copy > small,
body.wap-meteor-reference .wap-market-row-copy > a {
    display: block;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wap-meteor-reference .wap-market-row-copy > small {
    color: var(--wap-muted);
}

body.wap-meteor-reference .wap-market-row-copy > a {
    color: var(--wap-brand-soft);
    font-weight: 800;
}

body.wap-meteor-reference .wap-market-status {
    display: inline-block;
    margin-left: 5px;
    padding: 3px 8px;
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-danger) 28%, var(--wap-card-solid));
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

body.wap-meteor-reference .wap-market-status.is-open {
    color: var(--wap-success);
    background: color-mix(in srgb, var(--wap-success) 18%, var(--wap-card-solid));
}

body.wap-meteor-reference .wap-market-play {
    display: grid;
    min-width: 78px;
    place-items: center;
    color: var(--wap-brand-soft);
    border-left: 1px solid var(--wap-line);
    font-size: 12px;
    font-weight: 900;
}

body.wap-meteor-reference .market-item {
    position: relative;
    display: block;
    min-height: 64px;
    margin: 0;
    padding: 9px 10px;
    color: var(--wap-text) !important;
    background: color-mix(in srgb, var(--wap-card-solid) 88%, var(--wap-bg));
    border: 1px solid var(--wap-line);
    border-radius: 4px;
    text-decoration: none !important;
}

body.wap-meteor-reference .market-item:hover,
body.wap-meteor-reference .market-item:active {
    background: color-mix(in srgb, var(--wap-card-solid) 72%, var(--wap-brand) 28%);
}

body.wap-meteor-reference .market-name {
    color: var(--wap-brand-soft);
    font-size: 13px;
    font-weight: 700;
}

body.wap-meteor-reference .market-type-badge,
body.wap-meteor-reference .favorite-badge {
    color: var(--wap-on-brand);
    background: var(--wap-brand);
    border-color: var(--wap-brand-strong);
}

body.wap-meteor-reference .wap-market-reference-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

body.wap-meteor-reference .wap-market-reference-time {
    color: var(--wap-muted);
    font-size: 11px;
    white-space: nowrap;
}

body.wap-meteor-reference .result-table {
    display: table;
    width: 100%;
    min-width: 100%;
    color: var(--wap-text);
    background: var(--wap-card);
    border-collapse: collapse;
}

body.wap-meteor-reference .result-table th,
body.wap-meteor-reference .result-table td {
    padding: 7px 6px;
    border: 1px solid var(--wap-line);
}

body.wap-meteor-reference .result-table th {
    color: var(--wap-brand-soft);
    background: var(--wap-card-solid);
}

body.wap-meteor-reference .result-ball {
    color: var(--wap-on-brand);
    background: var(--provider-logo-plate-bg);
    border-color: var(--wap-brand);
}

body.wap-meteor-reference .pagination {
    gap: 8px;
}

body.wap-meteor-reference .pagination .page-link {
    width: 40px;
    height: 40px;
    color: var(--wap-on-brand);
    background: var(--wap-brand);
    border: 1px solid var(--wap-brand-strong);
}

body.wap-meteor-reference .alert {
    padding: 10px;
    color: var(--wap-text);
    background: var(--wap-card-solid);
    border: 1px solid var(--wap-line);
    border-radius: 4px;
}

body.wap-meteor-reference .alert-success {
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-success) 18%, var(--wap-card-solid));
    border-color: var(--wap-success);
}

body.wap-meteor-reference .alert-error {
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-danger) 18%, var(--wap-card-solid));
    border-color: var(--wap-danger);
}

body.wap-meteor-reference [style*="border:0.1rem solid #000"] {
    color: var(--wap-text);
    background: var(--wap-card-solid);
    border-color: var(--wap-line) !important;
}

body.wap-meteor-reference [style*="color:#666"],
body.wap-meteor-reference [style*="color: #666"] {
    color: var(--wap-muted) !important;
}

body.wap-meteor-reference .error-page h1 {
    color: var(--wap-brand);
}

body.wap-meteor-reference .error-page p {
    color: var(--wap-muted);
}

body.wap-meteor-reference .wap-fund-grid {
    display: grid;
    gap: 12px;
}

body.wap-meteor-reference .wap-fund-card {
    padding: 14px;
    text-align: center;
    background: color-mix(in srgb, var(--wap-card-solid) 82%, var(--wap-brand) 18%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-fund-card h3 {
    margin: 0 0 8px;
}

body.wap-meteor-reference .wap-fund-card p {
    color: var(--wap-muted);
    font-size: 12px;
}

body.wap-meteor-reference .wap-button {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    color: var(--wap-on-brand);
    background: linear-gradient(180deg, var(--wap-brand-soft), var(--wap-brand-strong));
    border: 1px solid var(--wap-brand-strong);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

body.wap-meteor-reference .wap-button-secondary {
    color: var(--wap-brand-soft);
    background: var(--wap-card-solid);
}

body.wap-meteor-reference .wap-fund-history {
    margin-top: 12px;
}

body.wap-meteor-reference .wap-memo-form {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    padding: 14px;
    background: color-mix(in srgb, var(--wap-card-solid) 82%, var(--wap-brand) 18%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-memo-form > label {
    color: var(--wap-muted);
    font-size: 12px;
    font-weight: 800;
}

body.wap-meteor-reference .wap-memo-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

body.wap-meteor-reference .wap-memo-compose > input,
body.wap-meteor-reference .wap-memo-compose > button {
    min-width: 0;
    min-height: 44px;
}

body.wap-meteor-reference .wap-memo-thread {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

body.wap-meteor-reference .wap-memo-bubble {
    width: min(88%, 360px);
    padding: 10px 12px;
    color: var(--wap-text);
    background: var(--wap-card-solid);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-memo-bubble.member {
    justify-self: end;
    background: color-mix(in srgb, var(--wap-brand) 16%, var(--wap-card-solid));
}

body.wap-meteor-reference .wap-memo-bubble.admin {
    justify-self: start;
}

body.wap-meteor-reference .wap-memo-bubble > header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wap-muted);
    font-size: 10px;
}

body.wap-meteor-reference .wap-memo-bubble > p {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

body.wap-meteor-reference .wap-mode-card {
    padding: 14px;
    text-align: center;
    background: color-mix(in srgb, var(--wap-card-solid) 82%, var(--wap-brand) 18%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-mode-card h3 {
    margin: 0 0 12px;
}

body.wap-meteor-reference .wap-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.wap-meteor-reference .wap-selected-mode {
    width: max-content;
    margin: 0 auto 10px;
    padding: 5px 12px;
    color: var(--wap-brand-soft);
    background: color-mix(in srgb, var(--wap-brand) 18%, var(--wap-card-solid));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

body.wap-meteor-reference .main-menu.wap-game-choice-list {
    gap: 8px;
}

body.wap-meteor-reference .main-menu.wap-game-choice-list > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    color: var(--wap-text);
    background: color-mix(in srgb, var(--wap-card-solid) 88%, var(--wap-brand) 12%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
    font-weight: 400;
}

body.wap-meteor-reference .main-menu.wap-game-choice-list > a small {
    color: var(--wap-muted);
    font-size: 12px;
}

body.wap-meteor-reference .wap-select-back {
    width: max-content;
    margin-top: 12px;
}

body.wap-meteor-reference .wap-bet-reference-header .wap-selected-mode {
    margin-top: 18px;
}

body.wap-meteor-reference .wap-bet-reference-header > h3 {
    margin: 14px 0 10px;
}

body.wap-meteor-reference .wap-bet-mode-tabs {
    margin-top: 10px;
}

body.wap-meteor-reference .wap-period-card {
    padding: 11px 12px;
    color: var(--wap-brand-soft);
    text-align: center;
    background: color-mix(in srgb, var(--wap-card-solid) 82%, var(--wap-brand) 18%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

body.wap-meteor-reference .wap-content > form,
body.wap-meteor-reference .wap-content > .content > form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

body.wap-meteor-reference .wap-game-form {
    display: grid;
    gap: 12px;
}

body.wap-meteor-reference .wap-game-form p {
    margin: 0;
}

body.wap-meteor-reference .wap-input-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 10px;
    color: var(--wap-text);
    background: linear-gradient(180deg, color-mix(in srgb, var(--wap-brand) 14%, var(--wap-card)), var(--wap-card));
    border: 1px solid color-mix(in srgb, var(--wap-line) 64%, var(--wap-brand));
    border-radius: 8px;
    font-weight: 800;
}

body.wap-meteor-reference .wap-input-field > span,
body.wap-meteor-reference .wap-check-group > legend {
    color: var(--wap-brand-soft);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

body.wap-meteor-reference .wap-input-field > small,
body.wap-meteor-reference .wap-check-option small {
    display: block;
    color: var(--wap-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

body.wap-meteor-reference .wap-input-field input,
body.wap-meteor-reference .wap-input-field select,
body.wap-meteor-reference .wap-input-field textarea {
    width: 100%;
    margin: 0;
    border-color: color-mix(in srgb, var(--wap-brand) 78%, var(--wap-line));
    background: color-mix(in srgb, var(--wap-card-solid) 70%, var(--wap-brand) 30%);
}

body.wap-meteor-reference .wap-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
    gap: 10px;
}

body.wap-meteor-reference .wap-check-group {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 11px;
    background: color-mix(in srgb, var(--wap-brand) 12%, var(--wap-card));
    border: 1px solid color-mix(in srgb, var(--wap-line) 64%, var(--wap-brand));
    border-radius: 8px;
}

body.wap-meteor-reference .wap-check-group > legend {
    padding: 0 6px;
}

body.wap-meteor-reference .wap-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 8px;
}

body.wap-meteor-reference .wap-check-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    min-width: 0;
    align-items: start;
    gap: 8px;
    padding: 9px;
    background: color-mix(in srgb, var(--wap-brand) 8%, var(--wap-card-solid));
    border: 1px solid color-mix(in srgb, var(--wap-line) 70%, var(--wap-brand));
    border-radius: 8px;
    cursor: pointer;
}

body.wap-meteor-reference .wap-check-option:has(input:checked) {
    background: color-mix(in srgb, var(--wap-brand) 22%, var(--wap-card));
    border-color: var(--wap-brand);
}

body.wap-meteor-reference .wap-check-option input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--wap-brand);
}

body.wap-meteor-reference .wap-check-option span,
body.wap-meteor-reference .wap-check-option strong,
body.wap-meteor-reference .wap-check-option small {
    display: block;
    min-width: 0;
}

body.wap-meteor-reference .wap-check-option strong {
    display: block;
    color: var(--wap-text);
    font-size: 13px;
    line-height: 1.15;
}

body.wap-meteor-reference .wap-check-option small {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
}

body.wap-meteor-reference .wap-help-block {
    display: grid;
    gap: 5px;
    padding: 10px;
    color: var(--wap-muted);
    background: color-mix(in srgb, var(--wap-brand) 10%, var(--wap-card-solid));
    border: 1px dashed color-mix(in srgb, var(--wap-line) 60%, var(--wap-brand));
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

body.wap-meteor-reference .wap-help-block > strong {
    color: var(--wap-brand-soft);
    font-size: 13px;
}

body.wap-meteor-reference .wap-help-block p {
    margin: 0;
}

body.wap-meteor-reference .wap-content form > .form-group {
    padding: 10px;
    background: color-mix(in srgb, var(--wap-card-solid) 84%, var(--wap-brand) 16%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-content form > div[style*="margin-bottom:0.5rem"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 48%);
    min-height: 50px;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--wap-card-solid) 84%, var(--wap-brand) 16%);
    border: 1px solid var(--wap-line);
    border-radius: 8px;
}

body.wap-meteor-reference .wap-content form > div[style*="margin-bottom:0.5rem"] > label {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.wap-meteor-reference .wap-content form > div[style*="margin-bottom:0.5rem"] input[type="text"] {
    width: 100% !important;
}

body.wap-meteor-reference .wap-content form > div[style*="margin-bottom:0.5rem"] input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--wap-brand);
}

@media (min-width: 481px) {
    body.wap-meteor-reference {
        padding-block: 14px;
    }

    body.wap-meteor-reference .wap-container {
        min-height: calc(100vh - 28px);
        box-shadow: 0 18px 48px color-mix(in srgb, var(--wap-bg) 72%, transparent);
    }
}

@media (max-width: 359px) {
    body.wap-meteor-reference .wap-reference-topbar {
        align-items: flex-start;
    }

    body.wap-meteor-reference .wap-reference-brand img {
        max-width: 148px;
    }

    body.wap-meteor-reference .wap-reference-support-grid {
        grid-template-columns: 1fr;
    }

}
