.ap-root .ap-slider {
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: var(--ap-radius);
}

.ap-root .ap-slide {
    display: none;
    align-items: flex-end;
    min-height: 190px;
    padding: 24px;
    background: var(--ap-grad) center / cover no-repeat;
    color: #ffffff;
}

.ap-root .ap-slide.is-active {
    display: flex;
}

.ap-root .ap-slide__body {
    display: flex;
    max-width: 520px;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: var(--ap-radius-sm);
    background: rgba(4, 21, 11, 0.55);
}

.ap-root .ap-slide__body strong {
    font-size: 18px;
}

.ap-root .ap-slider__dots {
    position: absolute;
    inset-inline: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.ap-root .ap-slider__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.ap-root .ap-slider__dots button.is-active {
    width: 22px;
    border-radius: 8px;
    background: #ffffff;
}

.ap-root .ap-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ap-root .ap-stat {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--ap-radius);
    background: var(--ap-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ap-root .ap-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ap-shadow);
}

.ap-root .ap-stat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ap-root .ap-stat__label {
    font-size: 15px;
    font-weight: 600;
}

.ap-root .ap-stat__go {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--ap-line-strong);
    border-radius: 50%;
    font-size: 17px;
}

.ap-root .ap-stat__value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ap-root .ap-stat__value {
    flex-wrap: wrap;
}

.ap-root .ap-stat__value strong {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
}

.ap-root .ap-stat__value--long strong {
    font-size: 30px;
}

.ap-root .ap-stat__value small {
    color: var(--ap-muted);
    font-size: 13px;
}

.ap-root .ap-stat__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ap-brand-text);
    font-size: 12px;
}

.ap-root .ap-stat--feature {
    background: var(--ap-grad);
    color: var(--ap-on);
}

.ap-root .ap-stat--feature .ap-stat__go {
    border-color: transparent;
    background: var(--ap-on);
    color: var(--ap-solid);
}

.ap-root .ap-stat--feature .ap-stat__value small,
.ap-root .ap-stat--feature .ap-stat__hint {
    color: var(--ap-on-soft);
}

.ap-root .ap-widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
}

.ap-root .ap-widget {
    position: relative;
    min-width: 0;
}

.ap-root .ap-widget[data-size="2"] {
    grid-column: span 2;
}

.ap-root .ap-widget[data-size="3"] {
    grid-column: span 3;
}

.ap-root .ap-widget[data-size="4"] {
    grid-column: span 4;
}

.ap-root .ap-widget > .ap-card {
    height: 100%;
}

.ap-root .ap-widget__grip {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    width: 18px;
    height: 22px;
    padding: 0;
    border: 0;
    background: radial-gradient(circle, var(--ap-subtle) 1.4px, transparent 1.6px) 0 0 / 7px 7px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.ap-root .ap-widget:hover .ap-widget__grip {
    opacity: 0.8;
}

.ap-root .ap-widget.is-dragging {
    opacity: 0.4;
}

.ap-root .ap-widget.is-over > .ap-card {
    outline: 2px dashed var(--ap-c-300);
    outline-offset: 3px;
}

.ap-root .ap-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding-top: 22px;
}

