:root {
    --bg: #f3f6fb;
    --card: #ffffff;
    --line: #d7e1ef;
    --text: #071733;
    --muted: #53657f;
    --accent: #2f6fed;
    --accent-deep: #1557d3;
    --secondary: #ffffff;
    --success: #2e8b57;
    --error: #c4492d;
    --info: #2f6fed;
    --latest: #f97316;
    --latest-deep: #c2410c;
    --latest-soft: #fff4e6;
    --shadow: 0 16px 36px rgba(30, 64, 120, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(47, 111, 237, 0.12), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
    min-height: 100vh;
}

.admin-login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 42px 24px;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(47, 111, 237, 0.12) 0%, rgba(47, 111, 237, 0) 36%),
        linear-gradient(315deg, rgba(249, 115, 22, 0.13) 0%, rgba(249, 115, 22, 0) 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 54%, #fff7ed 100%);
}

.admin-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(47, 111, 237, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 111, 237, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 76%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 26px 42px;
}

.hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0;
}

.hero h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.hero p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 16px;
}

.admin-topbar h1 {
    margin: 8px 0 0;
    font-size: 22px;
    line-height: 1.2;
}

.admin-topbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.topbar-spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.topbar-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    min-width: 0;
}

.topbar-account .public-account-menu {
    margin-left: 0;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: right;
}

.topbar-title h1 {
    margin: 0;
}

.topbar-title p {
    margin-top: 3px;
}

.public-account-menu {
    margin-left: auto;
}

.account-menu {
    position: relative;
    flex: 0 0 auto;
}

.avatar-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    cursor: pointer;
    overflow: hidden;
    font-weight: 800;
}

.avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
}

.settings-menu-button img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    pointer-events: none;
}

.settings-menu-button:hover {
    background: transparent;
    transform: translateY(-1px);
}

.user-avatar-menu-button {
    overflow: hidden;
    border: 2px solid rgba(47, 111, 237, 0.16);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(47, 111, 237, 0.12);
}

.user-avatar-menu-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-menu-button.user-avatar-menu-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar-menu {
    justify-self: start;
    margin-left: 0;
}

.account-avatar-menu-button {
    padding: 0;
    border: 2px solid rgba(47, 111, 237, 0.16);
    cursor: pointer;
}

.account-avatar-menu-button:hover {
    transform: translateY(-1px);
}

.account-avatar-menu .account-dropdown {
    right: auto;
    left: 0;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 23, 51, 0.14);
}

.account-dropdown[hidden] {
    display: none;
}

.account-dropdown strong {
    display: block;
    padding: 8px 10px;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.account-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    padding: 8px 10px;
}

.account-dropdown button img {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
}

.account-dropdown button span {
    min-width: 0;
    line-height: 1;
}

.account-dropdown button:hover {
    background: #f4f7fc;
}

.admin-version-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-version-grid > *,
.admin-split-grid > * {
    min-width: 0;
}

.version-panel {
    min-width: 0;
}

.compact-upload {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.compact-table .admin-table th,
.compact-table .admin-table td {
    padding: 10px;
    font-size: 13px;
}

.version-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.version-list-item {
    display: grid;
    grid-template-columns: minmax(82px, 0.72fr) minmax(92px, 1fr) minmax(118px, 1fr) auto auto;
    grid-template-areas:
        "main meta time status action";
    gap: 6px 8px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.version-main {
    grid-area: main;
    min-width: 0;
}

.version-main strong,
.version-meta strong,
.version-time strong {
    display: block;
    overflow-wrap: anywhere;
}

.version-main span,
.version-meta span,
.version-time span {
    color: var(--muted);
    font-size: 12px;
}

.version-meta {
    grid-area: meta;
    min-width: 0;
}

.version-time {
    grid-area: time;
    min-width: 0;
}

.version-meta strong,
.version-time strong {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
}

.version-time strong {
    white-space: nowrap;
    font-size: 11px;
}

.version-list-item .status {
    grid-area: status;
    justify-self: end;
    white-space: nowrap;
}

.version-list-item form {
    grid-area: action;
    margin: 0;
}

.version-delete-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1;
}

.version-delete-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.version-delete-icon:hover {
    background: transparent;
}

.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 23, 51, 0.42);
}

.settings-overlay[hidden] {
    display: none;
}

.settings-dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 23, 51, 0.22);
    padding: 20px;
}

.admin-settings-dialog {
    display: flex;
    flex-direction: column;
    height: min(88vh, 820px);
    max-height: min(88vh, 820px);
    overflow: hidden;
}

.settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 38px;
    margin-bottom: 14px;
}

.settings-dialog .payment-close {
    top: 12px;
    right: 12px;
}

.settings-head h2 {
    margin: 0;
    font-size: 20px;
}

.settings-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.build-log-dialog {
    width: min(620px, 100%);
}

.build-log-content {
    margin: 0;
    max-height: 48vh;
    overflow: auto;
    border: 1px solid rgba(239, 29, 29, 0.2);
    border-radius: 8px;
    background: #fff7f7;
    color: #c40000;
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.settings-pane {
    display: none;
}

.settings-pane.active {
    display: block;
}

.admin-settings-dialog .settings-pane.active {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.banner-settings-form {
    display: grid;
    gap: 12px;
}

.settings-dependent-fields {
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.settings-dependent-fields.is-disabled {
    opacity: 0.42;
    filter: grayscale(0.25);
    pointer-events: none;
    user-select: none;
}

.mail-settings-form > .settings-dependent-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
}

.profile-settings-stack {
    display: grid;
    gap: 14px;
}

.profile-settings-panel,
.banner-config-section {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(47, 111, 237, 0.14);
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
}

.profile-settings-panel h3,
.banner-config-section h3 {
    margin: 0;
    font-size: 14px;
    color: #17233d;
}

.profile-settings-panel .mail-settings-form,
.profile-settings-panel .password-form {
    margin-top: 0;
}

.profile-settings-panel .mail-settings-actions,
.profile-settings-panel .password-form-actions {
    justify-content: flex-end;
}

.banner-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.banner-section-head-simple {
    grid-template-columns: 1fr;
}

.banner-settings-top {
    display: grid;
    grid-template-columns: minmax(180px, 1fr);
    gap: 10px;
    align-items: center;
}

.banner-interval-field input {
    text-align: center;
}

.banner-section-head .banner-interval-field {
    display: inline-grid;
    grid-template-columns: auto 48px;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.banner-section-head .banner-interval-field span {
    font-size: 12px;
    white-space: nowrap;
}

.banner-section-head .banner-interval-field input {
    width: 48px;
    height: 34px;
    padding-inline: 6px;
}

.banner-add-button {
    align-self: center;
    justify-self: end;
}

.banner-carousel-fields {
    display: grid;
    gap: 10px;
}

.banner-settings-top .check-field {
    grid-column: 1;
    align-self: center;
}

.banner-admin-list {
    display: grid;
    gap: 8px;
}

.banner-qr-admin {
    display: grid;
    grid-template-columns: 150px 88px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 0;
}

.banner-qr-section {
    display: none !important;
}

.banner-qr-admin .banner-qr-enabled {
    grid-column: 1;
    gap: 6px;
    margin: 0;
    align-self: center;
}

.banner-qr-file-field {
    grid-column: 2;
    width: 72px;
    justify-self: start;
}

.banner-file-field,
.banner-qr-file-field {
    position: relative;
    display: grid;
    gap: 4px;
    cursor: pointer;
}

.banner-file-field input[type="file"],
.banner-qr-file-field input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.banner-qr-preview {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px dashed #b7c7df;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
}

.banner-qr-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    pointer-events: none;
}

.banner-admin-row {
    display: grid;
    grid-template-columns: 70px 58px 112px minmax(190px, 1fr) 28px;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.banner-admin-row .field span,
.banner-row-enabled span {
    font-size: 11px;
}

.banner-admin-row .banner-row-enabled {
    grid-column: 1;
    gap: 5px;
    min-height: 40px;
    align-self: center;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.banner-row-enabled input {
    width: 16px;
    height: 16px;
}

.banner-sort-field input {
    text-align: center;
}

.banner-sort-field {
    grid-column: 2;
}

.banner-file-field {
    grid-column: 3;
}

.banner-link-field {
    grid-column: 4;
}

.banner-remove {
    grid-column: 5;
}

.banner-preview {
    display: grid;
    place-items: center;
    width: 100%;
    height: 48px;
    overflow: hidden;
    border: 1px dashed #b7c7df;
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
}

.banner-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    pointer-events: none;
}

.banner-remove {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
}

.banner-remove img {
    width: 17px;
    height: 17px;
}

.banner-settings-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.intro-card {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(260px, 1fr) 330px;
    align-items: center;
    gap: 30px;
    margin: 0 0 14px;
    padding: 24px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.intro-card > div:first-child {
    grid-column: 1;
    min-width: 220px;
}

.guest-page .intro-card,
.user-page .intro-card {
    grid-template-columns: minmax(260px, 1fr) 330px;
}

.guest-page .intro-card > div:first-child,
.user-page .intro-card > div:first-child {
    display: none;
}

.guest-page .top-banner-carousel,
.user-page .top-banner-carousel {
    grid-column: 1;
}

.user-page .intro-side-tools {
    grid-column: 2;
}

.guest-page .guest-intro-tools {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    gap: 12px;
}

.guest-page .intro-card:not(:has(.top-banner-carousel, .guest-intro-tools)) {
    display: none;
}

.top-banner-carousel {
    position: relative;
    grid-column: 2;
    min-width: 260px;
    width: 100%;
    height: auto;
    min-height: 160px;
    aspect-ratio: 5 / 1;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.top-banner-track,
.top-banner-slide,
.top-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.top-banner-slide {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.65s ease;
    pointer-events: none;
}

.top-banner-slide.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.top-banner-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.top-banner-dots {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: flex;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(7, 23, 51, 0.22);
    backdrop-filter: blur(6px);
}

.top-banner-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transition: width 0.2s ease, background 0.2s ease;
}

.top-banner-dots span.active {
    width: 16px;
    background: #fff;
}

.hero:empty {
    display: none;
}

.intro-settings-menu {
    grid-column: 3;
    justify-self: end;
    margin-left: auto;
    align-self: center;
}

.intro-card > .intro-badge {
    grid-column: 3;
    justify-self: end;
}

.intro-side-tools {
    position: relative;
    display: grid;
    grid-column: 3;
    align-self: stretch;
    place-items: center;
    min-height: 112px;
}

.intro-side-tools .intro-settings-menu {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
}

.user-page .intro-side-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    gap: 12px;
}

.user-page .intro-side-tools .intro-settings-menu {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
}

.daily-checkin-card {
    margin: 0;
}

.daily-checkin-card button {
    display: grid;
    min-width: 132px;
    height: 54px;
    place-items: center;
    gap: 2px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 177, 66, 0.42);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5df 0%, #ffe1a8 100%);
    color: #8b4f00;
    box-shadow: 0 10px 24px rgba(255, 177, 66, 0.2);
    cursor: pointer;
}

.daily-checkin-card button span {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.daily-checkin-card button strong {
    font-size: 12px;
    line-height: 1;
}

.daily-checkin-card button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 177, 66, 0.26);
}

.daily-checkin-card button:disabled {
    border-color: rgba(46, 139, 87, 0.26);
    background: linear-gradient(135deg, #ecfff5 0%, #c8f2dc 100%);
    color: #236b45;
    cursor: default;
    box-shadow: 0 8px 18px rgba(46, 139, 87, 0.14);
}

.daily-checkin-calendar {
    position: relative;
    width: 272px;
    height: 100%;
    min-height: 160px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(246, 251, 255, 0.96), rgba(226, 241, 255, 0.92));
    box-shadow: 0 12px 28px rgba(96, 165, 250, 0.14);
}

.daily-checkin-calendar > button {
    display: none;
}

.daily-checkin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #1f64b6;
    line-height: 1;
}

.daily-checkin-title span {
    font-size: 10px;
    font-weight: 800;
}

.daily-checkin-title strong {
    font-size: 9px;
    font-weight: 800;
}

.daily-checkin-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-top: 8px;
}

