.ualp-auth-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
    align-items: start;
    gap: 0 1.5rem;
}

.ualp-video-guide {
    min-width: 0;
    margin-bottom: 2rem;
}

.ualp-video-guide h3 {
    margin: 0 0 .85rem;
    font-size: 1.35rem;
}

.ualp-video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: .85rem;
    max-width: 42rem;
}

.ualp .ualp-video-card {
    display: block;
    overflow: hidden;
    border: 1px solid #d8e4f5;
    border-radius: .75rem;
    background: #f5f8fd;
    color: #172746;
    text-decoration: none;
}

.ualp-video-thumbnail {
    display: grid;
    place-items: center;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #17212b;
}

.ualp-video-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ualp-video-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    background: #0074b6;
    color: #fff;
}

.ualp-video-title {
    display: block;
    padding: .65rem .8rem;
    font-size: .95rem;
    font-weight: 700;
}

.ualp-video-card:hover .ualp-video-title,
.ualp-video-card:focus-visible .ualp-video-title {
    text-decoration: underline;
}

.ualp-locations-page #content #primary {
    margin-top: 0;
}

.ualp-locations-page #content #primary .ast-article-single {
    padding-top: clamp(1.25rem, 3vw, 2rem);
}

.ualp {
    max-width: 70rem;
    margin-inline: auto;
    color: #172746;
}

.ualp-account, .ualp-status {
    padding: 1.25rem;
    background: #f5f8fd;
    border: 1px solid #d8e4f5;
    border-radius: 1rem;
}

.ualp-account {
    margin-bottom: 2rem;
}

.ualp-account form {
    display: grid;
    gap: .5rem;
    max-width: 26rem;
}

.ualp .ualp-auth {
    max-width: 30rem;
    padding: 1rem clamp(1rem, 4vw, 1.5rem);
    scroll-margin-top: 5rem;
}

.ualp .ualp-auth h2 {
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    margin: 0 0 .85rem;
}

.ualp .ualp-auth form {
    gap: .3rem;
}

.ualp .ualp-auth form input:not([type="hidden"]) {
    width: 100%;
    min-height: 2.5rem;
    padding: .4rem .65rem;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: .3rem;
}

.ualp .ualp-auth form button,
.ualp .ualp-auth-switch a {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .45rem .8rem;
    border-radius: .35rem;
    font-size: .9rem;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.ualp .ualp-auth-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .65rem;
    margin: .75rem 0 0;
}

.ualp .ualp-auth-switch a {
    border: 1px solid currentColor;
}

.ualp-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
    margin-block: 1.5rem 2rem;
}

.ualp-wallet {
    display: grid;
    gap: .75rem;
    padding: 1.5rem;
    border-radius: .75rem;
    background: #17212b;
    color: #fff;
}

.ualp-wallet strong {
    color: #f1cb80;
    font-size: 2.5rem;
}

.ualp-wallet button {
    background: #f1cb80;
    color: #17212b;
}

.ualp-wallet .ualp-reset {
    background: transparent;
    color: #fff;
    border: 1px solid #9ba8b5;
}

.ualp-counts {
    display: grid;
    gap: .5rem;
    margin: 0;
}

.ualp-counts div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: #fff2da;
    color: #644200;
}

.ualp-counts div:nth-child(2) {
    background: #dff4eb;
    color: #135643;
}

.ualp-counts div:nth-child(3) {
    background: #eef2f6;
    color: #364859;
}

.ualp-counts dd {
    margin: 0;
    font-weight: 700;
}