.ap-root .ap-bar {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.ap-root .ap-bar__track {
    position: relative;
    display: block;
    width: 100%;
    max-width: 58px;
    flex: 1 1 auto;
}

.ap-root .ap-bar__fill {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    border-radius: 28px;
    background: var(--ap-c-700);
    transition: height 0.4s ease;
}

.ap-root .ap-bar--dark .ap-bar__fill {
    background: var(--ap-c-900);
}

.ap-root .ap-bar--light .ap-bar__fill {
    background: var(--ap-c-300);
}

.ap-root .ap-bar--empty .ap-bar__fill {
    border: 1.5px solid var(--ap-c-100);
    background: repeating-linear-gradient(135deg, var(--ap-c-300) 0 1.5px, transparent 1.5px 6px);
}

.ap-root .ap-bar__tip {
    position: absolute;
    top: -4px;
    padding: 0 7px;
    border-radius: 7px;
    background: var(--ap-card);
    box-shadow: 0 2px 8px rgba(12, 32, 22, 0.12);
    font-size: 11px;
    line-height: 20px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.ap-root .ap-bar:hover .ap-bar__tip,
.ap-root .ap-bar--light .ap-bar__tip {
    opacity: 1;
}

.ap-root .ap-bar__label {
    margin-top: 8px;
    color: var(--ap-subtle);
    font-size: 13px;
}

.ap-root .ap-reminder {
    display: flex;
    flex-direction: column;
}

.ap-root .ap-reminder__title {
    margin-top: 4px;
    color: var(--ap-brand-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
}

.ap-root .ap-reminder__text {
    margin: 6px 0 18px;
    color: var(--ap-muted);
}

.ap-root .ap-reminder .ap-btn {
    margin-top: auto;
}

.ap-root .ap-shortcuts__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ap-root .ap-shortcut {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
}

.ap-root .ap-shortcut:hover {
    background: var(--ap-surface);
}

.ap-root .ap-shortcut__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
}

.ap-root .ap-tone-0 {
    background: #e7edfb;
    color: #3256c9;
}

.ap-root .ap-tone-1 {
    background: #e0f3f1;
    color: #17877d;
}

.ap-root .ap-tone-2 {
    background: #fdf0d7;
    color: #c4811a;
}

.ap-root .ap-tone-3 {
    background: #efe6fa;
    color: #7440c4;
}

.ap-root .ap-shortcut__text {
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.ap-root .ap-shortcut__text strong {
    font-size: 14px;
}

.ap-root .ap-shortcut__text small {
    color: var(--ap-muted);
    font-size: 12px;
}

.ap-root .ap-trows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ap-root .ap-trow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
}

.ap-root .ap-trow:hover {
    background: var(--ap-surface);
}

.ap-root .ap-trow__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ap-c-100);
    color: var(--ap-c-900);
    font-size: 21px;
}

.ap-root .ap-trow__text {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    line-height: 1.6;
}

.ap-root .ap-trow__text strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-root .ap-trow__text small {
    color: var(--ap-muted);
    font-size: 12px;
}

.ap-root .ap-gauge {
    position: relative;
    max-width: 260px;
    margin: 0 auto;
}

.ap-root .ap-gauge svg {
    display: block;
    width: 100%;
    color: var(--ap-c-700);
}

.ap-root .ap-gauge pattern rect {
    fill: var(--ap-c-300);
}

.ap-root .ap-gauge__label {
    position: absolute;
    inset-inline: 0;
    bottom: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.ap-root .ap-gauge__label strong {
    font-size: 30px;
    font-weight: 700;
}

.ap-root .ap-gauge__label small {
    color: var(--ap-muted);
    font-size: 12px;
}

.ap-root .ap-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    color: var(--ap-muted);
    font-size: 12px;
}

.ap-root .ap-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ap-root .ap-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ap-c-700);
}

.ap-root .ap-legend__dot--hatch {
    background: repeating-linear-gradient(135deg, var(--ap-c-300) 0 1.5px, transparent 1.5px 4px);
    border: 1px solid var(--ap-c-300);
}

.ap-root .ap-progress__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--ap-brand-text);
    font-size: 12px;
    font-weight: 600;
}

.ap-root .ap-membership {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 130%, var(--ap-c-300), transparent 62%),
        repeating-radial-gradient(ellipse at 100% 110%, transparent 0 14px, rgba(255, 255, 255, 0.1) 14px 15px),
        linear-gradient(165deg, var(--ap-deep-1), var(--ap-deep-2));
    color: #ffffff;
}

.ap-root .ap-membership .ap-card__title {
    color: #ffffff;
}

.ap-root .ap-membership__days {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
}

.ap-root .ap-membership__days strong {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}

.ap-root .ap-membership__days span,
.ap-root .ap-membership__since,
.ap-root .ap-membership__hours {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    text-align: center;
}

.ap-root .ap-membership__hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.ap-root .ap-coupon {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    font-size: 12px;
}

.ap-root .ap-coupon span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.ap-root .ap-coupon button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border: 1.5px dashed rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.ap-root .ap-box__content > :first-child {
    margin-top: 0;
}

.ap-root .ap-box__content p {
    margin-bottom: 8px;
}

.ap-root .ap-page > :first-child {
    margin-top: 0;
}

.ap-root .ap-signed-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ap-root .ap-restricted {
    text-align: center;
}

.ap-root .ap-restricted p {
    margin-bottom: 12px;
}

.ap-root .ap-ticket-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ap-root .ap-ticket-head__actions {
    display: flex;
    gap: 8px;
}

.ap-root .ap-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
}

.ap-root .ap-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ap-root .ap-msg__bubble {
    min-width: 0;
    flex: 1 1 auto;
    padding: 16px 18px;
    border-radius: var(--ap-radius);
    background: var(--ap-card);
}

.ap-root .ap-msg--staff .ap-msg__bubble {
    background: var(--ap-brand-soft);
}