.daily-checkin-weekday {
    display: grid;
    height: 13px;
    place-items: center;
    color: #3478c8;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.daily-checkin-day {
    position: relative;
    display: grid;
    height: 26px;
    align-content: center;
    justify-items: center;
    gap: 0;
    padding: 1px 0 2px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 6px;
    background: #eef6ff;
    color: #6f88a8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    cursor: default;
}

.daily-checkin-day span {
    min-height: 7px;
    font-size: 7px;
    line-height: 1;
    white-space: nowrap;
}

.daily-checkin-day span:empty {
    display: none;
}

.daily-checkin-day strong {
    font-size: 11px;
    line-height: 1;
}

.daily-checkin-day.empty {
    visibility: hidden;
}

.daily-checkin-day.checked {
    border-color: rgba(96, 165, 250, 0.72);
    background: linear-gradient(135deg, #dff0ff, #9fd0ff);
    color: #155a9f;
    cursor: help;
    box-shadow: 0 6px 14px rgba(96, 165, 250, 0.24);
}

.daily-checkin-day.missed {
    border-color: rgba(229, 57, 53, 0.58);
    background: linear-gradient(135deg, #ffe8e6, #ffc2bd);
    color: #b51f1a;
    cursor: help;
    box-shadow: 0 6px 14px rgba(229, 57, 53, 0.18);
}

.daily-checkin-day.future {
    cursor: help;
}

.daily-checkin-day.today {
    border-color: rgba(74, 222, 128, 0.58);
    background: linear-gradient(135deg, #eafff2, #bbf7d0);
    color: #18733a;
    box-shadow: 0 6px 14px rgba(74, 222, 128, 0.2);
}

.daily-checkin-day.checked::after,
.daily-checkin-day.missed::after {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    width: 12px;
    height: 12px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    background: #25b66f;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}

.daily-checkin-day.checked::after {
    content: "\2713";
    background: #25b66f;
    box-shadow: 0 3px 8px rgba(37, 182, 111, 0.26);
}

.daily-checkin-day.missed::after {
    content: "\00d7";
    background: #e51f16;
    box-shadow: 0 3px 8px rgba(229, 31, 22, 0.26);
}

.daily-checkin-toast {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 200;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 29, 47, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -42%);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.daily-checkin-toast.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.daily-checkin-mask {
    position: absolute;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 16px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(239, 248, 255, 0.78), rgba(191, 224, 255, 0.62));
    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

.daily-checkin-mask-checked {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    pointer-events: none;
}

.daily-checkin-mask-pending {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: rgba(239, 248, 255, 0.22);
    backdrop-filter: none;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.08);
    pointer-events: none;
}

.daily-checkin-mask-button {
    display: grid;
    min-width: 132px;
    min-height: 58px;
    place-items: center;
    gap: 3px;
    padding: 10px 18px;
    border: 1px solid rgba(59, 130, 246, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(96, 165, 250, 0.28);
    animation: daily-checkin-pulse 1.7s ease-in-out infinite;
}

.daily-checkin-mask-button-checked {
    display: flex;
    min-width: 112px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 15px;
    border-color: rgba(96, 165, 250, 0.32);
    background: linear-gradient(135deg, rgba(239, 248, 255, 0.86), rgba(159, 208, 255, 0.7));
    color: #155a9f;
    cursor: default;
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.16);
    transform: translateY(-50%);
    animation: none;
}

.daily-checkin-mask-button-pending {
    display: flex;
    min-width: 112px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    border-color: rgba(59, 130, 246, 0.34);
    background: linear-gradient(135deg, rgba(232, 244, 255, 0.94), rgba(147, 197, 253, 0.78));
    color: #1f64b6;
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.18);
    transform: translateY(-50%);
    animation: none;
    pointer-events: auto;
}

.daily-checkin-mask-points {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    color: #256ec1;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.66);
    transform: translateY(-50%);
    white-space: nowrap;
}

.daily-checkin-mask-points-pending {
    color: #256ec1;
}

.daily-checkin-mask-button span {
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.daily-checkin-mask-button strong {
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.daily-checkin-mask-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(96, 165, 250, 0.34);
}

.daily-checkin-mask-button-checked:hover {
    transform: translateY(-50%);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.16);
}

.daily-checkin-mask-button-pending:hover {
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(224, 244, 255, 0.96), rgba(125, 188, 252, 0.84));
    box-shadow: 0 12px 22px rgba(96, 165, 250, 0.24);
}

@keyframes daily-checkin-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.045);
    }
}

.daily-checkin-day.today:not(.checked) {
    border-color: rgba(74, 222, 128, 0.64);
    background: linear-gradient(135deg, #eafff2, #bbf7d0);
    color: #18733a;
    cursor: pointer;
}

.daily-checkin-day.today:not(.checked):hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ddffea, #a7efbf);
    box-shadow: 0 8px 18px rgba(74, 222, 128, 0.24);
}

.intro-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
}

.intro-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.intro-badge {
    display: none;
    min-width: 130px;
    padding: 12px 14px;
    border: 1px solid #a9c4ff;
    border-radius: 12px;
    background: #eef4ff;
}

.intro-badge span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.intro-badge strong {
    display: block;
    margin-top: 4px;
    color: var(--accent-deep);
    font-size: 22px;
    line-height: 1;
}

.topbar-badge {
    min-width: 112px;
    padding: 9px 12px;
    border-radius: 8px;
    text-align: center;
}

.topbar-badge span {
    font-size: 12px;
}

.topbar-badge strong {
    margin-top: 2px;
    font-size: 20px;
}

.admin-topbar-badge {
    display: grid;
    place-items: center;
    min-height: 44px;
}

.admin-topbar-badge strong {
    margin-top: 0;
    font-size: 18px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
    padding: 24px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.side-panel {
    display: grid;
    gap: 16px;
    padding-left: 30px;
    border-left: 1px solid var(--line);
}

.side-panel > .top-qr-card {
    display: none;
}

.top-qr-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 10px 0 2px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.top-qr-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.top-qr-card img {
    display: block;
    width: 108px;
    height: 108px;
    border: 1px solid rgba(47, 111, 237, 0.18);
    border-radius: 10px;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(18, 46, 97, 0.08);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: none;
}

.form-card,
.auth-card,
.result-card {
    padding: 20px;
}

.result-card .card-head h2 {
    font-size: 20px;
}

.result-card .card-head p {
    font-size: 13px;
}

.layout > .form-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.card-head h2 {
    margin: 0;
    font-size: 22px;
}

.card-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.version-upload-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-upload-head > div {
    min-width: 0;
}

.version-upload-head-icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.package-card-head {
    display: block;
}

.package-card-copy {
    min-width: 0;
}

.package-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-head-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-head-title-row h2 {
    margin: 0;
}

.icon-add-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-add-button img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

.icon-add-button:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
}

.stack-lg {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

form[data-build-form="1"] {
    zoom: 0.9;
}

.stack-md {
    display: grid;
    gap: 14px;
}

.platform-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.platform-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6f9ff;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.platform-tab-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.platform-tab span {
    line-height: 1;
}

.platform-tab.active {
    border-color: rgba(47, 111, 237, 0.36);
    background: #fff;
    color: var(--accent-deep);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.16);
}

.platform-panel {
    display: none;
}

.platform-panel.active {
    display: block;
}

.field {
    display: grid;
    gap: 9px;
    align-content: start;
}

.field span {
    font-size: 14px;
    font-weight: 700;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.text-restore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(47, 111, 237, 0.22);
    border-radius: 7px;
    background: #f2f7ff;
    color: #2f6fed;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.text-restore-button:hover {
    border-color: rgba(47, 111, 237, 0.42);
    background: #eaf3ff;
    color: #2457c5;
}

.textarea-restore-wrap {
    position: relative;
}

.textarea-restore-wrap textarea {
    padding-bottom: 42px;
}

.textarea-restore-wrap .text-restore-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.field small {
    color: var(--muted);
    font-size: 12px;
}

.field-hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: -10px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input,
.field select {
    height: 43px;
}

.field input[type="file"]:not(.file-input) {
    padding: 4px 10px;
    line-height: 33px;
}