.ualp-rental-heading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ualp-live {
    display: grid;
    gap: .75rem;
    border: 3px solid #15803d;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 0 0 4px #15803d12;
}
.ualp-live > h3 { color: #14532d; margin: 0; font-size: 1.3rem; }
.ualp-live > .ualp-live-hint { margin: 0; color: #234b35; font-size: .95rem; }

.ualp-live article {
    padding: 1rem;
    border: 1px solid #d8e4f5;
    border-radius: .75rem;
    background: #f5f8fd;
    overflow-wrap: anywhere;
}

.ualp-live article strong {
    display: block;
    margin-bottom: .5rem;
}

@media (max-width: 700px) {
    .ualp-rental-heading {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ualp .ualp-products, .ualp .ualp-history {
    display: block;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    border: 1px solid #d8e4f5;
    border-radius: .75rem;
}

.ualp-products li, .ualp-history li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(7rem, auto);
    align-items: center;
    gap: .75rem 1.25rem;
    padding: 1rem;
    overflow-wrap: anywhere;
}

.ualp-products li + li, .ualp-history li + li {
    border-top: 1px solid #d8e4f5;
}

.ualp-history summary {
    cursor: pointer;
}

.ualp-dashboard-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.ualp-dashboard-header h2,
.ualp-dashboard-header h3,
.ualp-wallet p {
    margin: 0;
}

.ualp-wallet form {
    display: grid;
    gap: .5rem;
}

.ualp-wallet button:disabled {
    opacity: .75;
}

.ualp .ualp-products li {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ualp .ualp-rent-button {
    display: inline-block;
    padding: .7rem 1rem;
    border: 0;
    border-radius: .25rem;
    background: #0074b6;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.ualp .ualp-rent-button:hover,
.ualp .ualp-rent-button:focus-visible {
    background: #00598d;
    color: #fff;
}

.ualp-dashboard-history > summary {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
}

.ualp-history-scroll {
    max-height: 26rem;
    overflow: auto;
    margin-top: .9rem;
}

.ualp-history-scroll table {
    margin-bottom: 0;
}

.ualp-history-pages {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: .9rem;
}

.ualp-recharge-message {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ualp-recharge-spinner {
    display: none;
    flex: 0 0 1.25rem;
    height: 1.25rem;
    box-sizing: border-box;
    border: 2px solid #bacde0;
    border-top-color: #0074b6;
    border-radius: 50%;
}

.ualp-recharge-status[data-state="pending"] .ualp-recharge-spinner {
    display: inline-block;
    animation: ualp-recharge-spin .85s linear infinite;
}

.ualp-recharge-dialog {
    box-sizing: border-box;
    width: min(32rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: #fff;
    color: #172746;
    box-shadow: 0 1rem 3rem rgb(14 34 58 / 22%);
}

.ualp-recharge-dialog::backdrop {
    background: rgb(13 27 46 / 58%);
}

.ualp-recharge-dialog .ualp-recharge-status {
    display: grid;
    justify-items: center;
    gap: 1.35rem;
    margin: 0;
    padding: clamp(1.5rem, 6vw, 2.75rem);
    border: 0;
    background: #fff;
    color: inherit;
    text-align: center;
}

.ualp-recharge-dialog .ualp-recharge-status::before {
    content: none;
}

.ualp-recharge-dialog .ualp-recharge-message {
    display: block;
    max-width: 33ch;
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
}

.ualp-recharge-dialog .ualp-recharge-spinner {
    width: clamp(5.5rem, 24vw, 9rem);
    height: auto;
    aspect-ratio: 1;
    border-width: .55rem;
}

.ualp-recharge-dialog [data-state="credited"] .ualp-recharge-spinner {
    display: grid;
    place-items: center;
    color: #178761;
    border-color: currentColor;
}

.ualp-recharge-dialog [data-state="credited"] .ualp-recharge-spinner::after {
    content: "";
    width: 45%;
    height: 25%;
    border: solid currentColor;
    border-width: 0 0 .55rem .55rem;
    transform: translateY(-15%) rotate(-45deg);
}

.ualp-recharge-dialog .ualp-recharge-status .button {
    float: none;
    min-width: 8rem;
    padding: .8rem 1.2rem;
    border-radius: .55rem;
    text-align: center;
}

.ualp-recharge-dialog [data-state="credited"] .button {
    background: #137755;
    color: #fff;
}

@keyframes ualp-recharge-spin {
    to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
    .ualp-recharge-status[data-state="pending"] .ualp-recharge-spinner {
        animation: none;
    }
}

.ualp-payment-history { min-width: 720px; }
.ualp-unified-history { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.ualp-history-column { min-width: 0; }
.ualp-history-column > h3 { margin: 0 0 16px; font-size: 1.1rem; }
.ualp .ualp-history-timeline { list-style: none; margin: 0; padding: 0; }
.ualp-history-timeline > li { padding: 18px; margin-bottom: 12px; background: #fff; border: 1px solid #d8e4f5; border-radius: 10px; overflow-wrap: anywhere; }
.ualp-history-timeline p { margin: 8px 0 0; }
.ualp-history-timeline .ualp-history-date { margin: 0 0 8px; font-size: .85rem; color: #52657c; }
.ualp-history-detail { white-space: pre-wrap; }
.ualp-history-amount { font-weight: 700; }
.ualp-history-credit { color: #166534; }
.ualp-history-debit { color: #9f2731; }
.ualp-history-balance { font-size: .9rem; }
@media (max-width: 800px) { .ualp-unified-history { grid-template-columns: minmax(0, 1fr); } }
.ualp-credit-box { margin-top: 28px; }
.ualp-service-catalogs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 28px; }
.ualp-service-catalogs > section { min-width: 0; margin-top: 0; }
.ualp-service-catalogs > .ualp-location-column { padding: 24px; border: 1px solid #d8e4f5; border-radius: 16px; background: #f5f8ff; }
.ualp-service-catalogs > .ualp-credit-box { padding: 24px; }
.ualp-service-catalogs h3 { margin-top: 0; }
.ualp-service-catalogs .ualp-products { margin-bottom: 0; }
.ualp-service-catalogs .ualp-products li { gap: 12px; }
.ualp-service-catalogs .ualp-products li > strong { min-width: 0; }
@media (max-width: 900px) {
    .ualp-service-catalogs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .ualp-service-catalogs > .ualp-location-column, .ualp-service-catalogs > .ualp-credit-box { padding: 16px; }
}
.ualp-credit-item { margin: 12px 0; padding: 16px; border: 1px solid #c8dafa; border-radius: 10px; scroll-margin-top: 60px; }
.ualp-credit-item summary { font-weight: 700; cursor: pointer; }
.ualp-credit-item > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; list-style: none; }
.ualp-credit-item > summary::-webkit-details-marker { display: none; }
.ualp-credit-item > summary > :first-child { flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; }
.ualp-credit-item > summary > .ualp-rent-button { flex: 0 0 auto; }
.ualp-credit-item[open] summary { margin-bottom: 16px; }
#ualp-credits, #ualp-location-catalog { scroll-margin-top: 60px; }
.ualp-credit-form { display: grid; gap: 16px; max-width: 620px; }
.ualp-credit-form label { display: grid; gap: 8px; font-weight: 600; }
.ualp-credit-form input { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #b9c9e4; border-radius: 8px; }
.ualp-credit-form [data-credit-total] { font-size: 1.15em; font-weight: 700; margin: 0; }
.ualp-credit-form button:disabled { opacity: .65; cursor: wait; }
.ualp-payment-history td:nth-child(2) { min-width: 240px; overflow-wrap: anywhere; }
.ualp-payment-history th, .ualp-payment-history td { vertical-align: top; }

@media (max-width: 560px) {
    .ualp-products li, .ualp-history li {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ualp-products li > :first-child, .ualp-history li > :first-child {
        grid-column: 1 / -1;
    }
}