.ap-root .ap-msg--staff .ap-avatar {
    background: var(--ap-solid);
    color: var(--ap-on);
}

.ap-root .ap-msg__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ap-root .ap-msg__meta time {
    margin-inline-start: auto;
    color: var(--ap-muted);
    font-size: 12px;
}

.ap-root .ap-msg__body {
    overflow-wrap: anywhere;
}

.ap-root .ap-msg__body p {
    margin: 0 0 8px;
}

.ap-root .ap-msg__body p:last-child {
    margin-bottom: 0;
}

.ap-root .ap-msg__body a {
    color: var(--ap-brand-text);
    text-decoration: underline;
}

.ap-root .ap-files {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.ap-root .ap-files__audio {
    height: 40px;
    max-width: 100%;
}

.ap-root .ap-files__image img {
    display: block;
    max-width: 180px;
    max-height: 130px;
    border-radius: 12px;
}

.ap-root .ap-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--ap-surface);
    font-size: 13px;
}

.ap-root .ap-file small {
    color: var(--ap-muted);
}

.ap-root .ap-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border: 1.5px dashed var(--ap-line-strong);
    border-radius: var(--ap-radius-sm);
    color: var(--ap-muted);
    cursor: pointer;
}

.ap-root .ap-drop:hover {
    border-color: var(--ap-c-700);
    color: var(--ap-brand-text);
}

.ap-root .ap-drop--inline {
    padding: 8px 16px;
    border-style: solid;
    border-radius: var(--ap-pill);
}

.ap-root .ap-filelist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.ap-root .ap-filelist li {
    font-size: 12px;
    color: var(--ap-muted);
}

.ap-root .ap-reply__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ap-root .ap-voice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ap-root .ap-voice.is-recording [data-ap-voice-start] {
    border-color: var(--ap-danger);
    background: var(--ap-danger-soft);
    color: var(--ap-danger);
}

.ap-root .ap-voice__timer {
    min-width: 48px;
    direction: ltr;
    font-weight: 700;
    color: var(--ap-danger);
}

.ap-root .ap-voice__audio {
    height: 38px;
}

.ap-root .ap-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    font-size: 28px;
}

.ap-root .ap-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ap-root .ap-stars label {
    color: var(--ap-line-strong);
    cursor: pointer;
}

.ap-root .ap-stars label:hover,
.ap-root .ap-stars label:hover ~ label,
.ap-root .ap-stars input:checked ~ label {
    color: #f0a92c;
}

.ap-root .ap-rating {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.ap-root .ap-suggest {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-brand-soft);
}

.ap-root .ap-suggest__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ap-brand-text);
}

.ap-root .ap-suggest a {
    display: block;
    padding: 8px 0;
    border-top: 1px solid var(--ap-line);
}

.ap-root .ap-suggest a strong {
    display: block;
    font-size: 13px;
}

.ap-root .ap-suggest a span {
    color: var(--ap-muted);
    font-size: 12px;
}

.ap-root .ap-notices li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ap-line);
}

.ap-root .ap-notices li:last-child {
    border-bottom: 0;
}

.ap-root .ap-notice.is-unread {
    background: var(--ap-brand-soft);
}

.ap-root .ap-notice__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ap-c-100);
    color: var(--ap-c-900);
    font-size: 20px;
}

.ap-root .ap-notice__text {
    flex: 1 1 auto;
}

.ap-root .ap-notice__text p {
    color: var(--ap-muted);
    font-size: 13px;
}

.ap-root .ap-notice time {
    color: var(--ap-muted);
    font-size: 12px;
    white-space: nowrap;
}

.ap-root .ap-wallet {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ap-root .ap-wallet > .ap-card + .ap-card {
    margin-top: 0;
}

.ap-root .ap-balance {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: var(--ap-radius);
    background:
        radial-gradient(ellipse at 90% 140%, rgba(255, 255, 255, 0.22), transparent 60%),
        var(--ap-grad);
    color: var(--ap-on);
}

.ap-root .ap-balance__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ap-on-soft);
}

.ap-root .ap-balance__value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.ap-root .ap-balance__value small {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.ap-root .ap-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 16px;
}

.ap-root .ap-method {
    position: relative;
    cursor: pointer;
}

.ap-root .ap-method input {
    position: absolute;
    opacity: 0;
}

.ap-root .ap-method span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1.5px solid var(--ap-line-strong);
    border-radius: var(--ap-radius-sm);
    font-weight: 600;
}