.field input[type="file"]:not(.file-input)::file-selector-button {
    width: 38px;
    height: 34px;
    margin-right: 10px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent url("images/folder-upload.png") center 39% / 30px 25px no-repeat;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.field input[type="file"]:not(.file-input)::file-selector-button:hover {
    transform: translateY(-1px);
}

.field input[type="file"]:not(.file-input):disabled::file-selector-button {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

#version_template,
#android_version_template {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
        #fff;
    padding-right: 42px;
}

#version_template.template-selected {
    border-color: rgba(53, 181, 221, 0.55);
    background:
        linear-gradient(45deg, transparent 50%, #35b5dd 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
        linear-gradient(135deg, #35b5dd 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
        linear-gradient(180deg, #f3fbff 0%, #eaf8ff 100%);
    box-shadow: inset 0 0 0 1px rgba(53, 181, 221, 0.13), inset 0 12px 24px rgba(53, 181, 221, 0.11);
}

#android_version_template.template-selected {
    border-color: rgba(166, 206, 52, 0.62);
    background:
        linear-gradient(45deg, transparent 50%, #a6ce34 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
        linear-gradient(135deg, #a6ce34 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
        linear-gradient(180deg, #fbfff0 0%, #f1fad8 100%);
    box-shadow: inset 0 0 0 1px rgba(166, 206, 52, 0.14), inset 0 12px 24px rgba(166, 206, 52, 0.12);
}

#version_template.latest-selected {
    color: #127ca3;
    border-color: rgba(53, 181, 221, 0.72);
    padding-right: 88px;
    background:
        linear-gradient(45deg, transparent 50%, #35b5dd 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
        linear-gradient(135deg, #35b5dd 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
        linear-gradient(180deg, #eaf8ff 0%, #dcf3fc 100%);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(53, 181, 221, 0.22), inset 0 14px 26px rgba(53, 181, 221, 0.14);
}

#android_version_template.latest-selected-android {
    color: #5d7f11;
    border-color: rgba(166, 206, 52, 0.76);
    padding-right: 88px;
    background:
        linear-gradient(45deg, transparent 50%, #a6ce34 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
        linear-gradient(135deg, #a6ce34 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
        linear-gradient(180deg, #f7ffe6 0%, #edf8cf 100%);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(166, 206, 52, 0.22), inset 0 14px 26px rgba(166, 206, 52, 0.15);
}

#version_template option,
#android_version_template option,
#version_template option.latest-template-option,
#android_version_template option.latest-template-option,
#version_template option:checked,
#android_version_template option:checked,
#version_template option.latest-template-option:checked,
#android_version_template option.latest-template-option:checked {
    background: #fff;
    color: var(--text);
    font-weight: 400;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(47, 111, 237, 0.75);
    box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.1);
    transform: translateY(-1px);
}

#version_template.latest-selected:focus,
#android_version_template.latest-selected-android:focus {
    box-shadow: inset 0 0 0 2px currentColor, inset 0 14px 26px rgba(255, 255, 255, 0.42);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.file-name {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    min-width: 0;
    max-width: 180px;
    padding: 0 10px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    background: #f3f7ff;
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
}

.keystore-file-name {
    max-width: 150px;
}

.file-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #ffd0d0;
    border-radius: 50%;
    background: #fff5f5;
    color: #c93030;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.file-clear-button:hover {
    border-color: #ef8f8f;
    background: #ffe9e9;
}

.file-clear-button[hidden] {
    display: none;
}

.file-name[hidden] {
    display: none;
}

.upload-field .file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 43px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.file-button-icon {
    display: block;
    width: 32px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}

.file-button:hover,
.upload-field:focus-within .file-button {
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
}

.file-input:disabled ~ .file-button,
button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
    transform: none;
}

.file-picker.is-disabled .file-button,
.file-picker.is-disabled .file-name {
    cursor: not-allowed;
    opacity: 0.62;
}

.file-picker.is-disabled .file-button {
    background: transparent;
}

.upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fbff;
    overflow: visible;
}

.upload-preview[hidden] {
    display: none;
}

.upload-preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.upload-preview-clear {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #ffd0d0;
    border-radius: 50%;
    background: #fff5f5;
    color: #c93030;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(20, 35, 68, 0.12);
}

.upload-preview-clear:hover {
    border-color: #ef8f8f;
    background: #ffe9e9;
}

.upload-preview-clear[hidden] {
    display: none;
}

.icon-preview {
    width: 38px;
    height: 38px;
    padding: 3px;
}

.installer-image-preview {
    width: 58px;
    height: 78px;
    padding: 4px;
}

.installer-image-preview.default-preview {
    position: relative;
    overflow: visible;
    border-style: dashed;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

.installer-image-preview.default-preview::before {
    content: "";
    width: 34px;
    height: 50px;
    border-radius: 4px;
    background:
        linear-gradient(135deg, transparent 0 12px, rgba(47, 111, 237, 0.14) 12px 100%),
        #fff;
    border: 1px solid #cfe0ff;
}

.installer-image-preview.default-preview img {
    display: none;
}

.installer-image-preview.default-preview::after {
    content: "默认图";
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 20px;
    align-items: start;
}

.brand-form-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.82fr) minmax(116px, 0.54fr) minmax(96px, 0.46fr);
    gap: 14px 18px;
    align-items: start;
}

.android-brand-form-grid {
    grid-template-columns: repeat(18, minmax(0, 1fr));
    column-gap: 10px;
}

.android-brand-form-grid .version-select-field {
    grid-column: span 6;
}

.android-brand-form-grid > .field:nth-child(2) {
    grid-column: span 3;
}

.android-brand-form-grid > .field:nth-child(3) {
    grid-column: span 3;
}

.android-brand-form-grid .package-field {
    grid-column: span 6;
}

.android-brand-form-grid .android-app-name-field {
    grid-column: span 4;
}

.android-brand-form-grid .brand-code-field {
    grid-column: span 2;
}

.android-brand-form-grid .android-apk-name-field {
    grid-column: span 3;
}

.android-brand-form-grid .upload-field {
    grid-column: span 3;
}

.android-brand-form-grid .upload-field .file-picker {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 78px;
}

.android-brand-form-grid .upload-field .file-button {
    width: 66px;
    padding-inline: 0;
}

.android-brand-form-grid .android-icon-file-name {
    justify-content: center;
    width: 100%;
    max-width: none;
    padding-inline: 3px;
    font-size: 10px;
    box-sizing: border-box;
}

.windows-brand-form-grid {
    grid-template-columns: repeat(18, minmax(0, 1fr));
    column-gap: 10px;
}

.windows-brand-form-grid .version-select-field {
    grid-column: span 6;
    max-width: none;
}

.windows-brand-form-grid .version-name-field {
    grid-column: span 3;
}

.windows-brand-form-grid .version-number-field {
    grid-column: span 3;
}

.windows-brand-form-grid .install-dir-field {
    grid-column: span 6;
}

.windows-brand-form-grid .app-name-field {
    grid-column: span 4;
}

.windows-brand-form-grid .brand-code-field {
    grid-column: span 2;
}

.windows-brand-form-grid .package-name-field {
    grid-column: span 3;
}

.windows-brand-form-grid .upload-field {
    grid-column: span 4;
}

.windows-brand-form-grid .upload-field:nth-of-type(1) {
    grid-column: 10 / span 3;
}

.windows-brand-form-grid .upload-field:nth-of-type(2) {
    grid-column: 13 / span 6;
}

.windows-brand-form-grid .upload-field .file-picker {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    min-height: 78px;
}

.windows-brand-form-grid .upload-field .file-button {
    width: 78px;
    padding-inline: 0;
}

.windows-brand-form-grid .upload-field:nth-of-type(1) .file-picker {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 6px;
}

.windows-brand-form-grid .upload-field:nth-of-type(1) .file-button {
    width: 66px;
}

.windows-brand-form-grid .windows-icon-file-name {
    justify-content: center;
    width: 100%;
    max-width: none;
    padding-inline: 3px;
    font-size: 10px;
    box-sizing: border-box;
}

.windows-brand-form-grid .app-name-field,
.windows-brand-form-grid .brand-code-field,
.windows-brand-form-grid .package-name-field {
    grid-template-rows: auto 78px;
}

.windows-brand-form-grid .app-name-field input,
.windows-brand-form-grid .brand-code-field input,
.windows-brand-form-grid .package-name-field input {
    align-self: center;
}

.android-brand-form-grid .android-app-name-field,
.android-brand-form-grid .brand-code-field,
.android-brand-form-grid .android-apk-name-field {
    grid-template-rows: auto 78px;
}

.android-brand-form-grid .android-app-name-field input,
.android-brand-form-grid .brand-code-field input,
.android-brand-form-grid .android-apk-name-field input {
    align-self: center;
}


.brand-form-grid .version-select-field {
    position: relative;
    max-width: 190px;
}

.version-latest-badge {
    position: absolute;
    right: 34px;
    bottom: 10px;
    z-index: 2;
    display: none;
    width: 42px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
}

.version-select-field.latest-selected-field .version-latest-badge {
    display: block;
}

.version-select-field.version-menu-open {
    z-index: 40;
}

.version-select-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    gap: 4px;
    max-height: 178px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid rgba(47, 111, 237, 0.16);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 35, 75, 0.14);
}

.version-select-menu[hidden] {
    display: none;
}

.version-select-menu-item {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: left;
}

.version-select-menu-item:hover,
.version-select-menu-item.selected {
    background: #f2f7ff;
    color: #2457c5;
}

.version-select-menu-badge {
    flex: 0 0 auto;
    width: 42px;
    height: 22px;
    margin-right: 20px;
    object-fit: contain;
}

.windows-brand-form-grid .version-select-field {
    max-width: none;
}

.android-brand-form-grid .version-select-field {
    max-width: none;
}

.brand-form-grid .brand-code-field {
    max-width: 112px;
}

.windows-brand-form-grid .brand-code-field,
.android-brand-form-grid .brand-code-field {
    max-width: none;
}

.brand-form-grid .install-dir-field {
    grid-column: span 1;
}

.windows-brand-form-grid .install-dir-field {
    grid-column: span 6;
}

.brand-form-grid .file-picker {
    gap: 8px;
}

.brand-form-grid .file-button {
    padding-inline: 14px;
}

.android-sign-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 20px;
    align-items: start;
}

.span-two {
    grid-column: span 2;
}

.form-section {
    display: grid;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.section-title h3 {
    margin: 0;
    font-size: 20px;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.actions,
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.result-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px;
    margin-top: 5px;
    min-height: 22px;
}

.primary,
.secondary,
.link-button,
.tab-button {
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 11px 17px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(47, 111, 237, 0.18);
}

.secondary {
    background: var(--secondary);
    color: var(--text);
    border-color: var(--line);
}

.wide {
    width: 100%;
}

.admin-link {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 10px;
}

.admin-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.admin-top-actions form {
    margin: 0;
}

.admin-login-layout {
    display: grid;
    align-items: center;
    min-width: 0;
}

.admin-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 460px);
    gap: 28px;
    align-items: stretch;
    width: min(100%, 980px);
}

.admin-login-brand,
.admin-login-card {
    border: 1px solid rgba(215, 225, 239, 0.86);
    border-radius: 16px;
    box-shadow: 0 24px 58px rgba(18, 46, 97, 0.12);
}

.admin-login-brand {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 28px;
    min-height: 540px;
    padding: 34px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.94) 52%, rgba(255, 247, 237, 0.92) 100%);
}

.admin-login-brand::after {
    content: "";
    position: absolute;
    right: -18%;
    bottom: -24%;
    width: 84%;
    height: 46%;
    transform: rotate(-12deg);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(47, 111, 237, 0.16), rgba(46, 139, 87, 0.1) 50%, rgba(249, 115, 22, 0.18));
}

.admin-login-mark {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(47, 111, 237, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    color: var(--accent-deep);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 14px 28px rgba(47, 111, 237, 0.14);
}

.admin-login-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.admin-login-brand-copy span {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(249, 115, 22, 0.11);
    color: var(--latest-deep);
    font-size: 12px;
    font-weight: 800;
}

.admin-login-brand h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.16;
}

.admin-login-brand p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.admin-login-preview {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(100%, 360px);
    padding: 18px;
    border: 1px solid rgba(47, 111, 237, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 42px rgba(18, 46, 97, 0.1);
    backdrop-filter: blur(8px);
}

.admin-login-preview-head {
    display: flex;
    gap: 6px;
}

.admin-login-preview-head span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(47, 111, 237, 0.2);
}

.admin-login-preview-head span:nth-child(2) {
    background: rgba(46, 139, 87, 0.24);
}

.admin-login-preview-head span:nth-child(3) {
    background: rgba(249, 115, 22, 0.26);
}

.admin-login-preview-row {
    height: 12px;
    border-radius: 999px;
    background: #e6eefb;
}

.admin-login-preview-row.strong {
    width: 72%;
    height: 16px;
    background: linear-gradient(90deg, rgba(47, 111, 237, 0.24), rgba(249, 115, 22, 0.18));
}

.admin-login-preview-row.short {
    width: 54%;
}

.admin-login-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-login-preview-stats span {
    display: grid;
    place-items: center;
    min-height: 38px;
    border: 1px solid rgba(47, 111, 237, 0.12);
    border-radius: 8px;
    background: #f7fbff;
    color: var(--accent-deep);
    font-size: 11px;
    font-weight: 900;
}

.admin-login-card {
    display: grid;
    align-content: center;
    min-height: 540px;
    padding: 38px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
    box-shadow: 0 24px 58px rgba(18, 46, 97, 0.12);
}

.admin-login-card .card-head h2 {
    font-size: 28px;
}

.admin-login-card .card-head p {
    margin-top: 10px;
    line-height: 1.7;
}

.admin-login-form {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.admin-login-form .field {
    gap: 10px;
}

.admin-login-form .field input {
    height: 50px;
    border-color: rgba(215, 225, 239, 0.95);
    background: #f8fbff;
    font-size: 16px;
}

.admin-login-card .actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    margin-top: 6px;
}

.admin-login-card .primary {
    min-height: 50px;
    font-size: 16px;
}

.admin-login-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-login-foot span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(47, 111, 237, 0.14);
    border-radius: 999px;
    padding: 0 10px;
    background: #f7fbff;
}

.admin-impersonation-alert {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: space-between;
}

.admin-impersonation-alert form {
    margin: 0;
}

.password-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-top: 18px;
}

.password-form-actions {
    display: flex;
    align-items: end;
}

.password-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
}

.password-panel summary {
    cursor: pointer;
    font-weight: 700;
}

.password-panel form {
    margin-top: 14px;
}

.primary:hover,
.secondary:hover,
.link-button:hover,
.tab-button:hover {
    transform: translateY(-1px);
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 18px;
}

.auth-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tab-button {
    background: #f1f5fb;
    color: var(--muted);
}

.tab-button.active {
    background: #fff;
    color: var(--accent-deep);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.22);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.auth-icon-field .auth-input-wrap {
    position: relative;
    display: block;
}

.auth-icon-field .auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 2;
    width: 22px;
    height: 22px;
    object-fit: contain;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-icon-field input {
    position: relative;
    z-index: 1;
    padding-left: 46px;
}

.auth-icon-field input:focus {
    transform: none;
}

#register-pane input[name="verification_code"],
#reset-pane input[name="verification_code"] {
    padding-left: 46px;
    background-image: url("images/auth-code.png");
    background-repeat: no-repeat;
    background-position: 13px center;
    background-size: 22px 22px;
}

#register-pane input[name="verification_code"]:focus,
#reset-pane input[name="verification_code"]:focus {
    background-image: url("images/auth-code.png");
    transform: none;
}

.code-request-form {
    display: grid;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.auth-code-request-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
    align-items: end;
}

.auth-code-inline-field {
    gap: 0;
    min-width: 0;
}

.auth-code-send-button {
    width: 100%;
    height: 43px;
    padding: 0 6px;
    font-size: 12px;
    white-space: nowrap;
}

.alert {
    border-radius: 18px;
    padding: 14px 16px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.alert.success {
    background: rgba(46, 139, 87, 0.1);
    color: var(--success);
}

.alert.error {
    background: rgba(196, 73, 45, 0.1);
    color: var(--error);
}

.alert.info {
    background: rgba(68, 112, 184, 0.1);
    color: var(--info);
}

.user-box {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

.account-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-row span,
.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.account-row strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.stat-card {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 7px 4px;
    border: 1px solid rgba(47, 111, 237, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px rgba(18, 46, 97, 0.06);
}

.stat-card span {
    font-size: 10.5px;
    line-height: 1;
    white-space: nowrap;
}

.stat-card strong {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    max-width: 100%;
    margin-top: 3px;
    color: var(--accent-deep);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.stat-card .stat-unit {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(1px);
}

.points-help {
    margin-top: -4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.points-history {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
}

.points-tools-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.point-card-redeem {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid rgba(47, 111, 237, 0.14);
    border-radius: 8px;
    background: #f8fbff;
}

.point-card-redeem .field {
    margin: 0;
}

.point-card-redeem .compact-button {
    height: 43px;
    min-height: 43px;
    align-self: end;
    padding-top: 0;
    padding-bottom: 0;
}

.point-card-redeem-button {
    display: inline-grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    padding-left: 0;
    padding-right: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
}

.point-card-redeem-button img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
}

.primary.point-card-redeem-button,
.primary.point-card-redeem-button:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.point-card-redeem-button:hover {
    transform: translateY(-1px);
}

.point-card-code-field {
    position: relative;
}

.point-card-code-field input {
    padding-left: 44px;
}

.point-card-code-icon {
    position: absolute;
    left: 12px;
    bottom: 9px;
    z-index: 1;
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.invite-link-box {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #fff8ef 100%);
}

.invite-link-stats,
.invite-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.invite-link-row {
    position: relative;
}

.invite-link-stats span {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.invite-link-stats strong {
    color: var(--latest-deep);
    font-size: 13px;
}

.invite-link-row input {
    width: 100%;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invite-copy-toast {
    position: absolute;
    right: 0;
    top: -30px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.invite-copy-toast.error {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.2);
}

.invite-copy-toast.active {
    opacity: 1;
    transform: translateY(0);
}

.invite-detail-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: #fff7ed;
    color: var(--latest-deep);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.28);
    animation: invite-pulse 1.8s ease-in-out infinite;
}

.invite-detail-trigger:hover {
    border-color: rgba(249, 115, 22, 0.75);
    background: #fff1df;
}

.invite-record-ticker {
    position: relative;
    height: 52px;
    overflow: hidden;
    border: 1px solid rgba(47, 111, 237, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.invite-record-track {
    display: grid;
    gap: 5px;
    padding: 6px;
    animation: invite-scroll 9s linear infinite;
}

.invite-record-track.static {
    animation: none;
}

.invite-record-ticker:hover .invite-record-track {
    animation-play-state: paused;
}

.invite-record-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border: 1px solid rgba(147, 51, 234, 0.12);
    border-radius: 7px;
    background: linear-gradient(120deg, rgba(250, 245, 255, 0.96), rgba(237, 233, 254, 0.78));
    box-shadow: 0 3px 8px rgba(147, 51, 234, 0.06);
    color: var(--text);
    font-size: 11px;
}

.invite-record-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-record-chip b {
    color: var(--latest-deep);
    font-size: 11px;
    white-space: nowrap;
}

.invite-record-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-size: 12px;
}

.invite-detail-dialog {
    width: min(760px, 100%);
}

.invite-detail-list {
    display: grid;
    gap: 7px;
}

.invite-detail-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) minmax(132px, 1fr) 70px 76px;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(47, 111, 237, 0.1);
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
}

.invite-detail-row strong,
.invite-detail-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-detail-row b {
    color: var(--latest-deep);
}

.invite-detail-head {
    background: #f6f9ff;
    color: var(--muted);
    font-weight: 800;
}

.points-history > strong {
    font-size: 13px;
}

.points-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.points-row b {
    color: var(--accent-deep);
    font-size: 14px;
}

.empty-state {
    margin-top: 18px;
    padding: 14px;
    text-align: left;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfdff;
}

.result-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.result-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 9px;
    background: #fbfdff;
    overflow: hidden;
}

.latest-result-item {
    border-color: rgba(249, 115, 22, 0.48);
    background: rgba(249, 115, 22, 0.07);
}

.result-item.latest-success-result-item {
    border-color: rgba(147, 51, 234, 0.42);
    border-left: 4px solid #a855f7;
    background: linear-gradient(120deg, rgba(147, 51, 234, 0.18), rgba(237, 233, 254, 0.94), rgba(221, 214, 254, 0.84), rgba(168, 85, 247, 0.2));
    background-size: 240% 240%;
    box-shadow: 0 10px 24px rgba(147, 51, 234, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.74);
    animation: latestSuccessPulse 2.8s ease-in-out infinite, latestSuccessGradient 5.6s ease-in-out infinite;
}

.result-item.latest-success-result-item .result-status.status-completed {
    border: 1px solid rgba(126, 34, 206, 0.26);
    background: rgba(126, 34, 206, 0.14);
    color: #6b21a8;
}

.failed-result-item {
    border-color: rgba(255, 23, 68, 0.72);
    border-left: 4px solid #ff1744;
    background: linear-gradient(135deg, #fff3f3, #ffe6e6);
    padding: 8px 10px;
    box-shadow: 0 10px 22px rgba(255, 23, 68, 0.14);
}

.failed-result-item .result-top {
    gap: 8px;
}

.failed-result-item .result-name {
    color: #c40000;
    font-size: 13px;
}

.failed-result-item .platform-badge {
    background: #ff1744;
    border-color: #ff1744;
    color: #fff;
    padding: 4px 7px;
    font-size: 11px;
    box-shadow: 0 5px 12px rgba(255, 23, 68, 0.24);
}

.failed-result-item .meta {
    margin-top: 4px;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
}

.failed-result-item .result-actions {
    margin-top: 6px;
    align-items: center;
    min-height: 26px;
}

.failed-result-item .result-actions > * {
    align-self: center;
}

.failed-result-item .result-actions .result-file-actions {
    align-self: center;
    justify-self: end;
}

.failed-result-item .result-status {
    align-self: center;
    min-height: 22px;
    height: 22px;
    padding: 4px 7px;
    background: #ff1744;
    color: #fff;
}

.failed-result-item .result-actions .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    height: 22px;
    padding: 4px 7px;
    line-height: 1;
    align-self: center;
}

.failed-result-item .result-actions .inline-delete {
    align-self: center;
}

.failed-result-item .result-actions .inline-delete .link-button {
    height: 22px;
}

.failed-result-item .link-button.danger {
    border-color: #ff1744;
    background: #ff1744;
    color: #fff;
    box-shadow: 0 6px 14px rgba(255, 23, 68, 0.24);
}

.failed-result-item .link-button.danger:hover {
    background: #d60000;
}

.result-item.failed-result-item::after {
    content: none;
    border: 0;
    filter: none;
    animation: none;
}

.latest-result-item.failed-result-item {
    border-color: rgba(196, 73, 45, 0.58);
    background: #fff4f1;
    box-shadow: none;
    animation: none;
}

.latest-result-item.failed-result-item::after {
    border-top-color: var(--error);
    filter: none;
    animation: none;
}

.latest-result-item::after {
    content: "新";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    padding: 0;
    border-top: 18px solid var(--latest);
    border-left: 18px solid transparent;
    background: transparent;
    color: transparent;
    font-size: 0;
    pointer-events: none;
}

.result-item.latest-success-result-item::after {
    content: "NEW";
    position: absolute;
    top: 6px;
    right: 7px;
    width: auto;
    height: 18px;
    padding: 0 7px;
    border: 1px solid rgba(114, 58, 232, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #a855f7, #6366f1);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 0;
    box-shadow: 0 5px 14px rgba(124, 58, 237, 0.28);
    pointer-events: none;
    filter: none;
    animation: latestSuccessNew 1.8s ease-in-out infinite;
}

.latest-result-item::after,
.result-item.latest-success-result-item::after {
    content: "NEW";
    position: absolute;
    top: 5px;
    right: 6px;
    width: auto;
    height: auto;
    padding: 2px 6px;
    border: 1px solid rgba(126, 87, 255, 0.52);
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #a855f7, #6366f1);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.26);
    filter: none;
    pointer-events: none;
    animation: newBadgePulse 1.8s ease-in-out infinite;
}

@keyframes latestSuccessPulse {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(147, 51, 234, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.74);
    }
    50% {
        box-shadow: 0 12px 30px rgba(168, 85, 247, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }
}

@keyframes latestSuccessGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes latestSuccessCorner {
    0%, 100% {
        border-top-color: #2e8b57;
    }
    50% {
        border-top-color: #39a96b;
    }
}

@keyframes latestSuccessNew {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 14px rgba(124, 58, 237, 0.28);
    }
    50% {
        transform: translateY(-1px) scale(1.06);
        box-shadow: 0 7px 18px rgba(99, 102, 241, 0.38);
    }
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 6px 14px rgba(124, 58, 237, 0.26);
    }
    50% {
        transform: translateY(-1px) scale(1.06);
        box-shadow: 0 8px 18px rgba(124, 58, 237, 0.42);
    }
}

.result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.result-name {
    display: inline-block;
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
    color: var(--text);
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

.result-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-right: 46px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.platform-badge.windows {
    background: rgba(47, 111, 237, 0.1);
    color: var(--accent-deep);
}

.platform-badge.android {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.failed-result-item .result-badges .platform-badge,
.failed-result-item .result-badges .platform-badge.windows,
.failed-result-item .result-badges .platform-badge.android {
    border-color: #ff1744;
    background: #ff1744;
    color: #fff;
    box-shadow: 0 5px 12px rgba(255, 23, 68, 0.24);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.message {
    margin-top: 5px;
    line-height: 1.25;
    font-size: 11px;
    display: -webkit-box;
    max-width: 100%;
    max-height: 1.25em;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.failed-result-item .message {
    color: var(--error);
    font-weight: 700;
}

.log-view-button {
    background: #fff5f5;
    border-color: rgba(239, 29, 29, 0.34);
    color: #c40000;
}

.log-view-button:hover {
    background: #ffe7e7;
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-queued,
.status-building {
    background: rgba(68, 112, 184, 0.1);
    color: var(--info);
}

.status-prepared {
    background: rgba(47, 111, 237, 0.12);
    color: var(--accent-deep);
}

.status-cloud_pending {
    background: rgba(249, 115, 22, 0.14);
    color: var(--latest-deep);
}

.status-completed {
    background: rgba(46, 139, 87, 0.12);
    color: var(--success);
}

.status-failed {
    background: rgba(196, 73, 45, 0.12);
    color: var(--error);
}

.result-status {
    justify-self: start;
    align-self: end;
    min-height: 22px;
    border-radius: 5px;
    padding: 4px 7px;
    line-height: 1;
}

.failed-result-item .result-status,
.failed-result-item .result-actions .inline-delete,
.failed-result-item .result-actions .result-file-actions {
    align-self: center;
}

.result-file-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--accent-deep);
}

.result-actions .link-button {
    min-height: 22px;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.link-button.subtle {
    background: #f8fbff;
    color: var(--text);
    border-color: var(--line);
}

.admin-layout {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.admin-card {
    min-width: 0;
    padding: 22px;
}

.compact-admin-card {
    min-width: 0;
    padding: 16px;
}

.compact-admin-card .card-head h2 {
    font-size: 18px;
}

.compact-admin-card .card-head p {
    margin-top: 5px;
    font-size: 13px;
}

.admin-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.admin-column-stack {
    display: grid;
    gap: 16px;
    align-content: start;
    min-width: 0;
}

.admin-column-stack > * {
    min-width: 0;
}

.admin-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 18px;
}

.admin-upload input[type="file"]:not(.file-input) {
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 33px;
}

.admin-upload input[type="file"]:not(.file-input)::file-selector-button {
    height: 34px;
    background-position: center 33%;
    vertical-align: middle;
}

.admin-upload.is-file-missing input[type="file"]:not(.file-input) {
    border-color: rgba(196, 73, 45, 0.58);
    box-shadow: 0 0 0 3px rgba(196, 73, 45, 0.1);
}

.admin-upload-file-hint {
    grid-column: 1 / -1;
    margin-top: -6px;
    padding: 7px 10px;
    border: 1px solid rgba(196, 73, 45, 0.18);
    border-radius: 8px;
    background: rgba(196, 73, 45, 0.08);
    color: var(--error);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.admin-upload-file-hint[hidden] {
    display: none;
}

.admin-upload-icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 43px;
    min-height: 43px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
}

.admin-upload-icon-button img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
}

.primary.admin-upload-icon-button,
.primary.admin-upload-icon-button:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.admin-upload-icon-button:hover {
    transform: translateY(-1px);
}

.points-recharge {
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.7fr) minmax(180px, 1fr) auto;
}

.admin-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

.admin-search-icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-search-icon-button img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.admin-search-icon-button:hover {
    background: transparent;
    box-shadow: none;
}

.primary.admin-search-icon-button,
.primary.admin-search-icon-button:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.inline-recharge {
    display: grid;
    grid-template-columns: minmax(84px, 0.55fr) minmax(130px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 360px;
}

.inline-recharge input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}

.inline-recharge button {
    height: 36px;
    padding: 0 14px;
}

.version-edit-grid {
    display: none;
    grid-template-columns: 76px minmax(140px, 1fr);
    gap: 8px;
    min-width: 250px;
}

.version-edit-grid label {
    display: grid;
    gap: 4px;
}

.version-edit-grid label span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.version-edit-wide {
    min-width: 0;
}

.admin-mini-input,
.admin-text-input {
    width: 100%;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.admin-text-input {
    min-width: 150px;
}

.admin-mini-input:focus,
.admin-text-input:focus {
    border-color: rgba(47, 111, 237, 0.75);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-row-actions form[id^="version-edit"],
.admin-row-actions button[form^="version-edit"],
.admin-table td > select.admin-mini-input {
    display: none;
}

.mail-settings-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
    margin-top: 18px;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 700;
}

.check-field input {
    width: 18px;
    height: 18px;
}

.android-check-field {
    grid-column: auto;
    min-height: 43px;
    align-self: end;
}

.android-sign-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.android-sign-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mail-settings-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-column: 1 / -1;
}

.mail-settings-actions small {
    color: var(--muted);
    line-height: 1.6;
}

.compact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
    text-decoration: none;
}

.delete-icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    overflow: visible;
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.delete-icon-button img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
}

.delete-icon-button:hover {
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(255, 75, 79, 0.22));
    transform: translateY(-1px);
}