.ap-root .ap-method input:checked + span {
    border-color: var(--ap-c-700);
    background: var(--ap-brand-soft);
    color: var(--ap-brand-text);
}

.ap-root .ap-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-brand-soft);
}

.ap-root .ap-card-info__number {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ap-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ap-root .ap-address {
    font-style: normal;
    color: var(--ap-muted);
    line-height: 2;
}

.ap-root .ap-faq {
    margin-bottom: 14px;
}

.ap-root .ap-faq__item {
    border-top: 1px solid var(--ap-line);
}

.ap-root .ap-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.ap-root .ap-faq__item summary::-webkit-details-marker {
    display: none;
}

.ap-root .ap-faq__item[open] summary .ap-icon {
    transform: rotate(180deg);
}

.ap-root .ap-faq__answer {
    padding-bottom: 14px;
    color: var(--ap-muted);
}

.ap-root .ap-avatar-edit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.ap-root .ap-avatar-edit > div {
    flex: 1 1 auto;
}

.ap-root .ap-security {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 820px;
}

.ap-root .ap-security > .ap-card + .ap-card {
    margin-top: 0;
}

.ap-root .ap-qr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 14px 0;
}

.ap-root .ap-qr {
    width: 176px;
    height: 176px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
}

.ap-root .ap-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ap-root .ap-secret {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px dashed var(--ap-line-strong);
    border-radius: 12px;
    background: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

.ap-root .ap-codes {
    margin: 14px 0;
    padding: 16px;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-warn-soft);
}

.ap-root .ap-codes ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin: 12px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 1200px) {
    .ap-root .ap-stats,
    .ap-root .ap-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-root .ap-widget[data-size="3"],
    .ap-root .ap-widget[data-size="4"] {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .ap-root .ap-widgets {
        grid-template-columns: minmax(0, 1fr);
    }

    .ap-root .ap-stats {
        gap: 10px;
    }

    .ap-root .ap-stat {
        gap: 10px;
        padding: 14px;
    }

    .ap-root .ap-stat__label {
        font-size: 13px;
    }

    .ap-root .ap-stat__go {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .ap-root .ap-stat__value strong {
        font-size: 30px;
    }

    .ap-root .ap-stat__value--long strong {
        font-size: 22px;
    }

    .ap-root .ap-stat__hint {
        font-size: 11px;
    }

    .ap-root .ap-msg {
        gap: 8px;
    }

    .ap-root .ap-msg .ap-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .ap-root .ap-msg__bubble {
        padding: 12px 14px;
    }

    .ap-root .ap-ticket-head {
        align-items: flex-start;
    }

    .ap-root .ap-kv {
        gap: 12px 24px;
    }

    .ap-root .ap-widget[data-size="2"],
    .ap-root .ap-widget[data-size="3"],
    .ap-root .ap-widget[data-size="4"] {
        grid-column: auto;
    }

    .ap-root .ap-widget__grip {
        display: none;
    }

    .ap-root .ap-avatar-edit {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .ap-root .ap-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 721px) and (max-width: 1100px) {
    .ap-root .ap-card--flush {
        overflow-x: auto;
    }

    .ap-root .ap-stat__value strong {
        font-size: 36px;
    }
}

.ap-root .ap-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ap-root .ap-chips button {
    padding: 6px 14px;
    border: 1.5px solid var(--ap-line-strong);
    border-radius: var(--ap-pill);
    background: transparent;
    color: var(--ap-text);
    font-size: 12px;
    font-weight: 600;
}

.ap-root .ap-chips button:hover {
    border-color: var(--ap-brand);
    background: var(--ap-brand-soft);
}

.ap-root .ap-balance__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.ap-root .ap-notice-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-warn-soft);
    color: var(--ap-warn);
}

.ap-root .ap-notice-card + .ap-notice-card {
    margin-top: 8px;
}

.ap-root .ap-wheelpage {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ap-root .ap-wheelpage > .ap-card + .ap-card {
    margin-top: 0;
}

.ap-root .ap-wheelcard {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
}

.ap-root .ap-wheel {
    display: flex;
    justify-content: center;
}

.ap-root .ap-wheel__stage {
    position: relative;
    width: min(100%, 400px);
    aspect-ratio: 1;
}

.ap-root .ap-wheel__ring {
    position: absolute;
    inset: 0;
    padding: 12px;
    border-radius: 50%;
    background: var(--ap-grad);
    box-shadow: 0 22px 50px rgba(12, 32, 22, 0.28);
}

.ap-root .ap-wheel__rotor {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ap-card);
    will-change: transform;
}

.ap-root .ap-wheel__rotor svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ap-root .ap-wheel__pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    z-index: 3;
    width: 0;
    height: 0;
    margin-left: -16px;
    border-right: 16px solid transparent;
    border-left: 16px solid transparent;
    border-top: 36px solid #e0524f;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.ap-root .ap-wheel__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    width: 24%;
    aspect-ratio: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: -12% 0 0 -12%;
    padding: 0;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: var(--ap-grad);
    color: var(--ap-on);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 22px rgba(12, 32, 22, 0.35);
    cursor: pointer;
}