.delete-icon-button:active {
    transform: translateY(0) scale(0.96);
}

.failed-result-item .link-button.danger.delete-icon-button {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: transparent;
}

.failed-result-item .link-button.danger.delete-icon-button:hover {
    background: transparent;
    box-shadow: none;
}

.inline-action,
.inline-delete {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

.result-actions .inline-delete {
    justify-self: end;
    align-self: end;
}

.failed-result-item .result-actions .inline-delete,
.failed-result-item .result-actions .result-file-actions {
    align-self: center;
}

.danger {
    border-color: rgba(196, 73, 45, 0.28);
    background: rgba(196, 73, 45, 0.08);
    color: var(--error);
}

.danger.delete-icon-button,
.secondary.danger.delete-icon-button,
.link-button.danger.delete-icon-button {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: transparent;
}

.danger.delete-icon-button:hover,
.secondary.danger.delete-icon-button:hover,
.link-button.danger.delete-icon-button:hover {
    background: transparent;
    box-shadow: none;
}

.points-positive {
    color: var(--success);
}

.points-negative {
    color: var(--error);
}

.table-wrap {
    max-width: 100%;
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.compact-table-wrap {
    margin-top: 12px;
    border-radius: 8px;
}

.compact-table-wrap .compact-admin-table {
    min-width: 100%;
}

.compact-table-wrap .compact-admin-table th,
.compact-table-wrap .compact-admin-table td {
    overflow-wrap: anywhere;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pagination-current,
.pagination-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 13px;
}

.pagination-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.pagination-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

.pagination-disabled {
    background: #f3f6fb;
    color: #9aa8bb;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
    background: #fff;
}

.user-table {
    min-width: 1180px;
}

.admin-column-stack .user-table {
    min-width: 0;
    table-layout: fixed;
}

.admin-column-stack .inline-recharge {
    grid-template-columns: 60px 62px 44px;
    gap: 6px;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.admin-column-stack .table-wrap {
    overflow-x: hidden;
}

.compact-user-table {
    table-layout: fixed;
}

.compact-user-table th,
.compact-user-table td {
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
}

.compact-user-table th:nth-child(1),
.compact-user-table td:nth-child(1) {
    width: 7%;
}

.compact-user-table th:nth-child(2),
.compact-user-table td:nth-child(2) {
    width: 31%;
}

.compact-user-table th:nth-child(3),
.compact-user-table td:nth-child(3) {
    width: 7%;
}

.compact-user-table th:nth-child(4),
.compact-user-table td:nth-child(4) {
    width: 19%;
}

.compact-user-table th:nth-child(5),
.compact-user-table td:nth-child(5) {
    width: 7%;
}

.compact-user-table th:nth-child(6),
.compact-user-table td:nth-child(6) {
    width: 7%;
}

.compact-user-table th:nth-child(7),
.compact-user-table td:nth-child(7) {
    width: 8%;
}

.recharge-head-grid {
    display: grid;
    grid-template-columns: 60px 62px 44px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    transform: translateX(-7px);
}

.recharge-head-grid span {
    display: block;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.admin-column-stack .inline-recharge input {
    width: 100%;
    height: 30px;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 12px;
    outline: none;
}

.points-input-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 30px;
}

.points-input-shell::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    z-index: 1;
    width: 16px;
    height: 16px;
    background: url("images/points-icon.png") center / contain no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}

.admin-column-stack .inline-recharge .points-input-shell input {
    padding-left: 25px;
    padding-right: 5px;
}

.inline-note-field {
    position: relative;
    display: block;
    width: 100%;
    height: 30px;
    margin: 0;
    min-width: 0;
}

.inline-note-field input {
    display: block;
}

.admin-column-stack .inline-recharge button {
    width: 44px;
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
}

.recharge-table {
    min-width: 620px;
}

.point-detail-dialog {
    width: min(760px, 100%);
}

.point-detail-wrap {
    margin-top: 0;
    overflow-x: hidden;
}

.point-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.point-detail-table th,
.point-detail-table td {
    padding: 10px 9px;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

.point-detail-table th:nth-child(1),
.point-detail-table td:nth-child(1) {
    width: 24%;
}

.point-detail-table th:nth-child(2),
.point-detail-table td:nth-child(2) {
    width: 16%;
}

.point-detail-table th:nth-child(3),
.point-detail-table td:nth-child(3),
.point-detail-table th:nth-child(4),
.point-detail-table td:nth-child(4) {
    width: 14%;
}

.point-detail-table th:nth-child(5),
.point-detail-table td:nth-child(5) {
    width: 32%;
}

.admin-action-cell {
    white-space: nowrap;
}

.admin-action-cell form {
    margin: 0;
}

.admin-action-cell .compact-button {
    width: 78px;
}

.compact-user-table .admin-action-cell .compact-button {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-color: rgba(47, 111, 237, 0.22);
    background: linear-gradient(180deg, #f4f8ff 0%, #eaf3ff 100%);
    color: #2f6fed;
    box-shadow: 0 6px 14px rgba(47, 111, 237, 0.1);
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.compact-user-table .admin-action-cell .compact-button:hover {
    border-color: rgba(47, 111, 237, 0.42);
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);
    color: #2457c5;
    transform: translateY(-1px);
}

.compact-user-table .admin-icon-button span {
    display: inline-block;
    position: relative;
    color: currentColor;
}

.compact-user-table .admin-icon-search span {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.compact-user-table .admin-icon-search span::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

.compact-user-table .admin-icon-enter span::before {
    content: "↗";
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.compact-user-table .admin-icon-points span {
    width: 18px;
    height: 18px;
    background: url("images/points-icon.png") center / contain no-repeat;
}

.points-edit-dialog {
    width: min(420px, 100%);
}

.points-edit-form {
    display: grid;
    gap: 12px;
}

.points-edit-form .points-input-shell {
    height: 38px;
}

.points-edit-form .points-input-shell input {
    padding-left: 30px;
}

.points-edit-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-table.compact-user-table td {
    vertical-align: middle;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.admin-table th {
    background: #f6f9ff;
    color: var(--muted);
    font-weight: 700;
}

.admin-table.compact-user-table th,
.admin-table.compact-user-table td {
    text-align: center;
    vertical-align: middle;
}

.admin-table.compact-user-table th:nth-child(2),
.admin-table.compact-user-table td:nth-child(2) {
    text-align: left;
}

.admin-table.compact-user-table th:nth-child(7) {
    text-align: center;
    padding-left: 8px;
}

.admin-table.point-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.admin-table.point-detail-table th,
.admin-table.point-detail-table td {
    padding: 10px 9px;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

.point-detail-wrap {
    overflow-x: hidden;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong,
.admin-table td span {
    display: block;
}

.path-cell {
    max-width: 320px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.status-active {
    background: rgba(46, 139, 87, 0.12);
    color: var(--success);
}

.status-inactive {
    background: rgba(83, 101, 127, 0.12);
    color: var(--muted);
}

.build-progress-open {
    overflow: hidden;
}

.build-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 23, 51, 0.36);
}

.build-progress-overlay[hidden] {
    display: none;
}

.build-progress-dialog {
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 23, 51, 0.2);
    padding: 22px;
    text-align: center;
}

.build-progress-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 4px solid rgba(47, 111, 237, 0.14);
    border-top-color: var(--accent);
    animation: build-spin 0.9s linear infinite;
}

.build-progress-overlay.completed .build-progress-spinner {
    border-color: rgba(46, 139, 87, 0.16);
    border-top-color: var(--success);
    animation: none;
}

.build-progress-overlay.failed .build-progress-spinner {
    border-color: rgba(196, 73, 45, 0.16);
    border-top-color: var(--error);
    animation: none;
}

.build-progress-dialog h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.build-progress-dialog p {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.build-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #e9eff8;
    overflow: hidden;
}

.build-progress-bar span {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.4s ease;
}

.build-progress-overlay.completed .build-progress-bar span {
    background: var(--success);
}

.build-progress-overlay.failed .build-progress-bar span {
    background: var(--error);
}

.admin-upload-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.admin-upload-progress-meta strong {
    color: var(--text);
    font-size: 12px;
}

.build-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 12px;
}

.build-progress-grid div {
    display: flex;
    min-width: 0;
    min-height: 66px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 8px;
    background: #f8fbff;
    text-align: center;
}

.build-progress-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.build-progress-grid strong {
    display: block;
    width: 100%;
    margin-top: 5px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#build_progress_stage {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.build-progress-dialog small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.build-progress-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    width: fit-content;
    margin: 18px auto 0;
}

.build-progress-confirm[hidden] {
    display: none;
}

.upload-overwrite-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 23, 51, 0.36);
}

.upload-overwrite-dialog {
    width: min(420px, 100%);
    border: 1px solid rgba(47, 111, 237, 0.18);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 23, 51, 0.22);
    padding: 24px;
    text-align: center;
}

.upload-overwrite-dialog h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.upload-overwrite-dialog p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.upload-overwrite-dialog p strong {
    color: var(--text);
}

.upload-overwrite-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.upload-overwrite-actions button {
    min-width: 108px;
}

.point-package-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.point-package-card {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 5px;
    width: 100%;
    min-height: 104px;
    padding: 10px 7px;
    border: 1px solid rgba(47, 111, 237, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fbff 62%, #fff7ed 100%);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 18px rgba(18, 46, 97, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.point-package-card:hover,
.point-package-card:focus-visible {
    border-color: rgba(249, 115, 22, 0.72);
    background:
        linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.14);
    transform: translateY(-1px);
}

.point-package-card:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.2);
    outline-offset: 2px;
}

.point-package-card span,
.point-package-card strong,
.point-package-card small {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.point-package-card strong {
    font-size: 13px;
    line-height: 1.2;
}

.point-package-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
}

.point-package-card b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.11);
    color: var(--latest-deep);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 23, 51, 0.4);
}