.ap-root .ap-wheel__hub .ap-icon {
    font-size: 22px;
}

.ap-root .ap-wheel__hub:disabled {
    filter: grayscale(0.6);
    cursor: not-allowed;
}

.ap-root .ap-wheelcard__info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ap-root .ap-wheelcard__text {
    color: var(--ap-muted);
    font-size: 15px;
}

.ap-root .ap-wheelcard__left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ap-root .ap-wheelcard__left strong {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ap-brand-text);
}

.ap-root .ap-wheelcard__rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ap-muted);
    font-size: 13px;
}

.ap-root .ap-wheelcard__rules li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ap-root .ap-wheelcard__rules .ap-icon {
    margin-top: 3px;
    color: var(--ap-brand-text);
}

.ap-root .ap-prizelist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.ap-root .ap-prizelist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-surface);
}

.ap-root .ap-prizelist__dot {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--ap-solid);
}

.ap-root .ap-prizelist__text {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    line-height: 1.6;
}

.ap-root .ap-prizelist__text small {
    color: var(--ap-muted);
    font-size: 12px;
}

.ap-root .ap-codechip {
    padding: 4px 10px;
    border: 1.5px dashed var(--ap-line-strong);
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ap-root .ap-codechip:hover {
    border-color: var(--ap-brand);
    background: var(--ap-brand-soft);
}

.ap-root .ap-codechip--lg {
    padding: 10px 18px;
    font-size: 18px;
}

.ap-root .ap-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 15, 10, 0.62);
}

.ap-root .ap-modal__box {
    position: relative;
    display: flex;
    width: min(100%, 400px);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 24px 24px;
    overflow: hidden;
    border-radius: var(--ap-radius-lg);
    background: var(--ap-card);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: ap-pop 0.35s ease;
}

.ap-root .ap-modal__box h3 {
    font-size: 22px;
    font-weight: 800;
}

.ap-root .ap-modal__box.is-win h3 {
    color: var(--ap-brand-text);
}

.ap-root .ap-modal__prize {
    font-size: 18px;
    font-weight: 700;
}

.ap-root .ap-modal__text {
    color: var(--ap-muted);
}

.ap-root .ap-modal__actions {
    margin-top: 8px;
}

.ap-root .ap-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ap-root .ap-confetti i {
    position: absolute;
    top: -16px;
    width: 8px;
    height: 14px;
    opacity: 0;
    animation: ap-fall 2.6s ease-in forwards;
}

@keyframes ap-fall {
    0% {
        opacity: 1;
        margin-top: 0;
    }

    100% {
        opacity: 0;
        margin-top: 460px;
    }
}

@keyframes ap-pop {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ap-root .ap-wheelwidget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        radial-gradient(circle at 12% 110%, rgba(255, 255, 255, 0.25), transparent 55%),
        var(--ap-grad);
    color: var(--ap-on);
}

.ap-root .ap-wheelwidget__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 26px;
}

.ap-root .ap-wheelwidget__title {
    color: var(--ap-on);
    font-size: 20px;
    font-weight: 800;
}

.ap-root .ap-wheelwidget__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.ap-root .ap-wheelwidget__body p {
    color: var(--ap-on-soft);
}

.ap-root .ap-wheelwidget .ap-wheelwidget__left {
    background: rgba(255, 255, 255, 0.2);
    color: var(--ap-on);
}

.ap-root .ap-wheelwidget .ap-btn {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .ap-root .ap-wheelcard {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 18px;
    }

    .ap-root .ap-wheel__stage {
        width: min(100%, 340px);
    }

    .ap-root .ap-wheelcard__left strong {
        font-size: 36px;
    }

    .ap-root .ap-prizelist {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ap-root .ap-autouse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.ap-root .ap-autouse__text {
    display: flex;
    min-width: 240px;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 2px;
}

.ap-root .ap-autouse__text small {
    color: var(--ap-muted);
    font-size: 12px;
    line-height: 1.9;
}