.payment-overlay[hidden] {
    display: none;
}

.payment-dialog {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 23, 51, 0.22);
    padding: 22px;
    text-align: center;
}

.payment-dialog h2 {
    margin: 0;
    font-size: 20px;
}

.payment-dialog p {
    margin: 8px 0 14px;
    color: var(--muted);
}

.payment-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
}

.payment-qr-frame {
    display: grid;
    place-items: center;
    min-height: 280px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.payment-qr-frame img {
    width: 260px;
    height: 260px;
    object-fit: contain;
}

.payment-status {
    margin: 12px 0;
    color: var(--muted);
    font-size: 14px;
}

#payment_qr_text {
    width: 100%;
    min-height: 70px;
    margin-bottom: 10px;
    resize: vertical;
    word-break: break-all;
}

.point-package-form {
    display: grid;
    gap: 14px;
}


.invite-card-grid {
    align-items: start;
}

.card-code-form,
.invite-settings-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 82px 82px auto;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.invite-settings-form {
    grid-template-columns: auto 118px auto 118px auto;
}

.card-code-form .field,
.invite-settings-form .field,
.invite-settings-form .check-field {
    margin: 0;
}

.invite-enabled {
    grid-column: auto;
    min-height: 43px;
}

.invite-percent-field input,
.card-point-field input,
.card-quantity-field input {
    text-align: center;
}

.card-code-filter {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 104px auto auto auto;
    gap: 8px;
    align-items: end;
    margin-top: 10px;
}

.card-code-filter .field {
    margin: 0;
}

.card-code-filter select {
    height: 36px;
    padding-block: 7px;
    font-size: 12px;
}

.card-filter-icon-button {
    width: 40px;
    min-width: 40px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-color: rgba(255, 207, 56, 0.34);
    background: #fff8da;
}

.card-filter-icon-button img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
}

.card-filter-icon-button:hover {
    border-color: rgba(255, 207, 56, 0.72);
    background: #fff1b7;
}

.card-export-icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.card-export-icon-button img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}

.primary.card-export-icon-button,
.primary.card-export-icon-button:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.card-export-icon-button:hover {
    transform: translateY(-1px);
}

.card-code-group-filter {
    max-width: 220px;
}

.card-code-list {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.card-code-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(0, 0.85fr) 48px 54px minmax(70px, 0.7fr);
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbfdff;
    font-size: 12px;
    line-height: 1.25;
}

.card-code-row > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-code-row-head {
    padding-block: 6px;
    background: #f6f9ff;
    color: var(--muted);
    font-weight: 700;
}

.card-code-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-code-value code {
    flex: 0 0 auto;
    padding: 4px 6px;
    border-radius: 6px;
    background: #edf5ff;
    color: var(--accent-deep);
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.card-copy-button {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(43, 115, 230, 0.24);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    color: var(--accent-deep);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.card-copy-button:hover {
    border-color: rgba(43, 115, 230, 0.46);
    transform: translateY(-1px);
}

.card-copy-button.copied {
    border-color: rgba(46, 139, 87, 0.28);
    background: rgba(46, 139, 87, 0.12);
    color: var(--success);
}

.card-copy-button.selected {
    border-color: rgba(249, 115, 22, 0.28);
    background: rgba(249, 115, 22, 0.12);
    color: #c45710;
}

.card-code-row strong {
    color: var(--accent-deep);
    letter-spacing: 0;
}

.card-code-row em {
    color: var(--success);
    font-style: normal;
    font-weight: 700;
}

.card-code-row small {
    color: var(--muted);
    font-size: 11px;
}

.card-code-used {
    border-color: rgba(196, 73, 45, 0.26);
    background: rgba(196, 73, 45, 0.07);
}

.card-code-used em,
.card-code-used small {
    color: var(--error);
}

.compact-card-pagination {
    margin-top: 10px;
}

.card-code-table td:first-child strong {
    color: var(--accent-deep);
    letter-spacing: 0.4px;
}

.card-group-admin-list {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.card-group-admin-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 44px 48px 54px 62px;
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbfdff;
    font-size: 12px;
}

.card-group-admin-row > * {
    min-width: 0;
}

.card-group-admin-head {
    background: #f6f9ff;
    color: var(--muted);
    font-weight: 700;
}

.card-group-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 6px;
    align-items: center;
}

.card-group-edit-form .admin-mini-input {
    min-width: 0;
    height: 32px;
    padding: 6px 8px;
    font-size: 12px;
}

.card-group-dialog {
    width: min(720px, 100%);
}

.card-group-create-form {
    margin-top: 16px;
}

.point-package-admin-list {
    display: grid;
    gap: 8px;
}

.point-package-admin-row {
    display: grid;
    grid-template-columns: 48px 48px 58px minmax(92px, 1fr) 78px 86px 62px;
    column-gap: 10px;
    row-gap: 7px;
    align-items: end;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.point-package-admin-row .field,
.point-package-admin-row .check-field {
    grid-column: auto;
    margin: 0;
}

.point-package-admin-row .check-field {
    align-self: end;
    display: grid;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
}

.package-field-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.package-enabled-box {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.package-enabled {
    margin-right: 8px;
}

.point-package-admin-row .check-field input {
    width: 14px;
    height: 14px;
    min-height: 14px;
    padding: 0;
}

.point-package-admin-row .field {
    gap: 5px;
}

.point-package-admin-row .field span {
    font-size: 12px;
}

.point-package-admin-row input {
    height: 34px;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
}

.point-package-admin-row input[name="package_points[]"] {
    max-width: 92px;
}

.plain-number-input::-webkit-outer-spin-button,
.plain-number-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.plain-number-input {
    appearance: textfield;
    -moz-appearance: textfield;
}

.package-sort input {
    text-align: center;
}

.point-package-admin-row .package-remove {
    align-self: end;
    width: 100%;
    height: 34px;
    min-height: 34px;
    padding: 6px 10px;
}

.compact-save-button {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 13px;
}

.compact-admin-table th,
.compact-admin-table td {
    padding: 9px 10px;
    font-size: 12px;
}

@keyframes build-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes invite-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.24);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(249, 115, 22, 0);
    }
}

@keyframes invite-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@media (max-width: 980px) {
    .admin-login-page {
        padding: 28px 18px;
    }

    .admin-login-shell {
        grid-template-columns: 1fr;
        width: min(100%, 560px);
    }

    .admin-login-brand,
    .admin-login-card {
        min-height: auto;
    }

    .admin-login-brand {
        gap: 22px;
        padding: 28px;
    }

    .admin-login-preview {
        width: 100%;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .admin-version-grid {
        grid-template-columns: 1fr;
    }

    .admin-split-grid {
        grid-template-columns: 1fr;
    }

    .card-code-form,
    .card-code-filter,
    .invite-settings-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-code-form .compact-save-button,
    .card-code-filter .compact-button,
    .invite-settings-form .compact-save-button {
        width: 100%;
    }

    .version-list-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main status"
            "meta action"
            "time action";
    }

    .side-panel {
        padding-left: 0;
        border-left: 0;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-form-grid,
    .android-brand-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .windows-brand-form-grid .field,
    .windows-brand-form-grid .upload-field,
    .windows-brand-form-grid .version-select-field,
    .windows-brand-form-grid .version-name-field,
    .windows-brand-form-grid .version-number-field,
    .windows-brand-form-grid .package-name-field,
    .windows-brand-form-grid .app-name-field,
    .windows-brand-form-grid .brand-code-field,
    .windows-brand-form-grid .install-dir-field {
        grid-column: auto;
    }

    .android-brand-form-grid .field,
    .android-brand-form-grid .upload-field,
    .android-brand-form-grid .version-select-field,
    .android-brand-form-grid .package-field,
    .android-brand-form-grid .android-app-name-field,
    .android-brand-form-grid .brand-code-field,
    .android-brand-form-grid .android-apk-name-field {
        grid-column: auto;
    }

    .brand-form-grid .version-select-field,
    .brand-form-grid .brand-code-field {
        max-width: none;
    }

    .hero h1 {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 18px 14px 34px;
    }

    .intro-card {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .intro-card > div:first-child,
    .top-banner-carousel {
        flex-basis: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .top-banner-carousel {
        height: auto;
        aspect-ratio: 5 / 1;
        min-height: 72px;
        max-height: 118px;
        order: 2;
        background: transparent;
    }

    .top-banner-slide img {
        object-fit: contain;
        background: transparent;
    }

    .intro-badge,
    .intro-side-tools,
    .intro-settings-menu {
        order: 3;
        align-self: flex-end;
    }

    .intro-side-tools {
        width: 100%;
        min-height: 108px;
        justify-items: center;
    }

    .intro-side-tools .intro-settings-menu {
        right: 0;
    }

    .user-page .intro-side-tools {
        min-height: 86px;
        justify-content: center;
        gap: 10px;
    }

    .guest-page .guest-intro-tools {
        justify-content: center;
    }

    .daily-checkin-calendar {
        width: 100%;
        height: 42px;
        min-height: 42px;
        margin-inline: 0;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
    }

    .daily-checkin-title,
    .daily-checkin-week,
    .daily-checkin-mask {
        display: none;
    }

    .daily-checkin-calendar > button {
        display: flex;
        width: 100%;
        height: 42px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 14px;
        border: 1px solid rgba(86, 154, 255, 0.34);
        border-radius: 10px;
        background: linear-gradient(135deg, #eef7ff 0%, #cfe6ff 100%);
        color: #1f64b6;
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 8px 18px rgba(86, 154, 255, 0.16);
    }

    .daily-checkin-calendar > button span,
    .daily-checkin-calendar > button strong {
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }

    .daily-checkin-calendar > button:disabled {
        border-color: rgba(46, 139, 87, 0.24);
        background: linear-gradient(135deg, #ecfff5 0%, #c8f2dc 100%);
        color: #236b45;
        cursor: default;
        box-shadow: 0 8px 18px rgba(46, 139, 87, 0.12);
    }

    .daily-checkin-card button {
        min-width: 118px;
        height: 48px;
        padding: 7px 12px;
        border-radius: 10px;
    }

    .guest-page .hero {
        display: none;
    }

    .guest-page .intro-card,
    .user-page .intro-card {
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .guest-page .intro-card > div:first-child,
    .user-page .intro-card > div:first-child {
        display: none;
    }

    .guest-page .top-banner-carousel,
    .user-page .top-banner-carousel {
        order: 1;
    }

    .guest-page .guest-intro-tools {
        order: 4;
        align-self: center;
        justify-items: center;
        min-height: auto;
        margin-top: 2px;
    }

    .guest-page .guest-intro-tools .top-qr-card {
        padding: 2px 0 0;
    }

    .intro-card h2 {
        font-size: 24px;
    }

    .layout {
        padding: 20px;
    }

    .form-card,
    .auth-card,
    .result-card {
        padding: 18px;
    }

    .layout > .form-card {
        padding: 0;
    }

    .grid-two,
    .brand-grid,
    .brand-form-grid,
    .android-sign-grid {
        grid-template-columns: 1fr;
    }

    .span-two {
        grid-column: auto;
    }

    .invite-detail-row {
        grid-template-columns: 1fr 1fr;
    }

    .invite-detail-row strong,
    .invite-detail-head span:first-child {
        grid-column: 1 / -1;
    }

    .actions,
    .result-actions {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .result-actions .link-button {
        min-height: 26px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .admin-upload {
        grid-template-columns: 1fr;
    }

    .topbar-account {
        max-width: 100%;
        gap: 8px;
    }

    .topbar-title {
        flex: 1 1 auto;
    }

    .topbar-title p {
        display: none;
    }

    .topbar-title h1 {
        font-size: 18px;
    }

    .version-list-item {
        grid-template-areas:
            "main status"
            "meta meta"
            "time time"
            "action action";
    }

    .version-list-item .status {
        justify-self: start;
    }

    .admin-search,
    .inline-recharge,
    .mail-settings-form,
    .banner-settings-top,
    .banner-qr-admin,
    .banner-admin-row,
    .compact-upload,
    .card-code-form,
    .card-code-filter,
    .invite-settings-form,
    .card-group-admin-row,
    .card-code-row,
    .point-package-admin-row,
    .password-form {
        grid-template-columns: 1fr;
    }

    .admin-search-icon-button {
        justify-self: start;
    }

    .card-code-row-head {
        display: none;
    }

    .card-group-admin-head {
        display: none;
    }

    .card-code-row {
        gap: 4px;
        padding: 8px;
    }

    .card-group-admin-row {
        gap: 6px;
        padding: 8px;
    }

    .card-code-row > * {
        white-space: normal;
    }

    .card-code-row strong {
        font-size: 13px;
    }

    .invite-enabled {
        min-height: 34px;
    }

    .inline-recharge {
        min-width: 0;
    }

    .mail-settings-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-login-card .actions {
        grid-template-columns: 1fr;
    }

    .admin-login-card .actions .primary,
    .admin-login-card .actions .secondary {
        width: 100%;
    }

    .admin-login-page {
        place-items: start center;
        padding: 18px 14px 34px;
    }

    .admin-login-shell {
        gap: 14px;
    }

    .admin-login-brand,
    .admin-login-card {
        border-radius: 14px;
    }

    .admin-login-brand {
        padding: 22px;
    }

    .admin-login-brand::after {
        right: -28%;
        bottom: -34%;
        width: 100%;
        height: 50%;
    }

    .admin-login-mark {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        font-size: 17px;
    }

    .admin-login-brand h1 {
        font-size: 26px;
    }

    .admin-login-brand p {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.6;
    }

    .admin-login-preview {
        display: none;
    }

    .admin-login-card {
        min-height: 0;
        padding: 24px;
    }

    .admin-login-card .card-head h2 {
        font-size: 24px;
    }

    .admin-login-form {
        gap: 15px;
        margin-top: 22px;
    }

    .admin-login-form .field input {
        height: 46px;
        font-size: 15px;
    }

    .admin-login-card .primary {
        min-height: 46px;
    }

    .admin-login-foot {
        margin-top: 18px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .topbar-spacer {
        display: none;
    }

    .topbar-account {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-title {
        justify-content: flex-end;
        min-width: 0;
    }

    .topbar-badge {
        min-width: 0;
        padding: 8px 10px;
    }

    .admin-topbar-badge {
        min-width: 86px;
    }

    .account-dropdown {
        max-width: calc(100vw - 28px);
    }

    .windows-brand-form-grid,
    .android-brand-form-grid {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 12px;
    }

    .windows-brand-form-grid > .field,
    .android-brand-form-grid > .field,
    .android-brand-form-grid > .field:nth-child(2),
    .android-brand-form-grid > .field:nth-child(3) {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .windows-brand-form-grid .field,
    .windows-brand-form-grid .upload-field,
    .windows-brand-form-grid .version-select-field,
    .windows-brand-form-grid .version-name-field,
    .windows-brand-form-grid .version-number-field,
    .windows-brand-form-grid .install-dir-field,
    .windows-brand-form-grid .app-name-field,
    .windows-brand-form-grid .brand-code-field,
    .windows-brand-form-grid .package-name-field,
    .android-brand-form-grid .field,
    .android-brand-form-grid .upload-field,
    .android-brand-form-grid .version-select-field,
    .android-brand-form-grid .package-field,
    .android-brand-form-grid .android-app-name-field,
    .android-brand-form-grid .brand-code-field,
    .android-brand-form-grid .android-apk-name-field {
        grid-column: auto;
        max-width: none;
        grid-template-rows: auto;
    }

    .android-brand-form-grid .version-select-field select,
    #android_version_template {
        min-width: 0;
        height: 42px;
        border-radius: 9px;
        padding: 10px 38px 10px 12px;
        background:
            linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 17px / 6px 6px no-repeat,
            linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px) 17px / 6px 6px no-repeat,
            linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
    }

    .windows-brand-form-grid .upload-field:nth-of-type(1),
    .windows-brand-form-grid .upload-field:nth-of-type(2) {
        grid-column: auto;
    }

    .brand-form-grid .file-picker,
    .windows-brand-form-grid .upload-field .file-picker,
    .windows-brand-form-grid .upload-field:nth-of-type(1) .file-picker,
    .android-brand-form-grid .upload-field .file-picker {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        min-height: auto;
    }

    .brand-form-grid .file-button,
    .windows-brand-form-grid .upload-field .file-button,
    .windows-brand-form-grid .upload-field:nth-of-type(1) .file-button,
    .android-brand-form-grid .upload-field .file-button {
        width: auto;
        min-width: 82px;
        height: 38px;
        padding-inline: 12px;
        font-size: 14px;
        justify-self: center;
    }

    .file-name,
    .keystore-file-name,
    .windows-brand-form-grid .windows-icon-file-name,
    .android-brand-form-grid .android-icon-file-name {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .upload-preview {
        justify-self: start;
    }

    .icon-preview {
        width: 34px;
        height: 34px;
    }

    .installer-image-preview {
        width: 44px;
        height: 60px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .actions .primary,
    .actions .secondary {
        width: 100%;
    }

    .stat-grid {
        gap: 6px;
    }

    .stat-card {
        min-height: 46px;
        padding: 7px 3px;
    }

    .stat-card span {
        font-size: 10px;
    }

    .stat-card strong {
        font-size: 13px;
    }

    .point-package-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .point-package-card {
        min-height: 92px;
        justify-items: center;
        gap: 4px;
        padding: 8px 4px;
        text-align: center;
    }

    .point-package-card strong {
        font-size: 11px;
    }

    .point-package-card small {
        margin-top: 3px;
        font-size: 10px;
    }

    .point-package-card b {
        min-height: 21px;
        padding: 0 6px;
        font-size: 11px;
    }

    .point-package-card.package-once-limited {
        gap: 4px;
        padding-inline: 4px;
    }

    .point-package-card.package-once-limited .point-package-limit {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        min-height: 20px;
        font-size: 9px;
    }

    .point-card-redeem,
    .invite-link-stats,
    .invite-link-row {
        grid-template-columns: 1fr;
    }

    .point-card-redeem {
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: end;
    }

    .invite-link-stats {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .invite-link-stats span {
        flex-wrap: nowrap;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .invite-link-stats strong {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .point-card-redeem .compact-button,
    .invite-link-row .compact-button {
        width: 100%;
    }

    .point-card-redeem .point-card-redeem-button {
        width: 46px;
        justify-self: start;
    }

    .points-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        white-space: nowrap;
    }

    .points-row span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .points-row b {
        flex: 0 0 auto;
    }

    .result-top {
        align-items: flex-start;
    }

    .result-name {
        flex: 1 1 auto;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .result-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "files files"
            "status delete";
        align-items: center;
        gap: 8px;
    }

    .result-status {
        grid-area: status;
        align-self: center;
    }

    .result-file-actions {
        grid-area: files;
        min-width: 0;
    }

    .result-actions .inline-delete {
        grid-area: delete;
        justify-self: end;
    }

    .result-actions .link-button {
        min-height: 28px;
        font-size: 12px;
    }

    .payment-overlay,
    .build-progress-overlay,
    .settings-overlay {
        padding: 12px;
    }

    .payment-dialog,
    .build-progress-dialog,
    .settings-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 10px;
        padding: 18px;
    }

    .settings-head {
        align-items: flex-start;
        padding-right: 34px;
    }

    .settings-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-qr-frame {
        min-height: 220px;
    }

    .payment-qr-frame img {
        width: 210px;
        height: 210px;
    }

    .build-progress-grid {
        grid-template-columns: 1fr;
    }

    .card-code-value {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-code-value code {
        width: 100%;
        white-space: normal;
        word-break: break-all;
    }

    .card-copy-button,
    .compact-save-button,
    .card-code-filter .compact-button,
    .invite-settings-form .compact-save-button,
    .point-package-admin-row .package-remove {
        width: 100%;
    }

    .card-code-filter .card-filter-icon-button {
        width: 40px;
        justify-self: start;
    }

    .card-code-filter .card-export-icon-button {
        width: 42px;
        justify-self: start;
    }

    .point-package-admin-row input[name="package_points[]"] {
        max-width: none;
    }
}

@media (max-width: 420px) {
    .page-shell {
        padding: 14px 10px 28px;
    }

    .layout {
        padding: 14px;
        border-radius: 12px;
    }

    .form-card,
    .auth-card,
    .result-card,
    .admin-card,
    .compact-admin-card {
        padding: 14px;
    }

    .admin-login-page {
        padding: 12px 10px 26px;
    }

    .admin-login-brand,
    .admin-login-card {
        border-radius: 12px;
    }

    .admin-login-brand,
    .admin-login-card {
        padding: 20px;
    }

    .admin-login-brand-copy span {
        font-size: 11px;
    }

    .admin-login-brand h1 {
        font-size: 24px;
    }

    .admin-login-card .card-head h2 {
        font-size: 22px;
    }

    .layout > .form-card {
        padding: 0;
    }

    .hero-badge,
    .avatar-button,
    .settings-menu-button {
        width: 40px;
        height: 40px;
    }

    .settings-menu-button img {
        width: 32px;
        height: 32px;
    }

    .platform-switch,
    .tabs,
    .auth-tabs {
        gap: 7px;
    }

    .platform-tab,
    .tab-button {
        height: 38px;
        padding-inline: 8px;
        font-size: 12px;
    }

    form[data-build-form="1"] {
        zoom: 1;
    }

    .platform-tab {
        gap: 6px;
    }

    .platform-tab-icon {
        width: 20px;
        height: 20px;
    }

    .field input,
    .field select {
        height: 40px;
        padding-inline: 11px;
        font-size: 14px;
    }

    .point-card-code-field input {
        padding-left: 44px;
        padding-right: 11px;
    }

    .point-card-code-icon {
        left: 12px;
        bottom: 8px;
        width: 23px;
        height: 23px;
    }

    .auth-icon-field input {
        padding-left: 42px;
        padding-right: 11px;
    }

    .auth-icon-field .auth-input-icon {
        left: 12px;
        width: 20px;
        height: 20px;
    }

    #register-pane input[name="verification_code"],
    #reset-pane input[name="verification_code"] {
        padding-left: 42px;
        padding-right: 11px;
        background-position: 12px center;
        background-size: 20px 20px;
    }

    .auth-code-request-row {
        grid-template-columns: minmax(0, 1fr) 78px;
        gap: 8px;
    }

    .auth-code-send-button {
        height: 40px;
        padding: 0 4px;
        font-size: 11px;
    }

    .field textarea {
        font-size: 14px;
    }

    .brand-form-grid .file-picker,
    .windows-brand-form-grid .upload-field .file-picker,
    .windows-brand-form-grid .upload-field:nth-of-type(1) .file-picker,
    .android-brand-form-grid .upload-field .file-picker {
        grid-template-columns: minmax(76px, max-content) minmax(0, 1fr) auto;
        gap: 6px;
    }

    .brand-form-grid .file-button,
    .windows-brand-form-grid .upload-field .file-button,
    .windows-brand-form-grid .upload-field:nth-of-type(1) .file-button,
    .android-brand-form-grid .upload-field .file-button {
        min-width: 76px;
        height: 36px;
        font-size: 13px;
    }

    .file-name {
        min-height: 26px;
        padding-inline: 7px;
        font-size: 11px;
    }

    .stat-card {
        min-height: 44px;
    }

    .stat-card strong {
        font-size: 12px;
    }

    .result-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
            "files"
            "status"
            "delete";
    }

    .result-file-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .result-file-actions .inline-action,
    .result-file-actions .link-button,
    .result-actions .inline-delete,
    .result-actions .inline-delete .link-button {
        width: 100%;
    }

    .result-actions .inline-delete {
        justify-self: stretch;
    }

    .result-status {
        justify-self: stretch;
        justify-content: center;
    }

    .payment-dialog,
    .build-progress-dialog,
    .settings-dialog {
        padding: 16px;
    }

    .payment-qr-frame {
        min-height: 190px;
    }

    .payment-qr-frame img {
        width: 180px;
        height: 180px;
    }
}



.admin-card-stack { min-width: 0; }

.package-card-copy > p {
    margin-bottom: 14px;
}

.point-package-admin-head {
    display: grid;
    grid-template-columns: 48px 48px 58px minmax(92px, 1fr) 78px 86px 62px;
    column-gap: 10px;
    align-items: center;
    padding: 0 8px 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.point-package-admin-row {
    align-items: center;
}

.point-package-admin-row .field,
.point-package-admin-row .check-field {
    align-self: center;
}

.point-package-admin-row .field > span,
.point-package-admin-row .package-field-label,
.point-package-admin-row .package-enabled-box > span,
.point-package-admin-row .package-once-box > span {
    display: none;
}

.point-package-admin-row .check-field {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
}

.package-enabled-box {
    justify-content: center;
    width: 100%;
}

.point-package-admin-row .package-remove {
    align-self: center;
}

.package-once-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px;
}

.package-once-box input {
    width: 14px;
    height: 14px;
    min-height: 14px;
    padding: 0;
}

.point-package-limit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(47, 111, 237, 0.1);
    color: var(--accent-deep);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}
.package-card-title {
    justify-content: space-between;
    width: 100%;
}

.package-enabled {
    margin-right: 0;
}

.point-package-admin-head span:nth-child(1),
.point-package-admin-head span:nth-child(2) {
    text-align: center;
}

.point-package-admin-row .package-enabled,
.point-package-admin-row .package-once {
    justify-self: center;
    width: 100%;
}

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

.invite-percent-field input {
    width: 59px;
    max-width: 59px;
    padding-inline: 8px;
    text-align: center;
}

.invite-settings-form .compact-save-button {
    width: 92px;
    justify-self: start;
}
.invite-settings-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.invite-marketing-column,
.invite-build-column {
    display: grid;
    gap: 10px 12px;
    min-width: 0;
}

.invite-marketing-column {
    grid-template-columns: minmax(86px, auto) 72px;
    align-items: end;
}

.invite-build-column {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.invite-marketing-column .check-field,
.invite-marketing-column .field,
.invite-build-column .field {
    margin: 0;
}

.invite-marketing-column .check-field {
    min-height: 43px;
}

.invite-settings-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .invite-settings-form,
    .invite-marketing-column {
        grid-template-columns: 1fr;
    }
}
.invite-settings-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    margin-top: 14px;
}

.invite-settings-panel {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(47, 111, 237, 0.16);
    border-radius: 8px;
    background: #f8fbff;
}

.invite-setting-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) 82px;
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.invite-setting-row .check-field,
.invite-setting-row .field,
.invite-build-column .field {
    margin: 0;
}

.invite-setting-row .check-field {
    align-self: end;
    min-height: 43px;
}

.invite-build-column {
    align-content: start;
}

.invite-build-field {
    display: grid;
    grid-template-columns: minmax(98px, 1fr) 82px;
    gap: 10px;
    align-items: center;
}

.invite-build-field span {
    align-self: center;
}

.invite-build-field input,
.invite-setting-row .invite-percent-field input {
    justify-self: end;
    width: 66px;
    max-width: 66px;
}

.invite-settings-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

@media (max-width: 640px) {
    .invite-settings-form,
    .invite-setting-row,
    .invite-build-field {
        grid-template-columns: 1fr;
    }

    .invite-build-field input,
    .invite-setting-row .invite-percent-field input {
        justify-self: start;
    }
}
.invite-marketing-column,
.invite-build-column {
    grid-template-columns: 1fr;
    align-content: start;
}
.invite-setting-row {
    grid-template-columns: minmax(88px, 1fr) minmax(128px, auto);
    align-items: center;
    min-height: 43px;
}

.invite-setting-row .check-field {
    align-self: center;
    min-height: 34px;
}

.invite-setting-row .invite-percent-field {
    display: grid;
    grid-template-columns: auto 66px;
    gap: 8px;
    align-items: center;
}

.invite-setting-row .invite-percent-field span,
.invite-build-field span {
    align-self: center;
    line-height: 1.2;
}
.invite-settings-actions { justify-content: center; }

.point-package-card.package-once-limited {
    border-color: rgba(47, 111, 237, 0.34);
    background: linear-gradient(180deg, #f2f7ff 0%, #eef6ff 58%, #fff8ed 100%);
    box-shadow: 0 10px 22px rgba(47, 111, 237, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.point-package-card.package-once-limited:hover,
.point-package-card.package-once-limited:focus-visible {
    border-color: rgba(47, 111, 237, 0.58);
    background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 58%, #fff5e8 100%);
    box-shadow: 0 12px 24px rgba(47, 111, 237, 0.16);
}

.point-package-card.package-once-limited .point-package-limit {
    background: linear-gradient(180deg, rgba(47, 111, 237, 0.18), rgba(47, 111, 237, 0.1));
    color: var(--accent-deep);
    border: 1px solid rgba(47, 111, 237, 0.18);
}
.point-package-card.package-once-limited {
    align-content: center;
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(180deg, #fff5f9 0%, #fff0f6 58%, #fff8fb 100%);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.point-package-card.package-once-limited:hover,
.point-package-card.package-once-limited:focus-visible {
    border-color: rgba(236, 72, 153, 0.5);
    background: linear-gradient(180deg, #fff0f7 0%, #fff7fb 100%);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.14);
}

.point-package-card.package-once-limited .point-package-limit {
    align-self: center;
    justify-self: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(236, 72, 153, 0.24);
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.16), rgba(236, 72, 153, 0.08));
    color: #be185d;
    line-height: 1;
}
.point-package-card.package-once-limited {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
    gap: 6px;
    padding-inline: 6px;
}

.point-package-card.package-once-limited .point-package-main,
.point-package-card.package-once-limited b,
.point-package-card.package-once-limited .point-package-limit {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.point-package-card.package-once-limited .point-package-main {
    display: grid;
    justify-items: center;
    text-align: center;
}

.point-package-card.package-once-limited .point-package-limit {
    box-sizing: border-box;
    min-height: 24px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
}
.point-package-card.package-once-limited .point-package-limit {
    width: 72px;
    max-width: 72px;
    min-width: 72px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    font-size: 10.5px;
}

.point-package-admin-head,
.point-package-admin-row {
    grid-template-columns: 38px 38px 52px 108px minmax(72px, 1fr) 68px 64px 54px;
    column-gap: 8px;
}

.point-package-admin-row {
    row-gap: 0;
}

.point-package-admin-row .field,
.point-package-admin-row .check-field,
.point-package-admin-row .package-remove {
    min-width: 0;
}

.point-package-admin-row select,
.point-package-admin-row input,
.point-package-admin-row .package-remove {
    height: 34px;
    min-height: 34px;
    font-size: 12px;
}

.point-package-admin-row select {
    width: 100%;
    min-width: 0;
    padding: 0 24px 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text);
}

.point-package-admin-row .package-sort input {
    width: 52px;
    padding-inline: 6px;
}

.point-package-admin-row input[name="package_points[]"],
.point-package-admin-row input[name="package_amount[]"] {
    width: 100%;
    max-width: none;
    padding-inline: 8px;
}

.point-package-admin-row .package-remove {
    width: 54px;
    padding: 0 5px;
    white-space: nowrap;
}

.point-package-card.package-style-blue {
    border-color: rgba(59, 130, 246, 0.28);
    background: linear-gradient(180deg, #f2f7ff 0%, #eaf3ff 100%);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.point-package-card.package-style-blue:hover,
.point-package-card.package-style-blue:focus-visible {
    border-color: rgba(59, 130, 246, 0.48);
    background: linear-gradient(180deg, #ecf4ff 0%, #f6fbff 100%);
}

.point-package-card.package-style-blue small {
    color: #2563eb;
}

.point-package-card.package-style-green {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(180deg, #f0fdf6 0%, #e9f9ef 100%);
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.point-package-card.package-style-green:hover,
.point-package-card.package-style-green:focus-visible {
    border-color: rgba(34, 197, 94, 0.48);
    background: linear-gradient(180deg, #eafbf1 0%, #f7fff9 100%);
}

.point-package-card.package-style-green small {
    color: #15803d;
}

.point-package-card.package-style-pink {
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(180deg, #fff5f9 0%, #fff0f6 100%);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.point-package-card.package-style-pink:hover,
.point-package-card.package-style-pink:focus-visible {
    border-color: rgba(236, 72, 153, 0.5);
    background: linear-gradient(180deg, #fff0f7 0%, #fff7fb 100%);
}

.point-package-card.package-style-pink small {
    color: #be185d;
}

.point-package-card.package-style-orange {
    border-color: rgba(249, 115, 22, 0.28);
    background: linear-gradient(180deg, #fff8ed 0%, #fff1dc 100%);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.point-package-card.package-style-orange:hover,
.point-package-card.package-style-orange:focus-visible {
    border-color: rgba(249, 115, 22, 0.48);
    background: linear-gradient(180deg, #fff3e3 0%, #fffaf2 100%);
}

.point-package-card.package-style-orange small {
    color: #c2410c;
}

.point-package-card.package-style-purple {
    border-color: rgba(147, 51, 234, 0.28);
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 10px 22px rgba(147, 51, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.point-package-card.package-style-purple:hover,
.point-package-card.package-style-purple:focus-visible {
    border-color: rgba(147, 51, 234, 0.48);
    background: linear-gradient(180deg, #f5edff 0%, #fbf7ff 100%);
}

.point-package-card.package-style-purple small {
    color: #7e22ce;
}

.point-package-card.package-style-black {
    border-color: rgba(71, 85, 105, 0.26);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: 0 10px 22px rgba(71, 85, 105, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.point-package-card.package-style-black:hover,
.point-package-card.package-style-black:focus-visible {
    border-color: rgba(71, 85, 105, 0.44);
    background: linear-gradient(180deg, #f3f6fa 0%, #fbfcfe 100%);
}

.point-package-card.package-style-black small {
    color: #475569;
}

.point-package-card.package-style-red {
    border-color: rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, #fff5f5 0%, #feecec 100%);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.point-package-card.package-style-red:hover,
.point-package-card.package-style-red:focus-visible {
    border-color: rgba(239, 68, 68, 0.48);
    background: linear-gradient(180deg, #ffefef 0%, #fff8f8 100%);
}

.point-package-card.package-style-red small {
    color: #dc2626;
}

.point-package-card.package-style-blue {
    --package-strong: #2563eb;
    --package-soft: rgba(59, 130, 246, 0.14);
    --package-border: rgba(59, 130, 246, 0.22);
}

.point-package-card.package-style-green {
    --package-strong: #15803d;
    --package-soft: rgba(34, 197, 94, 0.14);
    --package-border: rgba(34, 197, 94, 0.22);
}

.point-package-card.package-style-pink {
    --package-strong: #be185d;
    --package-soft: rgba(236, 72, 153, 0.14);
    --package-border: rgba(236, 72, 153, 0.22);
}

.point-package-card.package-style-orange {
    --package-strong: #c2410c;
    --package-soft: rgba(249, 115, 22, 0.15);
    --package-border: rgba(249, 115, 22, 0.24);
}

.point-package-card.package-style-purple {
    --package-strong: #7e22ce;
    --package-soft: rgba(147, 51, 234, 0.14);
    --package-border: rgba(147, 51, 234, 0.22);
}

.point-package-card.package-style-black {
    --package-strong: #475569;
    --package-soft: rgba(71, 85, 105, 0.13);
    --package-border: rgba(71, 85, 105, 0.22);
}

.point-package-card.package-style-red {
    --package-strong: #dc2626;
    --package-soft: rgba(239, 68, 68, 0.14);
    --package-border: rgba(239, 68, 68, 0.22);
}

.point-package-card[class*="package-style-"] small,
.point-package-card[class*="package-style-"] b {
    color: var(--package-strong);
}

.point-package-card[class*="package-style-"] b,
.point-package-card[class*="package-style-"] .point-package-limit {
    border: 1px solid var(--package-border);
    background: linear-gradient(180deg, var(--package-soft), rgba(255, 255, 255, 0.42));
    color: var(--package-strong);
}

.point-package-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 7px;
    text-align: center;
}

.point-package-card .point-package-main {
    display: grid;
    justify-items: center;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.point-package-card .point-package-main strong,
.point-package-card .point-package-main small,
.point-package-card b,
.point-package-card .point-package-limit {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}
