:root {
    --page-max-width: 720px;
    --page-side-gap: 6px;
    --page-inner-width: calc(var(--page-max-width) - (var(--page-side-gap) * 2));
    --front-switch-top-gap: 0px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin: 0;
    background: #f3f4f6;
}

html {
    background: #f3f4f6;
}

.hidden,
[hidden] {
    display: none !important;
}

/* Static front utility subset replacing Tailwind CDN runtime. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-3 { margin-left: 12px; margin-right: 12px; }
.mx-\[6px\] { margin-left: 6px; margin-right: 6px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-\[10px\] { margin-top: 10px; }
.max-w-7xl { max-width: 80rem; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.w-3\.5 { width: 14px; }
.w-10 { width: 40px; }
.h-3\.5 { height: 14px; }
.h-10 { height: 40px; }
.h-\[280px\] { height: 280px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-12 { padding: 48px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-12 { padding-left: 48px; padding-right: 48px; }
.px-\[14px\] { padding-left: 14px; padding-right: 14px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-\[10px\] { padding-top: 10px; padding-bottom: 10px; }
.pt-\[10px\] { padding-top: 10px; }
.pb-0 { padding-bottom: 0; }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-\[14px\] { border-radius: 14px; }
.rounded-\[18px\] { border-radius: 18px; }
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-dashed { border-style: dashed; }
.border-amber-200 { border-color: #fde68a; }
.border-cyan-200 { border-color: #a5f3fc; }
.border-gray-200 { border-color: #e5e7eb; }
.border-purple-200 { border-color: #e9d5ff; }
.border-slate-200 { border-color: #e2e8f0; }
.border-red-300 { border-color: #fca5a5; }
.border-blue-300 { border-color: #93c5fd; }
.border-emerald-300 { border-color: #6ee7b7; }
.bg-white { background-color: #ffffff; }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-red-50 { background-color: #fef2f2; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-amber-500 { --tw-gradient-from: #f59e0b; --tw-gradient-to: rgba(245, 158, 11, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-to: rgba(37, 99, 235, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-indigo-600 { --tw-gradient-from: #4f46e5; --tw-gradient-to: rgba(79, 70, 229, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-emerald-600 { --tw-gradient-from: #059669; --tw-gradient-to: rgba(5, 150, 105, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-purple-600 { --tw-gradient-from: #9333ea; --tw-gradient-to: rgba(147, 51, 234, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-red-500 { --tw-gradient-from: #ef4444; --tw-gradient-to: rgba(239, 68, 68, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-yellow-400 { --tw-gradient-from: #facc15; --tw-gradient-to: rgba(250, 204, 21, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:from-amber-500:hover { --tw-gradient-from: #f59e0b; --tw-gradient-to: rgba(245, 158, 11, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-500 { --tw-gradient-to: #3b82f6; }
.to-cyan-500 { --tw-gradient-to: #06b6d4; }
.to-teal-500 { --tw-gradient-to: #14b8a6; }
.to-amber-500 { --tw-gradient-to: #f59e0b; }
.to-pink-600 { --tw-gradient-to: #db2777; }
.to-red-500 { --tw-gradient-to: #ef4444; }
.to-yellow-400 { --tw-gradient-to: #facc15; }
.hover\:to-yellow-400:hover { --tw-gradient-to: #facc15; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-\[15px\] { font-size: 15px; }
.text-\[16px\] { font-size: 16px; }
.text-\[28px\] { font-size: 28px; }
.text-\[10px\] { font-size: 10px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-6 { line-height: 1.5rem; }
.leading-8 { line-height: 2rem; }
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-yellow-200 { color: #fef08a; }
.text-amber-300 { color: #fcd34d; }
.text-amber-600 { color: #d97706; }
.text-cyan-600 { color: #0891b2; }
.text-purple-600 { color: #9333ea; }
.text-rose-300 { color: #fda4af; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-blue-500 { color: #3b82f6; }
.text-green-500 { color: #22c55e; }
.text-emerald-500 { color: #10b981; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.shadow { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.shadow-inner { box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-all { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.space-y-3 > * + * { margin-top: 12px; }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:border-amber-500:hover { border-color: #f59e0b; }
.hover\:border-cyan-500:hover { border-color: #06b6d4; }
.hover\:border-purple-500:hover { border-color: #a855f7; }
.hover\:scale-110:hover { transform: scale(1.1); }

@media (min-width: 640px) {
    .sm\:w-12 { width: 48px; }
    .sm\:h-12 { height: 48px; }
    .sm\:h-\[320px\] { height: 320px; }
    .sm\:gap-3 { gap: 12px; }
    .sm\:gap-4 { gap: 16px; }
    .sm\:mx-6 { margin-left: 24px; margin-right: 24px; }
    .sm\:mb-2 { margin-bottom: 8px; }
    .sm\:px-5 { padding-left: 20px; padding-right: 20px; }
    .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
    .sm\:py-3 { padding-top: 12px; padding-bottom: 12px; }
    .sm\:text-sm { font-size: 14px; line-height: 20px; }
    .sm\:text-base { font-size: 16px; line-height: 24px; }
    .sm\:text-lg { font-size: 18px; line-height: 28px; }
    .sm\:text-xl { font-size: 20px; line-height: 28px; }
    .sm\:text-3xl { font-size: 30px; line-height: 36px; }
    .sm\:text-4xl { font-size: 36px; line-height: 40px; }
    .sm\:text-5xl { font-size: 48px; line-height: 1; }
}

@media (min-width: 768px) {
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:h-\[380px\] { height: 380px; }
}

img {
    max-width: 100%;
    height: auto;
}

.app-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 10070;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 18px;
}

.app-notice-modal[hidden] {
    display: none;
}

.app-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
}

.app-notice-dialog {
    position: relative;
    width: min(92vw, 420px);
    margin: 0;
    padding: 24px 24px 20px;
    border-radius: 24px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.app-notice-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eff6ff;
}

.app-notice-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.app-notice-title {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.app-notice-message {
    margin-top: 10px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.app-notice-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.app-notice-button {
    min-width: 132px;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.app-notice-modal.is-success .app-notice-icon {
    color: #16a34a;
    background: #ecfdf5;
}

.app-notice-modal.is-error .app-notice-icon {
    color: #dc2626;
    background: #fef2f2;
}

.app-notice-modal.is-info .app-notice-icon {
    color: #2563eb;
    background: #eff6ff;
}

.app-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.app-confirm-modal[hidden] {
    display: none;
}

.app-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.app-confirm-dialog {
    position: relative;
    width: min(86vw, 360px);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    text-align: center;
}

.app-confirm-title {
    padding: 18px 18px 6px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.app-confirm-message {
    padding: 8px 22px 20px;
    color: #64748b;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

.app-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e2e8f0;
}

.app-confirm-actions button {
    min-height: 48px;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.app-confirm-actions button + button {
    border-left: 1px solid #e2e8f0;
}

.app-confirm-submit {
    color: #dc2626 !important;
}

body.expert-post-modal-open {
    overflow: hidden;
}

.expert-post-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px calc(16px + env(safe-area-inset-bottom));
}

.expert-post-modal[hidden] {
    display: none !important;
}

.expert-post-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.expert-post-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(96vw, 720px);
    height: min(88vh, 820px);
    max-height: calc(100vh - 32px);
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

@supports (height: 100dvh) {
    .expert-post-modal-dialog {
        height: min(88dvh, 820px);
        max-height: calc(100dvh - 32px);
    }
}

.expert-post-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    min-height: 70px;
    padding: 5px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.expert-post-modal-heading {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.expert-post-modal-identity {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    width: 56px;
    min-width: 0;
}

.expert-post-modal-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    box-shadow: none;
    font-size: 18px;
}

.expert-post-modal-avatar-level {
    position: absolute;
    left: 50%;
    bottom: 2px;
    z-index: 2;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: none;
}

.expert-post-modal-copy {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    align-content: center;
}

.expert-post-modal-title {
    min-width: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-post-modal-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 34px;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.expert-post-modal-meta[hidden] {
    display: none !important;
}

.expert-post-modal-meta::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.expert-post-modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-post-modal-meta-label {
    flex: 0 0 auto;
    color: #64748b;
}

.expert-post-modal-meta-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #dc2626;
}

.expert-post-modal-author {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.expert-post-modal-author[hidden] {
    display: none !important;
}

.expert-post-modal-author .expert-post-modal-meta-item {
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-height: 17px;
    padding: 0 7px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #dc2626;
    font-size: 11px;
    font-weight: 500;
    line-height: 15px;
}

.expert-post-modal-author .expert-post-modal-meta-label,
.expert-post-modal-author .expert-post-modal-meta-value {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.expert-post-modal-meta-like {
    flex: 0 0 auto;
    width: max-content;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff1f2;
    color: #64748b;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.expert-post-modal-meta-like:hover,
.expert-post-modal-meta-like.is-liked {
    border-color: #fb7185;
    background: #ffe4e6;
    color: #ef4444;
}

.expert-post-modal-meta-like.is-loading {
    opacity: 0.62;
    pointer-events: none;
}

.expert-post-modal-meta-like .expert-post-modal-meta-label,
.expert-post-modal-meta-like .expert-post-modal-meta-value {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.expert-post-modal-like-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 9px;
    line-height: 1;
}

.expert-post-modal-meta-like.is-liked .expert-post-modal-like-icon {
    background: #ef4444;
    color: #ffffff;
}

.expert-post-modal-meta-item:nth-child(2) {
    color: #c2410c;
}

.expert-post-modal-meta .expert-post-modal-meta-item:nth-child(1) {
    flex: 0 0 auto;
    margin-left: 0;
    color: #4338ca;
    font-size: 16px;
    font-weight: 500;
}

body.expert-post-modal-open .expert-post-modal-meta-item:nth-child(2) {
    display: none;
}

.expert-post-modal-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid #b91c1c;
    color: transparent;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    position: relative;
    box-shadow: none;
}

.expert-post-modal-close::before {
    content: "\00D7";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    transform: translateY(-1px);
}

.expert-post-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    background: linear-gradient(180deg, #eef5ff 0%, #f6f9ff 100%);
}

.expert-post-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

body.standalone-modal-post .front-detail-actions,
body.standalone-modal-post .front-inline-meta {
    display: none !important;
}

body.standalone-modal-post .front-page-shell > .data-frame.front-panel-stack > .front-panel-card:first-child {
    display: none !important;
}

body.standalone-modal-post .front-page-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

body.standalone-modal-post .front-page-shell > .data-frame.front-panel-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    box-sizing: border-box;
    width: auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    -ms-overflow-style: none;
    scrollbar-color: transparent transparent;
    scrollbar-gutter: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
    margin: 6px 6px 8px !important;
    border-top: 1px solid #d9e2ef;
    border-radius: 16px;
    padding: 0 14px 18px;
    scroll-padding-bottom: 18px;
}

body.standalone-modal-post .front-page-shell > .data-frame.front-panel-stack::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body.standalone-modal-post .front-post-main-content {
    position: relative;
    padding-top: 0;
    min-width: 0;
    color: #1e293b;
    overflow-wrap: break-word;
}

.front-post-modal-sticky-head {
    display: none;
}

body.standalone-modal-post .front-post-modal-sticky-head {
    position: sticky;
    top: 0;
    z-index: 24;
    display: block;
    box-sizing: border-box;
    margin: 0 -6px 12px;
    padding: 8px 6px 0;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.97) 100%);
}

.front-post-modal-inline-meta {
    display: none;
}

body.standalone-modal-post .front-post-modal-inline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.standalone-modal-post .front-post-modal-inline-meta span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.standalone-modal-post .front-post-modal-inline-meta span + span {
    margin-left: 0;
    padding-left: 0;
}

body.standalone-modal-post .front-post-modal-inline-meta span + span::before {
    content: none;
}

body.standalone-modal-post .front-post-modal-inline-meta span:last-child {
    color: #64748b;
}

body.standalone-modal-post .front-post-modal-inline-meta-value {
    display: inline-flex;
    margin-left: 3px;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
}

body.standalone-modal-post .front-post-modal-shelf-time {
    flex: 1 1 auto;
    justify-content: flex-start;
}

body.standalone-modal-post .front-post-modal-inline-meta span.front-post-modal-lock-state {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center !important;
    box-sizing: border-box;
    width: max-content;
    min-width: 74px;
    min-height: 20px;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #15803d !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

body.standalone-modal-post .front-post-modal-inline-meta span.front-post-modal-lock-state.is-locked {
    border-color: transparent;
    background: transparent;
    color: #dc2626 !important;
}

body.standalone-modal-post .front-post-modal-inline-meta span.front-post-modal-hit-rate {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center !important;
    box-sizing: border-box;
    width: max-content;
    min-width: 46px;
    min-height: 20px;
    margin-left: auto;
    padding: 0 8px !important;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #dc2626 !important;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
}

body.standalone-modal-post .front-post-modal-inline-meta [data-post-view-count] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 24px;
    min-height: 22px;
    margin-left: 3px;
    padding: 0 7px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    line-height: 22px;
}

.front-post-sale-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: auto;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #facc15;
    border-radius: 999px;
    background: #fffbeb;
    color: #c2410c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.front-post-sale-pill.is-public {
    border-color: #86efac;
    background: #dcfce7;
    color: #15803d;
}

.front-forecast-list {
    display: grid;
    gap: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.front-forecast-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    border: 0;
    border-bottom: 2px dashed rgba(37, 99, 235, 0.48);
    border-radius: 0;
    background: transparent;
    padding: 8px 9px 9px;
    box-shadow: none;
}

.front-forecast-card-head {
    display: grid;
    grid-template-columns: max-content max-content minmax(58px, 1fr) max-content max-content;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.front-forecast-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.front-forecast-prediction-box {
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 5px 0 0;
}

.front-forecast-field-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.front-forecast-issue,
.front-forecast-type,
.front-forecast-record-stat,
.front-forecast-status {
    white-space: nowrap;
}

.front-forecast-issue {
    display: inline-flex;
    align-items: center;
    color: #1e40af;
    font-weight: 900;
    line-height: 22px;
}

.front-forecast-author-shine {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.front-forecast-emoji {
    flex: 0 0 auto;
}

.front-forecast-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    min-width: max-content;
    min-height: 22px;
    overflow: hidden;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #dc2626;
    font-size: var(--front-forecast-type-font-size, 14px);
    font-weight: 950;
    line-height: 1;
    margin-left: 1px;
    padding: 0 7px;
    text-overflow: ellipsis;
}

.type-title-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.12em;
    text-align: center;
    line-height: 1;
    vertical-align: baseline;
    font-variant-numeric: tabular-nums;
}

.front-forecast-open-inline {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    margin-left: 4px;
    color: #334155;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.front-forecast-open-inline strong {
    color: #059669;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.front-forecast-record-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-width: 0;
    min-height: 22px;
    margin-left: 4px;
    padding: 0 7px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 999px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.front-forecast-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    margin-left: 4px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: 0.5px solid transparent;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.front-forecast-status.is-hit {
    border-color: #facc15;
    background: #fef08a;
    color: #b91c1c;
    box-shadow: 0 7px 16px rgba(245, 158, 11, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.front-forecast-status.is-miss {
    border-color: rgba(226, 232, 240, 0.72);
    background: #f1f5f9;
    color: #475569;
}

.front-forecast-status.is-plain {
    min-width: 20px;
    border-color: transparent;
    background: transparent;
    color: #334155;
    box-shadow: none;
}

.front-forecast-prediction {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    min-height: 30px;
    max-width: 100%;
    min-width: 0;
    column-gap: 6px;
    row-gap: 2px;
    line-height: 22px;
    vertical-align: baseline;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.front-forecast-prediction-inner {
    display: inline;
    text-align: left;
    max-width: 100%;
    line-height: 22px;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.front-forecast-prediction-grid {
    display: inline;
    line-height: 22px;
}

.front-forecast-prediction-groups {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 2px 0.36ch;
    max-width: 100%;
    line-height: 22px;
    vertical-align: top;
}

.front-forecast-prediction:has(.front-forecast-prediction-group.is-count-row),
.front-forecast-prediction-inner:has(.front-forecast-prediction-group.is-count-row),
.front-forecast-prediction-text:has(.front-forecast-prediction-group.is-count-row),
.front-forecast-prediction-miss-text:has(.front-forecast-prediction-group.is-count-row),
.front-forecast-prediction-groups:has(.front-forecast-prediction-group.is-count-row) {
    width: 100%;
    min-height: auto;
    height: auto;
}

.front-forecast-prediction-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-height: 22px;
    line-height: 22px;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.front-forecast-prediction-group .front-forecast-prediction-grid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0 0.12ch;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

.front-forecast-prediction-group.is-count-row {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    line-height: 24px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
}

.front-forecast-prediction-group.is-count-row .front-forecast-prediction-grid {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.12ch;
    width: auto;
    max-width: 100%;
    min-height: auto;
    height: auto;
    line-height: 24px;
    white-space: nowrap;
}

.front-forecast-prediction-group.is-normal-code-hit,
.front-forecast-prediction-option-line.is-normal-code-hit {
    position: relative;
}

.front-forecast-prediction-group.is-normal-code-miss,
.front-forecast-prediction-option-line.is-normal-code-miss {
    text-decoration-line: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
}

.front-forecast-prediction-group.is-normal-code-miss .front-forecast-prediction-token,
.front-forecast-prediction-option-line.is-normal-code-miss .front-forecast-prediction-token {
    text-decoration-line: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
}

.front-forecast-prediction-option-lines {
    display: inline-grid;
    justify-items: center;
    gap: 2px;
    max-width: 100%;
    line-height: 22px;
    vertical-align: top;
}

.front-forecast-prediction-option-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 22px;
    line-height: 22px;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.front-forecast-prediction-option-line .front-forecast-prediction-grid {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.front-forecast-prediction-bracket {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 0.72ch;
    line-height: 22px;
}

.front-forecast-prediction.is-hit {
    padding-right: 0;
}

.front-forecast-prediction.is-miss {
    text-decoration-line: none;
}

.front-forecast-prediction.is-miss .front-forecast-prediction-token {
    text-decoration-line: none;
}

.front-forecast-prediction-text,
.front-forecast-prediction-miss-text {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 22px;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 22px;
    white-space: normal;
    text-decoration-line: none;
}

.front-forecast-prediction-miss-text {
    display: inline;
    width: auto;
    background-image: none;
}

.front-forecast-prediction-miss-text:has(.front-forecast-prediction-zodiac-code.is-long) {
    display: inline-block;
    width: auto;
    background-image: none;
}

.front-forecast-prediction-miss-text .front-forecast-prediction-zodiac-code.is-long .front-forecast-prediction-zodiac-code-row {
    background-image: none;
}

.front-forecast-prediction-miss-text .front-forecast-prediction-token,
.front-forecast-prediction.is-miss .front-forecast-prediction-miss-text .front-forecast-prediction-token {
    text-decoration-line: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
}

.front-forecast-prediction.is-miss .front-forecast-prediction-group.is-normal-code-miss .front-forecast-prediction-token,
.front-forecast-prediction.is-miss .front-forecast-prediction-option-line.is-normal-code-miss .front-forecast-prediction-token {
    text-decoration-line: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
}

.front-forecast-prediction-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    min-width: 2.35ch;
    margin: 0 0.18ch;
    line-height: 22px;
    white-space: nowrap;
}

.front-forecast-prediction-token.is-param-miss,
.front-forecast-prediction.is-miss .front-forecast-prediction-token.is-param-miss {
    text-decoration-line: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
}

.front-forecast-prediction .front-forecast-prediction-plus,
.front-forecast-prediction-text .front-forecast-prediction-plus,
.front-forecast-prediction-miss-text .front-forecast-prediction-plus {
    display: inline !important;
    min-height: 0 !important;
    min-width: 0 !important;
    margin: 0 0.26ch !important;
    color: #dc2626 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
}

.front-forecast-prediction-check {
    position: absolute;
    top: -4px;
    right: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 7px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 0 0 1px #ffffff;
}

.front-forecast-prediction-param {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 0;
    min-height: 22px;
    padding-right: 1px;
    color: inherit;
    line-height: 22px;
}

.front-forecast-prediction-param::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 1.24em;
    height: 1.24em;
    border-radius: 4px;
    background: #fef08a;
    transform: translate(-50%, -50%);
}

.front-forecast-prediction.is-hit .front-forecast-prediction-param {
    min-height: 22px;
    z-index: 0;
    padding: 0 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.front-forecast-prediction.is-hit .front-forecast-prediction-param::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 1.24em;
    height: 1.24em;
    border-radius: 4px;
    background: #fef08a;
    transform: translate(-50%, -50%);
}

.front-forecast-prediction-zodiac-code {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.32ch;
    width: min(100%, max-content);
    max-width: 100%;
    line-height: 22px;
    vertical-align: top;
    white-space: nowrap;
}

.front-forecast-prediction-zodiac-list,
.front-forecast-prediction-code-list {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.08ch;
    min-width: 0;
    max-width: 100%;
    line-height: 22px;
    white-space: nowrap;
}

.front-forecast-prediction-zodiac-code.is-balanced .front-forecast-prediction-code-list {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.24ch;
}

.front-forecast-prediction-zodiac-code .front-forecast-prediction-token {
    min-width: 1.75ch;
    margin: 0 0.08ch;
}

.front-forecast-prediction-zodiac-code > .front-forecast-prediction-plus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 1.1ch !important;
    margin: 0 0.08ch !important;
}

.front-forecast-prediction-zodiac-code.is-long {
    display: inline-grid;
    grid-template-columns: minmax(0, max-content);
    justify-items: center;
    gap: 1px 0;
    width: min(100%, max-content);
}

.front-forecast-prediction-zodiac-code-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    line-height: 22px;
    white-space: nowrap;
}

.front-forecast-prediction-zodiac-code-row .front-forecast-prediction-plus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 1.1ch !important;
    margin: 0 0.12ch !important;
    line-height: 22px !important;
}

.front-forecast-draw-record {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    align-self: center;
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5px;
    color: #475569;
    font-size: 10px;
    line-height: 1.2;
    overflow-x: visible;
    overflow-y: hidden;
}

.front-forecast-draw-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 4px;
    border: 0;
    border-radius: 999px;
    background: #fde68a;
    color: #92400e;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
}

.front-forecast-draw-items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    flex: 0 0 auto;
}

.front-forecast-draw-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 22px;
    padding: 2px 4px;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    box-sizing: border-box;
    flex: 0 0 auto;
    white-space: nowrap;
}

.front-forecast-draw-item.is-red {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.front-forecast-draw-item.is-blue {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.front-forecast-draw-item.is-green {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #047857;
}

.front-forecast-draw-num {
    margin-left: 1px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.front-forecast-draw-zodiac {
    margin-left: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.front-forecast-draw-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    min-width: 8px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    flex: 0 0 auto;
}

.front-forecast-blessing-card {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    width: 100%;
    max-width: 520px;
    margin: 6px auto 0;
    padding: 7px 10px;
    border: 1px dashed rgba(251, 146, 60, 0.36);
    border-radius: 10px;
    background: #fffdf7;
    color: #92400e;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.front-forecast-blessing-card.is-hit {
    border-color: rgba(251, 146, 60, 0.36);
    background: #fffdf7;
    color: #92400e;
}

.front-forecast-blessing-card.is-miss {
    border-color: rgba(251, 146, 60, 0.34);
    background: #fbfdff;
    color: #1e40af;
}

.front-forecast-blessing-text {
    min-width: 0;
    color: inherit;
    font-weight: 600;
}

body.standalone-modal-post .front-forecast-list.mt-4 {
    margin-top: 0 !important;
}

body.standalone-modal-post .front-forecast-card {
    gap: 4px;
    padding-top: 14px;
}

body.standalone-modal-post .front-forecast-card-head {
    font-size: 17px;
}

body.standalone-modal-post .front-forecast-issue,
body.standalone-modal-post .front-forecast-author-shine,
body.standalone-modal-post .front-forecast-type {
    font-size: 17px;
    line-height: 25px;
}

body.standalone-modal-post .front-forecast-type {
    font-size: calc(var(--front-forecast-type-font-size, 17px) + 1px);
    min-height: 20px;
    line-height: 20px;
    padding-right: 8px;
    padding-left: 8px;
}

body.standalone-modal-post .front-forecast-prediction-box {
    padding-top: 0;
}

body.standalone-modal-post .front-forecast-prediction,
body.standalone-modal-post .front-forecast-prediction-inner,
body.standalone-modal-post .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction-miss-text,
body.standalone-modal-post .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction-token,
body.standalone-modal-post .front-forecast-prediction-param,
body.standalone-modal-post .front-forecast-prediction-bracket {
    min-height: 32px;
    font-size: 18px;
    line-height: 32px;
}

body.standalone-modal-post .front-forecast-prediction .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction-text .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction-miss-text .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction-inner .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction-grid > .front-forecast-prediction-plus {
    font-size: 18px !important;
}

.front-forecast-prediction-inner.front-forecast-waiting-text,
body.standalone-modal-post .front-forecast-prediction-inner.front-forecast-waiting-text {
    display: block;
    min-height: 0;
    max-width: 100%;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    white-space: pre;
    word-break: keep-all;
    overflow-wrap: normal;
}

body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-inner,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-miss-text,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-groups,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-group,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-list,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-code-list,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code-row {
    flex-wrap: nowrap;
    max-width: 100%;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-inner,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-miss-text,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-list,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-code-list,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-miss-text {
    width: auto;
}

body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-token {
    min-width: 1.1em;
    margin-right: 0.06ch;
    margin-left: 0.06ch;
}

body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-param {
    min-width: 0;
}

body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code > .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code-row .front-forecast-prediction-plus {
    min-width: 0.72ch !important;
    margin-right: 0.04ch !important;
    margin-left: 0.04ch !important;
}

body.standalone-modal-post .front-forecast-prediction-bracket {
    flex: 0 0 auto;
    min-width: 0.72ch;
}

body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-token {
    min-width: 1.34em;
    margin-right: 0.12ch;
    margin-left: 0.12ch;
}

body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-grid {
    gap: 0 0.06ch;
}

body.standalone-modal-post .front-forecast-prediction.is-number-option-count:has(.front-forecast-prediction-groups),
body.standalone-modal-post .front-forecast-prediction.is-number-option-count:has(.front-forecast-prediction-groups) .front-forecast-prediction-inner {
    width: 100%;
}

body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-groups {
    justify-content: space-around;
    gap: 0 0.12ch;
    width: 100%;
}

body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-group {
    flex-basis: 8.2ch;
    width: 8.2ch;
    max-width: 8.2ch;
}

body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-group:has(.front-forecast-prediction-grid .front-forecast-prediction-token:nth-child(3)) {
    flex-basis: 10.8ch;
    width: 10.8ch;
    max-width: 10.8ch;
}

body.standalone-modal-post .front-forecast-prediction .front-forecast-prediction-group.is-count-row,
body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-group.is-count-row {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    line-height: 28px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
}

body.standalone-modal-post .front-forecast-prediction .front-forecast-prediction-group.is-count-row .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-group.is-count-row .front-forecast-prediction-grid {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: auto;
    height: auto;
    line-height: 28px;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

body.standalone-modal-post .front-forecast-prediction .front-forecast-prediction-group.is-count-row .front-forecast-prediction-token,
body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-group.is-count-row .front-forecast-prediction-token,
body.standalone-modal-post .front-forecast-prediction .front-forecast-prediction-group.is-count-row .front-forecast-prediction-bracket,
body.standalone-modal-post .front-forecast-prediction.is-number-option-count .front-forecast-prediction-group.is-count-row .front-forecast-prediction-bracket {
    min-height: 28px;
    line-height: 28px;
}

body.standalone-modal-post .front-forecast-prediction .front-forecast-prediction-zodiac-code.is-split,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code.is-split {
    display: inline-grid;
    grid-template-columns: minmax(0, max-content);
    justify-items: center;
    gap: 1px 0;
    width: min(100%, max-content);
}

body.standalone-modal-post .front-forecast-prediction .front-forecast-prediction-zodiac-code.is-split .front-forecast-prediction-zodiac-code-row,
body.standalone-modal-post .front-forecast-prediction.is-nowrap-option-count .front-forecast-prediction-zodiac-code.is-split .front-forecast-prediction-zodiac-code-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

body.standalone-modal-post .front-forecast-prediction-check {
    top: -1px;
    right: -1px;
}

body.standalone-modal-post .front-forecast-prediction-param {
    justify-content: center;
    box-sizing: border-box;
    z-index: 0;
    min-height: inherit !important;
    padding-right: 1px;
    border: 0;
    background: transparent;
    line-height: inherit !important;
}

body.standalone-modal-post .front-forecast-prediction-param::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 1.24em;
    height: 1.24em;
    border-radius: 4px;
    background: #fef08a;
    transform: translate(-50%, -50%);
}

body.standalone-modal-post .front-forecast-prediction-option-lines {
    display: grid;
    justify-items: center;
    gap: 2px;
    max-width: 100%;
}

body.standalone-modal-post .front-forecast-prediction-option-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

body.standalone-modal-post .front-forecast-prediction-option-line .front-forecast-prediction-grid {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

body.standalone-modal-post .front-forecast-prediction.is-small-code-count,
body.standalone-modal-post .front-forecast-prediction.is-small-code-count .front-forecast-prediction-inner,
body.standalone-modal-post .front-forecast-prediction.is-small-code-count .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction.is-small-code-count .front-forecast-prediction-miss-text,
body.standalone-modal-post .front-forecast-prediction.is-small-code-count .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction.is-small-code-count .front-forecast-prediction-token,
body.standalone-modal-post .front-forecast-prediction.is-small-code-count .front-forecast-prediction-param,
body.standalone-modal-post .front-forecast-prediction.is-small-code-count .front-forecast-prediction-bracket {
    min-height: 34px;
    font-size: 18px;
    line-height: 34px;
}

body.standalone-modal-post .front-forecast-prediction.is-large-option-count,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-inner,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-miss-text,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-token,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-param,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-bracket {
    font-size: 24px;
}

body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction.is-large-option-count .front-forecast-prediction-grid > .front-forecast-prediction-plus {
    font-size: 24px !important;
}

body.standalone-modal-post .front-forecast-prediction.is-one-option-count,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-inner,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-miss-text,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-token,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-param,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-bracket {
    min-height: 38px;
    font-size: 28px;
    line-height: 38px;
}

body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction.is-one-option-count .front-forecast-prediction-grid > .front-forecast-prediction-plus {
    font-size: 28px !important;
}

body.standalone-modal-post .front-forecast-prediction.is-five-option-count,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-inner,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-text,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-miss-text,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-grid,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-token,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-param,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-bracket {
    font-size: 22px;
}

body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-plus,
body.standalone-modal-post .front-forecast-prediction.is-five-option-count .front-forecast-prediction-grid > .front-forecast-prediction-plus {
    font-size: 22px !important;
}

body.standalone-modal-post .front-forecast-draw-record {
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin-top: 5px;
    font-size: 10px;
}

body.standalone-modal-post .front-forecast-draw-label {
    min-height: 22px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
    font-weight: 700;
}

body.standalone-modal-post .front-forecast-draw-items {
    flex: 0 0 auto;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    gap: 3px;
}

body.standalone-modal-post .front-forecast-draw-item {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 22px;
    padding: 2px;
}

body.standalone-modal-post .front-forecast-draw-num {
    font-size: 11px;
    font-weight: 700;
}

body.standalone-modal-post .front-forecast-draw-zodiac {
    font-size: 10px;
    font-weight: 700;
}

body.standalone-modal-post .front-forecast-draw-plus {
    width: 8px;
    min-width: 8px;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .front-forecast-list {
        gap: 0;
        font-size: 13px;
    }

    .front-forecast-card {
        padding: 7px 4px 8px;
        border-radius: 0;
    }

    .front-forecast-card-head {
        grid-template-columns: max-content max-content minmax(42px, 1fr) max-content max-content;
        gap: 0;
    }

    .front-forecast-record-stat {
        min-height: 20px;
        margin-left: 3px;
        padding: 0 5px;
        font-size: 10px;
    }

    .front-forecast-card-body {
        grid-template-columns: 1fr;
    }

    .front-forecast-draw-record {
        gap: 2px;
        margin-top: 4px;
        font-size: 9px;
        justify-content: center;
    }

    .front-forecast-draw-label {
        min-height: 16px;
        padding: 0 3px;
    }

    .front-forecast-draw-items {
        gap: 2px;
    }

    .front-forecast-draw-item {
        min-width: 0;
        min-height: 20px;
        border-radius: 6px;
        padding: 1px 3px;
    }

    .front-forecast-draw-num {
        font-size: 11px;
    }

    .front-forecast-draw-zodiac {
        font-size: 10px;
    }

    .front-forecast-prediction-zodiac-code {
        flex-wrap: nowrap;
        gap: 1px 0;
        width: min(100%, max-content);
    }

    .front-forecast-prediction-zodiac-code.is-long {
        display: inline-grid;
        grid-template-columns: minmax(0, max-content);
        justify-items: center;
    }

    .front-forecast-prediction-zodiac-code.is-balanced .front-forecast-prediction-code-list {
        display: inline-flex;
        flex-wrap: nowrap;
    }

    .front-forecast-prediction-zodiac-code > .front-forecast-prediction-plus {
        min-height: 16px !important;
        line-height: 16px !important;
    }

    .front-forecast-draw-plus {
        width: 7px;
        min-width: 7px;
        font-size: 11px;
    }
}

@media (max-width: 560px) {
    body.standalone-modal-post .front-forecast-list.mt-4 {
        margin-top: 0 !important;
    }

    body.standalone-modal-post .front-forecast-card {
        padding-top: 14px;
    }

    body.standalone-modal-post .front-forecast-card-head {
        font-size: 17px;
    }

    body.standalone-modal-post .front-forecast-issue,
    body.standalone-modal-post .front-forecast-author-shine,
    body.standalone-modal-post .front-forecast-type {
        font-size: 17px;
        line-height: 25px;
    }

    body.standalone-modal-post .front-forecast-type {
        font-size: calc(var(--front-forecast-type-font-size, 17px) + 1px);
        min-height: 20px;
        line-height: 20px;
        padding-right: 8px;
        padding-left: 8px;
    }

    body.standalone-modal-post .front-forecast-prediction-box {
        padding-top: 0;
    }

    body.standalone-modal-post .front-forecast-draw-record {
        justify-content: center;
        gap: 4px;
        width: max-content;
        max-width: 100%;
        margin-top: 5px;
        font-size: 10px;
    }

    body.standalone-modal-post .front-forecast-draw-label {
        min-height: 22px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 10px;
        font-weight: 700;
    }

    body.standalone-modal-post .front-forecast-draw-items {
        flex: 0 0 auto;
        justify-content: center;
        width: max-content;
        max-width: 100%;
        gap: 3px;
    }

    body.standalone-modal-post .front-forecast-draw-item {
        flex: 0 0 auto;
        min-height: 22px;
        padding: 2px;
    }

    body.standalone-modal-post .front-forecast-draw-num {
        font-size: 11px;
        font-weight: 700;
    }

    body.standalone-modal-post .front-forecast-draw-zodiac {
        font-size: 10px;
        font-weight: 700;
    }

    body.standalone-modal-post .front-forecast-draw-plus {
        width: 8px;
        min-width: 8px;
        font-size: 11px;
        font-weight: 700;
    }
}

.front-forecast-draw-record--sale {
    align-self: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.front-forecast-draw-record--sale .front-forecast-draw-items {
    flex: 0 0 auto;
    justify-content: center;
    width: max-content;
    max-width: 100%;
}

.front-forecast-draw-record--sale .front-forecast-draw-item {
    flex: 0 0 auto;
}

.front-forecast-draw-record.is-pending .front-forecast-draw-item {
    position: relative;
    min-width: 22px;
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.front-forecast-draw-record.is-pending .front-forecast-draw-label {
    border: 0;
    background: #fde68a;
    color: #92400e;
    font-weight: 800;
}

.front-forecast-draw-record.is-pending .front-forecast-draw-items {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.front-forecast-draw-record.is-pending .front-forecast-draw-items::after {
    position: absolute;
    top: -22%;
    bottom: -22%;
    left: -42px;
    width: 42px;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
    content: "";
    pointer-events: none;
    transform: translateX(0) skewX(-18deg);
    animation: front-pending-draw-sheen 1.25s linear infinite;
    will-change: transform;
    z-index: 2;
}

.front-forecast-draw-record.is-pending .front-forecast-draw-num {
    position: relative;
    z-index: 1;
    margin-left: 0;
    font-size: 12px;
    font-weight: 800;
}

@keyframes front-pending-draw-sheen {
    0% {
        transform: translateX(0) skewX(-18deg);
    }

    52%, 100% {
        transform: translateX(260px) skewX(-18deg);
    }
}

body.standalone-modal-post .front-forecast-draw-record--sale {
    justify-content: center;
    width: max-content;
    max-width: 100%;
}

body.standalone-modal-post .front-forecast-draw-record--sale .front-forecast-draw-items {
    flex: 0 0 auto;
    justify-content: center;
}

body.standalone-modal-post .front-forecast-draw-record--sale .front-forecast-draw-item {
    flex: 0 0 auto;
}

.front-post-content-rule {
    display: none;
}

body.standalone-modal-post .front-post-content-rule {
    display: block;
    height: 1px;
    margin: 7px 0 0;
    background: #dbe4ef;
    pointer-events: none;
}

body.standalone-modal-post .front-post-main-content > .mt-4.whitespace-pre-line {
    margin-top: 12px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

body.standalone-modal-post .front-post-replies-card {
    margin-top: 14px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

body.standalone-modal-post .front-panel-card.front-post-replies-card {
    overflow: visible;
    padding: 30px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.standalone-modal-post .front-post-replies-shell {
    gap: 0;
}

body.standalone-modal-post .front-post-replies-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe4ef;
    border-left: 3px solid #dc2626;
    border-radius: 8px;
    background: linear-gradient(90deg, #fff7f7 0%, #f8fafc 54%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.standalone-modal-post .front-post-replies-header > div:first-child {
    display: contents;
}

body.standalone-modal-post .front-post-replies-kicker {
    display: none;
}

body.standalone-modal-post .front-post-replies-title {
    grid-column: 1;
    min-width: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    color: #0f172a;
    white-space: nowrap;
}

body.standalone-modal-post .front-post-replies-subtitle {
    display: none;
    grid-column: 2;
    min-width: 0;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.standalone-modal-post .front-post-replies-count {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    min-height: 0;
    padding: 3px 9px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #ffffff;
    color: #dc2626;
    margin-right: 4px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    box-shadow: none;
    white-space: nowrap;
}

body.standalone-modal-post .front-post-replies-list {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
}

body.standalone-modal-post .front-post-replies-subtitle,
body.standalone-modal-post .front-post-reply-body,
body.standalone-modal-post .front-post-reply-login-text span {
    word-break: break-word;
    overflow-wrap: anywhere;
}

body.standalone-modal-post .front-post-reply-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 7px;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid #edf2f7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.standalone-modal-post .front-post-reply-meta {
    display: contents;
}

body.standalone-modal-post .front-post-reply-user {
    display: contents;
}

body.standalone-modal-post .front-post-reply-avatar {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 14px;
}

body.standalone-modal-post .front-post-reply-avatar i {
    font-size: 14px;
}

body.standalone-modal-post .front-post-reply-avatar-level {
    left: 50%;
    right: auto;
    bottom: -5px;
    min-width: 23px;
    padding: 1px 3.5px;
    font-size: 8.2px;
    line-height: 1.2;
    transform: translateX(-50%);
}

body.standalone-modal-post .front-post-reply-author {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

body.standalone-modal-post .front-post-reply-time {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

body.standalone-modal-post .front-post-reply-body {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: #334155;
    font-size: 12px;
    line-height: 1.65;
}

body.standalone-modal-post .front-post-reply-tools {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    gap: 4px;
    margin-top: 0;
    white-space: nowrap;
}

body.standalone-modal-post .front-post-reply-tool {
    min-height: 26px;
    padding: 0 10px;
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

body.standalone-modal-post .front-post-reply-tool.is-active {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 800;
}

body.standalone-modal-post .front-post-reply-children {
    grid-column: 1 / -1;
    gap: 7px;
    margin-top: 8px;
    padding-left: 10px;
    border-left-color: #dbeafe;
}

body.standalone-modal-post .front-post-replies-empty {
    padding: 10px 0;
    border: 0;
    border-top: 1px solid #edf2f7;
    border-radius: 0;
    background: transparent;
}

body.standalone-modal-post .front-post-replies-empty-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    box-shadow: none;
}

body.standalone-modal-post .front-post-replies-empty-title {
    font-size: 13px;
    font-weight: 800;
}

body.standalone-modal-post .front-post-replies-empty-text {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.front-panel-card.front-post-replies-card {
    overflow: hidden;
    padding: 12px;
    border-color: rgba(37, 99, 235, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.front-post-replies-shell {
    display: grid;
    gap: 14px;
}

.front-post-replies-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92)),
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.16), transparent 36%);
}

.front-post-replies-kicker {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.12em;
    color: #2563eb;
}

.front-post-replies-title {
    margin: 4px 0 0;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
    color: #0f172a;
}

.front-post-replies-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.front-post-replies-count {
    flex: none;
    min-width: 58px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #4f46e5);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.front-post-replies-list {
    display: grid;
    gap: 10px;
}

.front-post-reply-item {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.front-post-reply-meta,
.front-post-reply-user {
    display: flex;
    align-items: center;
    min-width: 0;
}

.front-post-reply-meta {
    justify-content: space-between;
    gap: 12px;
}

.front-post-reply-user {
    gap: 10px;
}

.front-post-reply-avatar {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
    color: #1d4ed8;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.front-post-reply-avatar i {
    position: relative;
    z-index: 1;
    font-size: 18px;
    line-height: 1;
}

.front-post-reply-avatar-level {
    position: absolute;
    left: 50%;
    bottom: -6px;
    z-index: 2;
    min-width: 24px;
    padding: 1.5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    font-size: 9.2px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: 0 5px 10px rgba(124, 58, 237, 0.26);
}

.front-post-reply-avatar-level[data-avatar-level="vip3"] {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.24);
}

.front-post-reply-avatar-level[data-avatar-level="年度vip"] {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 5px 10px rgba(245, 158, 11, 0.26);
}

.front-post-reply-avatar-level[data-avatar-level="高级vip"] {
    background: linear-gradient(135deg, #059669, #84cc16);
    box-shadow: 0 5px 10px rgba(5, 150, 105, 0.26);
}

.front-post-reply-author {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.front-post-reply-time {
    flex: none;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.front-post-reply-body {
    margin-top: 12px;
    color: #334155;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
}

.front-post-reply-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.front-post-reply-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.front-post-reply-tool strong {
    color: inherit;
    font-size: 12px;
}

.front-post-reply-tool.is-active {
    border-color: rgba(37, 99, 235, 0.3);
    background: #eff6ff;
    color: #2563eb;
}

.front-post-reply-tool:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.front-post-reply-children {
    display: grid;
    gap: 9px;
    margin-top: 12px;
    padding-left: 18px;
    border-left: 2px solid rgba(37, 99, 235, 0.13);
}

.front-post-reply-item.is-child {
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: none;
}

.front-post-replies-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: 20px;
    background: rgba(239, 246, 255, 0.66);
}

.front-post-replies-empty-icon {
    width: 36px;
    height: 36px;
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 24%, transparent 25%),
        linear-gradient(135deg, #60a5fa, #4f46e5);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.front-post-replies-empty-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}

.front-post-replies-empty-text {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.front-post-reply-composer {
    min-width: 0;
}

.front-post-reply-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.front-post-reply-form-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.front-post-reply-form-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
}

.front-post-reply-form-help,
.front-post-reply-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.front-post-reply-textarea.admin-textarea {
    width: 100%;
    min-height: 96px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.front-post-reply-textarea.admin-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.front-post-reply-textarea.admin-textarea:disabled {
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
}

.front-post-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.front-post-reply-target[hidden] {
    display: none;
}

.front-post-reply-target button {
    border: 0;
    background: transparent;
    color: #dc2626;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.front-post-reply-error {
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.front-post-reply-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.front-post-reply-submit.admin-button {
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

.front-post-reply-submit.admin-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.front-post-buy-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.front-post-sale-buyer-board {
    display: grid;
    gap: 6px;
    box-sizing: border-box;
    width: min(560px, 100%);
    margin: 8px auto 0;
    padding: 7px 8px 8px;
    border-radius: 0;
    background: rgba(248, 250, 252, 0.76);
    color: #334155;
}

.front-post-sale-buyer-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    margin: 0 auto;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.front-post-sale-buyer-head strong {
    color: #dc2626;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.front-post-sale-buyer-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px 8px;
    border: 1px dashed rgba(37, 99, 235, 0.34);
    border-radius: 12px;
    background: #fbfdff;
    min-width: 0;
    overflow: hidden;
}

.front-post-sale-buyer-list.is-mobile {
    display: none;
}

.front-post-sale-buyer-name,
.front-post-sale-buyer-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    word-break: normal;
}

.front-post-sale-buyer-name {
    flex-shrink: 0;
    max-width: none;
}

.front-post-sale-buyer-more {
    flex: 0 0 auto;
    min-width: 28px;
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
    font-weight: 900;
}

@media (max-width: 640px) {
    .front-post-sale-buyer-list.is-desktop {
        display: none;
    }

    .front-post-sale-buyer-list.is-mobile {
        display: flex;
    }

    .front-post-sale-buyer-list {
        width: max-content;
        max-width: 100%;
        justify-content: center;
    }

    .front-post-sale-buyer-name {
        flex: 0 0 auto;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
}

.front-post-buy-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
    width: min(220px, 100%);
    text-align: center;
}

.front-post-buy-price {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.front-post-buy-submit.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(150px, 100%);
    min-height: 38px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.front-post-buy-submit.admin-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.front-post-customer-service-edit-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.front-post-customer-service-edit-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.front-post-customer-service-edit-open i {
    font-size: 13px;
}

.front-post-customer-service-edit-open:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.front-post-customer-service-edit-card {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(560px, calc(100vw - 28px));
    max-height: calc(var(--front-post-edit-viewport-height, 100vh) - 20px);
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    background: #ffffff;
    padding: 12px 14px 14px;
    box-shadow: 0 26px 68px rgba(15, 23, 42, 0.24);
}

.front-post-customer-service-edit-head,
.front-post-customer-service-edit-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.front-post-customer-service-edit-head {
    margin-top: -2px;
}

.front-post-customer-service-edit-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.front-post-customer-service-edit-title {
    min-width: 0;
}

.front-post-customer-service-edit-title p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.front-post-customer-service-edit-head button,
.front-post-customer-service-edit-foot button {
    border: 0;
    cursor: pointer;
    font-weight: 900;
}

.front-post-customer-service-edit-head button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #dc2626;
    color: #ffffff;
}

.front-post-customer-service-edit-field {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.front-post-customer-service-edit-field span {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.front-post-customer-service-edit-field.is-price span {
    color: #dc2626;
    text-shadow: 0 1px 0 rgba(254, 240, 138, 0.9);
}

.front-post-customer-service-edit-foot .front-post-customer-service-edit-field.is-price {
    flex: 1 1 auto;
    grid-template-columns: max-content minmax(0, 120px);
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 0;
}

.front-post-customer-service-edit-field textarea,
.front-post-customer-service-edit-field input {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.7;
    outline: none;
}

.front-post-customer-service-edit-field textarea {
    min-height: 220px;
    max-height: calc(var(--front-post-edit-viewport-height, 100vh) - 248px);
    padding: 10px 12px;
    overflow-y: auto;
    resize: none;
}

.front-post-customer-service-edit-brackets {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 8px;
}

.front-post-customer-service-edit-brackets button {
    flex: 0 0 auto;
    min-width: 26px;
    height: 24px;
    padding: 0 5px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 7px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.front-post-customer-service-edit-brackets button:focus-visible,
.front-post-customer-service-edit-brackets button:hover {
    border-color: rgba(37, 99, 235, 0.42);
    background: #eff6ff;
    color: #1d4ed8;
}

.front-post-customer-service-edit-field input {
    height: 40px;
    padding: 0 12px;
}

.front-post-customer-service-edit-field.is-price input {
    border-color: rgba(245, 158, 11, 0.34);
    border-radius: 999px;
    background: #fff8db;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.front-post-customer-service-edit-field textarea:focus,
.front-post-customer-service-edit-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.front-post-customer-service-edit-error {
    margin-top: 12px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fef2f2;
    padding: 10px 12px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.front-post-customer-service-edit-foot {
    margin-top: 12px;
    justify-content: space-between;
}

.front-post-customer-service-edit-foot button {
    flex: 0 0 auto;
    min-width: 82px;
    min-height: 38px;
    border-radius: 12px;
    padding: 0 16px;
}

.front-post-customer-service-edit-foot button[type="submit"] {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
}

.front-post-customer-service-edit-foot button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

body.front-post-customer-service-edit-modal-open {
    overflow: hidden;
}

body.front-post-customer-service-edit-modal-open .bottom-float-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.front-post-login-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px;
}

.front-post-customer-service-edit-modal {
    inset: var(--front-post-edit-viewport-top, 0px) 0 auto 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--front-post-edit-viewport-height, 100vh);
    min-height: 0;
    overflow-x: hidden;
    padding: 10px 14px;
}

.front-post-customer-service-edit-modal.is-keyboard-active {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.front-post-customer-service-edit-modal .front-post-customer-service-edit-card {
    max-height: calc(var(--front-post-edit-viewport-height, 100vh) - 20px);
}

.front-post-customer-service-edit-modal.is-keyboard-active .front-post-customer-service-edit-card {
    max-height: calc(var(--front-post-edit-viewport-height, 100vh) - 16px);
}

.front-post-customer-service-edit-modal.is-keyboard-active .front-post-customer-service-edit-foot {
    position: sticky;
    bottom: 0;
    margin-right: -14px;
    margin-left: -14px;
    padding: 10px 14px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 34%);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
}

.front-post-login-modal[hidden] {
    display: none !important;
}

.front-post-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.front-post-login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
}

.front-post-login-modal .member-auth-tab.is-active {
    pointer-events: none;
}

.front-post-login-modal button.member-auth-tab {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
}

.front-post-login-error {
    min-height: 34px;
    display: flex;
    align-items: center;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    padding: 8px 10px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.front-post-login-error[hidden] {
    display: none !important;
}

.front-post-reply-login-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
}

.front-post-reply-login-tip.has-purchase-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.front-post-reply-login-tip.has-purchase-login .front-post-sale-pill {
    grid-column: 1 / -1;
    justify-self: start;
}

.front-post-reply-login-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.front-post-reply-login-text strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}

.front-post-reply-login-text span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.front-post-reply-login-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

@media (max-width: 720px) {
    .front-panel-card.front-post-replies-card {
        padding: 10px;
        border-radius: 20px;
    }

    .front-post-replies-header,
    .front-post-reply-form,
    .front-post-reply-login-tip {
        padding: 12px;
        border-radius: 18px;
    }

    .front-post-replies-header,
    .front-post-reply-form-head,
    .front-post-reply-login-tip,
    .front-post-reply-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .front-post-replies-count {
        align-self: flex-start;
    }

    .front-post-reply-item,
    .front-post-replies-empty {
        padding: 12px;
        border-radius: 18px;
    }

    .front-post-reply-children {
        padding-left: 10px;
    }

    .front-post-reply-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .front-post-reply-time {
        flex: initial;
    }

    .front-post-reply-login-link,
    .front-post-reply-submit.admin-button {
        width: 100%;
    }

    .front-post-reply-note {
        text-align: center;
    }
}

body.standalone-modal-post .front-post-modal-composer-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #d9e2ef;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(238, 245, 255, 0.96));
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.05);
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-form-head,
body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-note {
    display: none;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-target,
body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-error {
    grid-column: 1 / -1;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-textarea.admin-textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    height: 40px;
    max-height: 72px;
    padding: 9px 14px;
    border-radius: 999px;
    line-height: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    resize: none;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-textarea.admin-textarea::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    align-self: center;
    min-height: 40px;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-submit.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 40px;
    min-height: 40px;
    padding: 0 18px;
    white-space: nowrap;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-login-tip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-login-text {
    min-width: 0;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-login-text span {
    display: block;
    font-size: 15px;
    line-height: 1.55;
}

body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-login-link {
    width: auto;
    min-width: 120px;
    min-height: 42px;
    padding: 0 18px;
    white-space: nowrap;
}

body.standalone-modal-post,
body.standalone-modal-post .page-frame {
    --modal-edge-card-height: 59px;
    --modal-footer-card-height: 71px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: linear-gradient(180deg, #eef5ff 0%, #f6f9ff 100%);
    overflow: hidden;
}

body.standalone-modal-post::-webkit-scrollbar,
body.standalone-modal-post .page-frame::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

@media (max-width: 720px) {
    .expert-post-modal {
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    }

    body.standalone-modal-post,
    body.standalone-modal-post .page-frame {
        --modal-edge-card-height: 47px;
        --modal-footer-card-height: 58px;
    }

    .expert-post-modal-dialog {
        width: min(calc(100vw - 12px), 720px);
        height: min(92vh, 860px);
        max-height: calc(100vh - 16px);
        border-radius: 16px;
    }

    body.standalone-modal-post .front-page-shell > .data-frame.front-panel-stack {
        margin: 4px 4px 7px !important;
        padding: 0 10px 14px;
        scroll-padding-bottom: 14px;
    }

    body.standalone-modal-post .front-post-main-content {
        padding-top: 0;
    }

    body.standalone-modal-post .front-post-modal-sticky-head {
        margin-right: -4px;
        margin-left: -4px;
        padding: 7px 4px 0;
    }

    body.standalone-modal-post .front-post-modal-inline-meta {
        font-size: 13px;
    }

    body.standalone-modal-post .front-post-modal-inline-meta-value,
    body.standalone-modal-post .front-post-modal-inline-meta [data-post-view-count] {
        font-size: 13px;
        font-weight: 500;
    }

    body.standalone-modal-post .front-post-modal-inline-meta span.front-post-modal-hit-rate {
        padding-right: 8px !important;
        padding-left: 8px !important;
        min-height: 20px;
        font-size: 12px;
    }

    body.standalone-modal-post .front-post-modal-inline-meta span.front-post-modal-lock-state {
        min-width: 70px;
        padding-right: 0 !important;
        padding-left: 0 !important;
        font-size: 12px;
    }

    body.standalone-modal-post .front-post-modal-inline-meta span + span {
        margin-left: 0;
        padding-left: 0;
    }

    body.standalone-modal-post .front-post-content-rule {
        margin-top: 7px;
    }

    body.standalone-modal-post .front-post-main-content > .mt-4.whitespace-pre-line {
        font-size: 14px;
        line-height: 1.85;
    }

    body.standalone-modal-post .front-post-replies-header {
        align-items: stretch;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 9px 10px;
    }

    body.standalone-modal-post .front-panel-card.front-post-replies-card {
        padding: 30px 0 0;
        border-radius: 0;
    }

    body.standalone-modal-post .front-post-replies-shell {
        gap: 0;
    }

    body.standalone-modal-post .front-post-replies-list {
        gap: 7px;
    }

    body.standalone-modal-post .front-post-replies-title {
        font-size: 17px;
    }

    body.standalone-modal-post .front-post-replies-subtitle {
        font-size: 11px;
        line-height: 1.35;
    }

    body.standalone-modal-post .front-post-replies-count {
        align-self: flex-start;
        min-height: 0;
        line-height: 1.2;
        margin-right: 3px;
        font-size: 14px;
    }

    body.standalone-modal-post .front-post-reply-item,
    body.standalone-modal-post .front-post-replies-empty {
        padding: 8px 0;
        border-radius: 0;
    }

    body.standalone-modal-post .front-post-reply-item {
        column-gap: 6px;
        row-gap: 6px;
    }

    body.standalone-modal-post .front-post-reply-avatar,
    body.standalone-modal-post .front-post-replies-empty-icon {
        width: 26px;
        height: 26px;
        border-radius: 9px;
    }

    body.standalone-modal-post .front-post-reply-avatar i {
        font-size: 13px;
    }

    body.standalone-modal-post .front-post-reply-author {
        font-size: 16px;
    }

    body.standalone-modal-post .front-post-reply-body {
        margin-top: 7px;
        font-size: 15px;
        line-height: 1.65;
    }

    body.standalone-modal-post .front-post-reply-tools {
        gap: 3px;
        margin-top: 0;
    }

    body.standalone-modal-post .front-post-reply-time {
        font-size: 11px;
    }

    body.standalone-modal-post .front-post-reply-tool {
        min-height: 26px;
        padding: 0 9px;
    }

    body.standalone-modal-post .front-post-modal-composer-card {
        margin: 0;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    }

    body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-form {
        gap: 7px;
    }

    body.standalone-modal-post .front-post-modal-composer-card .front-post-reply-submit.admin-button {
        min-width: 76px;
        padding: 0 14px;
    }

    @supports (height: 100dvh) {
        .expert-post-modal-dialog {
            height: min(92dvh, 860px);
            max-height: calc(100dvh - 16px);
        }
    }

    .expert-post-modal-header {
        min-height: 60px;
        padding: 4px 9px;
        gap: 8px;
    }

    .expert-post-modal-heading {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 8px;
    }

    .expert-post-modal-identity {
        width: 46px;
        gap: 2px;
    }

    .expert-post-modal-copy {
        gap: 8px;
    }

    .expert-post-modal-title {
        font-size: 15px;
        line-height: 1.24;
    }

    .expert-post-modal-meta {
        gap: 24px;
        font-size: 12px;
        line-height: 1.25;
    }

    .expert-post-modal-meta .expert-post-modal-meta-item:nth-child(1) {
        font-size: 13px;
    }

    .expert-post-modal-avatar {
        width: 32px;
        height: 32px;
        border-radius: 11px;
        font-size: 16px;
    }

    .expert-post-modal-avatar-level {
        bottom: 1px;
        padding: 1px 5px;
        font-size: 8px;
    }

    .expert-post-modal-author .expert-post-modal-meta-item {
        min-height: 15px;
        padding: 0 5px;
        font-size: 10px;
        line-height: 13px;
    }

    .expert-post-modal-close {
        width: 32px;
        height: 32px;
        font-size: 21px;
    }
}

button.is-pending,
input.is-pending,
[data-submit-form].is-pending {
    pointer-events: none;
    opacity: 0.72;
    filter: saturate(0.92);
}

@media (min-width: 721px) {
    html {
        overflow-y: scroll;
    }
}

.page-frame {
    width: min(var(--page-max-width), calc(100% - (var(--page-side-gap) * 2)));
    max-width: var(--page-max-width);
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
    background: #f3f4f6;
    box-shadow: none;
    position: relative;
    overflow-x: hidden;
}

/* 统一首页卡片容器宽度：与底部悬浮导航同宽 */
.page-frame > section,
.page-frame > .marquee {
    width: min(var(--page-inner-width), calc(100% - (var(--page-side-gap) * 2)));
    max-width: var(--page-inner-width);
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-frame > section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.top-bar {
    background: linear-gradient(105deg, #0a2f78 0%, #2f67d2 48%, #1448b8 100%);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--page-max-width), calc(100% - (var(--page-side-gap) * 2)));
    border: 1px solid rgba(147, 197, 253, 0.65);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    overflow: hidden;
    isolation: isolate;
    z-index: 9999;
}

.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(110% 90% at 12% 10%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 56%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%);
    pointer-events: none;
}

.top-bar::after {
    content: "";
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -26%;
    width: 24%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    animation: top-bar-sheen 5.2s linear infinite;
    pointer-events: none;
}

.top-bar-inner {
    position: relative;
    z-index: 1;
    min-height: 74px;
}

.top-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 150px);
    flex-wrap: nowrap !important;
}

.top-brand-mark {
    position: relative;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255, 235, 160, 0.72);
    background: radial-gradient(circle at 28% 24%, #fff9cf 0%, #facc15 42%, #f59e0b 100%);
    box-shadow: 0 7px 14px rgba(90, 37, 1, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.36);
    animation: top-brand-mark-pulse 2.6s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow, filter;
}

.top-brand-mark.top-brand-mark-has-image {
    animation: top-brand-mark-image-breathe 2.6s ease-in-out infinite;
    transform: none;
    will-change: box-shadow, opacity;
}

.top-brand-mark i {
    font-size: 17px;
    line-height: 1;
    color: #7c2d12;
    transform: translateY(-3px);
}

.top-brand-mark span {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    min-width: 26px;
    height: 15px;
    padding: 0 4px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.24);
    background: rgba(15, 23, 42, 0.82);
    color: #fde68a;
    font-size: 10px;
    font-weight: 900;
    line-height: 13px;
    text-align: center;
    letter-spacing: 0.35px;
}

.top-brand-mark-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.top-brand-copy {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.top-brand-title {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.top-brand-name-main,
.top-brand-name-accent {
    display: inline-block;
    font-size: clamp(1.52rem, 2.3vw, 2.05rem) !important;
    text-shadow: 0 1px 0 rgba(2, 10, 32, 0.45);
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
}

.top-brand-name-main {
    color: #f8fbff;
}

.top-brand-name-accent {
    color: #fde047 !important;
}

.top-brand-domain {
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #bfdbfe !important;
    font-size: clamp(11px, 1vw, 13px) !important;
    line-height: 1;
    letter-spacing: 0.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
}

.top-brand-domain::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #fef08a;
    box-shadow: 0 0 8px rgba(254, 240, 138, 0.72);
    flex: 0 0 auto;
}

.top-bar-actions {
    flex: 0 0 auto;
    min-width: 0;
}

.top-bar-spacer {
    height: 84px;
}

@keyframes top-bar-sheen {
    0% {
        left: -26%;
    }
    100% {
        left: 126%;
    }
}

@keyframes top-brand-mark-pulse {
    0%,
    100% {
        transform: translateY(-1px) scale(1);
        box-shadow: 0 7px 14px rgba(90, 37, 1, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.36);
    }
    50% {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 11px 18px rgba(90, 37, 1, 0.44), inset 0 2px 4px rgba(255, 255, 255, 0.42);
    }
}

@keyframes top-brand-mark-image-breathe {
    0%,
    100% {
        transform: none;
        box-shadow: 0 7px 14px rgba(90, 37, 1, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
        opacity: 0.96;
    }
    50% {
        transform: none;
        box-shadow: 0 8px 15px rgba(90, 37, 1, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
        opacity: 1;
    }
}

@keyframes top-brand-text-breathe {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.08);
    }
}

@keyframes top-brand-domain-breathe {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.06);
    }
}

.bottom-nav-target {
    scroll-margin-top: 92px;
}

.bottom-float-nav {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
    bottom: calc(2px + env(safe-area-inset-bottom));
    width: min(var(--page-inner-width), calc(100% - (var(--page-side-gap) * 2)));
    max-width: var(--page-inner-width);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    justify-content: stretch;
    gap: 8px;
    padding: 8px 8px;
    border-radius: 16px;
    border: 1px solid rgba(130, 190, 255, 0.72);
    background: linear-gradient(145deg, rgba(4, 34, 80, 0.94) 0%, rgba(10, 56, 122, 0.95) 52%, rgba(4, 32, 86, 0.94) 100%);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    z-index: 9997;
}

.bottom-float-nav::before {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    top: 1px;
    height: 42%;
    border-radius: 15px 15px 12px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.bottom-float-nav::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -38%;
    width: 32%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: bottom-nav-sheen 5.4s linear infinite;
    pointer-events: none;
}

.bottom-nav-link {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px 5px;
    border-radius: 12px;
    text-decoration: none;
    color: #e6f0ff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-shadow: none;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.bottom-nav-link i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    font-style: normal;
    color: #dbeafe;
    border: 1px solid rgba(169, 206, 255, 0.35);
    background: rgba(11, 35, 72, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.bottom-nav-unread {
    position: absolute;
    top: 8px;
    left: calc(50% + 14px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid #ffffff;
    background: linear-gradient(180deg, #ff5f66 0%, #ef3344 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 3px 8px rgba(127, 29, 29, 0.36);
    pointer-events: none;
    z-index: 3;
}

.bottom-nav-link span {
    line-height: 1;
}

.bottom-nav-link::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fef08a, #f59e0b);
    opacity: 0;
    transform: scaleX(0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bottom-nav-link:hover {
    color: #ffffff;
    background: rgba(15, 45, 93, 0.58);
}

.bottom-nav-link:hover i {
    transform: translateY(-1px);
    border-color: rgba(186, 220, 255, 0.62);
}

.bottom-nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.58);
}

.bottom-float-nav .bottom-nav-link:nth-child(1) i {
    color: #4ade80;
    background: linear-gradient(145deg, rgba(22, 101, 52, 0.58), rgba(34, 197, 94, 0.2));
    border-color: rgba(74, 222, 128, 0.42);
}

.bottom-float-nav .bottom-nav-link:nth-child(2) i {
    color: #f87171;
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.58), rgba(248, 113, 113, 0.22));
    border-color: rgba(248, 113, 113, 0.45);
}

.bottom-float-nav .bottom-nav-link:nth-child(3) i {
    color: #4ade80;
    background: linear-gradient(145deg, rgba(22, 101, 52, 0.58), rgba(34, 197, 94, 0.2));
    border-color: rgba(74, 222, 128, 0.42);
}

.bottom-float-nav .bottom-nav-link:nth-child(4) i {
    color: #f87171;
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.58), rgba(248, 113, 113, 0.2));
    border-color: rgba(248, 113, 113, 0.45);
}

.bottom-float-nav .bottom-nav-link:nth-child(5) i {
    color: #e2e8f0;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(100, 116, 139, 0.26));
    border-color: rgba(203, 213, 225, 0.45);
}

.bottom-nav-link.is-active {
    color: #fff8c5;
    background: linear-gradient(135deg, rgba(20, 66, 137, 0.9), rgba(31, 96, 186, 0.86));
    box-shadow: 0 6px 14px rgba(1, 15, 40, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bottom-nav-link.is-active i {
    color: #111827;
    background: linear-gradient(145deg, #fef3c7, #f59e0b);
    border-color: rgba(245, 158, 11, 0.85);
    transform: translateY(-1px);
    animation: bottom-nav-icon-breathe 2.2s ease-in-out infinite;
}

.bottom-float-nav .bottom-nav-link:nth-child(1).is-active i {
    color: #052e16;
    background: linear-gradient(145deg, #dcfce7, #22c55e);
    border-color: rgba(34, 197, 94, 0.9);
}

.bottom-nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.bottom-nav-link.bottom-nav-login {
    color: #f8fafc;
}

.bottom-nav-link.bottom-nav-login.is-active i {
    color: #111827;
}

.bottom-nav-link.is-empty {
    cursor: default;
    pointer-events: none;
}

.bottom-nav-link.is-empty i,
.bottom-nav-link.is-empty span,
.bottom-nav-link.is-empty::after {
    opacity: 0 !important;
}

@keyframes bottom-nav-icon-breathe {
    0%,
    100% {
        transform: translateY(-1px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.08);
    }
}

@keyframes bottom-nav-sheen {
    0% {
        left: -38%;
    }
    100% {
        left: 132%;
    }
}

body.history-panel-page .bottom-float-nav,
body.history-panel-page .bottom-float-nav::before,
body.history-panel-page .bottom-float-nav::after,
body.history-panel-page .bottom-nav-link,
body.history-panel-page .bottom-nav-link i,
body.history-panel-page .bottom-nav-link::after {
    transition: none !important;
}

body.history-panel-page .bottom-float-nav::after,
body.history-panel-page .bottom-nav-link.is-active i {
    animation: none !important;
}

body.standalone-panel .page-frame {
    min-height: 100vh;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

body.standalone-modal-post .top-bar,
body.standalone-modal-post .top-bar-spacer,
body.standalone-modal-post .bottom-float-nav {
    display: none !important;
}

body.standalone-modal-post .page-frame {
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 100vh;
    min-width: 0;
    margin: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.standalone-modal-post .page-frame::after {
    content: none;
    display: none;
    width: 100%;
    max-width: none;
    flex: 0 0 var(--modal-footer-card-height, var(--modal-edge-card-height, 59px));
    min-height: var(--modal-footer-card-height, var(--modal-edge-card-height, 59px));
    margin: 0;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

@supports (min-height: 100dvh) {
    .page-frame {
        min-height: 100dvh;
    }

    body.standalone-panel .page-frame {
        min-height: 100dvh;
    }

    body.standalone-modal-post .page-frame {
        height: 100dvh;
        min-height: 100dvh;
    }
}

.top-action-btn {
    width: 132px;
    min-width: 132px;
    height: 44px;
    padding: 0 12px;
    flex: 0 0 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.88);
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px;
    line-height: 1;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(120, 53, 15, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.top-action-btn.top-action-download {
    gap: 6px;
}

.top-action-btn.top-action-download::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-135%) skewX(-22deg);
    animation: top-download-sheen 3s linear infinite;
    pointer-events: none;
}

.top-action-btn.top-action-download i {
    width: 21px;
    height: 21px;
    border-radius: 999px;
    border: 1px solid rgba(30, 41, 59, 0.3);
    background: rgba(17, 24, 39, 0.82);
    color: #fde68a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    animation: top-download-pop 1.8s ease-in-out infinite;
}

.top-action-btn.top-action-download span {
    position: relative;
    z-index: 1;
}

.top-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 20px rgba(120, 53, 15, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.56);
    filter: none;
}

.top-action-btn:active {
    transform: translateY(0);
}

.top-action-btn.top-action-download:hover::before {
    animation-play-state: paused;
    opacity: 0.2;
}

.top-action-btn.top-action-download:hover i {
    animation-play-state: paused;
}

.top-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.52), 0 0 0 4px rgba(250, 204, 21, 0.55);
}

@keyframes top-download-sheen {
    0% {
        transform: translateX(-135%) skewX(-22deg);
    }
    100% {
        transform: translateX(170%) skewX(-22deg);
    }
}

@keyframes top-download-pop {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.14);
    }
}

.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://picsum.photos/id/1015/1920/600') center/cover no-repeat;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 14px;
    min-height: 355px !important;
    height: auto !important;
    padding: 16px 0 20px;
    overflow: visible !important;
}
.hero-library-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(30, 64, 175, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.46);
}

.hero-library-copy {
    min-width: 0;
}

.hero-library-title,
.hero-library-subtitle {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
}
.hero-main-title {
    display: block;
    width: 100%;
    max-width: calc(100% - 20px);
    margin: 0 auto 10px;
    padding-inline: clamp(8px, 2.4vw, 16px);
    font-size: clamp(1.48rem, 6.6vw, 3.95rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: clamp(0.008em, 0.2vw, 0.018em);
    text-align: center;
    white-space: nowrap;
    text-wrap: nowrap;
    word-break: keep-all;
    overflow: visible;
}

.hero-main-subtitle {
    display: block;
    width: 100%;
    margin: 0 auto;
    font-size: clamp(0.96rem, 4.7vw, 2rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-wrap: nowrap;
    word-break: keep-all;
    overflow: visible;
}

[data-region="macau"] #hero-library-pill,
[data-region="hongkong"] #hero-library-pill {
    width: min(438px, calc(100% - 88px));
    max-width: calc(100% - 88px);
    margin-bottom: clamp(14px, 2.8vw, 20px);
    padding: clamp(10px, 2.4vw, 14px) clamp(14px, 3.1vw, 24px);
    gap: clamp(9px, 2.1vw, 14px);
    border-radius: 24px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

[data-region="macau"] #hero-library-copy,
[data-region="hongkong"] #hero-library-copy {
    flex: 1 1 auto;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
}

[data-region="macau"] .hero-library-icon,
[data-region="hongkong"] .hero-library-icon {
    flex: 0 0 auto;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    line-height: 1;
}

[data-region="macau"] #hero-library-title,
[data-region="hongkong"] #hero-library-title {
    font-size: clamp(1.52rem, 5.4vw, 2.82rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0.018em;
    text-align: center;
    white-space: nowrap;
}

[data-region="macau"] #hero-library-subtitle,
[data-region="hongkong"] #hero-library-subtitle {
    font-size: clamp(0.94rem, 2.9vw, 1.4rem);
    line-height: 1.04;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

[data-region="macau"] #hero-main-title,
[data-region="hongkong"] #hero-main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(8px, 2vw, 12px);
    padding-inline: 0;
    font-size: clamp(2rem, 8.2vw, 4.2rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: 0.012em;
    text-align: center;
    white-space: nowrap;
}

[data-region="macau"] #hero-main-subtitle,
[data-region="hongkong"] #hero-main-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 4vw, 1.58rem);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 430px) {
    .hero-main-title {
        margin-bottom: 8px;
        letter-spacing: 0.012em;
    }

    .hero-main-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-main-title {
        letter-spacing: 0.008em;
    }

    .hero-main-subtitle {
        font-size: 0.92rem;
    }
}

.hero-live-box {
    margin: 20px auto 0;
    max-width: 680px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #0a2d60 0%, #114181 55%, #0b346c 100%);
    border: 1px solid rgba(125, 183, 255, 0.56);
    border-radius: 20px;
    padding: 14px 14px 9px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 14px 34px rgba(3, 18, 44, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-live-box-anchor {
    display: none;
}
.hero-live-box-anchor.active {
    display: block;
}
.hero-live-box.is-floating {
    position: fixed;
    top: var(--hero-live-float-top, 78px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(686px, var(--hero-live-float-width, 686px), calc(100vw - 12px));
    max-width: none;
    margin: 0;
    z-index: 9998;
    padding: 2px;
    border-radius: 14px;
    background: linear-gradient(145deg, #0a2c5e 0%, #103a73 100%);
    border-color: rgba(134, 191, 255, 0.56);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: none;
    will-change: top, left;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.hero-live-box.is-floating .hero-live-head {
    flex: 0 0 auto;
    width: auto;
    gap: 6px;
    justify-content: flex-start;
    margin: 0;
}
.hero-live-box.is-floating .hero-live-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: clamp(60px, 16vw, 74px);
    min-width: clamp(60px, 16vw, 74px);
    flex: 0 0 clamp(60px, 16vw, 74px);
    text-align: center;
}
.hero-live-box.is-floating .hero-live-badge {
    width: clamp(60px, 16vw, 74px);
    min-width: clamp(60px, 16vw, 74px);
    height: 24px;
    justify-content: center;
    gap: 0;
    padding: 0 5px;
    font-size: 11.7px;
    letter-spacing: -0.02em;
    border-radius: 999px;
}
.hero-live-box.is-floating .hero-live-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-size: 15px;
    line-height: 1.08;
    padding-top: 2px;
    padding-bottom: 2px;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.hero-live-box.is-floating .hero-live-time {
    display: none;
}
.hero-live-box.is-floating .hero-live-numbers {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    padding: 10px 4px 9px;
    border-radius: 12px;
    background: rgba(3, 14, 36, 0.52);
    border: 1px solid rgba(129, 181, 255, 0.22);
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
}
.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: 1.82rem;
    height: 1.82rem;
    font-size: 1.18rem;
    font-weight: 500;
    border-width: 2px;
}
.hero-live-box.is-floating .hero-live-numbers .result-jl-plus {
    font-size: 1.44rem;
    margin: 0 1px;
}
.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus {
    height: 1.82rem;
}
.hero-live-box.is-floating .hero-ball-item {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
}
.hero-live-box.is-floating .hero-ball-plus {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-live-box.is-floating .hero-ball-zodiac {
    display: block;
    font-size: 13px;
    margin-top: 1px;
}
.hero-live-box.is-floating .hero-live-meta {
    display: none;
}
.hero-live-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.16);
    pointer-events: none;
}
.hero-live-box::after {
    display: none;
}
.hero-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.hero-live-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-start;
}
.hero-live-badge {
    appearance: none;
    border: 1px solid rgba(186, 219, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, #3873e8, #2558cb);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    height: 36px;
    width: 66px;
    min-width: 66px;
    padding: 0 6px;
    box-shadow: 0 3px 8px rgba(11, 49, 120, 0.26);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    line-height: 1;
    letter-spacing: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-live-badge.is-record {
    background: linear-gradient(135deg, #3a78ee, #275fd4);
    border-color: rgba(191, 219, 254, 0.68);
    box-shadow: 0 3px 8px rgba(11, 49, 120, 0.26);
}

.hero-live-badge.is-live {
    background: linear-gradient(135deg, #f34b47, #cb2327);
    border-color: rgba(253, 164, 175, 0.62);
    box-shadow: 0 4px 10px rgba(120, 11, 24, 0.35);
}
.hero-live-badge i {
    display: none !important;
    animation: none;
}
.hero-live-period {
    font-size: 30px;
    line-height: 0.95;
    color: #fef08a;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-shadow: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.hero-live-time {
    font-size: 18.8px;
    color: #f8fbff;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(8, 20, 48, 0.96), rgba(9, 35, 77, 0.94));
    border: 1px solid rgba(154, 196, 255, 0.46);
    border-radius: 14px;
    padding: 6px 12px;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
    font-variant-numeric: tabular-nums;
}
.hero-live-numbers {
    margin-top: 11px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    position: relative;
    z-index: 1;
    background: rgba(2, 14, 38, 0.5);
    border: 1px solid rgba(142, 191, 255, 0.2);
    border-radius: 16px;
    padding: 12px 5% 9px;
    overflow: hidden;
}
.hero-ball-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    min-width: 58px;
}
.hero-ball-zodiac {
    font-size: 24px;
    line-height: 1.02;
    color: #dbeafe;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.hero-ball-zodiac.red { color: #fca5a5; }
.hero-ball-zodiac.green { color: #86efac; }
.hero-ball-zodiac.blue { color: #93c5fd; }
.hero-live-numbers .result-jl-code {
    width: 2.72rem;
    height: 2.72rem;
    font-size: 1.76rem;
    font-weight: 500;
    filter: none;
}
.hero-live-numbers .result-jl-plus {
    font-size: 2.35rem;
    color: #d8e2f5;
    text-shadow: none;
}
.hero-live-numbers .hero-ball-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 2.72rem;
    margin-top: 0;
}
.hero-live-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 4px;
    color: #f8fafc;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: 0.15px;
    position: relative;
    z-index: 1;
}
.hero-live-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
}
.hero-live-meta #hero-result-zodiac {
    color: #fb7185 !important;
    font-weight: 500 !important;
}
.hero-live-meta #hero-result-odd-even {
    color: #fde68a !important;
    font-weight: 500 !important;
}
.hero-live-meta #hero-result-five-phase {
    color: #f59e0b !important;
    font-weight: 500 !important;
}

[data-region="macau"] #section-live.hero-live-box,
[data-region="hongkong"] #section-live.hero-live-box {
    max-width: 686px;
    box-sizing: border-box;
    padding: clamp(7px, 1.7vw, 10px) clamp(7px, 1.8vw, 11px) clamp(6px, 1.5vw, 8px);
    border-radius: 16px;
    background: linear-gradient(145deg, #08275a 0%, #0f3b78 58%, #082b62 100%);
    border-color: rgba(142, 191, 255, 0.62);
    box-shadow: 0 10px 28px rgba(3, 18, 44, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-region="macau"] #section-live .hero-live-head,
[data-region="hongkong"] #section-live .hero-live-head {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    align-items: center;
    gap: clamp(5px, 1.1vw, 7px);
}

[data-region="macau"] #section-live .hero-live-left,
[data-region="hongkong"] #section-live .hero-live-left {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    gap: clamp(6px, 1.2vw, 8px);
}

[data-region="macau"] #section-live .hero-live-badge,
[data-region="hongkong"] #section-live .hero-live-badge {
    flex: 0 0 auto;
    width: clamp(54px, 12.4vw, 62px);
    min-width: clamp(54px, 12.4vw, 62px);
    height: clamp(25px, 6vw, 29px);
    padding: 0 4px;
    font-size: clamp(9.4px, 1.9vw, 10.6px);
    font-weight: 800;
}

[data-region="macau"] #section-live .hero-live-period,
[data-region="hongkong"] #section-live .hero-live-period {
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(1rem, 3.15vw, 1.58rem);
    line-height: 1.04;
    font-weight: 600;
    color: #fff176;
    letter-spacing: -0.025em;
    text-align: left;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

[data-region="macau"] #section-live .hero-live-time,
[data-region="hongkong"] #section-live .hero-live-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    justify-self: auto;
    min-height: clamp(27px, 6.3vw, 31px);
    font-size: clamp(0.74rem, 1.96vw, 0.9rem);
    line-height: 1.1;
    font-weight: 500;
    text-align: center;
    padding: 0 clamp(8px, 1.8vw, 10px);
    border-radius: 999px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    box-sizing: border-box;
}

@media (max-width: 520px) {
    body.is-live-head-fit-pending[data-region="macau"] #section-live .hero-live-head,
    body.is-live-head-fit-pending[data-region="hongkong"] #section-live .hero-live-head {
        visibility: hidden;
    }
}

[data-region="macau"] #section-live .hero-live-numbers,
[data-region="hongkong"] #section-live .hero-live-numbers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 14px minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    justify-content: stretch;
    width: 100%;
    margin-top: clamp(7px, 1.5vw, 9px);
    gap: 0 1px;
    padding: clamp(7px, 1.7vw, 9px) clamp(5px, 1.3vw, 7px) clamp(6px, 1.4vw, 7px);
    border-radius: 13px;
    background: rgba(2, 14, 38, 0.6);
    border-color: rgba(142, 191, 255, 0.24);
}

[data-region="macau"] #section-live .hero-ball-item,
[data-region="hongkong"] #section-live .hero-ball-item {
    width: 100%;
    min-width: 0;
    gap: 2px;
}

[data-region="macau"] #section-live .hero-ball-zodiac,
[data-region="hongkong"] #section-live .hero-ball-zodiac {
    font-size: clamp(0.9rem, 3.5vw, 1.12rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(1.84rem, 7.2vw, 2.32rem);
    height: clamp(1.84rem, 7.2vw, 2.32rem);
    font-size: clamp(1.12rem, 4.45vw, 1.46rem);
    font-weight: 600;
    border-width: 2px;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-plus,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-plus {
    font-size: clamp(1.36rem, 4.4vw, 1.76rem);
    color: #a9b8cf;
    margin: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

[data-region="macau"] #section-live .hero-live-numbers .hero-ball-plus,
[data-region="hongkong"] #section-live .hero-live-numbers .hero-ball-plus {
    width: 100%;
    min-width: 0;
    height: clamp(1.94rem, 7.8vw, 2.42rem);
}

[data-region="macau"] #section-live .hero-live-meta,
[data-region="hongkong"] #section-live .hero-live-meta {
    margin-top: clamp(3px, 0.8vw, 4px);
    justify-content: center;
    flex-wrap: nowrap;
    column-gap: clamp(5px, 1.25vw, 10px);
    row-gap: 0;
    font-size: clamp(0.8rem, 2.05vw, 0.95rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0;
}

[data-region="macau"] #section-live .hero-live-meta-item,
[data-region="hongkong"] #section-live .hero-live-meta-item {
    white-space: nowrap;
}

[data-region="macau"] #section-live.hero-live-box.is-floating,
[data-region="hongkong"] #section-live.hero-live-box.is-floating {
    border-radius: 13px;
    padding: 2px;
    gap: 6px;
    align-items: center;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-head,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-head {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 0;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-left,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1vw, 8px);
    width: clamp(68px, 18vw, 84px);
    min-width: clamp(68px, 18vw, 84px);
    flex: 0 0 clamp(68px, 18vw, 84px);
    text-align: center;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-badge,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-badge {
    width: clamp(60px, 15.8vw, 72px);
    min-width: clamp(60px, 15.8vw, 72px);
    height: clamp(20px, 4.7vw, 22px);
    padding: 0 clamp(2px, 0.7vw, 4px);
    font-size: clamp(10px, 2.45vw, 11.2px);
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-period,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-period {
    width: 100%;
    text-align: center;
    font-size: clamp(0.68rem, 2.35vw, 0.78rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-time,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-time {
    display: none;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 10px minmax(0, 1fr);
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: stretch;
    align-self: center;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    gap: 0 1px;
    min-height: clamp(48px, 12.6vw, 56px);
    margin-top: 0;
    padding: 6px 5px 6px;
    border-radius: 11px;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-ball-item,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-ball-item {
    width: 100%;
    min-width: 0;
    gap: 1px;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: clamp(1.46rem, 4.6vw, 1.72rem);
    height: clamp(1.46rem, 4.6vw, 1.72rem);
    font-size: clamp(0.96rem, 3vw, 1.08rem);
    border-width: 2px;
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        inset 0 -3px 8px rgba(148, 163, 184, 0.08);
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus {
    width: 100%;
    min-width: 0;
    height: clamp(1.46rem, 4.6vw, 1.72rem);
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-plus,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-plus {
    font-size: clamp(1rem, 3.2vw, 1.16rem);
    margin: 0;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-ball-zodiac,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-ball-zodiac {
    font-size: 11.4px;
    margin-top: 0;
    white-space: nowrap;
}

[data-region="macau"] #section-live .hero-live-numbers {
    background: rgba(2, 14, 38, 0.62);
    border-color: rgba(191, 219, 254, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: visible;
}

[data-region="hongkong"] #section-live .hero-live-numbers {
    background: rgba(2, 8, 23, 0.66);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: visible;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2rem, 7.6vw, 2.48rem);
    height: clamp(2rem, 7.6vw, 2.48rem);
    border: 3px solid currentColor;
    border-radius: 999px;
    background: #ffffff;
    font-size: clamp(1.28rem, 4.85vw, 1.58rem);
    font-weight: 600;
    line-height: 1;
    box-shadow:
        0 2px 0 currentColor,
        0 5px 10px rgba(15, 23, 42, 0.22),
        inset 0 -2px 0 rgba(15, 23, 42, 0.08);
    text-shadow: none;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.red {
    color: #dc2626;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.green {
    color: #16a34a;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.blue {
    color: #2563eb;
}

[data-region="macau"] #section-live .hero-ball-zodiac {
    margin-top: 3px;
    font-size: clamp(0.86rem, 3vw, 1rem);
    font-weight: 600;
    text-shadow: none;
}

[data-region="macau"] #section-live .hero-ball-zodiac.red {
    color: #fecaca !important;
}

[data-region="macau"] #section-live .hero-ball-zodiac.green {
    color: #bbf7d0 !important;
}

[data-region="macau"] #section-live .hero-ball-zodiac.blue {
    color: #bfdbfe !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-plus {
    color: #e5e7eb;
    font-weight: 800;
    text-shadow: none;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2rem, 7.6vw, 2.48rem);
    height: clamp(2rem, 7.6vw, 2.48rem);
    border: 3px solid currentColor;
    border-radius: 999px;
    background: #ffffff;
    font-size: clamp(1.28rem, 4.85vw, 1.58rem);
    font-weight: 600;
    line-height: 1;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.88),
        0 0 0 4px currentColor,
        0 5px 10px rgba(15, 23, 42, 0.26),
        inset 0 -2px 0 rgba(15, 23, 42, 0.08);
    text-shadow: none;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.red {
    color: #dc2626;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.green {
    color: #16a34a;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.blue {
    color: #2563eb;
}

[data-region="hongkong"] #section-live .hero-ball-zodiac {
    margin-top: 3px;
    font-size: clamp(0.86rem, 3vw, 1rem);
    font-weight: 600;
    text-shadow: none;
}

[data-region="hongkong"] #section-live .hero-ball-zodiac.red {
    color: #fecaca !important;
}

[data-region="hongkong"] #section-live .hero-ball-zodiac.green {
    color: #bbf7d0 !important;
}

[data-region="hongkong"] #section-live .hero-ball-zodiac.blue {
    color: #bfdbfe !important;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-plus {
    color: #e5e7eb;
    font-weight: 800;
    text-shadow: none;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: clamp(1.58rem, 4.9vw, 1.82rem);
    height: clamp(1.58rem, 4.9vw, 1.82rem);
    font-size: clamp(1rem, 3.15vw, 1.14rem);
}
@keyframes hero-live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.66;
        transform: scale(0.9);
    }
}
.marquee {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    background: linear-gradient(90deg, #fff8dc, #fff0c8);
    color: #7f1d1d;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.2px;
    font-weight: 900;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    box-shadow: none;
    padding: 12px 16px;
    text-shadow: none;
}

.marquee-tag {
    flex: 0 0 auto;
    background: #b91c1c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;
    border-radius: 999px;
    padding: 5px 12px;
}
.section-title { background: linear-gradient(90deg, #1e40af, #3b82f6); color: white; padding: 12px 16px; font-size: 1.1rem; font-weight: 900; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 0 rgba(15, 23, 42, 0.2); }
.section-title[data-title-align="left"] { justify-content: flex-start; text-align: left; }
.section-title[data-title-align="center"] { justify-content: center; text-align: center; }
.section-title[data-title-align="right"] { justify-content: flex-end; text-align: right; }

@keyframes section-title-breathe {
    0%,
    100% {
        text-shadow: 0 1px 0 rgba(15, 23, 42, 0.2), 0 0 0 rgba(191, 219, 254, 0);
    }
    50% {
        text-shadow: 0 1px 0 rgba(15, 23, 42, 0.28), 0 0 12px rgba(191, 219, 254, 0.5);
    }
}

.section-title + .grid {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 14px 8px;
    gap: 8px !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    margin-top: 0 !important;
    overflow: hidden;
}

.section-title + .grid .ad-item {
    box-sizing: border-box !important;
    background: #f8fafc !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: var(--ad-item-border-color, #e2e8f0) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

.ad-item {
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    min-height: 46px;
    display: block;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-item[data-ad-url] {
    cursor: pointer;
}

.ad-item[data-ad-url]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.ad-item > span {
    display: inline;
    margin-right: 0;
}

.ad-item > .issue-prefix {
    margin-right: 0;
}

.issue-prefix {
    display: none;
    white-space: nowrap;
}

.ad-item > .issue-prefix.is-title-synced {
    display: inline-block;
    font-weight: 900;
    background-color: var(--issue-prefix-start, #4f46e5);
    background-image: linear-gradient(90deg, var(--issue-prefix-start, #4f46e5), var(--issue-prefix-end, #7c3aed));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.issue-prefix.is-ready {
    display: inline;
}

.ad-item > .issue-prefix.is-ready.is-title-synced {
    display: inline-block;
}

.expert-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 8px 2px 12px !important;
}

.expert-item-link {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 28px;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}

.expert-item-main {
    display: flex;
    align-items: baseline;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

.expert-item-main .issue-prefix {
    color: #4f46e5;
    font-size: 17px;
    font-weight: 700;
    flex: 0 0 auto;
    line-height: 1.35;
}

.expert-item-main .issue-prefix.is-ready {
    display: inline-block;
}

.expert-item-title {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

.expert-item-meta {
    display: flex;
    flex: 0 0 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 36px;
    min-width: 48px;
    margin-right: -6px;
    padding: 0;
    text-align: center;
}

.expert-item-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 43px;
    height: 17px;
    min-height: 17px;
    padding: 0 5px;
    border: 0.5px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.expert-like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    padding: 4px 9px 4px 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.expert-like-button:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: #ef4444;
    transform: translateY(-1px);
}

.expert-like-button.is-liked {
    border-color: #fb7185;
    background: #ffe4e6;
    color: #ef4444;
}

.expert-like-button.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.expert-like-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 16px;
    line-height: 1;
    font-family: "Times New Roman", Georgia, serif;
}

.expert-like-button.is-liked .expert-like-icon {
    background: #ef4444;
    color: #ffffff;
}

.expert-like-count {
    line-height: 1;
    font-size: 14px;
    font-weight: 800;
}

.expert-view-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    min-height: 17px;
    gap: 2px;
    padding: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.expert-view-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15;
}

.expert-view-number {
    color: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15;
}

.ad-item:hover { transform: translateY(-4px); box-shadow: none; }
.data-frame {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.data-frame.space-y-3 {
    padding-left: 8px;
    padding-right: 8px;
}

.data-frame.no-title {
    border-radius: 16px;
    border-top: 1px solid #d9e2ef;
}

.data-frame .bg-white {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    box-shadow: none !important;
}

.front-page-shell {
    width: min(var(--page-inner-width), calc(100% - (var(--page-side-gap) * 2)));
    max-width: var(--page-inner-width);
    margin-left: auto;
    margin-right: auto;
    padding-top: var(--front-switch-top-gap);
}

.front-panel-stack {
    display: grid;
    gap: 16px;
}

body.standalone-modal-post .front-post-detail-stack {
    gap: 0;
}

.front-panel-card {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.front-panel-card-soft {
    background: #f8fafc;
}

.front-auth-form {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.front-auth-form > div {
    min-width: 0;
}

.member-auth-titlebar {
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 62%, #f59e0b 128%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 22px rgba(15, 23, 42, 0.12) !important;
}

.member-auth-frame {
    gap: 0;
    padding: 12px !important;
    border-color: #dbe7ef !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 247, 0.96)),
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.14), rgba(20, 184, 166, 0) 32%);
}

body.member-auth-page .page-frame {
    display: flex;
    flex-direction: column;
    padding-bottom: calc(
        var(--front-bottom-nav-height, 70px) +
        var(--front-bottom-nav-bottom, 2px) +
        env(safe-area-inset-bottom)
    ) !important;
}

body.member-auth-page .member-page {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

body.member-auth-page .member-auth-frame {
    flex: 1 1 auto;
    min-height: 0;
}

.member-auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 16px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.member-auth-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.member-auth-kicker {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.member-auth-heading {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.18;
}

.member-auth-copy {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.member-auth-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
    color: #0f766e;
    font-size: 18px;
}

.member-auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 5px;
}

.member-auth-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.member-auth-tab:hover {
    color: #0f766e;
    background: #ffffff;
}

.member-auth-tab.is-active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.member-auth-form {
    margin-top: 14px;
    gap: 12px;
}

.member-auth-field {
    display: grid;
    gap: 6px;
}

.member-auth-label {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.member-auth-card .auth-input {
    min-height: 40px;
    border-color: #d4e0ec;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.member-auth-card .auth-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.member-auth-card .auth-input:focus {
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.front-action-row,
.front-detail-actions,
.front-form-actions,
.front-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.front-action-row,
.front-detail-actions {
    align-items: center;
    justify-content: space-between;
}

.front-form-actions,
.front-chip-row {
    align-items: center;
}

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

.front-list-stack {
    display: grid;
    gap: 12px;
}

.history-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-list-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(249, 115, 22, 0.34);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.history-list-back-btn:hover {
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.history-draw-card {
    min-width: 0;
}

.history-draw-card-rich {
    background: linear-gradient(180deg, #fcfeff 0%, #f2f7ff 100%);
    border-color: #d7e6f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 24px rgba(59, 130, 246, 0.08);
}

.history-draw-head {
    align-items: center;
}

.history-draw-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    font-weight: 600;
}

.history-draw-rows {
    display: grid;
    gap: 5px;
    justify-items: center;
}

.history-draw-balls,
.history-draw-zodiacs {
    display: grid;
    grid-template-columns: repeat(6, 38px) 16px 38px;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    column-gap: 4px;
    row-gap: 0;
    white-space: nowrap;
}

.history-draw-ball-num {
    width: 38px;
    max-width: 38px;
    aspect-ratio: 1 / 1;
    padding: 0;
    line-height: 1;
    font-size: 1.02rem;
    font-weight: 500;
    justify-self: center;
    border-width: 1.5px;
    box-shadow: 0 6px 12px rgba(148, 163, 184, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    background-image:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.75) 18%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.04));
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.history-draw-ball-zodiac {
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0.2px;
    white-space: nowrap;
    justify-self: center;
}

.history-draw-zodiac-spacer {
    display: inline-block;
    min-width: 16px;
}

.history-draw-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    justify-self: center;
    color: #7c8ca7;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.front-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.front-post-like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    padding: 3px 9px 3px 5px;
    color: #64748b;
    font: inherit;
    font-weight: 700;
    line-height: 1.55;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.front-post-like-button:hover,
.front-post-like-button.is-liked {
    border-color: #fb7185;
    background: #fff1f2;
    color: #ef4444;
}

.front-post-like-button:hover {
    transform: translateY(-1px);
}

.front-post-like-button.is-loading {
    opacity: 0.62;
    pointer-events: none;
}

.front-post-like-button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 11px;
    line-height: 1;
}

.front-post-like-button.is-liked i {
    background: #ef4444;
    color: #ffffff;
}

.front-post-like-button strong {
    color: inherit;
    font: inherit;
    font-weight: 800;
}

.front-post-view-text {
    color: #475569;
    font-size: 15px;
    font-weight: 700;
}

.front-post-view-text [data-post-view-count] {
    color: #4338ca;
    font-size: 16px;
    font-weight: 800;
}

.front-captcha-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.front-form-grid-two {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-console {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 10px;
    min-height: 0;
}

.member-console-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.member-console-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    gap: 10px;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.96)),
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 38%);
    padding: 10px 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.member-console-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
}

.member-console-avatar {
    display: inline-flex;
    position: relative;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
}

.member-console-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.member-console-avatar-level {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: inline-flex;
    min-width: 20px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 10px rgba(249, 115, 22, 0.22);
}

.member-console-identity {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.member-console-name {
    margin-top: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-console-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-column: 1 / -1;
    gap: 0;
    align-items: center;
    justify-content: stretch;
    min-width: 0;
}

.member-console-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
}

.member-console-meta span {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.member-console-score {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    padding: 0 14px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 7px 14px rgba(249, 115, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.member-console-score strong {
    min-width: 0;
    margin-left: 0;
    overflow: hidden;
    color: #ef4444;
    font-size: inherit;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-console-score-refresh {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #ef4444;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.member-console-score-refresh:hover,
.member-console-score-refresh:focus-visible {
    border-color: rgba(239, 68, 68, 0.42);
    background: #ffffff;
    color: #dc2626;
    outline: none;
    transform: rotate(22deg);
}

.member-console-status {
    display: grid;
    min-width: 142px;
    align-content: start;
    justify-items: end;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    padding: 7px 10px;
    text-align: right;
}

.member-console-status span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.member-console-status strong {
    display: block;
    max-width: 142px;
    margin-top: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-console-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-column: 1 / -1;
    gap: 8px;
    justify-content: center;
    justify-items: center;
}

.member-console-recharge {
    display: inline-flex;
    width: min(280px, 72%);
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    padding: 0 18px;
    border: 0;
    font-size: 16px;
    font-family: inherit;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    appearance: none;
}

.member-console-recharge {
    background: #2563eb;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
}

.member-console-recharge:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
}

.member-console-recharge:hover {
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

body.member-recharge-modal-open {
    overflow: hidden;
}

body.member-recharge-modal-open .bottom-float-nav {
    display: none !important;
}

body.customer-service-compose-keyboard-active .bottom-float-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(-50%, 16px, 0) !important;
}

body.front-unified-panel-page.member-recharge-modal-open:not(.customer-service-agent-body) .page-frame,
body.front-unified-panel-page.member-recharge-modal-open:not(.customer-service-agent-body) .page-frame > section,
body.front-unified-panel-page.member-recharge-modal-open:not(.customer-service-agent-body) .front-unified-page,
body.front-unified-panel-page.member-recharge-modal-open:not(.customer-service-agent-body) .front-unified-frame {
    contain: none !important;
    overflow: visible !important;
}

.member-recharge-modal {
    --member-recharge-safe-gap: max(18px, env(safe-area-inset-top), env(safe-area-inset-bottom));
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: var(--member-recharge-safe-gap) 14px;
}

.member-recharge-modal.is-keyboard-active {
    inset: var(--form-modal-viewport-top, 0px) 0 auto 0 !important;
    height: var(--form-modal-viewport-height, 100vh) !important;
    max-height: var(--form-modal-viewport-height, 100vh);
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}

.member-recharge-modal[hidden] {
    display: none;
}

.member-recharge-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(5px);
}

.member-recharge-dialog {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    box-sizing: border-box;
    width: 344px;
    max-width: calc(100vw - 28px);
    width: min(100%, 344px);
    max-height: min(calc(100vh - (var(--member-recharge-safe-gap) * 2)), 620px);
    max-height: min(calc(100dvh - (var(--member-recharge-safe-gap) * 2)), 620px);
    overflow: hidden;
    overscroll-behavior: contain;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 38%);
    padding: 8px 14px 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.member-recharge-modal.is-keyboard-active .member-recharge-dialog {
    max-height: calc(var(--form-modal-viewport-height, 100vh) - 16px);
}

.member-recharge-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 150px) 34px;
    align-items: center;
    gap: 8px;
}

.member-recharge-head h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-recharge-close {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 11px;
    background: #ffffff;
    color: #475569;
    font-size: 17px;
    cursor: pointer;
    appearance: none;
}

.member-recharge-body {
    display: grid;
    gap: 6px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.member-recharge-user {
    display: grid;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    align-content: center;
    justify-items: start;
    gap: 3px;
    justify-self: center;
    min-height: 40px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 12px;
    background: #eff6ff;
    padding: 3px 9px;
}

.member-recharge-user span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.member-recharge-user strong {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-recharge-user strong + strong {
    color: #dc2626;
}

.member-recharge-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 58px;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.82);
    padding: 3px;
}

.member-recharge-method {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 30px 14px;
    gap: 3px;
    align-items: center;
    align-content: center;
    justify-items: center;
    height: 58px;
    min-width: 0;
    min-height: 58px;
    max-height: 58px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 5px 3px;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    appearance: none;
}

.member-recharge-method.is-active {
    border-color: rgba(37, 99, 235, 0.5);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.member-recharge-method:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.member-recharge-method-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
}

.member-recharge-method.is-alipay .member-recharge-method-icon {
    background: #1677ff;
}

.member-recharge-method.is-wechat .member-recharge-method-icon {
    background: #16a34a;
}

.member-recharge-method.is-usdt .member-recharge-method-icon {
    background: #0f766e;
}

.member-recharge-method-body {
    display: grid;
    min-width: 0;
    justify-items: center;
}

.member-recharge-method-body h3 {
    margin: 0;
    height: 14px;
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-recharge-qr-drawer {
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 13px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    padding: 6px;
    animation: member-recharge-drawer-in 0.18s ease both;
}

.member-recharge-qr-panel {
    display: grid;
    position: relative;
    gap: 4px;
}

.member-recharge-qr-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    align-items: start;
    padding-right: 38px;
}

.member-recharge-qr-head strong {
    min-width: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

.member-recharge-qr-head span {
    grid-column: 1;
    margin: 0;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.38;
}

.member-recharge-qr-refresh {
    display: inline-flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 999px;
    background: #fef2f2;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
}

.member-recharge-qr-refresh:active {
    transform: rotate(18deg);
}

.member-recharge-usdt-grid {
    display: grid;
    grid-template-columns: minmax(0, 10fr) minmax(0, 6fr);
    height: min(260px, 70vw);
    gap: 7px;
    align-items: stretch;
    justify-items: stretch;
}

.member-recharge-qr-box {
    display: grid;
    box-sizing: border-box;
    width: min(220px, 100%);
    height: min(260px, 70vw);
    align-items: center;
    justify-items: center;
    justify-self: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: #ffffff;
    padding: 0;
}

.member-recharge-usdt-qr-column {
    display: grid;
    min-width: 0;
    gap: 0;
    align-content: stretch;
    justify-items: center;
}

.member-recharge-usdt-grid .member-recharge-qr-box {
    width: 100%;
    height: 100%;
}

.member-recharge-qr-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.member-recharge-qr-fallback {
    display: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-items: center;
    border: 1px dashed rgba(37, 99, 235, 0.4);
    border-radius: 12px;
    color: #1d4ed8;
    padding: 10px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.member-recharge-qr-panel.is-qr-missing .member-recharge-qr-box img {
    display: none;
}

.member-recharge-qr-panel.is-qr-missing .member-recharge-qr-fallback {
    display: grid;
}

.member-recharge-usdt-address {
    display: grid;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    grid-template-rows: auto auto auto;
    gap: 4px;
    align-content: center;
    align-items: center;
    justify-items: center;
    justify-self: stretch;
}

.member-recharge-usdt-title {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.1;
}

.member-recharge-usdt-title span {
    display: inline-block;
}

.member-recharge-usdt-address code {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    min-width: 0;
    align-items: center;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
    padding: 5px 7px;
    font-family: inherit;
    font-size: 10.8px;
    font-weight: 500;
    line-height: 1.16;
    word-break: break-all;
}

.member-recharge-usdt-address.is-empty code {
    color: #64748b;
}

.member-recharge-copy {
    display: inline-flex;
    width: 100%;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    padding: 0 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}

.member-recharge-copy:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@keyframes member-recharge-drawer-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-recharge-note {
    display: grid;
    gap: 4px;
    border: 1px dashed rgba(249, 115, 22, 0.48);
    border-radius: 13px;
    background: #fff7ed;
    padding: 7px 9px;
}

.member-recharge-note strong {
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.member-recharge-note span {
    color: #7c2d12;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.36;
}

.member-recharge-service {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #ffffff;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

@media (max-width: 720px) {
    .member-recharge-modal {
        --member-recharge-safe-gap: max(18px, env(safe-area-inset-top), env(safe-area-inset-bottom));
        align-items: center;
        padding: var(--member-recharge-safe-gap) 14px;
    }

    .member-recharge-dialog {
        width: 344px;
        max-width: calc(100vw - 28px);
        width: min(100%, 344px);
        max-height: calc(100vh - (var(--member-recharge-safe-gap) * 2));
        max-height: calc(100dvh - (var(--member-recharge-safe-gap) * 2));
        gap: 10px;
        border-radius: 18px;
        padding: 8px 14px 14px;
    }

    .member-recharge-head {
        grid-template-columns: minmax(0, 1fr) minmax(112px, 146px) 38px;
        gap: 8px;
    }

    .member-recharge-head h2 {
        font-size: 19px;
        line-height: 1.12;
    }

    .member-recharge-close {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 13px;
        font-size: 18px;
    }

    .member-recharge-body {
        gap: 6px;
        padding: 2px 1px;
    }

    .member-recharge-user {
        min-height: 40px;
        border-radius: 13px;
        padding: 3px 9px;
    }

    .member-recharge-user span {
        font-size: 12px;
    }

    .member-recharge-user strong {
        font-size: 13px;
    }

    .member-recharge-methods {
        grid-auto-rows: 56px;
    }

    .member-recharge-method {
        gap: 3px;
        grid-template-rows: 30px 14px;
        height: 56px;
        min-height: 56px;
        max-height: 56px;
        border-radius: 10px;
        padding: 4px 3px;
    }

    .member-recharge-method-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 15px;
    }

    .member-recharge-method-body h3 {
        height: 14px;
        font-size: 13px;
        line-height: 14px;
    }

    .member-recharge-note span {
        font-size: 12.5px;
        line-height: 1.34;
    }

    .member-recharge-qr-drawer {
        border-radius: 13px;
        padding: 6px;
    }

    .member-recharge-qr-box {
        width: min(220px, 70vw);
        height: min(260px, 76vw);
    }

    .member-recharge-usdt-grid .member-recharge-qr-box {
        width: 100%;
        height: 100%;
    }

    .member-recharge-note {
        border-radius: 14px;
        padding: 8px 10px;
    }

    .member-recharge-service {
        min-height: 44px;
        border-radius: 14px;
        font-size: 13px;
    }
}

@media (max-width: 720px) and (hover: none), (max-width: 720px) and (pointer: coarse) {
    .member-recharge-dialog {
        width: 100%;
        max-width: calc(100vw - 28px);
        width: min(100%, calc(100vw - 28px));
    }
}

@media (max-width: 390px) {
    .member-recharge-modal {
        --member-recharge-safe-gap: max(12px, env(safe-area-inset-top), env(safe-area-inset-bottom));
        padding-right: 10px;
        padding-left: 10px;
    }

    .member-recharge-dialog {
        width: 100%;
        max-width: calc(100vw - 20px);
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100vh - (var(--member-recharge-safe-gap) * 2));
        max-height: calc(100dvh - (var(--member-recharge-safe-gap) * 2));
        gap: 8px;
        border-radius: 16px;
        padding: 8px 12px 12px;
    }

    .member-recharge-head {
        grid-template-columns: minmax(0, 1fr) minmax(104px, 136px) 34px;
        gap: 6px;
    }

    .member-recharge-head h2 {
        font-size: 17px;
    }

    .member-recharge-close {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
    }

    .member-recharge-user {
        min-height: 38px;
        gap: 2px;
        border-radius: 11px;
        padding: 3px 7px;
    }

    .member-recharge-user span {
        font-size: 11px;
    }

    .member-recharge-user strong {
        font-size: 12px;
    }

    .member-recharge-body {
        gap: 5px;
    }

    .member-recharge-methods {
        grid-auto-rows: 52px;
    }

    .member-recharge-method {
        gap: 2px;
        grid-template-rows: 28px 14px;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 4px 3px;
    }

    .member-recharge-method-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 14px;
    }

    .member-recharge-method-body h3 {
        height: 14px;
        font-size: 12px;
        line-height: 14px;
    }

    .member-recharge-note span {
        font-size: 12px;
        line-height: 1.32;
    }

    .member-recharge-qr-box {
        width: min(208px, 70vw);
        height: min(248px, 76vw);
    }

    .member-recharge-usdt-grid {
        grid-template-columns: minmax(0, 10fr) minmax(0, 6fr);
        height: min(248px, 76vw);
        gap: 6px;
    }

    .member-recharge-usdt-grid .member-recharge-qr-box {
        width: 100%;
        height: 100%;
    }

    .member-recharge-usdt-title {
        font-size: 11.5px;
    }

    .member-recharge-usdt-address code {
        min-height: 40px;
        padding: 4px 6px;
        font-size: 10.2px;
        line-height: 1.14;
    }

    .member-recharge-copy {
        min-height: 30px;
        border-radius: 9px;
        font-size: 12px;
    }

    .member-recharge-note {
        padding: 7px 9px;
    }
}

.member-console-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
}

.member-console-link {
    display: grid;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 5px;
    border: 1px solid #dbe7ef;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.member-console-link i {
    color: #0f766e;
    font-size: 16px;
}

.member-console-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-console-link:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.34);
    color: #0f766e;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.1);
}

.member-console-link.is-active,
.member-console-link.is-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: rgba(37, 99, 235, 0.22);
}

.member-console-link.is-active i,
.member-console-link.is-primary i {
    color: #ffffff;
}

.member-console-panel {
    display: block;
    min-height: 360px;
    min-width: 0;
}

.member-ai-log-panel,
.member-tab-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.member-ai-log-head,
.member-tab-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.member-ai-log-kicker {
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.member-ai-log-head h2,
.member-tab-head h2 {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.member-ai-log-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.member-ai-log-select-all,
.member-ai-log-delete-btn {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.member-ai-log-select-all {
    gap: 4px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.member-ai-log-delete-btn {
    border: 0;
    background: #f43f5e;
    color: #ffffff;
}

.member-ai-log-delete-btn:disabled {
    cursor: not-allowed;
    background: #cbd5e1;
    color: #64748b;
}

.member-ai-log-list {
    display: grid;
    gap: 8px;
}

.member-ai-log-card {
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.88), rgba(255, 255, 255, 0.96));
    color: #334155;
    padding: 8px 10px;
    font-size: 13px;
    box-shadow: 0 7px 16px rgba(245, 158, 11, 0.08);
}

.member-ai-log-card-content {
    min-width: 0;
}

.member-ai-log-check {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    min-height: 26px;
    min-width: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.member-ai-log-check .member-ai-log-check-input {
    width: 15px;
    height: 15px;
}

.member-ai-log-card .forecast-result-title {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 4px;
    min-width: 0;
    width: 100%;
    padding-right: 36px;
    box-sizing: border-box;
}

.member-ai-log-card .forecast-result-issue-badge,
.member-ai-log-card .forecast-result-title-text {
    flex: 0 0 auto;
}

.member-ai-log-card .forecast-result-issue-badge {
    gap: 3px;
    min-height: 27px;
    padding: 2px 6px 2px 3px;
    border-radius: 9px;
}

.member-ai-log-card .forecast-result-issue-mark {
    width: 19px;
    height: 19px;
    font-size: 11px;
}

.member-ai-log-card .forecast-result-issue-text {
    font-size: 13px;
    line-height: 1;
}

.member-ai-log-card .forecast-result-title-text {
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
}

.member-ai-log-draw-result {
    display: inline-grid;
    justify-self: start;
    justify-items: start;
    gap: 0;
    min-width: 0;
    width: clamp(154px, 43vw, 172px);
    max-width: 100%;
    margin-left: 0;
    padding: 2px 5px;
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.92));
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
}

.member-ai-log-draw-result.is-pending {
    width: auto;
    justify-self: end;
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.9);
    color: #64748b;
}

.member-ai-log-draw-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(1.35em, 1fr) 0.45em) minmax(1.35em, 1fr);
    align-items: center;
    justify-content: start;
    justify-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.member-ai-log-draw-label {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 900;
}

.member-ai-log-draw-value {
    min-width: 0;
    overflow: hidden;
    color: #1d4ed8;
    text-overflow: ellipsis;
}

.member-ai-log-draw-token,
.member-ai-log-draw-separator,
.member-ai-log-draw-plus,
.member-ai-log-draw-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    line-height: 1;
}

.member-ai-log-draw-token {
    width: 100%;
    font-weight: 800;
    text-align: center;
}

.member-ai-log-draw-separator,
.member-ai-log-draw-plus,
.member-ai-log-draw-gap {
    width: 100%;
}

.member-ai-log-draw-token.is-red {
    color: #dc2626;
}

.member-ai-log-draw-token.is-blue {
    color: #2563eb;
}

.member-ai-log-draw-token.is-green {
    color: #16a34a;
}

.member-ai-log-draw-separator,
.member-ai-log-draw-plus {
    color: #94a3b8;
    font-weight: 700;
}

.member-ai-log-draw-gap {
    visibility: hidden;
}

.member-ai-log-time {
    display: block;
    width: 100%;
    margin-top: 5px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.2;
    text-align: right;
}

.member-ai-log-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    background: #f8fafc;
    color: #64748b;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.member-purchase-list,
.member-about-list,
.member-profile-grid {
    display: grid;
    gap: 8px;
}

.member-purchase-card {
    display: grid;
    gap: 6px;
    border: 1px solid #dbe7ef;
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #334155;
    padding: 10px;
    text-decoration: none;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05);
}

.member-purchase-title {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.member-purchase-meta span,
.member-purchase-state {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.member-purchase-state {
    justify-self: start;
    background: #ecfdf5;
    color: #0f766e;
}

.member-about-card,
.member-profile-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid #dbe7ef;
    border-radius: 13px;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05);
}

.member-about-card {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
}

.member-about-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    font-size: 18px;
}

.member-about-icon.is-invite {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.member-about-icon.is-recharge {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.member-about-icon.is-purchase {
    background: linear-gradient(135deg, #0f766e, #f59e0b);
}

.member-about-icon.is-rules {
    background: linear-gradient(135deg, #334155, #64748b);
}

.member-about-title,
.member-profile-title {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.member-about-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.member-about-body p,
.member-about-points span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.member-about-points {
    display: grid;
    gap: 4px;
}

.member-form-submit {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: #2563eb;
    color: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.member-form-submit:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.member-form-label {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.member-form-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c9d8ee;
    border-radius: 10px;
    background: #f8fbff;
    color: #0f172a;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    resize: vertical;
}

.member-form-textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.front-auth-field {
    display: grid;
    gap: 8px;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 34px;
    border: 1px solid #c9d8ee;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fbff;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16);
}

.password-input-group,
.auth-input-group {
    position: relative;
    display: block;
}

.password-input-group .auth-input,
.auth-input-group .auth-input {
    min-width: 0;
    padding-right: 54px;
}

.password-input-toggle,
.auth-input-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-input-toggle.is-active,
.auth-input-toggle.is-active {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.password-input-toggle svg,
.auth-input-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-captcha-code {
    display: block;
    width: 104px;
    height: 40px;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #f8fafc;
    object-fit: cover;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 12px rgba(15, 23, 42, 0.05);
    user-select: none;
}

.auth-captcha-refresh {
    flex: 0 0 40px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #d4e0ec;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-captcha-refresh:hover {
    border-color: #0f766e;
    color: #0f766e;
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.12);
}

.front-auth-captcha {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 104px 40px;
}

.front-auth-form .front-form-actions {
    padding-top: 2px;
}

.member-auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.member-auth-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 15px 24px rgba(15, 118, 110, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.member-auth-submit:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.22);
    outline-offset: 2px;
}

.member-auth-submit i {
    font-size: 12px;
}

@media (max-width: 720px) {
    .auth-input {
        min-height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .auth-captcha-code {
        width: 98px;
        height: 40px;
    }

    .auth-captcha-refresh {
        flex-basis: 40px;
        min-height: 40px;
    }
}

.zodiac-reference-card {
    padding: 10px 6px 12px;
    border: 1px solid #d9e2ef;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: visible;
    background: #ffffff;
}

.zodiac-ref-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 0;
    border-left: 0;
}

.zodiac-reference-card .zodiac-ref-grid {
    margin-bottom: 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    gap: 10px;
    background: transparent;
}

.zodiac-ref-item {
    padding: 6px 10px 8px;
    border-right: 1px solid #d2d6dc;
    border-bottom: 1px solid #d2d6dc;
    background: #ffffff;
    text-align: center;
}

.zodiac-reference-card .zodiac-ref-item {
    border: 1px solid #d2d6dc;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.zodiac-reference-card .zodiac-ref-item:nth-child(3n) {
    border-right: 1px solid #d2d6dc;
}

.zodiac-reference-card .zodiac-ref-item:nth-last-child(-n+3) {
    border-bottom: 1px solid #d2d6dc;
}

.zodiac-ref-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: clamp(1.08rem, 1.24vw, 1.42rem);
    line-height: 1;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
}

.zodiac-ref-head > span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.12em;
    min-width: 1.12em;
    height: 1.12em;
    margin: 0;
    font-size: 2.75em;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    overflow: visible;
}

.zodiac-ref-head-label {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.zodiac-ref-codes,
.zodiac-ref-value {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.zodiac-ref-codes {
    margin-top: 4px;
    flex-wrap: wrap;
    white-space: normal;
}

.zodiac-ref-grid .zodiac-ref-codes {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 5px;
}

.zodiac-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.26rem;
    line-height: 1;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.zodiac-ref-grid .zodiac-ref-item:first-child .zodiac-code {
    width: 25px;
    min-width: 25px;
    height: 25px;
    border-radius: 5px;
    font-size: 1.21rem;
}

.zodiac-code.red {
    background: #ff0000;
}

.zodiac-code.blue {
    background: #2d5eff;
}

.zodiac-code.green {
    background: #009a37;
}

.zodiac-ref-title {
    text-align: center;
    font-size: clamp(1.8rem, 2.6vw, 2.25rem);
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
    border-top: 1px solid #d2d6dc;
    border-bottom: 1px solid #d2d6dc;
    background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 100%);
    padding: 8px 10px;
    white-space: nowrap;
}

.zodiac-reference-card .zodiac-ref-title {
    border: 1px solid #d2d6dc;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.zodiac-ref-list {
    border-left: 1px solid #d2d6dc;
    border-top: 1px solid #d2d6dc;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list {
    border: 1px solid #d2d6dc;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.zodiac-ref-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-right: 1px solid #d2d6dc;
    border-bottom: 1px solid #d2d6dc;
    background: #ffffff;
}

.zodiac-ref-line .zodiac-ref-value {
    margin-top: 0;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
}

.zodiac-ref-label {
    width: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #f8fafc;
    font-size: clamp(1.22rem, 1.62vw, 1.58rem);
    line-height: 1.12;
    font-weight: 500;
    color: #1d4ed8;
    white-space: nowrap;
}

.zodiac-ref-label.label-metal {
    color: #d99100;
    background: #fff7e0;
    border-color: #f2dfb2;
}

.zodiac-ref-label.label-wood {
    color: #16a34a;
    background: #eafaf0;
    border-color: #c6ebd3;
}

.zodiac-ref-label.label-water {
    color: #2563eb;
    background: #edf3ff;
    border-color: #c7d8ff;
}

.zodiac-ref-label.label-fire {
    color: #f97316;
    background: #fff1e8;
    border-color: #ffd7bf;
}

.zodiac-ref-label.label-earth {
    color: #c78c18;
    background: #fff6de;
    border-color: #ecd8a4;
}

.zodiac-ref-label.label-red {
    color: #ef4444;
    background: #ffefef;
    border-color: #f6c9c9;
}

.zodiac-ref-label.label-blue {
    color: #2563eb;
    background: #edf3ff;
    border-color: #c7d8ff;
}

.zodiac-ref-list .zodiac-ref-label.label-blue {
    white-space: nowrap;
}

.zodiac-reference-card > .zodiac-ref-grid + .zodiac-ref-title + .zodiac-ref-list + .zodiac-ref-title + .zodiac-ref-list + .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-label.label-blue {
    width: 62px;
    min-width: 62px;
    flex-basis: 62px;
    padding-right: 4px;
    padding-left: 4px;
}

.zodiac-ref-label.label-green {
    color: #16a34a;
    background: #eafaf0;
    border-color: #c6ebd3;
}

.zodiac-attr-list {
    border-left: 1px solid #d2d6dc;
    border-top: 1px solid #d2d6dc;
    background: #ffffff;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list {
    border: 1px solid #d2d6dc;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.zodiac-attr-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 8px;
    border-right: 1px solid #d2d6dc;
    border-bottom: 1px solid #d2d6dc;
}

.zodiac-attr-key {
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 9px;
    border: 1px solid #b9cdfa;
    background: #e9f1ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: clamp(1.22rem, 1.62vw, 1.58rem);
    line-height: 1.12;
    font-weight: 500;
    white-space: nowrap;
}

.zodiac-attr-line:nth-child(10n + 1) .zodiac-attr-key {
    color: #1d4ed8;
    background: #eaf2ff;
    border-color: #bdd0ff;
}

.zodiac-attr-line:nth-child(10n + 2) .zodiac-attr-key {
    color: #0f766e;
    background: #e9fbf5;
    border-color: #b6ecd8;
}

.zodiac-attr-line:nth-child(10n + 3) .zodiac-attr-key {
    color: #7c3aed;
    background: #f3efff;
    border-color: #d9ccff;
}

.zodiac-attr-line:nth-child(10n + 4) .zodiac-attr-key {
    color: #ea580c;
    background: #fff1e7;
    border-color: #ffd6bc;
}

.zodiac-attr-line:nth-child(10n + 5) .zodiac-attr-key {
    color: #15803d;
    background: #ecfdf3;
    border-color: #c5efd6;
}

.zodiac-attr-line:nth-child(10n + 6) .zodiac-attr-key {
    color: #0f766e;
    background: #ebfbf8;
    border-color: #bce8df;
}

.zodiac-attr-line:nth-child(10n + 7) .zodiac-attr-key {
    color: #b45309;
    background: #fff6df;
    border-color: #f6ddb0;
}

.zodiac-attr-line:nth-child(10n + 8) .zodiac-attr-key {
    color: #be123c;
    background: #fff0f5;
    border-color: #f8cddd;
}

.zodiac-attr-line:nth-child(10n + 9) .zodiac-attr-key {
    color: #1e40af;
    background: #edf3ff;
    border-color: #c4d4ff;
}

.zodiac-attr-line:nth-child(10n) .zodiac-attr-key {
    color: #0f766e;
    background: #ebfbf1;
    border-color: #bfead2;
}

.zodiac-attr-val {
    color: #111827;
    font-size: clamp(1.2rem, 1.62vw, 1.56rem);
    line-height: 1.22;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.zodiac-attr-val-arts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: clamp(2px, 0.45vw, 6px);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.zodiac-arts-item {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    min-width: 0;
    white-space: nowrap;
}

.zodiac-arts-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55em;
    padding: 2px 4px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: inherit;
    font-weight: 500;
    line-height: 1.18;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.zodiac-arts-tag-qin {
    color: #b45309;
    background: #fff4d8;
    border-color: #f4d29a;
}

.zodiac-arts-tag-qi {
    color: #166534;
    background: #e8f8ec;
    border-color: #b9e3c4;
}

.zodiac-arts-tag-shu {
    color: #1d4ed8;
    background: #eaf1ff;
    border-color: #bdd0ff;
}

.zodiac-arts-tag-hua {
    color: #7c3aed;
    background: #f3ecff;
    border-color: #d8c6ff;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-line,
.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-line {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 1px solid #d2d6dc;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-line {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 6px;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-line:last-child,
.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-line:last-child {
    border-bottom: 0;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-label,
.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-key {
    justify-self: center;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-value,
.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-val {
    justify-self: start;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-line {
    grid-template-columns: auto auto;
    column-gap: 12px;
    justify-content: center;
    min-height: 42px;
    padding: 6px 10px;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-val {
    justify-self: center;
    text-align: center;
}

.zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-val:first-child:last-child {
    grid-column: 1 / -1;
    justify-self: center;
}

@media (max-width: 720px) {
    .zodiac-ref-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zodiac-reference-card .zodiac-ref-item:nth-child(3n) {
        border-right: 1px solid #d2d6dc;
    }

    .zodiac-reference-card .zodiac-ref-item:nth-last-child(-n+3) {
        border-bottom: 1px solid #d2d6dc;
    }

    .zodiac-reference-card .zodiac-ref-item:nth-child(2n) {
        border-right: 1px solid #d2d6dc;
    }

    .zodiac-reference-card .zodiac-ref-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #d2d6dc;
    }

    .zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list,
    .zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list {
        gap: 0;
        padding: 0;
    }

    .zodiac-reference-card .zodiac-ref-grid {
        gap: 6px;
    }

    .zodiac-ref-item {
        padding: 5px 4px 6px;
    }

    .zodiac-ref-head {
        gap: 1px;
        font-size: 0.9rem;
    }

    .zodiac-ref-head > span[aria-hidden="true"] {
        width: 1.12em;
        min-width: 1.12em;
        height: 1.12em;
        margin: 0;
        font-size: 2.65em;
        text-align: center;
    }

    .zodiac-code {
        width: 21px;
        min-width: 21px;
        height: 21px;
        padding: 0;
        font-size: 0.9rem;
        border-radius: 4px;
    }

    .zodiac-ref-grid .zodiac-code {
        width: 20px;
        min-width: 20px;
        height: 20px;
        font-size: 0.86rem;
    }

    .zodiac-ref-grid .zodiac-ref-item:first-child .zodiac-code {
        width: 19px;
        min-width: 19px;
        height: 19px;
        font-size: 0.82rem;
    }

    .zodiac-ref-codes {
        margin-top: 4px;
        gap: 2px;
        flex-wrap: wrap;
        white-space: normal;
    }

    .zodiac-ref-grid .zodiac-ref-codes {
        gap: 2px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .zodiac-ref-title {
        font-size: 1.32rem;
        padding: 8px 10px;
    }

    .zodiac-ref-line {
        padding: 5px 7px;
    }

    .zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-line,
    .zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-line {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 6px;
        min-height: 30px;
        padding: 4px 6px;
    }

    .zodiac-reference-card .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-line {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 4px;
    }

    .zodiac-reference-card .zodiac-ref-title + .zodiac-attr-list .zodiac-attr-line {
        grid-template-columns: auto auto;
        column-gap: 8px;
        min-height: 36px;
        padding: 5px 6px;
    }

    .zodiac-ref-label {
        width: 44px;
        flex-basis: 44px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 0.98rem;
    }

    .zodiac-reference-card > .zodiac-ref-grid + .zodiac-ref-title + .zodiac-ref-list + .zodiac-ref-title + .zodiac-ref-list + .zodiac-ref-title + .zodiac-ref-list .zodiac-ref-label.label-blue {
        width: 56px;
        min-width: 56px;
        flex-basis: 56px;
        padding-right: 3px;
        padding-left: 3px;
    }

    .zodiac-attr-line {
        flex-wrap: nowrap;
        gap: 0 6px;
        padding: 4px 6px;
    }

    .zodiac-attr-key,
    .zodiac-attr-val {
        font-size: 0.98rem;
    }

    .zodiac-attr-val-arts {
        gap: 2px;
    }

    .zodiac-arts-item {
        gap: 1px;
    }

    .zodiac-arts-tag {
        min-width: 1.5em;
        padding: 2px 3px;
        border-radius: 7px;
    }
}
.lottery-ball { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.95rem; color: white; text-shadow: none; flex-shrink: 0; }
.result-jl-card { border: 1px solid #ebebeb; border-radius: 10px; padding: 12px; }
.result-jl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; font-size: 14px; }
.result-jl-period { display: flex; align-items: center; gap: 10px; }
.result-jl-expect { font-size: 2.7rem; font-weight: 900; color: #dc2626; line-height: 1; letter-spacing: 0.5px; }
.result-jl-title { font-size: 2rem; font-weight: 500; color: #374151; line-height: 1; }
.result-jl-open-time { color: #6b7280; font-size: 1.05rem; }
.result-jl-content { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; }
.result-jl-code {
    font-size: 1.95rem;
    width: 2.85rem;
    height: 2.85rem;
    text-align: center;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    border-radius: 999px;
    border: 3px solid transparent;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.98) 0 30%, rgba(255, 255, 255, 0.82) 40%, rgba(245, 248, 255, 0.55) 56%, rgba(220, 230, 245, 0.15) 75%, rgba(220, 230, 245, 0) 100%),
        linear-gradient(145deg, #ffffff 0%, #e2ecff 48%, #f8fbff 100%);
    box-shadow: none;
    text-shadow: none;
}
.result-jl-code.red {
    border-color: #ef4444;
    color: #dc2626;
    box-shadow: none;
}
.result-jl-code.green {
    border-color: #22c55e;
    color: #16a34a;
    box-shadow: none;
}
.result-jl-code.blue {
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: none;
}
.result-jl-code.special { background: #eab308; border-radius: 999px; color: #111827; text-shadow: none; }
.result-jl-plus { font-size: 3rem; color: #cfd8e3; font-weight: 500; line-height: 1; margin: 0 2px; text-shadow: none; }
.result-jl-summary { text-align: center; margin-top: 14px; color: #6b7280; font-size: 1.05rem; }

@media (min-width: 721px) {
    .section-title + .grid .ad-item {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.45;
    }

    .expert-item-main .issue-prefix {
        font-size: 18px;
    }

    .expert-item-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.35;
    }

    .data-frame.space-y-3 > .flex > span:first-child {
        font-size: 1.14rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .data-frame.space-y-3 > .flex > span:last-child {
        font-size: 1.02rem;
        font-weight: 700;
    }
}

@media (min-width: 640px) {
    .section-title { font-size: 1.25rem; padding: 12px 20px; }
    .lottery-ball { width: 42px; height: 42px; font-size: 1.1rem; }
    .data-frame { padding: 18px; }
}

.scrolling-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.55;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.scrolling-track {
    display: inline-block;
    white-space: nowrap;
    min-width: max-content;
    animation: notice-marquee 42s linear infinite;
    backface-visibility: hidden;
}

.scrolling-track span {
    display: inline-block;
    padding-right: 40px;
}

@keyframes notice-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.calendar-panel {
    box-sizing: border-box;
    margin: 10px 6px 0;
    padding: 10px 16px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.calendar-col {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 19px 38px 21px;
    align-items: center;
    justify-items: center;
    min-width: 0;
    padding: 0 4px;
    text-align: center;
}

.calendar-col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    bottom: 8px;
    width: 1px;
    background: #e5e7eb;
}

.calendar-label {
    color: #6b7280;
    font-size: 13px;
    line-height: 19px;
    margin-bottom: 0;
    white-space: nowrap;
}

.calendar-support-line {
    margin-top: 0;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0;
    color: #4b5563;
    text-align: center;
    white-space: nowrap;
}

.calendar-time,
.calendar-solar-date,
.calendar-lunar-text {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    font-size: 22px;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

.calendar-time {
    color: #b91c1c;
}

.calendar-date-line {
    white-space: nowrap;
}

.calendar-date-main {
    font-size: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

#live-weekday {
    color: #2563eb;
}

.calendar-solar-date {
    color: #f59e0b;
}

.calendar-solar-year {
    font-size: 15px;
    font-weight: 500;
    line-height: 21px;
    white-space: nowrap;
}

.calendar-lunar-text {
    color: #dc2626;
}

.calendar-lunar-meta {
    gap: 0;
}

.calendar-lunar-meta > * {
    display: inline-block;
    flex: 0 0 auto;
    font-size: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

#lunar-sha {
    color: #16a34a;
}

#lunar-chong {
    color: #9333ea;
}

.calendar-lunar-meta-separator {
    margin: 0 4px;
    color: inherit;
    font-weight: inherit;
}

@media (max-width: 720px) {
    .page-frame {
        width: 100%;
        min-height: auto;
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
        box-shadow: none;
    }
    .bottom-float-nav {
        left: var(--page-side-gap);
        right: var(--page-side-gap);
        width: auto;
        max-width: none;
        transform: none;
        gap: 5px;
        padding: 7px 6px;
        border-radius: 15px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: linear-gradient(145deg, rgba(4, 34, 80, 0.98) 0%, rgba(10, 56, 122, 0.99) 52%, rgba(4, 32, 86, 0.98) 100%);
    }

    .bottom-float-nav::after {
        display: none;
    }

    .bottom-nav-link {
        font-size: 12px;
        letter-spacing: 0;
        padding: 6px 2px 4px;
    }

    .bottom-nav-link i {
        width: 29px;
        height: 29px;
        border-radius: 9px;
        font-size: 15px;
    }

    .bottom-nav-unread {
        top: 7px;
        left: calc(50% + 13px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
        line-height: 1;
        transform: translate(-50%, -50%);
    }

    .bottom-nav-link::after {
        left: 16%;
        right: 16%;
    }

    .marquee {
        font-size: 15px;
        line-height: 1.5;
        padding: 10px 12px;
    }

    .marquee-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .section-title + .grid .ad-item {
        min-height: 44px;
        padding: 6px 10px !important;
    }

    .section-title + .grid {
        gap: 7px !important;
    }

    .top-bar {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0 0 14px 14px;
        border-left: 0;
        border-right: 0;
    }

    .top-bar-inner {
        min-height: 70px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        overflow: visible;
    }

    .top-brand {
        flex-shrink: 1 !important;
        flex: 1 1 auto !important;
        min-width: 0;
        max-width: calc(100% - 104px);
        flex-wrap: nowrap !important;
    }

    .top-brand-copy {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    .top-brand-title {
        display: flex;
        align-items: baseline;
        gap: 2px;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .top-brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .top-brand-mark.top-brand-mark-has-image .top-brand-mark-image {
        transform: translateY(1px) scale(1);
        transform-origin: center center;
    }

    .top-brand-mark i {
        font-size: 16px;
    }

    .top-brand-mark span {
        height: 14px;
        font-size: 9px;
        line-height: 12px;
    }

    .top-brand-name-main,
    .top-brand-name-accent {
        font-size: clamp(1.34rem, 4.9vw, 1.75rem) !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: keep-all;
    }

    .top-brand-domain {
        font-size: clamp(9px, 2.5vw, 11px) !important;
        letter-spacing: 0.24px;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: keep-all;
    }

    .top-bar-spacer {
        height: 80px;
    }

    .top-action-btn {
        width: 104px;
        min-width: 104px;
        flex: 0 0 104px;
        height: 40px;
        padding: 0 8px;
        gap: 5px;
        font-size: 14px !important;
    }

    .top-action-btn.top-action-download {
        gap: 5px;
    }

    .top-action-btn.top-action-download i {
        width: 19px;
        height: 19px;
        font-size: 11px;
    }

    .result-jl-expect { font-size: 2rem; }
    .result-jl-title { font-size: 1.45rem; }
    .result-jl-open-time { font-size: 0.9rem; }
    .result-jl-code { width: 2.35rem; height: 2.35rem; font-size: 1.5rem; }
    .result-jl-plus { font-size: 2.3rem; }
    .result-jl-summary { font-size: 1.05rem; }
    .hero-banner {
        min-height: 315px !important;
        padding: 14px 0 18px;
    }
    .hero-live-box {
        margin-top: 16px;
        padding: 10px 7px 8px;
        border-radius: 16px;
    }
    .hero-live-box.is-floating {
        left: 50%;
        transform: translateX(-50%);
        width: min(var(--hero-live-float-width, 680px), calc(100% - 12px));
        top: var(--hero-live-float-top, 72px);
        padding: 2px;
        border-radius: 12px;
        gap: 5px;
    }

    .hero-live-head {
        display: grid;
        grid-template-columns: minmax(0, 44%) minmax(0, 56%);
        align-items: center;
        gap: clamp(5px, 1.8vw, 7px);
    }
    .hero-live-left {
        display: grid;
        grid-template-columns: clamp(50px, 14.5vw, 54px) minmax(0, 1fr);
        align-items: center;
        gap: clamp(5px, 1.8vw, 7px);
        min-width: 0;
        overflow: visible;
        flex: unset;
    }
    .hero-live-badge {
        font-size: clamp(10px, 2.55vw, 10.8px);
        width: clamp(50px, 14.5vw, 54px);
        min-width: clamp(50px, 14.5vw, 54px);
        height: clamp(28px, 7.8vw, 30px);
        justify-content: center;
        gap: 0;
        padding: 0 clamp(3px, 1.1vw, 4px);
    }
    .hero-live-period {
        display: block;
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        font-size: clamp(15px, 4.35vw, 16.2px);
        line-height: 1.08;
        letter-spacing: -0.02em;
    }
    .hero-live-time {
        font-size: clamp(10.6px, 2.95vw, 11.2px);
        padding: 5px clamp(7px, 2vw, 9px);
        width: 100%;
        min-width: 0;
        max-width: none;
        text-align: center;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        justify-self: stretch;
        justify-content: center;
        line-height: 1.1;
    }
    .hero-live-numbers {
        display: flex;
        gap: 6px;
        padding: 9px 9px 8px;
        flex-wrap: nowrap;
        justify-content: center;
        overflow: hidden;
        align-items: flex-start;
        border-radius: 13px;
    }
    .hero-ball-item { gap: 3px; min-width: 34px; }
    .hero-ball-zodiac { font-size: 13.5px; }
    .hero-live-numbers .result-jl-code {
        width: 2.28rem;
        height: 2.28rem;
        font-size: 1.46rem;
        border-width: 2px;
    }
    .hero-live-numbers .result-jl-plus {
        font-size: 1.72rem;
        margin: 0;
    }
    .hero-live-numbers .hero-ball-plus {
        height: 2.28rem;
    }
    .hero-live-meta {
        margin-top: 5px;
        column-gap: 14px;
        row-gap: 4px;
        font-size: 14px;
        line-height: 1.32;
    }
}

@media (max-width: 390px) {
    .page-frame {
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .top-bar {
        border-radius: 0 0 12px 12px;
    }

    .top-bar-inner {
        min-height: 64px;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .top-brand {
        gap: 8px !important;
        flex-shrink: 1 !important;
        flex: 1 1 auto !important;
        min-width: 0;
        max-width: calc(100% - 98px);
        flex-wrap: nowrap !important;
    }

    .top-brand-copy,
    .top-brand-title {
        min-width: 0;
        overflow: visible !important;
        white-space: nowrap !important;
        text-overflow: clip !important;
    }

    .top-brand-mark {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 12px;
    }

    .top-brand-mark.top-brand-mark-has-image .top-brand-mark-image {
        transform: translateY(1.5px) scale(1);
        transform-origin: center center;
    }

    .top-brand-mark i {
        font-size: 14px;
        transform: translateY(-2px);
    }

    .top-brand-mark span {
        min-width: 23px;
        height: 13px;
        font-size: 8px;
        line-height: 11px;
        bottom: 1px;
    }

    .top-brand-name-main,
    .top-brand-name-accent {
        font-size: clamp(1.16rem, 6vw, 1.42rem) !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: keep-all;
    }

    .top-brand-domain {
        margin-top: 2px;
        font-size: clamp(8px, 2.7vw, 9px) !important;
        letter-spacing: 0.16px;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: keep-all;
    }

    .top-action-btn {
        width: 96px;
        min-width: 96px;
        flex: 0 0 96px;
    }

    .top-bar-spacer {
        height: 72px;
    }

    .bottom-float-nav {
        gap: 4px;
        padding: 6px 5px;
    }

    .bottom-nav-link {
        font-size: 11px;
        gap: 2px;
        padding: 5px 1px 4px;
    }

    .bottom-nav-link i {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 14px;
    }

    .bottom-nav-unread {
        top: 6px;
        left: calc(50% + 12px);
        min-width: 17px;
        height: 17px;
        padding: 0 5px;
        font-size: 9px;
        line-height: 1;
        transform: translate(-50%, -50%);
    }

    .bottom-nav-link::after {
        height: 2.5px;
    }

    .section-title + .grid .ad-item {
        min-height: 40px;
        padding: 5px 9px !important;
        border-radius: 9px !important;
    }

    .section-title + .grid {
        gap: 6px !important;
    }

    .hero-banner {
        min-height: 280px !important;
        padding: 12px 0 16px;
    }

    .calendar-panel {
        padding: 8px 8px;
    }

    .calendar-lunar-meta-separator {
        margin: 0 1px;
    }

    .top-action-btn {
        width: 98px;
        min-width: 98px;
        flex: 0 0 98px;
        height: 36px;
        padding: 0 6px;
        font-size: 12px !important;
    }

    .top-action-btn.top-action-download {
        gap: 4px;
    }

    .top-action-btn.top-action-download i {
        width: 17px;
        height: 17px;
        font-size: 10px;
    }

    .hero-live-badge {
        font-size: 10.2px;
        width: 52px;
        min-width: 52px;
        height: 26px;
        justify-content: center;
        gap: 0;
        padding: 0 2px;
    }

    .hero-live-box.is-floating {
        left: 50%;
        transform: translateX(-50%);
        width: min(var(--hero-live-float-width, 680px), calc(100% - 10px));
        padding: 2px;
        gap: 5px;
    }

    .hero-live-head {
        grid-template-columns: minmax(0, calc(40.5% - 4px)) minmax(0, calc(59.5% + 4px));
        gap: clamp(2px, 1.15vw, 4px);
    }

    .hero-live-left {
        grid-template-columns: clamp(48px, 14vw, 52px) minmax(0, 1fr);
        gap: clamp(2px, 1.15vw, 4px);
        overflow: visible;
    }

    .hero-live-period {
        display: block;
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        font-size: clamp(15.8px, calc(4.22vw + 1px), 16.9px);
        line-height: 1.08;
        letter-spacing: -0.022em;
    }

    .hero-live-time {
        font-size: clamp(9.8px, 2.75vw, 10.2px);
        padding: 4px clamp(9px, 2.35vw, 10px);
        width: 100%;
        min-width: 0;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        text-align: center;
        justify-self: stretch;
        justify-content: center;
        line-height: 1.1;
    }

    .hero-live-numbers {
        display: flex;
        gap: 4px;
        padding: 8px 6px 7px;
    }
    .hero-ball-zodiac { font-size: 12px; }

    .hero-live-numbers .result-jl-code {
        width: 1.98rem;
        height: 1.98rem;
        font-size: 1.26rem;
    }

    .hero-live-numbers .result-jl-plus {
        font-size: 1.46rem;
    }
    .hero-live-numbers .hero-ball-plus {
        height: 1.98rem;
    }

    .hero-live-meta {
        margin-top: 4px;
        column-gap: 10px;
        row-gap: 3px;
        font-size: 13px;
        line-height: 1.26;
    }
}

@media (min-width: 391px) and (max-width: 480px) {
    [data-region="macau"] #section-live .hero-live-head,
    [data-region="hongkong"] #section-live .hero-live-head {
        grid-template-columns: minmax(0, calc(44% - 3px)) minmax(0, calc(56% + 3px));
        gap: clamp(2px, 1.15vw, 4px);
    }

    [data-region="macau"] #section-live .hero-live-left,
    [data-region="hongkong"] #section-live .hero-live-left {
        gap: clamp(2px, 1.15vw, 4px);
    }

    [data-region="macau"] #section-live .hero-live-badge,
    [data-region="hongkong"] #section-live .hero-live-badge {
        width: clamp(50px, 14vw, 54px);
        min-width: clamp(50px, 14vw, 54px);
        height: clamp(26px, 7.1vw, 29px);
        padding: 0 clamp(2px, 0.9vw, 4px);
        font-size: clamp(9.8px, 2.35vw, 10.4px);
    }

    [data-region="macau"] #section-live .hero-live-period,
    [data-region="hongkong"] #section-live .hero-live-period {
        font-size: clamp(14.6px, calc(3.55vw + 1px), 16.2px);
        line-height: 1.06;
        letter-spacing: -0.035em;
    }

    [data-region="macau"] #section-live .hero-live-time,
    [data-region="hongkong"] #section-live .hero-live-time {
        min-height: clamp(27px, 6.3vw, 31px);
        font-size: clamp(10.4px, 2.85vw, 11px);
        padding: 0 clamp(9px, 2.25vw, 11px);
        width: 100%;
        justify-self: stretch;
        letter-spacing: -0.02em;
    }
}

/* Customer service */
html:has(body.customer-service-body) {
    overflow: hidden;
}

body.customer-service-body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

body.customer-service-body .page-frame {
    box-sizing: border-box;
    display: flex;
    height: 100vh;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

body.customer-service-body .top-bar-spacer {
    flex: 0 0 auto;
}

.customer-service-page {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.customer-service-page .section-title {
    flex: 0 0 auto;
}

.customer-service-phone {
    display: flex;
    width: min(100%, 760px);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    flex: 1 1 auto;
    flex-direction: column;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: #eef1f5;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.customer-service-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(13, 148, 136, 0.32);
    background: linear-gradient(90deg, #10b981, #14b8a6);
}

.customer-service-head-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.customer-service-avatar {
    display: inline-flex;
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #22c55e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.customer-service-avatar-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.customer-service-avatar-state {
    position: absolute;
    left: 50%;
    bottom: -5px;
    display: inline-flex;
    min-width: 30px;
    height: 13px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    border: 0.5px solid #f8fafc;
    background: #16a34a;
    color: #ffffff;
    font-size: 7px;
    font-weight: 900;
    line-height: 9px;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: 0 5px 10px rgba(22, 101, 52, 0.22);
}

.customer-service-head-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.customer-service-avatar-state[data-status-type="typing"] {
    background: #f59e0b;
}

.customer-service-avatar-state[data-status-type="online"] {
    background: #16a34a;
}

.customer-service-avatar-state[data-status-type="offline"] {
    border-color: #fde68a;
    background: #fef3c7;
    color: #92400e;
}

.customer-service-avatar-state[data-status-type="image"] {
    background: #0ea5e9;
}

.customer-service-avatar-state[data-status-type="voice"] {
    background: #8b5cf6;
}

.customer-service-title {
    flex: 0 0 auto;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.16);
}

.customer-service-subtitle {
    min-width: 0;
    overflow: hidden;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-service-subtitle.is-typing {
    color: #fef3c7;
    font-weight: 800;
}

.customer-service-subtitle[data-status-type="image"] {
    color: #dbeafe;
    font-weight: 800;
}

.customer-service-subtitle[data-status-type="voice"] {
    color: #ede9fe;
    font-weight: 800;
}

.customer-service-icon-btn,
.customer-service-tool-btn,
.customer-service-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.customer-service-icon-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}

.customer-service-activity-notice {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 12px 0;
    padding: 8px 12px;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
    color: #7c2d12;
    box-shadow: 0 8px 18px rgba(251, 146, 60, 0.12);
}

.customer-service-activity-notice[hidden] {
    display: none !important;
}

.customer-service-activity-notice strong {
    flex: 0 0 auto;
    color: #c2410c;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.42;
    white-space: nowrap;
}

.customer-service-activity-notice span {
    min-width: 0;
    color: #7c2d12;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.42;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.customer-service-chat {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    padding: 16px;
    background: #eef1f5;
}

.customer-service-date {
    align-self: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.16);
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.customer-service-system-message {
    display: flex;
    justify-content: center;
    width: 100%;
}

.customer-service-system-pill {
    max-width: min(86%, 520px);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.16);
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: pre-line;
}

.customer-service-message {
    display: flex;
    width: 100%;
}

.customer-service-message.is-self {
    justify-content: flex-end;
}

.customer-service-message.is-pending {
    opacity: 0.72;
}

.customer-service-message.is-peer {
    justify-content: flex-start;
}

.customer-service-bubble-wrap {
    display: grid;
    max-width: min(78%, 440px);
    gap: 5px;
}

.customer-service-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.2;
}

.customer-service-message.is-self .customer-service-meta {
    justify-content: flex-end;
}

.customer-service-bubble {
    overflow-wrap: anywhere;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.55;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.customer-service-message.is-self .customer-service-bubble {
    background: #95ec69;
    border-radius: 8px;
}

.customer-service-bubble.is-emoji {
    padding: 7px 10px;
    font-size: 28px;
    line-height: 1.1;
}

.customer-service-bubble.is-image {
    padding: 4px;
    background: transparent;
    box-shadow: none;
}

.customer-service-image-preview-open {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.customer-service-bubble img {
    display: block;
    max-width: min(260px, 62vw);
    max-height: 360px;
    border-radius: 10px;
    object-fit: cover;
}

body.customer-service-image-preview-modal-open {
    overflow: hidden;
}

.customer-service-image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: grid;
    place-items: center;
    padding: 18px;
}

.customer-service-image-preview-modal[hidden] {
    display: none !important;
}

.customer-service-image-preview-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
}

.customer-service-image-preview-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(92vw, 520px);
    max-height: min(82vh, 620px);
    gap: 10px;
    place-items: center;
    padding: 18px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.28);
}

.customer-service-image-preview-dialog img {
    display: block;
    width: min(100%, 460px);
    max-height: 70vh;
    border-radius: 12px;
    object-fit: contain;
}

.customer-service-image-preview-dialog strong {
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-service-image-preview-close {
    position: absolute;
    top: -12px;
    right: -12px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.26);
    cursor: pointer;
}

.customer-service-voice {
    display: inline-flex;
    min-width: 132px;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.customer-service-bubble audio {
    display: block;
    width: min(240px, 60vw);
    margin-top: 8px;
}

.customer-service-bubble audio::-webkit-media-controls-overflow-button,
.customer-service-bubble audio::-webkit-media-controls-download-button,
.customer-service-bubble audio::-internal-media-controls-download-button {
    display: none !important;
}

.customer-service-empty {
    margin: auto;
    max-width: 320px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

.customer-service-compose {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    z-index: 2;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #d7dee8;
    background: #f8fafc;
}

.customer-service-tools {
    display: flex;
    gap: 6px;
    align-items: center;
    padding-bottom: 2px;
}

.customer-service-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #334155;
    font-size: 15px;
}

.customer-service-tool-btn.is-recording,
.customer-service-tool-btn.is-recording:hover {
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.customer-service-tool-btn[data-service-agent-score-open] {
    background: #fff7ed;
    color: #c2410c;
}

.customer-service-tool-btn[data-customer-service-voice] {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.customer-service-pending {
    grid-column: 1 / -1;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.customer-service-pending[hidden] {
    display: none;
}

.customer-service-pending img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 9px;
    object-fit: cover;
}

.customer-service-pending span {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-service-pending button {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #e2e8f0;
    color: #334155;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.customer-service-input {
    min-height: 38px;
    max-height: 104px;
    resize: none;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1.45;
    outline: none;
}

.customer-service-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.customer-service-send {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #22c55e;
    color: #ffffff;
    font-size: 15px;
}

.customer-service-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.customer-service-emoji-panel {
    position: absolute;
    z-index: 30;
    box-sizing: border-box;
    right: 12px;
    bottom: calc(100% + 8px);
    display: grid;
    width: min(320px, calc(100vw - 32px));
    max-height: min(52vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.customer-service-emoji-panel[hidden] {
    display: none;
}

.customer-service-emoji-panel button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 22px;
}

.customer-service-placeholder {
    display: grid;
    min-height: 420px;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 28px 18px;
    text-align: center;
}

.customer-service-placeholder-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #22c55e;
    color: #ffffff;
    font-size: 24px;
}

.customer-service-placeholder h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.customer-service-placeholder p {
    max-width: 360px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.customer-service-placeholder-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.customer-service-placeholder-actions a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #22c55e;
    color: #ffffff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.customer-service-placeholder-actions a + a {
    background: #0ea5e9;
}

@supports (height: 100dvh) {
    body.customer-service-body {
        height: 100dvh;
    }

    body.customer-service-body .page-frame {
        height: 100dvh;
        min-height: 100dvh;
    }

    .customer-service-page {
        min-height: 0;
    }

    .customer-service-phone {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    body.customer-service-body .page-frame {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .customer-service-page {
        min-height: 0;
        padding-top: 8px;
    }

    .customer-service-phone {
        width: 100%;
        min-height: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .customer-service-head {
        min-height: 44px;
        padding: 5px 10px;
    }

    .customer-service-title {
        font-size: 17px;
    }

    .customer-service-chat {
        padding: 12px 10px;
    }

    .customer-service-bubble-wrap {
        max-width: 84%;
    }

    .customer-service-bubble {
        font-size: 14px;
    }

    .customer-service-compose {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    }

    .customer-service-emoji-panel {
        max-height: min(42vh, 360px);
    }

    .customer-service-tools {
        grid-column: auto;
        flex: 0 0 auto;
        gap: 4px;
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .customer-service-tool-btn {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 14px;
    }

    .customer-service-pending {
        padding: 7px;
    }

    .customer-service-pending img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .customer-service-input {
        min-height: 36px;
        padding: 7px 8px;
        font-size: 14px;
    }

    .customer-service-send {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 9px;
    }
}

@media (max-width: 720px) {
    .front-page-shell {
        padding-top: var(--front-switch-top-gap);
    }

    .front-panel-stack {
        gap: 12px;
    }

    .front-panel-card {
        padding: 14px;
        border-radius: 18px;
    }

    .member-auth-frame {
        padding: 10px !important;
    }

    .member-auth-card {
        padding: 14px;
        border-radius: 16px;
    }

    .member-auth-heading {
        font-size: 20px;
    }

    .member-auth-copy {
        font-size: 12px;
    }

    .member-auth-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
        font-size: 16px;
    }

    .member-auth-tabs {
        margin-top: 12px;
    }

    .member-auth-form {
        gap: 10px;
    }

    .front-action-row,
    .front-detail-actions,
    .front-form-actions,
    .front-chip-row {
        gap: 10px;
    }

    .front-stat-grid,
    .front-form-grid-two {
        grid-template-columns: 1fr;
    }

    .front-inline-meta {
        gap: 8px;
        font-size: 13px;
        line-height: 1.5;
    }

    .front-captcha-grid,
    .front-auth-captcha {
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) 98px 40px;
    }

    .auth-input {
        min-height: 34px;
        border-radius: 8px;
    }

    .member-auth-card .auth-input {
        min-height: 38px;
        border-radius: 10px;
    }

    .member-auth-submit {
        min-height: 40px;
        border-radius: 12px;
    }

    .member-console {
        gap: 8px;
    }

    .member-console-hero {
        gap: 8px;
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
        border-radius: 0;
    }

    .member-console-top {
        gap: 8px;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .member-console-status {
        min-width: 130px;
        padding: 6px 8px;
    }

    .member-console-status strong {
        max-width: 130px;
        font-size: 13px;
    }

    .member-console-info-row {
        gap: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .member-console-score {
        min-height: 42px;
        padding: 0 12px;
        font-size: 19px;
    }

    .member-console-recharge {
        width: min(250px, 72%);
        min-height: 40px;
        border-radius: 12px;
        padding: 0 14px;
        font-size: 15px;
    }

    .member-console-links {
        gap: 7px;
    }

    .member-console-link {
        height: 48px;
        min-height: 48px;
        border-radius: 12px;
        font-size: 12px;
    }

    .member-console-panel {
        min-height: 330px;
    }

    .member-ai-log-panel,
    .member-tab-panel {
        border-radius: 0;
        padding: 0;
    }

    .member-ai-log-card {
        padding: 7px 8px;
        border-radius: 12px;
    }

    .member-about-card,
    .member-profile-card {
        border-radius: 12px;
        padding: 9px;
    }

    .member-about-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 7px;
    }

    .member-about-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 17px;
    }

    .password-input-group,
    .auth-input-group {
        display: block;
    }

    .password-input-group .auth-input,
    .auth-input-group .auth-input {
        padding-right: 50px;
    }

    .password-input-toggle,
    .auth-input-toggle {
        right: 8px;
        width: 30px;
        height: 30px;
    }

    .history-draw-card-rich {
        padding: 11px 10px;
    }

    .history-list-header {
        gap: 10px;
    }

    .history-list-back-btn {
        min-height: 34px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 12px;
        box-shadow: 0 7px 16px rgba(249, 115, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }

    .history-draw-head {
        gap: 8px;
    }

    .history-draw-date {
        font-size: 14px;
    }

    .history-draw-rows {
        gap: 4px;
    }

    .history-draw-balls,
    .history-draw-zodiacs {
        grid-template-columns: repeat(6, 34px) 13px 34px;
        column-gap: 3px;
    }

    .history-draw-ball-num {
        width: 34px;
        max-width: 34px;
        font-size: 0.94rem;
        box-shadow: 0 5px 10px rgba(148, 163, 184, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94);
    }

    .history-draw-ball-zodiac {
        font-size: 0.8rem;
    }

    .history-draw-plus {
        min-width: 13px;
        font-size: 1.18rem;
    }

    .history-draw-zodiac-spacer {
        min-width: 13px;
    }
}

@media (max-width: 390px) {
    .front-page-shell {
        padding-top: var(--front-switch-top-gap);
    }

    .front-panel-card {
        padding: 12px;
        border-radius: 16px;
    }

    .front-action-row,
    .front-detail-actions,
    .front-form-actions,
    .front-chip-row,
    .front-list-stack {
        gap: 8px;
    }

    .front-inline-meta {
        gap: 6px;
        font-size: 12px;
        line-height: 1.45;
    }

    .front-captcha-grid,
    .front-auth-captcha {
        grid-template-columns: minmax(0, 1fr) 92px 38px;
        gap: 6px;
    }

    .auth-captcha-code {
        width: 92px;
        height: 38px;
        border-radius: 11px;
    }

    .auth-input {
        min-height: 34px;
        border-radius: 8px;
    }

    .member-auth-frame {
        padding: 8px !important;
    }

    .member-auth-card {
        padding: 12px;
        border-radius: 14px;
    }

    .member-auth-head {
        gap: 10px;
    }

    .member-auth-heading {
        font-size: 19px;
    }

    .member-auth-kicker,
    .member-auth-label {
        font-size: 12px;
    }

    .member-auth-card .auth-input {
        min-height: 38px;
        border-radius: 10px;
        font-size: 13px;
    }

    .member-auth-submit {
        min-height: 40px;
    }

    .member-console-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding: 0;
    }

    .member-console-top {
        gap: 6px;
        padding: 8px 9px;
    }

    .member-console-main {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
    }

    .member-console-avatar {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 20px;
    }

    .member-console-avatar-level {
        right: -4px;
        bottom: -5px;
        min-width: 18px;
        height: 16px;
        padding: 0 4px;
        font-size: 9px;
    }

    .member-console-name {
        font-size: 18px;
    }

    .member-console-meta {
        gap: 4px;
    }

    .member-console-meta span {
        min-height: 21px;
        padding: 0 7px;
        font-size: 11px;
    }

    .member-console-info-row {
        gap: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .member-console-score {
        min-height: 40px;
        padding: 0 10px;
        font-size: 18px;
    }

    .member-console-status {
        min-width: 118px;
        padding: 5px 7px;
    }

    .member-console-status span {
        font-size: 11px;
    }

    .member-console-status strong {
        max-width: 118px;
        font-size: 12px;
    }

    .member-console-actions {
        gap: 6px;
        grid-template-columns: minmax(0, 1fr);
    }

    .member-console-recharge {
        width: min(220px, 72%);
        min-height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .member-console-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .member-console-link {
        height: 46px;
        min-height: 46px;
        gap: 4px;
        border-radius: 11px;
        font-size: 11px;
    }

    .member-console-panel {
        min-height: 320px;
    }

    .member-console-link i {
        font-size: 14px;
    }

    .member-ai-log-head h2,
    .member-tab-head h2 {
        font-size: 17px;
    }

    .member-about-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .member-about-icon {
        width: 38px;
        height: 38px;
    }

    .member-profile-title,
    .member-about-title {
        font-size: 13px;
    }

    .password-input-group,
    .auth-input-group {
        display: block;
    }

    .password-input-group .auth-input,
    .auth-input-group .auth-input {
        padding-right: 46px;
    }

    .password-input-toggle,
    .auth-input-toggle {
        right: 6px;
        width: 28px;
        height: 28px;
    }

    .history-draw-card-rich {
        padding: 10px 9px;
    }

    .history-list-header {
        gap: 8px;
    }

    .history-list-back-btn {
        min-height: 32px;
        padding: 0 12px;
        border-radius: 11px;
        font-size: 12px;
        box-shadow: 0 6px 14px rgba(249, 115, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    .history-draw-rows {
        gap: 4px;
    }

    .history-draw-balls,
    .history-draw-zodiacs {
        grid-template-columns: repeat(6, 32px) 11px 32px;
        column-gap: 3px;
    }

    .history-draw-ball-num {
        width: 32px;
        max-width: 32px;
        font-size: 0.88rem;
        box-shadow: 0 4px 8px rgba(148, 163, 184, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    .history-draw-ball-zodiac {
        font-size: 0.76rem;
    }

    .history-draw-plus {
        min-width: 11px;
        font-size: 1.08rem;
    }

    .history-draw-zodiac-spacer {
        min-width: 11px;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
    html {
        overflow-x: hidden;
        scrollbar-gutter: stable;
    }

    body {
        overflow-x: hidden;
        text-rendering: optimizeSpeed;
        -webkit-tap-highlight-color: transparent;
    }

    .page-frame {
        width: 100%;
        max-width: var(--page-max-width);
        min-width: 0;
        overflow-x: hidden;
        contain: layout paint;
        transform: none;
    }

    .page-frame > section,
    .page-frame > .marquee {
        max-width: var(--page-inner-width);
        contain: layout paint;
    }

    .top-bar,
    .bottom-float-nav {
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: auto;
        contain: layout paint;
    }

    .top-bar {
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--page-max-width);
        margin-right: auto;
        margin-left: auto;
        transform: none;
        box-shadow: none;
    }

    .top-bar::after,
    .bottom-float-nav::after {
        display: none !important;
        animation: none !important;
    }

    .top-brand-mark,
    .top-brand-mark.top-brand-mark-has-image,
    .bottom-nav-link.is-active i {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }

    .top-action-btn,
    .bottom-nav-link,
    .bottom-nav-link i,
    .bottom-nav-link::after,
    .hero-live-box,
    .ad-item,
    .forum-card,
    .front-chip,
    .customer-service-icon-btn,
    .customer-service-tool-btn,
    .customer-service-send {
        transition: none !important;
    }

    .bottom-float-nav {
        left: var(--page-side-gap);
        right: var(--page-side-gap);
        bottom: calc(2px + env(safe-area-inset-bottom));
        width: auto;
        max-width: none;
        min-height: 64px;
        transform: none;
        gap: 5px;
        padding: 7px 6px;
        border-radius: 15px;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .bottom-nav-link {
        min-height: 50px;
        transform: none !important;
    }

    .bottom-nav-link:hover,
    .bottom-nav-link:hover i {
        transform: none;
    }

    .bottom-nav-link.is-active {
        box-shadow: none;
    }

    .bottom-nav-link.is-active::after {
        transform: none;
    }

    .hero-live-box.is-floating {
        transform: translateX(-50%);
        will-change: auto;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
    .page-frame {
        contain: none !important;
        overflow-x: hidden;
        min-height: 100dvh;
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .page-frame > .forecast-page {
        contain: none !important;
        overflow: visible !important;
    }

    .top-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: var(--page-max-width) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        transform: none !important;
        z-index: 9999 !important;
        overflow: hidden;
    }

    .bottom-float-nav {
        position: fixed !important;
        left: var(--page-side-gap) !important;
        right: var(--page-side-gap) !important;
        bottom: calc(2px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        z-index: 9999 !important;
        overflow: hidden;
    }
}

.forecast-page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.forecast-section-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.forecast-section-title-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.forecast-section-title-main i {
    flex: 0 0 auto;
    font-size: 22px;
}

.forecast-region-switch {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.forecast-region-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 38px;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.forecast-region-tab.is-active {
    border-color: #ffffff;
    background: #ffffff;
    color: #ea580c;
    box-shadow: 0 8px 18px rgba(124, 45, 18, 0.14);
}

.forecast-region-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.forecast-region-tab.is-active .forecast-region-mark {
    background: #ffedd5;
}

.forecast-stack {
    gap: 16px;
    padding: 18px;
}

.forecast-live-slot {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2px 0 8px;
}

.forecast-live-slot .hero-live-box {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.forecast-card {
    border-color: #dbe4ef;
    border-radius: 20px;
    background: #f8fafc;
    padding: 18px;
    box-shadow: none;
}

.forecast-card-primary {
    background: #fbfdff;
}

.forecast-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.forecast-hero-copy {
    min-width: 0;
}

.forecast-card-title {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
}

.forecast-card-desc {
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}

.forecast-generate-form {
    flex: 0 0 auto;
}

.forecast-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.18);
}

.forecast-stat-grid {
    margin-top: 16px;
    gap: 14px;
}

.forecast-stat-card {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 102px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    text-align: center;
}

.forecast-stat-card-issue {
    border-color: #fed7aa;
    background: #fff7ed;
}

.forecast-stat-card-members {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.forecast-stat-card-visits {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.forecast-stat-label {
    width: 100%;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.forecast-stat-card-issue .forecast-stat-label {
    color: #ea580c;
}

.forecast-stat-card-members .forecast-stat-label {
    color: #059669;
}

.forecast-stat-card-visits .forecast-stat-label {
    color: #0284c7;
}

.forecast-stat-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 2px;
    width: 100%;
    margin-top: 10px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.forecast-stat-number {
    font-size: 26px;
    line-height: 1;
}

.forecast-result-card {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #facc15;
    border-radius: 20px;
    background: #fffbeb;
}

.forecast-block-title {
    color: #be123c;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.forecast-block-title-dark {
    color: #0f172a;
}

.forecast-result-summary {
    margin-top: 12px;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.95;
}

.forecast-number-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.forecast-number-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: #ef4444;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.forecast-confidence {
    margin-top: 14px;
    color: #475569;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
}

.forecast-list-stack {
    gap: 12px;
    margin-top: 14px;
}

.forecast-record-card {
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: #ffffff;
}

.forecast-record-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.forecast-record-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.forecast-record-badge-soft {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.forecast-record-issue {
    min-width: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    text-align: right;
}

.forecast-record-summary {
    margin-top: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
}

.forecast-record-numbers {
    margin-top: 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    word-spacing: 6px;
}

.forecast-record-time {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.forecast-draw-card {
    border-color: #fdba74;
}

.forecast-draw-head {
    justify-content: flex-start;
}

.forecast-draw-number-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #fff7ed;
}

.forecast-draw-label {
    color: #ea580c;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    white-space: nowrap;
}

.forecast-draw-numbers {
    min-width: 0;
    color: #f97316;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    word-spacing: 5px;
}

.forecast-draw-date {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.forecast-draw-date span:last-child {
    color: #334155;
}

.forecast-empty {
    padding: 18px;
    border: 1px dashed #fdba74;
    border-radius: 16px;
    background: #ffffff;
    color: #ea580c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
}

@media (max-width: 720px) {
    .forecast-section-title {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        gap: 10px;
        padding: 12px;
    }

    .forecast-section-title-main {
        font-size: 20px;
    }

    .forecast-region-switch {
        justify-content: stretch;
        width: 100%;
    }

    .forecast-region-tab {
        flex: 1 1 0;
        min-width: 0;
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .forecast-stack {
        gap: 12px;
        padding: 12px;
    }

    .forecast-card {
        padding: 14px;
        border-radius: 18px;
    }

    .forecast-hero-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .forecast-card-title {
        font-size: 19px;
    }

    .forecast-card-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .forecast-generate-form,
    .forecast-generate-btn {
        width: 100%;
    }

    .forecast-stat-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 14px;
    }

    .forecast-stat-card {
        min-height: 86px;
        padding: 14px;
    }

    .forecast-stat-value {
        margin-top: 8px;
        font-size: 14px;
    }

    .forecast-stat-number {
        font-size: 24px;
    }

    .forecast-result-card {
        margin-top: 14px;
        padding: 14px;
        border-radius: 18px;
    }

    .forecast-result-summary {
        font-size: 14px;
        line-height: 1.85;
    }

    .forecast-record-head {
        align-items: flex-start;
    }

    .forecast-record-issue {
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .forecast-section-title {
        padding: 10px;
    }

    .forecast-section-title-main {
        font-size: 19px;
    }

    .forecast-region-tab {
        gap: 6px;
        min-height: 34px;
        font-size: 12px;
    }

    .forecast-region-mark {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        font-size: 12px;
    }

    .forecast-stack {
        padding: 10px;
    }

    .forecast-card {
        padding: 12px;
        border-radius: 16px;
    }

    .forecast-card-title {
        font-size: 18px;
    }

    .forecast-generate-btn {
        min-height: 42px;
        border-radius: 15px;
        font-size: 13px;
    }

    .forecast-number-row {
        gap: 8px;
    }

    .forecast-number-pill {
        min-width: 42px;
        min-height: 34px;
        padding: 0 10px;
        font-size: 14px;
    }

    .forecast-record-card {
        padding: 12px;
        border-radius: 16px;
    }

    .forecast-draw-number-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .forecast-draw-date {
        gap: 12px;
        font-size: 13px;
    }
}

.forecast-section-title,
.customer-service-section-title,
.member-section-title {
    box-sizing: border-box !important;
    min-height: 44px !important;
    margin-bottom: 0 !important;
    padding: 6px 16px !important;
    border-radius: 8px 8px 0 0 !important;
}

.customer-service-section-title,
.member-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.member-section-title-main {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.member-title-logout {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.22);
}

.member-title-logout:hover {
    filter: saturate(1.04);
}

.customer-service-section-title i,
.member-section-title i {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

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

.forecast-section-title-main {
    align-items: center !important;
    gap: 8px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
}

.forecast-section-title-main i {
    font-size: 20px !important;
}

.forecast-region-switch {
    gap: 8px !important;
}

.forecast-region-tab {
    min-width: 88px !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    gap: 7px !important;
    font-size: 13px !important;
}

.forecast-region-mark {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
    font-size: 12px !important;
}

.forecast-section-title + .forecast-stack,
.member-section-title + .data-frame {
    margin-top: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
}

.customer-service-section-title + .customer-service-phone {
    margin-top: 0;
}

@media (max-width: 720px) {
    .forecast-section-title,
    .customer-service-section-title,
    .member-section-title {
        min-height: 44px !important;
        padding: 6px 12px !important;
    }

    .forecast-section-title {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
    }

    .forecast-section-title-main,
    .customer-service-section-title,
    .member-section-title {
        font-size: 18px !important;
    }

    .forecast-section-title-main i,
    .customer-service-section-title i,
    .member-section-title i {
        font-size: 18px !important;
    }

    .forecast-region-switch {
        width: auto !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    .forecast-region-tab {
        flex: 0 0 auto !important;
        min-width: 76px !important;
        min-height: 32px !important;
        padding: 0 8px !important;
        gap: 5px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 390px) {
    .forecast-section-title,
    .customer-service-section-title,
    .member-section-title {
        padding: 6px 10px !important;
    }

    .forecast-section-title-main,
    .customer-service-section-title,
    .member-section-title {
        font-size: 17px !important;
    }

    .forecast-region-tab {
        min-width: 70px !important;
        padding: 0 7px !important;
    }
}

.forecast-page {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
}

[data-region="macau"] #section-live .hero-live-period,
[data-region="hongkong"] #section-live .hero-live-period,
[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-period,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-period {
    font-weight: 500 !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code,
[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
    text-align: center !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
    vertical-align: middle !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    font-feature-settings: "lnum" 1, "tnum" 1 !important;
    font-weight: 500 !important;
}

[data-region="macau"] #section-live .hero-ball-zodiac,
[data-region="hongkong"] #section-live .hero-ball-zodiac,
[data-region="macau"] #section-live.hero-live-box.is-floating .hero-ball-zodiac,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-ball-zodiac {
    font-weight: 500 !important;
}

.forecast-stack {
    gap: 14px !important;
    padding: 16px !important;
}

.forecast-card {
    padding: 16px !important;
    border-radius: 16px !important;
    border-color: #dbe4ef !important;
}

.forecast-hero-row {
    gap: 10px !important;
}

.forecast-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.forecast-card-desc {
    margin-top: 3px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.forecast-generate-btn {
    min-width: 112px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.forecast-stat-grid {
    margin-top: 10px !important;
    gap: 8px !important;
}

.forecast-stat-card {
    min-height: 70px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
}

.forecast-stat-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.forecast-stat-value {
    margin-top: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.forecast-stat-number {
    font-size: 22px !important;
}

.forecast-result-card {
    margin-top: 10px !important;
    padding: 12px !important;
    border-radius: 14px !important;
}

.forecast-block-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.forecast-result-summary {
    margin-top: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
}

.forecast-number-row {
    gap: 8px !important;
    margin-top: 10px !important;
}

.forecast-number-pill {
    min-width: 38px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.forecast-confidence {
    margin-top: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.forecast-list-stack {
    gap: 8px !important;
    margin-top: 8px !important;
}

.forecast-record-card {
    padding: 10px !important;
    border-radius: 12px !important;
}

.forecast-record-head {
    gap: 8px !important;
}

.forecast-record-badge {
    min-height: 24px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.forecast-record-issue {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.forecast-record-summary {
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.forecast-record-numbers {
    margin-top: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    word-spacing: 4px !important;
}

.forecast-record-time {
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.forecast-draw-number-row {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding: 8px !important;
    border-radius: 10px !important;
}

.forecast-draw-label,
.forecast-draw-numbers {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.forecast-draw-date {
    gap: 12px !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.forecast-empty {
    padding: 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

@media (max-width: 720px) {
    .forecast-live-slot {
        padding: 2px 0 10px;
    }

    .forecast-stack {
        gap: 14px !important;
        padding: 16px !important;
    }

    .forecast-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .forecast-hero-row {
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .forecast-card-title {
        font-size: 17px !important;
    }

    .forecast-card-desc {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .forecast-generate-form,
    .forecast-generate-btn {
        width: auto !important;
    }

    .forecast-generate-btn {
        min-width: 92px !important;
        min-height: 34px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .forecast-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .forecast-stat-card {
        min-height: 68px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .forecast-stat-label {
        font-size: 12px !important;
    }

    .forecast-stat-value {
        margin-top: 5px !important;
        font-size: 12px !important;
    }

    .forecast-stat-number {
        font-size: 19px !important;
    }

    .forecast-result-card {
        margin-top: 8px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 390px) {
    .forecast-live-slot {
        padding: 2px 0 8px;
    }

    .forecast-stack {
        gap: 12px !important;
        padding: 14px !important;
    }

    .forecast-card {
        padding: 14px !important;
    }

    .forecast-hero-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .forecast-generate-form,
    .forecast-generate-btn {
        width: 100% !important;
    }

    .forecast-stat-card {
        padding: 7px !important;
    }

    .forecast-stat-value {
        font-size: 11px !important;
    }

    .forecast-stat-number {
        font-size: 18px !important;
    }
}

[data-region="macau"] #section-live .hero-live-numbers,
[data-region="hongkong"] #section-live .hero-live-numbers {
    overflow: visible !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.red,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.red {
    --result-ball-accent: #ef4444;
    --result-ball-soft: rgba(239, 68, 68, 0.16);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.green,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.green {
    --result-ball-accent: #22c55e;
    --result-ball-soft: rgba(34, 197, 94, 0.16);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.blue,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.blue {
    --result-ball-accent: #3b82f6;
    --result-ball-soft: rgba(59, 130, 246, 0.16);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.02rem, 7.6vw, 2.5rem) !important;
    height: clamp(2.02rem, 7.6vw, 2.5rem) !important;
    border: 2px solid rgba(255, 255, 255, 0.94) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at center, #ffffff 0 54%, rgba(255, 255, 255, 0.96) 55% 62%, transparent 63%),
        conic-gradient(from 212deg, var(--result-ball-accent) 0 86deg, rgba(255, 255, 255, 0.92) 86deg 110deg, var(--result-ball-accent) 110deg 232deg, rgba(255, 255, 255, 0.9) 232deg 252deg, var(--result-ball-accent) 252deg 360deg) !important;
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.9),
        inset 0 -2px 0 rgba(15, 23, 42, 0.08) !important;
    font-size: clamp(1.24rem, 4.6vw, 1.52rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.02rem, 7.6vw, 2.5rem) !important;
    height: clamp(2.02rem, 7.6vw, 2.5rem) !important;
    border: 2px solid var(--result-ball-accent) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at center, #ffffff 0 50%, var(--result-ball-soft) 51% 57%, #ffffff 58% 100%) !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 5px var(--result-ball-accent),
        0 4px 9px rgba(15, 23, 42, 0.22),
        inset 0 0 0 2px rgba(255, 255, 255, 0.96),
        inset 0 -2px 0 rgba(15, 23, 42, 0.08) !important;
    font-size: clamp(1.24rem, 4.6vw, 1.52rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: clamp(1.56rem, 4.8vw, 1.78rem) !important;
    height: clamp(1.56rem, 4.8vw, 1.78rem) !important;
    font-size: clamp(0.98rem, 3.05vw, 1.1rem) !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.red,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.red {
    --result-ball-body: #f43f5e;
    --result-ball-body-deep: #dc2626;
    --result-ball-body-dark: #991b1b;
    --result-ball-glow: rgba(244, 63, 94, 0.34);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.green,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.green {
    --result-ball-body: #22c55e;
    --result-ball-body-deep: #16a34a;
    --result-ball-body-dark: #047857;
    --result-ball-glow: rgba(34, 197, 94, 0.32);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.blue,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.blue {
    --result-ball-body: #3b82f6;
    --result-ball-body-deep: #2563eb;
    --result-ball-body-dark: #1d4ed8;
    --result-ball-glow: rgba(59, 130, 246, 0.34);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.08rem, 7.8vw, 2.56rem) !important;
    height: clamp(2.08rem, 7.8vw, 2.56rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 42%, rgba(255, 255, 255, 0.98) 43% 47%, transparent 48%),
        radial-gradient(circle at 31% 20%, rgba(255, 255, 255, 0.72) 0 9%, transparent 10%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 38%, var(--result-ball-body-deep) 70%, var(--result-ball-body-dark) 100%) !important;
    box-shadow:
        0 5px 10px rgba(15, 23, 42, 0.24),
        inset 0 2px 0 rgba(255, 255, 255, 0.24),
        inset 0 -5px 9px rgba(15, 23, 42, 0.14) !important;
    font-size: clamp(1.04rem, 3.9vw, 1.26rem) !important;
    font-weight: 550 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.14rem, 8vw, 2.64rem) !important;
    height: clamp(2.14rem, 8vw, 2.64rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 41%, rgba(255, 255, 255, 0.98) 42% 46%, transparent 47%),
        linear-gradient(128deg, transparent 0 62%, rgba(255, 255, 255, 0.82) 63% 68%, transparent 69% 100%),
        linear-gradient(128deg, transparent 0 72%, rgba(255, 255, 255, 0.58) 73% 77%, transparent 78% 100%),
        radial-gradient(circle at 33% 20%, rgba(255, 255, 255, 0.52) 0 14%, transparent 15%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 42%, var(--result-ball-body-deep) 68%, var(--result-ball-body-dark) 100%) !important;
    box-shadow:
        0 8px 13px rgba(15, 23, 42, 0.28),
        0 0 12px var(--result-ball-glow),
        inset 0 2px 0 rgba(255, 255, 255, 0.26),
        inset 0 -7px 12px rgba(15, 23, 42, 0.2) !important;
    font-size: clamp(1.04rem, 3.9vw, 1.26rem) !important;
    font-weight: 550 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: clamp(1.62rem, 5vw, 1.84rem) !important;
    height: clamp(1.62rem, 5vw, 1.84rem) !important;
    font-size: clamp(0.8rem, 2.55vw, 0.92rem) !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.red,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.red {
    --result-ball-body: #f43f5e;
    --result-ball-body-deep: #dc2626;
    --result-ball-body-dark: #991b1b;
    --result-ball-glow: rgba(244, 63, 94, 0.34);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.green,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.green {
    --result-ball-body: #22c55e;
    --result-ball-body-deep: #16a34a;
    --result-ball-body-dark: #047857;
    --result-ball-glow: rgba(34, 197, 94, 0.32);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.blue,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.blue {
    --result-ball-body: #3b82f6;
    --result-ball-body-deep: #2563eb;
    --result-ball-body-dark: #1d4ed8;
    --result-ball-glow: rgba(59, 130, 246, 0.34);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.08rem, 7.8vw, 2.56rem) !important;
    height: clamp(2.08rem, 7.8vw, 2.56rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 34%, rgba(255, 255, 255, 0.98) 35% 39%, transparent 40%),
        radial-gradient(circle at 31% 20%, rgba(255, 255, 255, 0.72) 0 9%, transparent 10%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 38%, var(--result-ball-body-deep) 70%, var(--result-ball-body-dark) 100%) !important;
    box-shadow:
        0 5px 10px rgba(15, 23, 42, 0.24),
        inset 0 2px 0 rgba(255, 255, 255, 0.24),
        inset 0 -5px 9px rgba(15, 23, 42, 0.14) !important;
    font-size: clamp(1.3rem, 4.9vw, 1.62rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.14rem, 8vw, 2.64rem) !important;
    height: clamp(2.14rem, 8vw, 2.64rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 30%, rgba(255, 255, 255, 0.98) 31% 36%, transparent 37%),
        linear-gradient(128deg, transparent 0 62%, rgba(255, 255, 255, 0.82) 63% 68%, transparent 69% 100%),
        linear-gradient(128deg, transparent 0 72%, rgba(255, 255, 255, 0.58) 73% 77%, transparent 78% 100%),
        radial-gradient(circle at 33% 20%, rgba(255, 255, 255, 0.52) 0 14%, transparent 15%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 42%, var(--result-ball-body-deep) 68%, var(--result-ball-body-dark) 100%) !important;
    box-shadow:
        0 8px 13px rgba(15, 23, 42, 0.28),
        0 0 12px var(--result-ball-glow),
        inset 0 2px 0 rgba(255, 255, 255, 0.26),
        inset 0 -7px 12px rgba(15, 23, 42, 0.2) !important;
    font-size: clamp(1.3rem, 4.9vw, 1.62rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: clamp(1.62rem, 5vw, 1.84rem) !important;
    height: clamp(1.62rem, 5vw, 1.84rem) !important;
    font-size: clamp(1rem, 3.1vw, 1.12rem) !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code {
    background:
        radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.98) 0 12%, transparent 25%),
        radial-gradient(circle at 50% 50%, #ffffff 0 45%, rgba(248, 250, 252, 0.99) 46% 50%, rgba(15, 23, 42, 0.16) 51% 54%, transparent 55%),
        radial-gradient(circle at 31% 20%, rgba(255, 255, 255, 0.76) 0 9%, transparent 10%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 38%, var(--result-ball-body-deep) 70%, var(--result-ball-body-dark) 100%) !important;
    font-size: clamp(1.12rem, 4.2vw, 1.36rem) !important;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    background:
        radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.98) 0 12%, transparent 25%),
        radial-gradient(circle at 50% 50%, #ffffff 0 44%, rgba(248, 250, 252, 0.99) 45% 49%, rgba(15, 23, 42, 0.15) 50% 53%, transparent 54%),
        linear-gradient(128deg, transparent 0 62%, rgba(255, 255, 255, 0.82) 63% 68%, transparent 69% 100%),
        linear-gradient(128deg, transparent 0 72%, rgba(255, 255, 255, 0.58) 73% 77%, transparent 78% 100%),
        radial-gradient(circle at 33% 20%, rgba(255, 255, 255, 0.52) 0 14%, transparent 15%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 42%, var(--result-ball-body-deep) 68%, var(--result-ball-body-dark) 100%) !important;
    font-size: clamp(1.12rem, 4.2vw, 1.36rem) !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    font-size: clamp(0.86rem, 2.75vw, 0.98rem) !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.red,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.red {
    --result-ball-body: #f43f5e;
    --result-ball-body-deep: #dc2626;
    --result-ball-body-dark: #991b1b;
    --result-ball-glow: rgba(244, 63, 94, 0.34);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.green,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.green {
    --result-ball-body: #22c55e;
    --result-ball-body-deep: #16a34a;
    --result-ball-body-dark: #047857;
    --result-ball-glow: rgba(34, 197, 94, 0.32);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code.blue,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code.blue {
    --result-ball-body: #3b82f6;
    --result-ball-body-deep: #2563eb;
    --result-ball-body-dark: #1d4ed8;
    --result-ball-glow: rgba(59, 130, 246, 0.34);
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.08rem, 7.8vw, 2.56rem) !important;
    height: clamp(2.08rem, 7.8vw, 2.56rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.98) 0 12%, transparent 25%),
        radial-gradient(circle at 50% 50%, #ffffff 0 49%, rgba(248, 250, 252, 0.99) 50% 54%, rgba(15, 23, 42, 0.14) 55% 57%, transparent 58%),
        radial-gradient(circle at 31% 20%, rgba(255, 255, 255, 0.76) 0 9%, transparent 10%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 38%, var(--result-ball-body-deep) 70%, var(--result-ball-body-dark) 100%) !important;
    box-shadow:
        0 6px 12px rgba(15, 23, 42, 0.27),
        0 0 10px var(--result-ball-glow),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -6px 11px rgba(15, 23, 42, 0.17) !important;
    font-size: clamp(1.12rem, 4.2vw, 1.36rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.14rem, 8vw, 2.64rem) !important;
    height: clamp(2.14rem, 8vw, 2.64rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background:
        radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.98) 0 12%, transparent 25%),
        radial-gradient(circle at 50% 50%, #ffffff 0 48%, rgba(248, 250, 252, 0.99) 49% 53%, rgba(15, 23, 42, 0.14) 54% 56%, transparent 57%),
        linear-gradient(128deg, transparent 0 62%, rgba(255, 255, 255, 0.82) 63% 68%, transparent 69% 100%),
        linear-gradient(128deg, transparent 0 72%, rgba(255, 255, 255, 0.58) 73% 77%, transparent 78% 100%),
        radial-gradient(circle at 33% 20%, rgba(255, 255, 255, 0.52) 0 14%, transparent 15%),
        radial-gradient(circle at 42% 34%, var(--result-ball-body) 0 42%, var(--result-ball-body-deep) 68%, var(--result-ball-body-dark) 100%) !important;
    box-shadow:
        0 9px 15px rgba(15, 23, 42, 0.3),
        0 0 14px var(--result-ball-glow),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -8px 13px rgba(15, 23, 42, 0.22) !important;
    font-size: clamp(1.12rem, 4.2vw, 1.36rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: clamp(1.62rem, 5vw, 1.84rem) !important;
    height: clamp(1.62rem, 5vw, 1.84rem) !important;
    font-size: clamp(0.86rem, 2.75vw, 0.98rem) !important;
}

[data-region="macau"] #section-live .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live .hero-live-numbers .result-jl-code {
    font-size: clamp(1.04rem, 3.9vw, 1.26rem) !important;
    font-weight: 550 !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    font-size: clamp(0.8rem, 2.55vw, 0.92rem) !important;
    font-weight: 550 !important;
}

[data-region="macau"] #section-live .hero-live-badge,
[data-region="hongkong"] #section-live .hero-live-badge {
    font-size: clamp(10.4px, 2.08vw, 11.8px) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
}

[data-region="macau"] #section-live .hero-live-time,
[data-region="hongkong"] #section-live .hero-live-time {
    font-size: clamp(0.78rem, 2.08vw, 0.96rem) !important;
    font-weight: 500 !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
    word-spacing: 0.04em !important;
}

[data-region="macau"] #section-live .hero-live-meta,
[data-region="hongkong"] #section-live .hero-live-meta {
    column-gap: clamp(8px, 1.6vw, 12px) !important;
    row-gap: 2px !important;
    font-size: clamp(0.8rem, 2.02vw, 0.94rem) !important;
    font-weight: 500 !important;
    line-height: 1.24 !important;
    letter-spacing: 0 !important;
}

[data-region="macau"] #section-live .hero-live-meta-item,
[data-region="hongkong"] #section-live .hero-live-meta-item {
    gap: 3px !important;
}

[data-region="macau"] #section-live .hero-ball-zodiac,
[data-region="hongkong"] #section-live .hero-ball-zodiac {
    font-weight: 550 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.58) !important;
}

[data-region="macau"] #section-live .hero-ball-zodiac.red,
[data-region="hongkong"] #section-live .hero-ball-zodiac.red {
    color: #ff6b7a !important;
}

[data-region="macau"] #section-live .hero-ball-zodiac.green,
[data-region="hongkong"] #section-live .hero-ball-zodiac.green {
    color: #35f08a !important;
}

[data-region="macau"] #section-live .hero-ball-zodiac.blue,
[data-region="hongkong"] #section-live .hero-ball-zodiac.blue {
    color: #7bb7ff !important;
}

[data-region="macau"] #section-live .hero-live-period,
[data-region="hongkong"] #section-live .hero-live-period {
    font-size: clamp(1.08rem, 3.18vw, 1.58rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
}

@media (max-width: 480px) {
    [data-region="macau"] #section-live .hero-live-head,
    [data-region="hongkong"] #section-live .hero-live-head {
        grid-template-columns: minmax(0, 43%) minmax(0, 57%) !important;
        gap: clamp(4px, 1.15vw, 5px) !important;
    }

    [data-region="macau"] #section-live .hero-live-left,
    [data-region="hongkong"] #section-live .hero-live-left {
        grid-template-columns: clamp(52px, 14.2vw, 56px) minmax(0, 1fr) !important;
        gap: clamp(4px, 1.15vw, 5px) !important;
    }

    [data-region="macau"] #section-live .hero-live-badge,
    [data-region="hongkong"] #section-live .hero-live-badge {
        width: clamp(52px, 14.2vw, 56px) !important;
        min-width: clamp(52px, 14.2vw, 56px) !important;
        height: clamp(27px, 7.1vw, 29px) !important;
        padding: 0 3px !important;
        font-size: clamp(10.2px, 2.72vw, 11px) !important;
        font-weight: 700 !important;
    }

    [data-region="macau"] #section-live .hero-live-period,
    [data-region="hongkong"] #section-live .hero-live-period {
        font-size: clamp(14.2px, 3.8vw, 15.6px) !important;
        line-height: 1.06 !important;
        letter-spacing: -0.012em !important;
    }

    [data-region="macau"] #section-live .hero-live-time,
    [data-region="hongkong"] #section-live .hero-live-time {
        min-height: clamp(27px, 7.1vw, 30px) !important;
        padding: 0 clamp(7px, 1.9vw, 9px) !important;
        font-size: clamp(10.8px, 3vw, 11.8px) !important;
        line-height: 1.18 !important;
        letter-spacing: 0 !important;
        word-spacing: 0.03em !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating {
        position: fixed !important;
        top: var(--hero-live-float-top, 72px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translate3d(-50%, 0, 0) !important;
        width: min(var(--hero-live-float-width, 680px), calc(100vw - 12px)) !important;
        max-width: calc(100vw - 12px) !important;
        margin: 0 !important;
        z-index: 9998 !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 2px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-head,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-head {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        gap: 0 !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-left,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-left {
        display: flex !important;
        flex: 0 0 clamp(58px, 15.5vw, 66px) !important;
        width: clamp(58px, 15.5vw, 66px) !important;
        min-width: clamp(58px, 15.5vw, 66px) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-badge,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-badge {
        width: clamp(55px, 14.8vw, 62px) !important;
        min-width: clamp(55px, 14.8vw, 62px) !important;
        height: 22px !important;
        font-size: clamp(9.6px, 2.5vw, 10.4px) !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-period,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-period {
        font-size: clamp(11.8px, 3.05vw, 13px) !important;
        line-height: 1.04 !important;
        letter-spacing: -0.01em !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-top: 0 !important;
        padding: 8px 4px 7px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
    .page-frame,
    #section-home,
    .hero-banner {
        contain: none !important;
        overflow: visible !important;
    }
}

[data-region="macau"] #section-live .hero-live-meta,
[data-region="hongkong"] #section-live .hero-live-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    column-gap: clamp(14px, 2.8vw, 22px) !important;
    row-gap: 5px !important;
    font-size: clamp(0.78rem, 1.95vw, 0.92rem) !important;
    line-height: 1.36 !important;
    letter-spacing: 0.01em !important;
}

[data-region="macau"] #section-live .hero-live-meta-item,
[data-region="hongkong"] #section-live .hero-live-meta-item {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

@media (max-width: 480px) {
    [data-region="macau"] #section-live .hero-live-meta,
    [data-region="hongkong"] #section-live .hero-live-meta {
        column-gap: 12px !important;
        row-gap: 4px !important;
        font-size: clamp(12.2px, 3.25vw, 13.4px) !important;
        line-height: 1.34 !important;
    }

    [data-region="macau"] #section-live .hero-live-meta-item,
    [data-region="hongkong"] #section-live .hero-live-meta-item {
        gap: 4px !important;
    }
}

[data-region="macau"] #section-live.hero-live-box.is-floating,
[data-region="hongkong"] #section-live.hero-live-box.is-floating {
    display: grid !important;
    grid-template-columns: clamp(68px, 10vw, 76px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-head,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-head {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-left,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-left {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-align: center !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-badge,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-badge {
    width: clamp(54px, 8.8vw, 62px) !important;
    min-width: clamp(54px, 8.8vw, 62px) !important;
    height: 22px !important;
    padding: 0 3px !important;
    font-size: clamp(9.4px, 1.52vw, 10.2px) !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-period,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-period {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    font-size: clamp(11.2px, 1.8vw, 12.6px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-time,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-time,
[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-meta,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-meta {
    display: none !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 12px minmax(0, 1fr) !important;
    align-items: start !important;
    justify-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 7px 4px 6px !important;
    gap: 0 !important;
    overflow: hidden !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-ball-item,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-ball-item {
    width: 100% !important;
    min-width: 0 !important;
    gap: 1px !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus {
    width: 12px !important;
    min-width: 12px !important;
}

@media (max-width: 480px) {
    [data-region="macau"] #section-live.hero-live-box.is-floating,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating {
        grid-template-columns: clamp(58px, 15.6vw, 66px) minmax(0, 1fr) !important;
        gap: 4px !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-badge,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-badge {
        width: clamp(52px, 14.2vw, 58px) !important;
        min-width: clamp(52px, 14.2vw, 58px) !important;
        height: 21px !important;
        font-size: clamp(9.2px, 2.46vw, 9.8px) !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-period,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-period {
        font-size: clamp(10.6px, 2.82vw, 11.8px) !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers {
        grid-template-columns: repeat(6, minmax(0, 1fr)) 10px minmax(0, 1fr) !important;
        padding: 6px 3px 5px !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus {
        width: 10px !important;
        min-width: 10px !important;
    }
}

[data-region="macau"] #section-live.hero-live-box.is-floating,
[data-region="hongkong"] #section-live.hero-live-box.is-floating {
    grid-template-columns: clamp(76px, 10.4vw, 86px) minmax(0, 1fr) !important;
    gap: clamp(4px, 0.9vw, 7px) !important;
    padding: clamp(4px, 0.8vw, 6px) clamp(5px, 1vw, 8px) !important;
    border-radius: 14px !important;
    align-items: center !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-left,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-left {
    gap: 3px !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-badge,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 26px !important;
    padding: 0 4px !important;
    font-size: clamp(10.8px, 1.62vw, 11.8px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-period,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-period {
    font-size: clamp(13.2px, 1.96vw, 14.8px) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers {
    grid-template-columns: repeat(6, minmax(0, 1fr)) clamp(12px, 1.7vw, 16px) minmax(0, 1fr) !important;
    align-items: start !important;
    padding: clamp(5px, 0.9vw, 7px) clamp(3px, 0.7vw, 6px) clamp(4px, 0.8vw, 6px) !important;
    border-radius: 13px !important;
    column-gap: clamp(1px, 0.28vw, 3px) !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
    width: clamp(2.04rem, 3.56vw, 2.3rem) !important;
    height: clamp(2.04rem, 3.56vw, 2.3rem) !important;
    font-size: clamp(0.94rem, 1.78vw, 1.06rem) !important;
    font-weight: 600 !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-ball-zodiac,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-ball-zodiac {
    margin-top: 2px !important;
    font-size: clamp(11.8px, 1.68vw, 13.2px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-plus,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-plus {
    font-size: clamp(1.08rem, 2.1vw, 1.28rem) !important;
    font-weight: 600 !important;
}

[data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus,
[data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus {
    width: clamp(12px, 1.7vw, 16px) !important;
    min-width: clamp(12px, 1.7vw, 16px) !important;
    height: clamp(2.04rem, 3.56vw, 2.3rem) !important;
}

@media (max-width: 480px) {
    [data-region="macau"] #section-live.hero-live-box.is-floating,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating {
        grid-template-columns: clamp(66px, 17.8vw, 74px) minmax(0, 1fr) !important;
        gap: clamp(3px, 1vw, 5px) !important;
        padding: 4px 5px !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-badge,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-badge {
        width: 100% !important;
        min-width: 0 !important;
        height: 25px !important;
        line-height: 1 !important;
        font-size: clamp(10.6px, 2.78vw, 11.2px) !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-period,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-period {
        font-size: clamp(12.4px, 3.26vw, 13.4px) !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers {
        grid-template-columns: repeat(6, minmax(0, 1fr)) 10px minmax(0, 1fr) !important;
        padding: 5px 2px 4px !important;
        column-gap: clamp(0px, 0.35vw, 2px) !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .result-jl-code {
        width: clamp(1.68rem, 7.08vw, 1.92rem) !important;
        height: clamp(1.68rem, 7.08vw, 1.92rem) !important;
        font-size: clamp(0.84rem, 3.14vw, 0.94rem) !important;
        font-weight: 600 !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-ball-zodiac,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-ball-zodiac {
        font-size: clamp(10.8px, 2.82vw, 11.8px) !important;
    }

    [data-region="macau"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus,
    [data-region="hongkong"] #section-live.hero-live-box.is-floating .hero-live-numbers .hero-ball-plus {
        width: 10px !important;
        min-width: 10px !important;
        height: clamp(1.68rem, 7.08vw, 1.92rem) !important;
    }
}

.forecast-page #section-live.hero-live-box {
    --forecast-live-left-width: clamp(60px, 15.8vw, 66px);
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: var(--forecast-live-left-width) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 6px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.forecast-page #section-live.hero-live-box::before,
.forecast-page #section-live.hero-live-box::after {
    display: none !important;
}

.forecast-page #section-live .hero-live-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

.forecast-page #section-live .hero-live-left {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    position: relative !important;
    align-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 1px !important;
    padding: 7px 4px 6px !important;
    border-radius: 13px !important;
    border: 1px solid transparent !important;
    text-align: center !important;
    overflow: hidden !important;
}

.forecast-page #section-live .hero-live-left::before,
.forecast-page #section-live .hero-live-left::after {
    position: absolute !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    pointer-events: none !important;
}

.forecast-page #section-live .hero-live-left::before {
    content: "" !important;
    top: 8px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 8px rgba(15, 23, 42, 0.12) !important;
}

[data-region="macau"] .forecast-page #section-live .hero-live-left {
    background: linear-gradient(165deg, #35d07f 0%, #22c55e 56%, #15803d 100%) !important;
    border-color: rgba(34, 197, 94, 0.42) !important;
    box-shadow: 0 7px 14px rgba(22, 163, 74, 0.24) !important;
}

[data-region="hongkong"] .forecast-page #section-live .hero-live-left {
    background: linear-gradient(165deg, #ff6b6b 0%, #ef4444 56%, #c81e1e 100%) !important;
    border-color: rgba(239, 68, 68, 0.38) !important;
    box-shadow: 0 7px 14px rgba(220, 38, 38, 0.22) !important;
}

[data-region="macau"] .forecast-page #section-live .hero-live-left::after {
    content: "\6fb3" !important;
}

[data-region="hongkong"] .forecast-page #section-live .hero-live-left::after {
    content: "\6e2f" !important;
}

.forecast-page #section-live .hero-live-left::after {
    top: 8px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.18) !important;
}

.forecast-page #section-live .hero-live-badge {
    width: 100% !important;
    min-width: 0 !important;
    height: 31px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    font-weight: 900 !important;
    color: transparent !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
    cursor: default !important;
}

.forecast-page #section-live .hero-live-badge i {
    display: none !important;
}

.forecast-page #section-live #hero-mode-label {
    display: none !important;
}

.forecast-page #section-live .hero-live-period {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: clamp(14.6px, 3.7vw, 16.2px) !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: rgba(255, 255, 255, 0.98) !important;
    text-align: center !important;
    text-shadow: none !important;
}

.forecast-page #section-live .hero-live-numbers {
    box-sizing: border-box !important;
    margin-top: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 8px minmax(0, 1fr) !important;
    align-items: start !important;
    justify-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    align-self: stretch !important;
    padding: 3px 0 1px !important;
    border-radius: 13px !important;
    border-width: 1px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 4px 10px rgba(148, 163, 184, 0.08) !important;
    align-content: center !important;
}

[data-region="macau"] .forecast-page #section-live .hero-live-numbers {
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0) 30%),
        linear-gradient(145deg, #fbfffc 0%, #f1fdf5 56%, #edf9f0 100%) !important;
    border-color: rgba(34, 197, 94, 0.18) !important;
}

[data-region="hongkong"] .forecast-page #section-live .hero-live-numbers {
    background:
        linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0) 30%),
        linear-gradient(145deg, #fffdfd 0%, #fff3f3 56%, #fef0f0 100%) !important;
    border-color: rgba(239, 68, 68, 0.16) !important;
}

.forecast-page #section-live .hero-ball-item {
    gap: 0 !important;
    justify-content: center !important;
}

.forecast-page #section-live .hero-live-numbers .result-jl-code {
    width: clamp(2.02rem, 8.14vw, 2.28rem) !important;
    height: clamp(2.02rem, 8.14vw, 2.28rem) !important;
    font-size: clamp(1.04rem, 4.02vw, 1.16rem) !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

.forecast-page #section-live .hero-ball-zodiac {
    font-size: clamp(14.1px, 3.56vw, 15.8px) !important;
    line-height: 0.92 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.96), 0 0 2px rgba(255, 255, 255, 0.52) !important;
}

.forecast-page #section-live .hero-ball-zodiac.red {
    color: #dc2626 !important;
}

.forecast-page #section-live .hero-ball-zodiac.green {
    color: #16a34a !important;
}

.forecast-page #section-live .hero-ball-zodiac.blue {
    color: #2563eb !important;
}

.forecast-page #section-live .hero-live-numbers .hero-ball-plus {
    width: 8px !important;
    min-width: 8px !important;
    height: auto !important;
    align-self: start !important;
}

.forecast-page #section-live .hero-live-numbers .result-jl-plus {
    font-size: clamp(1.58rem, 4.82vw, 1.92rem) !important;
    color: #475569 !important;
    text-shadow: none !important;
}

.forecast-page #section-live .hero-live-time,
.forecast-page #section-live .hero-live-meta {
    display: none !important;
}

.forecast-page .forecast-stack {
    padding: 10px !important;
}

.member-page > .data-frame.front-unified-frame:not(.member-auth-frame) {
    padding: 10px !important;
}

@media (max-width: 720px) {
    .forecast-page .forecast-stack {
        padding: 8px !important;
    }

    .member-page > .data-frame.front-unified-frame:not(.member-auth-frame) {
        padding: 8px !important;
    }
}

@media (max-width: 390px) {
    .forecast-page .forecast-stack {
        padding: 8px !important;
    }
}

.forecast-page {
    --forecast-card-gap: 4px;
    --forecast-card-side-padding: 8px;
    --forecast-card-y-padding: 6px;
}

.forecast-page .forecast-stack {
    gap: var(--forecast-card-gap) !important;
}

.forecast-page .forecast-live-slot {
    padding: 0 !important;
}

.forecast-page #section-live.hero-live-box.is-floating {
    position: fixed !important;
    top: var(--hero-live-float-top, 72px) !important;
    left: var(--hero-live-float-left, 50%) !important;
    right: auto !important;
    transform: translate3d(0, 0, 0) !important;
    width: min(var(--hero-live-float-width, 680px), calc(100vw - 12px)) !important;
    max-width: calc(100vw - 12px) !important;
    margin: 0 !important;
    z-index: 9998 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.forecast-page .hero-live-box-anchor.active {
    display: block;
    width: 100%;
}

.forecast-page .forecast-card {
    padding: var(--forecast-card-y-padding) var(--forecast-card-side-padding) !important;
}

@media (max-width: 720px) {
    .forecast-page {
        --forecast-card-gap: 4px;
        --forecast-card-side-padding: 8px;
        --forecast-card-y-padding: 6px;
    }

    .forecast-page .forecast-card {
        padding: var(--forecast-card-y-padding) var(--forecast-card-side-padding) !important;
    }
}

@media (max-width: 390px) {
    .forecast-page {
        --forecast-card-gap: 4px;
        --forecast-card-side-padding: 7px;
        --forecast-card-y-padding: 6px;
    }

    .forecast-page .forecast-card {
        padding: var(--forecast-card-y-padding) var(--forecast-card-side-padding) !important;
    }
}

.forecast-filter-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: stretch;
    width: 100%;
    gap: 5px;
    margin-top: 0;
}

.forecast-filter-select {
    --forecast-filter-border: #d6e0eb;
    --forecast-filter-text: #334155;
    --forecast-filter-arrow: #94a3b8;
    --forecast-filter-bg-start: #ffffff;
    --forecast-filter-bg-end: #f8fafc;
    --forecast-filter-hover-border: #c8d4e0;
    --forecast-filter-hover-arrow: #7b8ba1;
    --forecast-filter-hover-bg-end: #f8fbff;
    --forecast-filter-focus-border: #fb923c;
    --forecast-filter-focus-ring: rgba(251, 146, 60, 0.12);
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 18px;
    border: 1px solid var(--forecast-filter-border);
    border-radius: 11px;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--forecast-filter-arrow) 50%),
        linear-gradient(135deg, var(--forecast-filter-arrow) 50%, transparent 50%),
        linear-gradient(180deg, var(--forecast-filter-bg-start) 0%, var(--forecast-filter-bg-end) 100%);
    background-position:
        calc(100% - 11px) calc(50% - 1px),
        calc(100% - 7px) calc(50% - 1px),
        0 0;
    background-size:
        4px 4px,
        4px 4px,
        100% 100%;
    background-repeat: no-repeat;
    color: var(--forecast-filter-text);
    font-size: 15.6px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
    text-align-last: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.forecast-filter-select:hover {
    border-color: var(--forecast-filter-hover-border);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--forecast-filter-hover-arrow) 50%),
        linear-gradient(135deg, var(--forecast-filter-hover-arrow) 50%, transparent 50%),
        linear-gradient(180deg, var(--forecast-filter-bg-start) 0%, var(--forecast-filter-hover-bg-end) 100%);
}

.forecast-filter-select:focus {
    outline: none;
    border-color: var(--forecast-filter-focus-border);
    box-shadow: 0 0 0 2px var(--forecast-filter-focus-ring);
}

.forecast-filter-select option {
    color: #0f172a;
    font-size: 16.5px;
    font-weight: 700;
    text-align: center;
}

.forecast-filter-row .forecast-filter-select:nth-child(1) {
    --forecast-filter-border: #b7e7cf;
    --forecast-filter-text: #0f766e;
    --forecast-filter-arrow: #14b8a6;
    --forecast-filter-bg-end: #f0fdfa;
    --forecast-filter-hover-border: #8fdcc0;
    --forecast-filter-hover-arrow: #0f9f91;
    --forecast-filter-hover-bg-end: #ecfdf8;
    --forecast-filter-focus-border: #14b8a6;
    --forecast-filter-focus-ring: rgba(20, 184, 166, 0.14);
}

.forecast-filter-row .forecast-filter-select:nth-child(2) {
    --forecast-filter-border: #bfd8ff;
    --forecast-filter-text: #1d4ed8;
    --forecast-filter-arrow: #3b82f6;
    --forecast-filter-bg-end: #eff6ff;
    --forecast-filter-hover-border: #9fc5ff;
    --forecast-filter-hover-arrow: #2563eb;
    --forecast-filter-hover-bg-end: #eaf3ff;
    --forecast-filter-focus-border: #3b82f6;
    --forecast-filter-focus-ring: rgba(59, 130, 246, 0.14);
}

.forecast-filter-row .forecast-filter-select:nth-child(3) {
    --forecast-filter-border: #f7d48a;
    --forecast-filter-text: #b45309;
    --forecast-filter-arrow: #f59e0b;
    --forecast-filter-bg-end: #fff7ed;
    --forecast-filter-hover-border: #f3c56a;
    --forecast-filter-hover-arrow: #d97706;
    --forecast-filter-hover-bg-end: #fff3e2;
    --forecast-filter-focus-border: #f59e0b;
    --forecast-filter-focus-ring: rgba(245, 158, 11, 0.14);
}

.forecast-filter-row .forecast-filter-select:nth-child(4) {
    --forecast-filter-border: #f4c2d7;
    --forecast-filter-text: #be185d;
    --forecast-filter-arrow: #ec4899;
    --forecast-filter-bg-end: #fdf2f8;
    --forecast-filter-hover-border: #eea8ca;
    --forecast-filter-hover-arrow: #db2777;
    --forecast-filter-hover-bg-end: #fdebf4;
    --forecast-filter-focus-border: #ec4899;
    --forecast-filter-focus-ring: rgba(236, 72, 153, 0.14);
}

.forecast-generate-form-block {
    display: block;
    width: 100%;
    margin-top: 4px;
}

.forecast-generate-form-block .forecast-generate-btn {
    width: 100%;
}

.forecast-page .forecast-result-card,
.forecast-page .forecast-stat-grid,
.forecast-page .forecast-list-stack {
    margin-top: 4px !important;
}

.forecast-page .forecast-list-stack {
    gap: 4px !important;
}

.forecast-page .forecast-result-blessing-card {
    margin-top: 4px !important;
}

.forecast-result-title {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.forecast-result-scroll {
    display: grid;
    gap: 3px;
    min-height: 0;
}

.forecast-result-issue-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 4px 10px 4px 5px;
    border-radius: 13px;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 10px rgba(15, 23, 42, 0.08);
}

.forecast-result-issue-badge.is-macau {
    border-color: rgba(34, 197, 94, 0.34);
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 58%, #16a34a 100%);
}

.forecast-result-issue-badge.is-hongkong {
    border-color: rgba(239, 68, 68, 0.34);
    background: linear-gradient(180deg, #fb7185 0%, #f43f5e 58%, #e11d48 100%);
}

.forecast-result-issue-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.forecast-result-issue-badge.is-macau .forecast-result-issue-mark {
    background: rgba(255, 255, 255, 0.2);
}

.forecast-result-issue-badge.is-hongkong .forecast-result-issue-mark {
    background: rgba(255, 255, 255, 0.2);
}

.forecast-result-issue-text {
    color: #ffffff;
    font-size: 14.8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.12);
}

.forecast-result-title-text {
    color: #be123c;
    font-size: 19.5px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.forecast-result-price-strip {
    display: inline-flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7c2d12;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
}

.forecast-result-price-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 86px;
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    background: linear-gradient(180deg, #ff5a5f 0%, #ef4444 62%, #dc2626 100%);
    color: #ffffff;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.forecast-result-price-total span {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.4px;
    font-weight: 950;
    line-height: 30px;
}

.forecast-result-price-total b {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: #ffffff;
    font-size: 13.8px;
    font-weight: 950;
    line-height: 30px;
}

.forecast-result-price-strip > em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12.8px;
    font-style: normal;
    font-weight: 950;
    line-height: 30px;
    white-space: nowrap;
}

.forecast-result-summary {
    display: grid !important;
    gap: 6px;
}

.forecast-result-blessing-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px dashed rgba(251, 146, 60, 0.72);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 247, 237, 0.78) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.forecast-result-blessing-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.forecast-result-blessing-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.forecast-result-blessing-text {
    min-width: 0;
    max-width: 100%;
    color: #0f766e;
    font-size: 13.6px;
    font-weight: 900;
    line-height: 1.34;
    text-align: center;
    overflow-wrap: anywhere;
}

.forecast-result-blessing-text.is-idiom {
    color: #dc2626;
    font-size: 14px;
    font-weight: 900;
}

.forecast-result-summary-line {
    --forecast-result-left-col: 76px;
    --forecast-result-tag-width: 58px;
    --forecast-result-pingte-group-gap: 9px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 3px 6px;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(251, 146, 60, 0.52);
}

.forecast-result-summary-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.forecast-result-summary-line:first-child {
    padding-top: 0;
}

.forecast-result-summary-line.is-error {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    border-bottom: 0;
}

.forecast-result-summary-line.is-no-confidence {
    grid-template-columns: minmax(0, 1fr);
}

.forecast-result-summary-line.is-unselected {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 3px 2px;
}

.forecast-result-summary-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: center;
    width: min(var(--forecast-result-tag-width), var(--forecast-result-left-col));
    min-width: 0;
}

.forecast-result-summary-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    color: #be123c;
    font-size: 14.5px;
    font-weight: 900;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.forecast-result-summary-type {
    display: inline-flex;
    align-items: center;
    justify-self: stretch;
    align-self: start;
    width: var(--forecast-result-tag-width);
    max-width: var(--forecast-result-tag-width);
    min-width: 0;
    margin-top: 0;
}

.forecast-result-summary-body {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: var(--forecast-result-left-col) minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    gap: 1px 4px;
    min-width: 0;
}

.forecast-result-summary-line.is-unselected .forecast-result-summary-head {
    grid-column: 1;
    grid-row: 1;
    width: auto;
}

.forecast-result-summary-line.is-unselected .forecast-result-summary-body {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 24px;
    padding-left: 0;
}

.forecast-result-summary-line.is-unselected .forecast-result-summary-value {
    width: 100%;
    min-height: 24px;
    gap: 0;
    justify-content: flex-start;
}

.forecast-result-summary-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    gap: 3px 4px;
    width: 100%;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 24px;
    min-width: 0;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-top: 0;
}

.forecast-result-summary-confidence {
    display: inline-grid;
    place-items: center;
    min-width: 62px;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.26);
    background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
    color: #15803d;
    font-size: 14.5px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    margin-top: 0;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 1px 2px rgba(34, 197, 94, 0.12);
}

.forecast-result-placeholder,
.forecast-result-type-chip,
.forecast-result-zodiac-chip,
.forecast-result-other-chip,
.forecast-result-group-separator {
    white-space: nowrap;
}

.forecast-result-placeholder {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    align-items: center;
    width: 100%;
    column-gap: 8px;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.15;
    justify-content: flex-start;
}

.forecast-result-placeholder-text,
.forecast-result-placeholder-idiom {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.forecast-result-placeholder-text {
    padding-left: 2px;
}

.forecast-result-placeholder-idiom {
    gap: 2px;
    color: #b45309;
    font-weight: 700;
    justify-self: start;
}

.forecast-result-placeholder-emoji {
    font-size: 13.8px;
    line-height: 1;
}

.forecast-result-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 26px;
    padding: 0 4px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 13.6px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 2px 4px rgba(59, 130, 246, 0.14);
}

.forecast-result-pingte-text {
    display: inline-flex;
    align-items: center;
    color: #334155;
    max-width: 100%;
    min-width: 0;
    font-size: 16.7px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.02em;
    white-space: nowrap;
    margin-left: -1px;
}

.forecast-result-pingte-bracket {
    color: #475569;
    font-weight: 500;
}

.forecast-result-pingte-separator {
    color: #94a3b8;
    font-weight: 500;
}

.forecast-result-pingte-number {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.forecast-result-pingte-number.is-red {
    color: #dc2626;
}

.forecast-result-pingte-number.is-blue {
    color: #2563eb;
}

.forecast-result-pingte-number.is-green {
    color: #16a34a;
}

.forecast-result-zodiac-chip,
.forecast-result-other-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    min-height: 26px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(148, 163, 184, 0.1);
}

.forecast-result-zodiac-chip {
    min-width: 29px;
    min-height: 26px;
    padding: 0 6px;
    border-radius: 10px;
    border-color: rgba(251, 146, 60, 0.42);
    background: linear-gradient(180deg, #fffdf7 0%, #fff4e5 56%, #ffedd5 100%);
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 2px 6px rgba(245, 158, 11, 0.14);
}

.forecast-result-other-chip {
    border-color: rgba(96, 165, 250, 0.24);
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    color: #1e3a8a;
}

.forecast-result-number-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    min-height: 26px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.forecast-result-number-chip.is-red {
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.18);
    background: rgba(254, 242, 242, 0.9);
}

.forecast-result-number-chip.is-blue {
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.18);
    background: rgba(239, 246, 255, 0.9);
}

.forecast-result-number-chip.is-green {
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.18);
    background: rgba(240, 253, 244, 0.9);
}

.forecast-result-type-chip.is-correct,
.forecast-result-zodiac-chip.is-correct,
.forecast-result-number-chip.is-correct,
.forecast-result-other-chip.is-correct,
.forecast-result-pingte-number.is-correct,
.forecast-result-pingte-text.is-correct {
    position: relative;
    overflow: visible;
    border-color: rgba(34, 197, 94, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 2px 7px rgba(22, 163, 74, 0.2);
}

.forecast-result-type-chip.is-correct {
    border-color: rgba(34, 197, 94, 0.62);
    background: linear-gradient(180deg, #ecfdf5 0%, #bbf7d0 100%);
    color: #047857;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 2px 7px rgba(22, 163, 74, 0.22);
}

.forecast-result-pingte-text.is-correct {
    padding: 1px 5px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 10px;
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.forecast-result-pingte-number.is-correct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3ch;
    min-height: 20px;
    padding: 0 2px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ecfdf5 0%, #bbf7d0 100%);
    color: #047857;
    font-weight: 900;
}

.member-ai-log-card .forecast-result-pingte-number.is-correct {
    min-width: 2.3ch;
    min-height: 20px;
    padding: 0;
    border-radius: 5px;
}

.member-ai-log-card .forecast-result-pingte-number.is-correct .forecast-result-correct-mark {
    top: -6px;
    right: -6px;
}

.forecast-result-correct-mark {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.34);
    z-index: 2;
}

.member-ai-log-card .forecast-result-correct-mark {
    top: -6px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    min-width: 12px;
    height: 12px;
    border: 0;
    background: #16a34a;
    font-size: 8px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 0 0 1px #ffffff;
}

.forecast-result-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
}

.forecast-result-summary-line.is-zodiac .forecast-result-summary-body,
.forecast-result-summary-line.is-number .forecast-result-summary-body,
.forecast-result-summary-line.is-other .forecast-result-summary-body,
.forecast-result-summary-line.is-pingte .forecast-result-summary-body {
    grid-template-columns: var(--forecast-result-tag-width) minmax(0, 1fr);
    gap: 0 4px;
}

.forecast-result-summary-line.is-zodiac .forecast-result-summary-type,
.forecast-result-summary-line.is-number .forecast-result-summary-type,
.forecast-result-summary-line.is-other .forecast-result-summary-type,
.forecast-result-summary-line.is-pingte .forecast-result-summary-type {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-right: 0;
    margin-top: 1px;
}

.forecast-result-summary-line.is-zodiac .forecast-result-summary-value {
    margin-left: 2px;
    gap: 4px 4px;
    padding-top: 1px;
}

.forecast-result-summary-line.is-number .forecast-result-summary-value {
    margin-left: 2px;
    gap: 2px 3px;
    padding-top: 1px;
}

.forecast-result-summary-line.is-other .forecast-result-summary-value {
    display: inline-flex;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    margin-left: 2px;
    gap: 2px 3px;
    padding-top: 0;
}

.forecast-result-summary-line.is-other .forecast-result-other-chip {
    transform: translateY(2px);
}

.forecast-result-summary-line.is-pingte .forecast-result-summary-body {
    gap: 0 1px;
}

.forecast-result-summary-line.is-pingte .forecast-result-summary-value {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    justify-self: start;
    justify-content: start;
    gap: 1px var(--forecast-result-pingte-group-gap);
    width: max-content;
    max-width: 100%;
    min-height: 26px;
    padding-top: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.forecast-result-summary-line.is-pingte .forecast-result-pingte-text {
    margin-left: 0;
    transform: translateY(2px);
}

.forecast-result-summary-line.is-pingte .forecast-result-pingte-text + .forecast-result-pingte-text {
    margin-left: 0;
}

.forecast-result-summary-line.is-unselected .forecast-result-summary-body {
    grid-template-columns: minmax(0, 1fr);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-height: 24px;
    padding-left: 0;
}

.forecast-result-summary-line.is-unselected .forecast-result-summary-value {
    display: inline-flex;
    justify-self: start;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    margin-left: 0;
    gap: 0;
    padding-top: 0;
}

.forecast-result-summary-line.is-unselected .forecast-result-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
    column-gap: 0;
    gap: 9px;
    margin-left: 0;
}

.forecast-result-group-separator {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 720px) {
    .forecast-filter-row {
        gap: 4px;
        margin-top: 8px;
    }

    .forecast-filter-select {
        height: 32px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 14.8px;
        background-position:
            calc(100% - 10px) calc(50% - 1px),
            calc(100% - 6px) calc(50% - 1px),
            0 0;
    }

    .forecast-generate-form-block {
        margin-top: 8px;
    }

    .forecast-result-title {
        gap: 6px;
    }

    .forecast-result-issue-badge {
        gap: 5px;
        padding: 3px 9px 3px 4px;
    }

    .forecast-result-issue-mark {
        width: 24px;
        height: 24px;
        font-size: 12.8px;
    }

    .forecast-result-issue-text {
        font-size: 13.6px;
    }

    .forecast-result-title-text {
        font-size: 18.5px;
    }

    .forecast-result-summary {
        gap: 4px;
    }

    .forecast-result-blessing-card {
        gap: 4px;
        margin-top: 7px;
        padding: 7px 8px;
        border-radius: 11px;
    }

    .forecast-result-blessing-row {
        gap: 4px;
    }

    .forecast-result-blessing-label {
        font-size: 15px;
        line-height: 1;
    }

    .forecast-result-blessing-text {
        font-size: 13px;
        line-height: 1.32;
    }

    .forecast-result-blessing-text.is-idiom {
        font-size: 13.4px;
    }

    .forecast-result-summary-line {
        --forecast-result-left-col: 68px;
        --forecast-result-tag-width: 54px;
        --forecast-result-pingte-group-gap: 7px;
        gap: 3px 5px;
        padding: 3px 0;
    }

    .forecast-result-summary-label {
        font-size: 14px;
    }

    .forecast-result-summary-body,
    .forecast-result-summary-value {
        gap: 3px 4px;
    }

    .forecast-result-summary-body {
        gap: 1px 3px;
    }

    .forecast-result-summary-line.is-zodiac .forecast-result-summary-body,
    .forecast-result-summary-line.is-number .forecast-result-summary-body,
    .forecast-result-summary-line.is-other .forecast-result-summary-body,
    .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
        grid-template-columns: var(--forecast-result-tag-width) minmax(0, 1fr);
        gap: 0 4px;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-summary-body {
        min-height: 22px;
        padding-left: 0;
    }

    .forecast-result-summary-line.is-zodiac .forecast-result-summary-type,
    .forecast-result-summary-line.is-number .forecast-result-summary-type,
    .forecast-result-summary-line.is-other .forecast-result-summary-type,
    .forecast-result-summary-line.is-pingte .forecast-result-summary-type {
        justify-self: stretch;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-right: 0;
        margin-top: 1px;
    }

    .forecast-result-summary-line.is-zodiac .forecast-result-summary-value {
        margin-left: 2px;
        gap: 3px 3px;
        padding-top: 1px;
    }

    .forecast-result-summary-line.is-number .forecast-result-summary-value {
        margin-left: 2px;
        gap: 2px 2px;
        padding-top: 1px;
    }

    .forecast-result-summary-line.is-other .forecast-result-summary-value {
        display: inline-flex;
        justify-self: start;
        width: max-content;
        max-width: 100%;
        margin-left: 2px;
        gap: 2px 2px;
        padding-top: 0;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
        gap: 0 1px;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-summary-value {
        display: grid;
        grid-template-columns: repeat(4, max-content);
        justify-self: start;
        justify-content: start;
        gap: 1px var(--forecast-result-pingte-group-gap);
        width: max-content;
        max-width: 100%;
        min-height: 25px;
        padding-top: 0;
        padding-right: 0;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-pingte-text + .forecast-result-pingte-text {
        margin-left: 0;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-summary-body {
        grid-template-columns: minmax(0, 1fr);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        min-height: 22px;
        padding-left: 0;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-summary-value {
        display: inline-flex;
        justify-self: start;
        justify-content: flex-start;
        width: max-content;
        max-width: 100%;
        min-height: 22px;
        margin-left: 0;
        gap: 0;
        padding-top: 0;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-placeholder {
        width: max-content;
        max-width: 100%;
        gap: 8px;
        margin-left: 0;
    }

    .forecast-result-pingte-text {
        font-size: 15.5px;
        line-height: 1.2;
    }

    .forecast-result-summary-value {
        font-size: 13.8px;
        min-height: 22px;
    }

    .forecast-result-placeholder {
        column-gap: 7px;
        font-size: 12.8px;
    }

    .forecast-result-placeholder-emoji {
        font-size: 13px;
    }

    .forecast-result-type-chip,
    .forecast-result-zodiac-chip,
    .forecast-result-other-chip {
        min-height: 22px;
        padding: 0 6px;
        font-size: 13.5px;
    }

    .forecast-result-type-chip {
        min-height: 25px;
        padding: 0 4px;
        font-size: 12.4px;
        border-radius: 9px;
    }

    .forecast-result-zodiac-chip,
    .forecast-result-other-chip {
        min-width: 27px;
        min-height: 25px;
        padding: 0 5px;
        border-radius: 10px;
        font-size: 13.5px;
    }

    .forecast-result-number-chip {
        min-width: 27px;
        min-height: 25px;
        padding: 0 5px;
        font-size: 13.5px;
    }

    .forecast-result-summary-confidence {
        min-width: 56px;
        min-height: 25px;
        padding: 0 8px;
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .forecast-filter-row {
        gap: 4px;
    }

    .forecast-filter-select {
        height: 31px;
        padding: 0 15px;
        border-radius: 10px;
        font-size: 14.2px;
        background-position:
            calc(100% - 9px) calc(50% - 1px),
            calc(100% - 5px) calc(50% - 1px),
            0 0;
        background-size:
            3px 3px,
            3px 3px,
            100% 100%;
    }

    .forecast-result-title {
        gap: 6px;
    }

    .forecast-result-issue-badge {
        gap: 4px;
        padding: 3px 8px 3px 4px;
    }

    .forecast-result-issue-mark {
        width: 23px;
        height: 23px;
        font-size: 12px;
    }

    .forecast-result-issue-text {
        font-size: 12.8px;
    }

    .forecast-result-title-text {
        font-size: 17.4px;
    }

    .forecast-result-summary {
        gap: 4px;
    }

    .forecast-result-blessing-card {
        gap: 4px;
        margin-top: 6px;
        padding: 6px 7px;
        border-radius: 10px;
    }

    .forecast-result-blessing-row {
        gap: 3px;
    }

    .forecast-result-blessing-label {
        font-size: 14px;
        line-height: 1;
    }

    .forecast-result-blessing-text {
        font-size: 12.3px;
        line-height: 1.3;
    }

    .forecast-result-blessing-text.is-idiom {
        font-size: 12.7px;
    }

    .forecast-result-summary-line {
        --forecast-result-left-col: 60px;
        --forecast-result-tag-width: 50px;
        --forecast-result-pingte-group-gap: 5px;
        gap: 2px 4px;
        padding: 3px 0;
    }

    .forecast-result-summary-line.is-no-confidence {
        grid-template-columns: minmax(0, 1fr);
    }

    .forecast-result-summary-line.is-unselected {
        grid-template-columns: max-content minmax(0, 1fr);
        gap: 2px 2px;
    }

    .forecast-result-summary-label {
        font-size: 12.5px;
    }

    .forecast-result-summary-body,
    .forecast-result-summary-value {
        gap: 3px 4px;
    }

    .forecast-result-summary-body {
        gap: 1px 2px;
    }

    .forecast-result-summary-line.is-zodiac .forecast-result-summary-body,
    .forecast-result-summary-line.is-number .forecast-result-summary-body,
    .forecast-result-summary-line.is-other .forecast-result-summary-body,
    .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
        grid-template-columns: var(--forecast-result-tag-width) minmax(0, 1fr);
        gap: 0 3px;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-summary-body {
        min-height: 20px;
        padding-left: 0;
    }

    .forecast-result-summary-line.is-zodiac .forecast-result-summary-type,
    .forecast-result-summary-line.is-number .forecast-result-summary-type,
    .forecast-result-summary-line.is-other .forecast-result-summary-type,
    .forecast-result-summary-line.is-pingte .forecast-result-summary-type {
        justify-self: stretch;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-right: 0;
        margin-top: 1px;
    }

    .forecast-result-summary-line.is-zodiac .forecast-result-summary-value {
        margin-left: 1px;
        gap: 2px 2px;
        padding-top: 1px;
    }

    .forecast-result-summary-line.is-number .forecast-result-summary-value {
        margin-left: 1px;
        gap: 1px 2px;
        padding-top: 1px;
    }

    .forecast-result-summary-line.is-other .forecast-result-summary-value {
        display: inline-flex;
        justify-self: start;
        width: max-content;
        max-width: 100%;
        margin-left: 1px;
        gap: 1px 2px;
        padding-top: 0;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
        gap: 0 1px;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-summary-value {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        justify-self: start;
        justify-content: start;
        gap: 1px var(--forecast-result-pingte-group-gap);
        width: max-content;
        max-width: 100%;
        min-height: 23px;
        padding-top: 0;
        padding-right: 0;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-pingte-text + .forecast-result-pingte-text {
        margin-left: 0;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-summary-body {
        grid-template-columns: minmax(0, 1fr);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        min-height: 20px;
        padding-left: 0;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-summary-value {
        display: inline-flex;
        justify-self: start;
        justify-content: flex-start;
        width: max-content;
        max-width: 100%;
        min-height: 20px;
        margin-left: 0;
        gap: 0;
        padding-top: 0;
    }

    .forecast-result-summary-line.is-unselected .forecast-result-placeholder {
        width: max-content;
        max-width: 100%;
        gap: 7px;
        margin-left: 0;
    }

    .forecast-result-pingte-text {
        font-size: 14.2px;
        line-height: 1.18;
    }

    .forecast-result-summary-value {
        font-size: 12.3px;
        min-height: 20px;
    }

    .forecast-result-placeholder {
        column-gap: 6px;
        font-size: 12px;
    }

    .forecast-result-placeholder-emoji {
        font-size: 12.4px;
    }

    .forecast-result-type-chip,
    .forecast-result-zodiac-chip,
    .forecast-result-other-chip {
        min-height: 21px;
        padding: 0 5px;
        font-size: 12.5px;
    }

    .forecast-result-type-chip {
        min-height: 23px;
        padding: 0 4px;
        font-size: 11.3px;
        border-radius: 8px;
    }

    .forecast-result-zodiac-chip,
    .forecast-result-other-chip {
        min-width: 25px;
        min-height: 23px;
        padding: 0 4px;
        border-radius: 8px;
        font-size: 12px;
    }

    .forecast-result-number-chip {
        min-width: 25px;
        min-height: 23px;
        padding: 0 4px;
        font-size: 12px;
    }

    .forecast-result-group {
        gap: 3px;
    }

    .forecast-result-group-separator {
        font-size: 12px;
    }

    .forecast-result-summary-confidence {
        min-width: 52px;
        min-height: 23px;
        padding: 0 7px;
        font-size: 12.5px;
    }
}

.forecast-page {
    --forecast-card-gap: 4px !important;
    --forecast-card-y-padding: 6px !important;
}

.forecast-page .forecast-stack {
    gap: var(--forecast-card-gap) !important;
}

.forecast-page .forecast-live-slot {
    padding: 0 !important;
}

.forecast-page .forecast-card {
    padding-top: var(--forecast-card-y-padding) !important;
    padding-bottom: var(--forecast-card-y-padding) !important;
}

.forecast-page .forecast-filter-row {
    margin-top: 0 !important;
}

.forecast-page .forecast-result-card,
.forecast-page .forecast-generate-form-block,
.forecast-page .forecast-stat-grid,
.forecast-page .forecast-list-stack {
    margin-top: 4px !important;
}

.forecast-page .forecast-list-stack {
    gap: 4px !important;
}

.forecast-page .forecast-result-summary,
.forecast-page .forecast-result-blessing-card {
    margin-top: 4px !important;
}

.forecast-page .forecast-result-card {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.forecast-page .forecast-result-summary {
    gap: 3px !important;
    margin-top: 2px !important;
}

.forecast-page .forecast-result-summary-line {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.forecast-page .forecast-result-summary-line:first-child {
    padding-top: 0 !important;
}

.forecast-page .forecast-result-summary-line:last-child {
    padding-bottom: 0 !important;
}

.forecast-page .forecast-result-blessing-card {
    margin-top: 3px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

html:has(body.forecast-panel-page) {
    overflow: hidden;
}

body.forecast-panel-page {
    --forecast-bottom-nav-height: 66px;
    --forecast-bottom-nav-bottom: 2px;
    --forecast-bottom-nav-gap: 5px;
    --forecast-bottom-nav-safe: calc(var(--forecast-bottom-nav-height) + var(--forecast-bottom-nav-bottom) + var(--forecast-bottom-nav-gap));
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f3f4f6;
    overflow: hidden;
    overscroll-behavior: none;
}

body.forecast-panel-page .page-frame {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding-bottom: calc(var(--forecast-bottom-nav-safe) + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
}

body.forecast-panel-page .bottom-float-nav {
    box-sizing: border-box;
    height: var(--forecast-bottom-nav-height) !important;
    min-height: var(--forecast-bottom-nav-height) !important;
    max-height: var(--forecast-bottom-nav-height) !important;
    bottom: calc(var(--forecast-bottom-nav-bottom) + env(safe-area-inset-bottom)) !important;
    padding: 6px !important;
}

body.forecast-panel-page .bottom-nav-link {
    height: 100%;
    min-height: 0 !important;
    gap: 2px !important;
    padding: 4px 1px 3px !important;
}

body.forecast-panel-page .forecast-page,
body.forecast-panel-page .forecast-stack {
    padding-bottom: 0 !important;
}

body.forecast-panel-page .forecast-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.forecast-panel-page .forecast-stack {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden !important;
}

body.forecast-panel-page .forecast-card-primary {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.forecast-panel-page .forecast-result-card {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0 !important;
    overflow: hidden;
}

body.forecast-panel-page .forecast-result-title {
    flex: 0 0 auto;
}

body.forecast-panel-page .forecast-result-scroll {
    flex: 1 1 auto;
    min-height: 0 !important;
    margin-top: 2px;
    padding-right: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

body.forecast-panel-page .forecast-result-scroll .forecast-result-summary,
body.forecast-panel-page .forecast-result-scroll .forecast-result-blessing-card {
    margin-top: 0 !important;
}

body.forecast-panel-page .forecast-generate-form-block,
body.forecast-panel-page .forecast-stat-grid {
    flex: 0 0 auto;
}

body.forecast-panel-page #section-live.hero-live-box.is-floating {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: auto !important;
}

body.forecast-panel-page .hero-live-box-anchor.active {
    display: none !important;
    height: 0 !important;
}

body.forecast-panel-page .forecast-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 56px;
    align-items: stretch;
    gap: 5px !important;
    margin-top: 4px !important;
}

body.forecast-panel-page .forecast-generate-form-block {
    position: relative;
    display: block !important;
    align-self: stretch;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    margin-top: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.68);
    border-radius: 10px;
    background: linear-gradient(135deg, #fb7185 0%, #ef4444 42%, #f97316 100%);
    background-size: 180% 180%;
    box-shadow: 0 7px 14px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.36) inset;
    transform-origin: center;
    animation: forecastGeneratePulse 1.45s ease-in-out infinite;
}

body.forecast-panel-page .forecast-generate-form-block .forecast-generate-btn {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 13.8px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 1px 3px rgba(127, 29, 29, 0.22);
    white-space: normal !important;
}

body.forecast-panel-page .forecast-generate-form-block .forecast-generate-btn span {
    display: block;
    line-height: 1.04;
}

body.forecast-panel-page .forecast-generate-form-block::before {
    content: "";
    position: absolute;
    inset: -24% -44%;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.34) 50%, transparent 68%);
    transform: translateX(-42%);
    animation: forecastGenerateSheen 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes forecastGeneratePulse {
    0%,
    100% {
        background-position: 0% 50%;
        box-shadow: 0 7px 14px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.36) inset;
        transform: scale(1);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 0 10px 20px rgba(244, 63, 94, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
        transform: scale(1.025);
    }
}

@keyframes forecastGenerateSheen {
    0%,
    46% {
        transform: translateX(-42%);
        opacity: 0;
    }

    56% {
        opacity: 0.72;
    }

    100% {
        transform: translateX(42%);
        opacity: 0;
    }
}

body.forecast-panel-page .forecast-card-primary {
    position: relative;
}

body.forecast-panel-page .forecast-generate-form-block.is-forecast-progressing .forecast-generate-btn {
    cursor: wait;
    opacity: 0.92;
}

body.forecast-panel-page .forecast-progress-panel {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    padding: 18px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.68);
    color: #fff7ed;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

body.forecast-panel-page .forecast-progress-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 36%, rgba(250, 204, 21, 0.22) 0%, transparent 34%),
        linear-gradient(90deg, rgba(250, 204, 21, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
    opacity: 0.82;
    pointer-events: none;
}

body.forecast-panel-page .forecast-progress-panel:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

body.forecast-panel-page .forecast-progress-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: min(372px, calc(100vw - 30px));
    min-height: 154px;
    box-sizing: border-box;
    padding: 18px 16px 16px;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(49, 46, 35, 0.97) 54%, rgba(127, 29, 29, 0.95) 100%);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 42px rgba(250, 204, 21, 0.18);
    transform: translateY(12px) scale(0.96);
    transition: transform 180ms ease;
}

body.forecast-panel-page .forecast-progress-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(250, 204, 21, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.72;
    pointer-events: none;
}

body.forecast-panel-page .forecast-progress-dialog::after {
    content: "";
    position: absolute;
    top: -42%;
    bottom: -42%;
    left: -36%;
    width: 40%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    animation: forecastProgressSweep 1.85s ease-in-out infinite;
    pointer-events: none;
}

body.forecast-panel-page .forecast-progress-panel:not([hidden]) .forecast-progress-dialog {
    transform: translateY(0) scale(1);
}

body.forecast-panel-page .forecast-progress-ring,
body.forecast-panel-page .forecast-progress-main {
    position: relative;
    z-index: 1;
}

body.forecast-panel-page .forecast-progress-ring {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.24) 0%, rgba(14, 165, 233, 0.1) 48%, rgba(15, 23, 42, 0.38) 100%);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.32) inset, 0 0 22px rgba(250, 204, 21, 0.16);
}

body.forecast-panel-page .forecast-progress-ring span {
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(250, 204, 21, 0.56);
    border-radius: 50%;
    animation: forecastProgressSpin 2.8s linear infinite;
}

body.forecast-panel-page .forecast-progress-ring span:nth-child(2) {
    inset: 10px;
    border-color: rgba(34, 211, 238, 0.5);
    animation-duration: 2.1s;
    animation-direction: reverse;
}

body.forecast-panel-page .forecast-progress-ring span:nth-child(3) {
    inset: 16px;
    border-color: rgba(248, 113, 113, 0.54);
    animation-duration: 1.6s;
}

body.forecast-panel-page .forecast-progress-ring b {
    position: relative;
    z-index: 1;
    color: #fde68a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.62);
}

body.forecast-panel-page .forecast-progress-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

body.forecast-panel-page .forecast-progress-title {
    color: #fef3c7;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.16;
}

body.forecast-panel-page .forecast-progress-text {
    overflow: hidden;
    color: rgba(255, 247, 237, 0.88);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.forecast-panel-page .forecast-progress-codes {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
}

body.forecast-panel-page .forecast-progress-codes span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 20px;
    border: 1px solid rgba(251, 191, 36, 0.48);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.42);
    color: #fde68a;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

body.forecast-panel-page .forecast-progress-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

body.forecast-panel-page .forecast-progress-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 8%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, #facc15 0%, #22d3ee 54%, #fb7185 100%);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.52);
    transition: width 260ms ease;
}

body.forecast-panel-page .forecast-progress-marks {
    display: flex;
    justify-content: space-between;
    color: rgba(254, 243, 199, 0.82);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

body.forecast-panel-page .forecast-progress-actions {
    display: flex;
    justify-content: center;
    padding-top: 9px;
}

body.forecast-panel-page .forecast-progress-actions[hidden] {
    display: none;
}

body.forecast-panel-page .forecast-progress-button {
    min-width: 134px;
    height: 46px;
    padding: 0 26px;
    border: 1px solid rgba(250, 204, 21, 0.55);
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #fb923c);
    color: #451a03;
    font-family: inherit;
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(251, 146, 60, 0.28);
    cursor: pointer;
}

body.forecast-panel-page .forecast-progress-button:focus-visible {
    outline: 2px solid rgba(255, 247, 237, 0.86);
    outline-offset: 2px;
}

body.forecast-panel-page .forecast-progress-panel.is-success .forecast-progress-ring {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.26) 0%, rgba(250, 204, 21, 0.15) 48%, rgba(15, 23, 42, 0.38) 100%);
    box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.42) inset, 0 0 26px rgba(34, 197, 94, 0.22);
}

body.forecast-panel-page .forecast-progress-panel.is-success .forecast-progress-track i {
    background: linear-gradient(90deg, #22c55e 0%, #facc15 54%, #fb923c 100%);
}

body.forecast-panel-page .forecast-progress-panel.is-error .forecast-progress-ring {
    background: radial-gradient(circle, rgba(248, 113, 113, 0.28) 0%, rgba(250, 204, 21, 0.12) 48%, rgba(15, 23, 42, 0.38) 100%);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.48) inset, 0 0 26px rgba(248, 113, 113, 0.2);
}

body.forecast-panel-page .forecast-progress-panel.is-error .forecast-progress-track i {
    background: linear-gradient(90deg, #fb7185 0%, #f97316 60%, #facc15 100%);
}

body.forecast-panel-page .forecast-guest-modal {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: grid;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    padding: 18px;
    color: #fff7ed;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

body.forecast-panel-page .forecast-guest-modal[hidden] {
    display: none;
}

body.forecast-panel-page .forecast-guest-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.forecast-panel-page .forecast-guest-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(250, 204, 21, 0.2) 0%, transparent 36%),
        rgba(2, 6, 23, 0.7);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

body.forecast-panel-page .forecast-guest-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(354px, calc(100vw - 30px));
    box-sizing: border-box;
    padding: 18px 16px 16px;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.54);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(63, 53, 30, 0.97) 55%, rgba(127, 29, 29, 0.95) 100%);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 42px rgba(250, 204, 21, 0.18);
    transform: translateY(12px) scale(0.96);
    transition: transform 180ms ease;
}

body.forecast-panel-page .forecast-guest-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(250, 204, 21, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.62;
    pointer-events: none;
}

body.forecast-panel-page .forecast-guest-modal.is-visible .forecast-guest-dialog {
    transform: translateY(0) scale(1);
}

body.forecast-panel-page .forecast-guest-mark,
body.forecast-panel-page .forecast-guest-copy,
body.forecast-panel-page .forecast-guest-actions {
    position: relative;
    z-index: 1;
}

body.forecast-panel-page .forecast-guest-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.28) 0%, rgba(14, 165, 233, 0.12) 52%, rgba(15, 23, 42, 0.4) 100%);
    color: #fde68a;
    font-size: 22px;
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.18);
}

body.forecast-panel-page .forecast-guest-copy {
    text-align: center;
}

body.forecast-panel-page .forecast-guest-copy h2 {
    margin: 0;
    color: #fef3c7;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.22;
}

body.forecast-panel-page .forecast-guest-copy p {
    margin: 7px 0 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

body.forecast-panel-page .forecast-guest-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.forecast-panel-page .forecast-guest-actions button {
    min-width: 0;
    height: 38px;
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

body.forecast-panel-page .forecast-guest-register {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff7ed;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

body.forecast-panel-page .forecast-guest-login {
    background: linear-gradient(135deg, #facc15, #fb923c);
    color: #451a03;
    box-shadow: 0 10px 22px rgba(251, 146, 60, 0.24);
}

body.forecast-panel-page .forecast-guest-cancel {
    grid-column: 1 / -1;
    background: rgba(15, 23, 42, 0.44);
    color: rgba(255, 247, 237, 0.88);
}

body.forecast-panel-page .forecast-guest-actions button:focus-visible {
    outline: 2px solid rgba(255, 247, 237, 0.86);
    outline-offset: 2px;
}

@keyframes forecastProgressSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes forecastProgressSweep {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    35% {
        opacity: 0.74;
    }

    100% {
        transform: translateX(360%);
        opacity: 0;
    }
}

body.forecast-panel-page .forecast-stat-card {
    align-content: center;
    justify-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 3px 5px !important;
    overflow: hidden;
    row-gap: 3px;
    border-width: 1px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.forecast-panel-page .forecast-stat-label {
    font-size: 12.4px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.forecast-panel-page .forecast-stat-value {
    margin-top: 1px !important;
    color: #0f172a !important;
    font-size: 12.8px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

body.forecast-panel-page .forecast-stat-number {
    font-size: 21px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

body.customer-service-body:has(.customer-service-agent-console),
body.customer-service-body:has(.customer-service-agent-login) {
    background: #edf2f7;
}

body.customer-service-body:has(.customer-service-agent-console) .page-frame,
body.customer-service-body:has(.customer-service-agent-login) .page-frame {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.customer-service-agent-console {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    width: min(1440px, calc(100% - 16px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 10px 0 14px;
    color: #0f172a;
}

.service-agent-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.service-agent-top div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.service-agent-top span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.service-agent-top h1 {
    overflow: hidden;
    margin: 0;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-agent-top button,
.service-agent-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.service-agent-actions button.is-danger {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.service-agent-grid {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
}

.service-agent-queue,
.service-agent-chat {
    min-width: 0;
    min-height: 0;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.service-agent-queue,
.service-agent-chat {
    display: flex;
    flex-direction: column;
}

.service-agent-panel-head,
.service-agent-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.service-agent-panel-head div,
.service-agent-chat-head > div:first-child {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.service-agent-panel-head span,
.service-agent-chat-head p {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.service-agent-panel-head strong,
.service-agent-chat-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.15;
}

.service-agent-chat-head h2 {
    overflow: hidden;
    max-width: 420px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-agent-chat-head p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 3px 0 0;
}

.service-agent-chat-head p span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5f9;
    line-height: 1;
}

.service-agent-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
}

.service-agent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.service-agent-session-list {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    overflow: auto;
    background: #f8fafc;
}

.service-agent-session {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 78px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
}

.service-agent-session.is-active {
    border-color: #2563eb;
    background: #eff6ff;
}

.service-agent-session-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.service-agent-session-main strong,
.service-agent-session-main span:not(.customer-service-session-presence) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-agent-session-main strong {
    font-size: 14px;
    font-weight: 950;
}

.service-agent-session-main span:not(.customer-service-session-presence) {
    color: #64748b;
    font-size: 12px;
    font-weight: 760;
}

.service-agent-session-main .customer-service-session-presence {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
}

.service-agent-session-main .customer-service-session-presence[data-status-type="online"] {
    background: #ecfdf5;
    color: #059669;
}

.service-agent-session-side {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.service-agent-session-side em,
.service-agent-session-side .support-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
}

.service-agent-session-side em.is-hot,
.service-agent-session-side .support-status-badge.is-hot,
.service-agent-session-side .support-status-badge.is-danger {
    background: #ffe4e6;
    color: #be123c;
}

.service-agent-session-side em.is-waiting,
.service-agent-session-side .support-status-badge.is-waiting,
.service-agent-session-side .support-status-badge.is-success {
    background: #fef3c7;
    color: #b45309;
}

.service-agent-session-side em.is-open,
.service-agent-session-side .support-status-badge.is-open {
    background: #dbeafe;
    color: #1d4ed8;
}

.service-agent-session-side small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.service-agent-message-stream {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    overflow: auto;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.service-agent-compose {
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
}

.service-agent-locked {
    min-height: 48px;
    padding: 14px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.service-agent-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.customer-service-agent-management {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-top {
    box-sizing: border-box;
    width: calc(100% - 20px);
    margin-right: auto;
    margin-left: auto;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main {
    grid-template-columns: minmax(76px, 1fr) max-content max-content;
    align-items: center;
    gap: 16px;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-title-name {
    justify-self: start;
    max-width: 100%;
    font-size: 26px;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-presence-pill,
body.customer-service-agent-body .customer-service-agent-management .service-agent-top-link,
body.customer-service-agent-body .customer-service-agent-management .service-agent-header-save,
body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main > form {
    justify-self: end;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main > .service-agent-top-link,
body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main > .service-agent-header-save,
body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main > form > button {
    width: 96px;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-header-save,
body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main > form > button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-header-save {
    border-color: #16a34a;
    background: #16a34a;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main > form > button {
    border-color: #dc2626;
    background: #dc2626;
}

.service-agent-payment-panel {
    display: grid;
    width: calc(100% - 20px);
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
    border: 1px solid #dbe5ef;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.service-agent-payment-form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    box-sizing: border-box;
    height: 100%;
    gap: 0;
    min-width: 0;
    min-height: 0;
    padding: 0 14px 14px;
    overflow: hidden;
}

.service-agent-payment-head {
    display: grid;
    width: 100%;
    gap: 12px;
    min-width: 0;
}

.service-agent-payment-head div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.service-agent-payment-head span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.service-agent-payment-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.15;
}

.service-agent-payment-upload input::file-selector-button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.service-agent-payment-actions {
    display: grid;
    box-sizing: border-box;
    width: calc(100% + 28px);
    min-width: 0;
    margin-right: -14px;
    margin-left: -14px;
    justify-self: stretch;
}

.service-agent-payment-switches {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    overflow: hidden;
    border: 1px solid #dbe5ef;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 #cbd5e1;
}

.service-agent-payment-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    gap: 8px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid #dbe5ef;
    border-radius: 0;
    background: transparent;
    color: #334155;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.service-agent-payment-switch:last-child {
    border-right: 0;
}

.service-agent-payment-switch span {
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-overflow: ellipsis;
}

.service-agent-payment-switch.is-alipay i {
    color: #2563eb;
}

.service-agent-payment-switch.is-wechat i {
    color: #16a34a;
}

.service-agent-payment-switch.is-usdt i {
    color: #b45309;
}

.service-agent-payment-switch:hover,
.service-agent-payment-switch:focus {
    background: #eff6ff;
    color: #1d4ed8;
}

.service-agent-payment-switch.is-alipay {
    background: #eaf2ff;
    color: #1d4ed8;
    box-shadow: inset 0 -3px 0 #2563eb;
}

.service-agent-payment-form:has(.service-agent-payment-card:target) .service-agent-payment-switch.is-alipay {
    background: transparent;
    color: #334155;
    box-shadow: none;
}

.service-agent-payment-form:has(#service-agent-payment-alipay:target) .service-agent-payment-switch.is-alipay,
.service-agent-payment-form:has(#service-agent-payment-wechat:target) .service-agent-payment-switch.is-wechat,
.service-agent-payment-form:has(#service-agent-payment-usdt:target) .service-agent-payment-switch.is-usdt {
    background: #eaf2ff;
    color: #1d4ed8;
    box-shadow: inset 0 -3px 0 #2563eb;
}

.service-agent-payment-grid {
    display: block;
    width: calc(100% + 28px);
    min-width: 0;
    min-height: 0;
    margin-right: -14px;
    margin-left: -14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.service-agent-payment-card {
    display: none;
    gap: 10px;
    min-width: 0;
    scroll-margin-top: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.service-agent-payment-card.is-alipay,
.service-agent-payment-card:target {
    display: grid;
}

.service-agent-payment-grid:has(.service-agent-payment-card:target) .service-agent-payment-card.is-alipay {
    display: none;
}

.service-agent-payment-grid:has(#service-agent-payment-alipay:target) .service-agent-payment-card.is-alipay {
    display: grid;
}

.service-agent-payment-grid .service-agent-payment-card:target {
    display: grid;
}

.service-agent-payment-card:target {
    border-color: #dbe5ef;
    box-shadow: none;
}

.service-agent-payment-card-head {
    display: flex;
    order: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.service-agent-payment-card-head > i {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 18px;
}

.service-agent-payment-card.is-alipay .service-agent-payment-card-head > i {
    background: #dbeafe;
    color: #2563eb;
}

.service-agent-payment-card.is-wechat .service-agent-payment-card-head > i {
    background: #dcfce7;
    color: #16a34a;
}

.service-agent-payment-card.is-usdt .service-agent-payment-card-head > i {
    background: #fef3c7;
    color: #b45309;
}

.service-agent-payment-card-head div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.service-agent-payment-card-head strong,
.service-agent-payment-card-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-agent-payment-card-head strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
}

.service-agent-payment-card-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.service-agent-payment-preview {
    display: grid;
    order: 4;
    grid-template-columns: repeat(auto-fill, minmax(104px, 118px));
    gap: 10px;
    place-items: stretch;
    justify-content: start;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.service-agent-payment-preview img {
    display: block;
    width: 100%;
    height: 100%;
}

.service-agent-payment-preview-item,
.service-agent-payment-empty {
    position: relative;
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.service-agent-payment-preview-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.service-agent-payment-preview img {
    object-fit: contain;
}

.service-agent-payment-empty {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
}

.service-agent-payment-preview-order {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 6px;
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.service-agent-payment-delete {
    position: absolute;
    z-index: 3;
    top: 6px;
    right: 6px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
    cursor: pointer;
}

.service-agent-payment-delete:focus {
    outline: 2px solid rgba(239, 68, 68, 0.35);
    outline-offset: 2px;
}

body.service-agent-payment-preview-modal-open {
    overflow: hidden;
}

.service-agent-payment-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 18px;
}

.service-agent-payment-preview-modal[hidden] {
    display: none !important;
}

.service-agent-payment-preview-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
}

.service-agent-payment-preview-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(92vw, 420px);
    max-height: min(82vh, 520px);
    gap: 10px;
    place-items: center;
    padding: 18px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.28);
}

.service-agent-payment-preview-dialog img {
    display: block;
    width: min(100%, 360px);
    max-height: 68vh;
    object-fit: contain;
}

.service-agent-payment-preview-dialog strong {
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-agent-payment-preview-close {
    position: absolute;
    top: -12px;
    right: -12px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.26);
    cursor: pointer;
}

.service-agent-payment-upload,
.service-agent-usdt-address {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.service-agent-payment-upload {
    order: 2;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

.service-agent-payment-upload > span {
    white-space: nowrap;
}

.service-agent-payment-card .service-agent-usdt-address {
    order: 3;
    grid-column: 1 / -1;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

.service-agent-payment-upload input,
.service-agent-usdt-address textarea {
    width: 100%;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    outline: none;
}

.service-agent-payment-upload input {
    min-width: 0;
    min-height: 34px;
    padding: 3px 4px;
}

.service-agent-payment-upload input::file-selector-button {
    margin-right: 10px;
    min-height: 28px;
    padding: 0 12px;
}

.service-agent-usdt-address textarea {
    height: 38px;
    min-height: 38px;
    padding: 8px 10px;
    line-height: 1.35;
    resize: vertical;
}

.service-agent-usdt-address textarea:focus,
.service-agent-payment-upload input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 920px) {
    .service-agent-payment-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}

@media (max-width: 640px) {
    body.customer-service-agent-body .customer-service-agent-management .service-agent-top {
        border-radius: 10px 10px 0 0;
    }

    body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main {
        grid-template-columns: minmax(62px, 1fr) max-content max-content;
        gap: 10px;
    }

    body.customer-service-agent-body .customer-service-agent-management .service-agent-title-name {
        grid-column: auto;
        max-width: none;
        font-size: 20px;
    }

    body.customer-service-agent-body .customer-service-agent-management .service-agent-presence-pill,
    body.customer-service-agent-body .customer-service-agent-management .service-agent-top-link,
    body.customer-service-agent-body .customer-service-agent-management .service-agent-header-save,
    body.customer-service-agent-body .customer-service-agent-management .service-agent-top-main > form > button {
        width: 82px;
        min-width: 0;
        min-height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .service-agent-payment-panel {
        border-radius: 0 0 10px 10px;
    }

    .service-agent-payment-form {
        gap: 0;
        padding: 0 10px 10px;
    }

    .service-agent-payment-head {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 8px;
    }

    .service-agent-payment-head h2 {
        font-size: 17px;
    }

    .service-agent-payment-actions {
        width: calc(100% + 20px);
        margin-right: -10px;
        margin-left: -10px;
    }

    .service-agent-payment-switches {
        border-radius: 0;
    }

    .service-agent-payment-switch {
        min-height: 38px;
        gap: 6px;
        padding: 0 8px;
        font-size: 14px;
    }

    .service-agent-payment-grid {
        grid-template-columns: 1fr;
        gap: 9px;
        width: calc(100% + 20px);
        margin-right: -10px;
        margin-left: -10px;
        padding-top: 10px;
    }

    .service-agent-payment-card {
        grid-template-columns: 118px minmax(0, 1fr);
        align-items: center;
        padding: 10px 12px;
        border: 0;
        border-radius: 0;
    }

    .service-agent-payment-card-head {
        grid-column: 1 / -1;
    }

    .service-agent-payment-preview {
        grid-column: 1 / -1;
        grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
        width: 100%;
        height: auto;
        align-self: start;
    }

    .service-agent-payment-preview-item,
    .service-agent-payment-empty {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .service-agent-payment-upload {
        grid-column: 1 / -1;
        align-self: start;
    }

    .service-agent-payment-upload input {
        min-height: 34px;
    }

    .service-agent-payment-upload input::file-selector-button {
        min-height: 28px;
        padding: 0 10px;
    }

    .service-agent-usdt-address {
        margin-top: 2px;
    }
}

.customer-service-agent-login {
    display: grid;
    min-height: calc(100vh - 90px);
    padding: 18px;
    place-items: center;
}

.service-login-card {
    display: grid;
    gap: 10px;
    width: min(100%, 420px);
    padding: 18px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.service-login-card > span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.service-login-card h1 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.15;
}

.service-login-card p,
.service-login-card a {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.55;
}

.service-login-card form {
    display: grid;
    gap: 8px;
}

.service-login-field {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    outline: none;
}

.service-login-field:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.service-login-card button {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.service-login-card a {
    justify-self: center;
    color: #2563eb;
    text-decoration: none;
}

@media (max-width: 920px) {
    .customer-service-agent-console {
        width: min(100% - 10px, 760px);
        min-height: 100vh;
    }

    .service-agent-grid {
        grid-template-columns: 1fr;
    }

    .service-agent-queue {
        max-height: 280px;
    }

    .service-agent-chat {
        min-height: 580px;
    }
}

@media (max-width: 640px) {
    .customer-service-agent-console {
        gap: 6px;
        width: 100%;
        padding: 6px;
    }

    .service-agent-top,
    .service-agent-chat-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-agent-top h1 {
        font-size: 18px;
    }

    .service-agent-chat {
        min-height: 540px;
    }

    .service-agent-chat-head h2 {
        max-width: 260px;
    }
}

/* Single front agent service window. */
body.customer-service-agent-body {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #e8eef7;
}

body.customer-service-agent-body .page-frame {
    display: flex;
    height: 100vh;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

body.customer-service-agent-body.customer-service-body:has(.customer-service-agent-console) .page-frame {
    display: flex;
    padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
}

.customer-service-agent-shell {
    display: flex;
    flex: 1 1 auto;
    width: min(100%, 760px);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    padding: 4px 6px 3px;
}

body.customer-service-agent-body .customer-service-agent-shell .customer-service-agent-console {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
}

@supports (height: 100dvh) {
    body.customer-service-agent-body,
    body.customer-service-agent-body .page-frame {
        height: 100dvh;
        min-height: 100dvh;
    }
}

@media (max-width: 720px) {
    body.customer-service-agent-body.customer-service-body:has(.customer-service-agent-console) .page-frame {
        padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important;
    }

    body.customer-service-agent-body .customer-service-agent-shell {
        width: 100%;
        padding: 3px 4px 2px;
    }
}

/* Front agent console density and responsive polish. */
body.customer-service-body:has(.customer-service-agent-console) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #eaf1fb;
}

body.customer-service-body:has(.customer-service-agent-console) .page-frame {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.customer-service-agent-console {
    box-sizing: border-box;
    width: min(1440px, calc(100% - 18px));
    height: 100vh;
    min-height: 0;
    gap: 7px;
    padding: 8px 0;
}

.service-agent-top {
    min-height: 50px;
    padding: 8px 11px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.service-agent-top span {
    font-size: 11.5px;
    line-height: 1;
}

.service-agent-top h1 {
    font-size: 18px;
}

.service-agent-top button,
.service-agent-actions button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
}

.service-agent-grid {
    height: 100%;
    min-height: 0;
    grid-template-columns: clamp(220px, 32%, 300px) minmax(0, 1fr);
    overflow: hidden;
}

.service-agent-queue,
.service-agent-chat {
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.service-agent-panel-head,
.service-agent-chat-head {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 7px 9px;
}

.service-agent-panel-head strong,
.service-agent-chat-head h2 {
    font-size: 15px;
}

.service-agent-avatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
}

.service-agent-actions {
    gap: 5px;
}

.service-agent-session-list {
    gap: 5px;
    padding: 5px;
    scrollbar-gutter: auto;
}

.service-agent-session {
    min-height: 62px;
    padding: 7px;
    border-radius: 10px;
}

.service-agent-session-main {
    gap: 4px;
}

.service-agent-session-main strong {
    font-size: 13.5px;
}

.service-agent-session-main span:not(.customer-service-session-presence) {
    font-size: 11.5px;
}

.service-agent-session-side {
    gap: 6px;
}

.service-agent-message-stream {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.service-agent-message-stream .customer-service-bubble-wrap {
    max-width: min(72%, 560px);
}

.service-agent-message-stream .customer-service-meta {
    font-size: 11.5px;
    font-weight: 400;
}

.service-agent-message-stream .customer-service-meta span,
.service-agent-message-stream .customer-service-date {
    font-weight: 400;
}

.service-agent-message-stream .customer-service-bubble {
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.5;
}

.service-agent-compose {
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #ffffff;
}

.service-agent-compose .customer-service-tools {
    gap: 5px;
}

.service-agent-compose .customer-service-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.service-agent-compose .customer-service-input {
    min-height: 36px;
    max-height: 88px;
    padding: 7px 9px;
    font-size: 14px;
}

.service-agent-compose .customer-service-send {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 9px;
}

.service-agent-locked {
    min-height: 42px;
    padding: 10px;
    font-size: 12.5px;
}

@supports (height: 100dvh) {
    body.customer-service-body:has(.customer-service-agent-console),
    body.customer-service-body:has(.customer-service-agent-console) .page-frame,
    .customer-service-agent-console {
        height: 100dvh;
        min-height: 100dvh;
    }
}

@media (max-width: 920px) {
    .customer-service-agent-console {
        width: 100%;
        min-height: 0;
        padding: 6px;
    }

    .service-agent-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 6px;
    }

    .service-agent-queue {
        max-height: none;
    }

    .service-agent-session-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .service-agent-session {
        flex: 0 0 238px;
    }

    .service-agent-session-side {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .service-agent-chat {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .customer-service-agent-console {
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: 5px;
        padding: 5px;
    }

    .service-agent-top {
        min-height: 44px;
        align-items: center;
        flex-direction: row;
        gap: 8px;
        padding: 7px 9px;
        border-radius: 10px;
    }

    .service-agent-top div {
        gap: 1px;
    }

    .service-agent-top span {
        font-size: 11px;
    }

    .service-agent-top h1 {
        font-size: 17px;
    }

    .service-agent-top button,
    .service-agent-actions button {
        min-height: 30px;
        padding: 0 9px;
        font-size: 11.5px;
    }

    .service-agent-grid {
        gap: 5px;
    }

    .service-agent-queue,
    .service-agent-chat {
        border-radius: 10px;
    }

    .service-agent-panel-head {
        min-height: 33px;
        padding: 6px 8px;
    }

    .service-agent-panel-head span {
        font-size: 11px;
    }

    .service-agent-panel-head strong {
        font-size: 14px;
    }

    .service-agent-session-list {
        max-height: 78px;
        gap: 5px;
        padding: 5px;
    }

    .service-agent-session {
        flex: 0 0 198px;
        min-height: 62px;
        padding: 7px;
        border-radius: 9px;
    }

    .service-agent-session-main strong {
        font-size: 13px;
    }

    .service-agent-session-main .customer-service-session-presence {
        min-height: 18px;
        padding: 0 6px;
        font-size: 10.5px;
    }

    .service-agent-session-side em,
    .service-agent-session-side .support-status-badge {
        min-width: 38px;
        height: 20px;
        padding: 0 6px;
        font-size: 10.5px;
    }

    .service-agent-chat {
        min-height: 0;
    }

    .service-agent-chat-head {
        min-height: 48px;
        align-items: center;
        flex-flow: row wrap;
        gap: 6px;
        padding: 7px 8px;
    }

    .service-agent-chat-head > div:first-child {
        flex: 1 1 188px;
        gap: 7px;
    }

    .service-agent-chat-head h2 {
        max-width: 180px;
        font-size: 14.5px;
    }

    .service-agent-chat-head p {
        gap: 4px;
        margin-top: 2px;
    }

    .service-agent-chat-head p span {
        min-height: 20px;
        padding: 0 6px;
        font-size: 11px;
    }

    .service-agent-avatar {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 14px;
    }

    .service-agent-actions {
        margin-left: auto;
    }

    .service-agent-message-stream {
        gap: 7px;
        padding: 7px;
    }

    .service-agent-message-stream .customer-service-bubble-wrap {
        max-width: 84%;
    }

    .service-agent-message-stream .customer-service-bubble {
        padding: 8px 9px;
        font-size: 13.5px;
        line-height: 1.45;
    }

    .service-agent-compose {
        gap: 5px;
        padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    }

    .service-agent-compose .customer-service-tools {
        gap: 4px;
    }

    .service-agent-compose .customer-service-tool-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 13px;
    }

    .service-agent-compose .customer-service-input {
        min-height: 34px;
        max-height: 78px;
        padding: 6px 8px;
        font-size: 13.5px;
    }

    .service-agent-compose .customer-service-send {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 8px;
    }
}

@media (max-width: 640px) {
    .service-agent-panel-head {
        min-height: 30px;
        padding: 5px 7px;
    }

    .service-agent-panel-head div {
        gap: 1px;
    }

    .service-agent-panel-head span {
        font-size: 10.5px;
    }

    .service-agent-panel-head strong {
        font-size: 13px;
    }

    .service-agent-session-list {
        max-height: 66px;
        gap: 4px;
        padding: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        background: #f8fafc;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .service-agent-session-list::-webkit-scrollbar {
        display: none;
    }

    .service-agent-session {
        position: relative;
        flex: 0 0 132px;
        min-height: 58px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 2px;
        padding: 6px 7px;
        overflow: hidden;
        border-radius: 8px;
        scroll-snap-align: start;
    }

    .service-agent-session.is-active {
        background: #eef6ff;
        box-shadow: inset 3px 0 0 #2563eb;
    }

    .service-agent-session-main {
        gap: 2px;
        padding-right: 42px;
    }

    .service-agent-session-main strong {
        max-width: 82px;
        color: #0f172a;
        font-size: 12px;
        line-height: 1.05;
    }

    .service-agent-session-main span:not(.customer-service-session-presence) {
        max-width: 112px;
        color: #475569;
        font-size: 10.5px;
        font-weight: 850;
        line-height: 1.1;
    }

    .service-agent-session-main .customer-service-session-presence {
        min-height: 16px;
        padding: 0 5px;
        font-size: 10px;
        line-height: 1;
    }

    .service-agent-session-side {
        position: absolute;
        top: 6px;
        right: 6px;
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        gap: 4px;
    }

    .service-agent-session-side em,
    .service-agent-session-side .support-status-badge {
        min-width: 34px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .service-agent-session-side small {
        max-width: 54px;
        overflow: hidden;
        color: #94a3b8;
        font-size: 9.5px;
        font-weight: 900;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .service-agent-chat-head {
        display: grid;
        grid-template-columns: minmax(0, 204px) minmax(0, 1fr);
        min-height: 42px;
        align-items: center;
        gap: 4px;
        justify-content: stretch;
        padding: 5px 3px 5px 6px;
        border-bottom-color: #dbe5ef;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .service-agent-chat-head > div:first-child {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        flex: none;
        min-width: 0;
        gap: 6px;
        align-items: center;
    }

    .service-agent-chat-head > div:first-child > div {
        display: grid;
        min-width: 0;
        gap: 2px;
    }

    .service-agent-avatar {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 850;
    }

    .service-agent-chat-head h2 {
        max-width: 132px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 850;
        line-height: 1.05;
    }

    .service-agent-chat-head p {
        display: flex;
        max-width: 178px;
        flex-wrap: nowrap;
        gap: 3px;
        margin-top: 0;
        overflow: hidden;
    }

    .service-agent-chat-head p span {
        min-height: 16px;
        max-width: 60px;
        padding: 0 5px;
        overflow: hidden;
        border-radius: 999px;
        background: #eef2f7;
        color: #64748b;
        font-size: 10px;
        font-weight: 760;
        line-height: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .service-agent-chat-head p span[data-status-type="online"] {
        background: #ecfdf5;
        color: #059669;
    }

    .service-agent-chat-head p span[data-status-type="offline"] {
        background: #f1f5f9;
        color: #64748b;
    }

    .service-agent-chat-head p span[data-customer-service-status] {
        max-width: 72px;
        background: #f8fafc;
        color: #64748b;
    }

    .service-agent-chat-head p span[data-customer-service-status].is-typing {
        background: #fff7ed;
        color: #c2410c;
    }

    .service-agent-actions {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        margin-left: 0;
        gap: 4px;
        justify-content: end;
    }

    .service-agent-actions button {
        min-height: 26px;
        padding: 0 7px;
        border-radius: 7px;
        font-size: 10.5px;
        font-weight: 820;
    }
}

/* Agent console switch view. */
.customer-service-agent-console {
    grid-template-rows: auto auto minmax(0, 1fr);
}

.service-agent-view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.service-agent-view-switch button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #cbd8e6;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.service-agent-view-switch button.is-active {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.service-agent-view-switch button[disabled] {
    cursor: not-allowed;
    opacity: 0.58;
}

.service-agent-view-switch span,
.service-agent-view-switch strong,
.service-agent-view-badge {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-agent-view-switch span {
    font-size: 12px;
    font-weight: 950;
}

.service-agent-view-switch strong {
    justify-self: end;
    max-width: 140px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 950;
}

.service-agent-view-switch button.is-active strong {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.service-agent-view-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 8px 14px rgba(239, 68, 68, 0.22);
}

.service-agent-view-badge[hidden] {
    display: none;
}

.service-agent-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.service-agent-queue,
.service-agent-chat {
    height: 100%;
}

.customer-service-agent-console[data-agent-active-view="queue"] .service-agent-chat,
.customer-service-agent-console[data-agent-active-view="chat"] .service-agent-queue {
    display: none;
}

.customer-service-agent-console[data-agent-active-view="queue"] .service-agent-queue,
.customer-service-agent-console[data-agent-active-view="chat"] .service-agent-chat {
    display: flex;
}

.service-agent-session-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-content: start;
    gap: 7px;
    max-height: none;
    overflow: auto;
}

.service-agent-session {
    min-height: 68px;
}

.service-agent-chat-head .service-agent-actions {
    justify-self: end;
    margin-left: auto;
    gap: 12px;
}

.service-agent-chat-head .service-agent-actions button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .customer-service-agent-console {
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .service-agent-view-switch {
        gap: 4px;
    }

    .service-agent-view-switch button {
        min-height: 32px;
        gap: 5px;
        padding: 0 7px;
        border-radius: 8px;
    }

    .service-agent-view-switch span {
        font-size: 11px;
    }

    .service-agent-view-switch strong {
        max-width: 88px;
        padding: 4px 6px;
        font-size: 10.5px;
    }

    .service-agent-view-badge {
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        font-size: 10px;
    }

    .service-agent-grid {
        gap: 4px;
    }

    .service-agent-session-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        max-height: none;
        padding: 6px;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: none;
        scrollbar-width: thin;
    }

    .service-agent-session-list::-webkit-scrollbar {
        display: block;
        width: 4px;
    }

    .service-agent-session {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-content: center;
        min-height: 60px;
        gap: 7px;
        padding: 7px;
        border-radius: 9px;
        scroll-snap-align: none;
    }

    .service-agent-session.is-active {
        box-shadow: inset 3px 0 0 #2563eb;
    }

    .service-agent-session-main {
        gap: 3px;
        padding-right: 0;
    }

    .service-agent-session-main strong {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.12;
    }

    .service-agent-session-main span:not(.customer-service-session-presence) {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.15;
    }

    .service-agent-session-side {
        position: static;
        display: grid;
        justify-items: end;
        gap: 5px;
    }

    .service-agent-session-side small {
        max-width: 70px;
        font-size: 10px;
        font-weight: 400;
    }

    .service-agent-chat-head .service-agent-actions {
        justify-self: end;
        margin-left: auto;
        gap: 11px;
    }

    .service-agent-chat-head .service-agent-actions button {
        min-height: 34px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 900;
    }
}

/* Agent queue vertical cards and live status cleanup. */
body.customer-service-agent-body .service-agent-session-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: none;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f8fafc;
    scrollbar-width: thin;
}

body.customer-service-agent-body .service-agent-session-list::-webkit-scrollbar {
    display: block;
    width: 4px;
}

body.customer-service-agent-body .service-agent-session {
    position: static;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 8px 9px;
    border: 1px solid #dbe6f1;
    border-radius: 9px;
    background: #ffffff;
    scroll-snap-align: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

body.customer-service-agent-body .service-agent-session.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb, 0 8px 16px rgba(37, 99, 235, 0.1);
}

body.customer-service-agent-body .service-agent-session-main {
    display: grid;
    grid-template-columns: minmax(0, max-content) auto;
    align-items: center;
    justify-content: start;
    gap: 4px 6px;
    min-width: 0;
    padding-right: 0;
}

body.customer-service-agent-body .service-agent-session-main strong {
    max-width: 148px;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-main .customer-service-session-presence {
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 18px;
}

body.customer-service-agent-body .service-agent-session-main .customer-service-session-presence[data-status-type="online"] {
    background: #dcfce7;
    color: #15803d;
}

body.customer-service-agent-body .service-agent-session-main span:not(.customer-service-session-presence) {
    grid-column: 1 / -1;
    max-width: 100%;
    overflow: hidden;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-side {
    position: static;
    display: grid;
    justify-items: end;
    gap: 5px;
    min-width: 54px;
}

body.customer-service-agent-body .service-agent-session-side em,
body.customer-service-agent-body .service-agent-session-side .support-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

body.customer-service-agent-body .service-agent-session-side .is-waiting,
body.customer-service-agent-body .service-agent-session-side .support-status-badge.is-waiting,
body.customer-service-agent-body .service-agent-session-side .support-status-badge.is-success {
    background: #e0f2fe;
    color: #0369a1;
}

body.customer-service-agent-body .service-agent-session-side .is-hot,
body.customer-service-agent-body .service-agent-session-side .support-status-badge.is-hot {
    background: #fee2e2;
    color: #dc2626;
}

body.customer-service-agent-body .service-agent-session-side small {
    max-width: 68px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-status][hidden],
body.customer-service-body .customer-service-subtitle[hidden] {
    display: none;
}

@media (max-width: 640px) {
    body.customer-service-agent-body .service-agent-session-list {
        display: flex;
        flex-direction: column;
        max-height: none;
        gap: 5px;
        padding: 5px;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: none;
    }

    body.customer-service-agent-body .service-agent-session {
        flex: 0 0 auto;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 58px;
        gap: 7px;
        padding: 7px 8px;
        scroll-snap-align: none;
    }

    body.customer-service-agent-body .service-agent-session-main strong {
        max-width: 126px;
        font-size: 12.5px;
    }

    body.customer-service-agent-body .service-agent-session-main span:not(.customer-service-session-presence) {
        font-size: 11px;
    }

    body.customer-service-agent-body .service-agent-session-side small {
        max-width: 58px;
        font-size: 9.5px;
    }
}

/* Realtime customer service status colors. */
.customer-service-head .customer-service-subtitle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    max-width: 168px;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 10.5px;
    line-height: 18px;
}

.customer-service-subtitle[data-status-type="serving"] {
    background: rgba(22, 163, 74, 0.22);
    color: #dcfce7;
}

.customer-service-subtitle[data-status-type="typing"] {
    background: rgba(245, 158, 11, 0.22);
    color: #fef3c7;
}

.customer-service-subtitle[data-status-type="image"] {
    background: rgba(14, 165, 233, 0.22);
    color: #e0f2fe;
}

.customer-service-subtitle[data-status-type="voice"] {
    background: rgba(124, 58, 237, 0.22);
    color: #ede9fe;
}

.customer-service-avatar-state {
    min-width: 34px;
    height: 15px;
    border-width: 0.5px;
    font-size: 8px;
    line-height: 11px;
}

.customer-service-avatar-state[data-status-type="online"] {
    background: #16a34a;
    box-shadow: 0 5px 12px rgba(22, 163, 74, 0.34);
}

.customer-service-avatar-state[data-status-type="offline"] {
    border-color: #fde68a;
    background: #fef3c7;
    color: #92400e;
    box-shadow: 0 5px 12px rgba(245, 158, 11, 0.22);
}

.customer-service-avatar-state[data-status-type="typing"] {
    background: #f59e0b;
    box-shadow: 0 5px 12px rgba(245, 158, 11, 0.34);
}

.customer-service-avatar-state[data-status-type="image"] {
    background: #0284c7;
    box-shadow: 0 5px 12px rgba(2, 132, 199, 0.34);
}

.customer-service-avatar-state[data-status-type="voice"] {
    background: #7c3aed;
    box-shadow: 0 5px 12px rgba(124, 58, 237, 0.34);
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-active-online] {
    border: 1px solid transparent;
    font-weight: 900;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-active-online][data-status-type="online"],
body.customer-service-agent-body .service-agent-session-main .customer-service-session-presence[data-status-type="online"] {
    border-color: #86efac;
    background: #dcfce7;
    color: #15803d;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-active-online][data-status-type="offline"],
body.customer-service-agent-body .service-agent-session-main .customer-service-session-presence[data-status-type="offline"] {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #64748b;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-status] {
    border: 1px solid transparent;
    font-weight: 900;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-status][data-status-type="typing"] {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #b45309;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-status][data-status-type="image"] {
    border-color: #7dd3fc;
    background: #e0f2fe;
    color: #0369a1;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-status][data-status-type="voice"] {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #6d28d9;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-status][data-status-type="serving"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

body.customer-service-agent-body .service-agent-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

body.customer-service-agent-body .service-agent-top-actions form {
    margin: 0;
}

body.customer-service-agent-body .service-agent-presence-pill {
    appearance: none;
    width: max-content;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f8fafc;
    font-family: inherit;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

body.customer-service-agent-body .service-agent-presence-pill[data-status-type="online"] {
    border-color: #86efac;
    background: #dcfce7;
    color: #15803d;
}

body.customer-service-agent-body .service-agent-presence-pill[data-status-type="offline"] {
    border-color: #fde68a;
    background: #fef3c7;
    color: #92400e;
}

body.customer-service-agent-body .service-agent-presence-toggle.is-offline {
    border-color: #fde68a;
    background: #fef3c7;
    color: #92400e;
}

body.customer-service-agent-body .service-agent-presence-toggle.is-online {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

body.customer-service-agent-body .service-agent-presence-pill:disabled,
body.customer-service-agent-body .service-agent-presence-toggle:disabled {
    cursor: wait;
    opacity: 0.68;
}

.customer-service-hours {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

body.service-agent-settings-open {
    overflow: hidden;
}

body.service-agent-settings-open .bottom-float-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.customer-service-agent-body .service-agent-settings-toggle {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

body.customer-service-agent-body .service-agent-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: grid;
    place-items: center;
    padding: 18px;
}

body.customer-service-agent-body .service-agent-settings-modal.is-keyboard-active {
    inset: var(--form-modal-viewport-top, 0px) 0 auto 0;
    height: var(--form-modal-viewport-height, 100vh);
    max-height: var(--form-modal-viewport-height, 100vh);
    place-items: start center;
    overflow-y: auto;
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}

body.customer-service-agent-body .service-agent-settings-modal[hidden] {
    display: none;
}

body.customer-service-agent-body .service-agent-settings-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
}

body.customer-service-agent-body .service-agent-settings-card {
    position: relative;
    z-index: 1;
    width: min(486px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

body.customer-service-agent-body .service-agent-settings-modal.is-keyboard-active .service-agent-settings-card {
    max-height: calc(var(--form-modal-viewport-height, 100vh) - 16px);
}

body.customer-service-agent-body .service-agent-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e2e8f0;
}

body.customer-service-agent-body .service-agent-settings-head span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

body.customer-service-agent-body .service-agent-settings-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
}

body.customer-service-agent-body .service-agent-settings-head button {
    width: 48px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24);
}

body.customer-service-agent-body .service-agent-settings-head button:hover,
body.customer-service-agent-body .service-agent-settings-head button:focus-visible {
    background: #dc2626;
    color: #ffffff;
}

body.customer-service-agent-body .service-agent-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px 14px 14px;
}

body.customer-service-agent-body .service-agent-settings-form label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

body.customer-service-agent-body .service-agent-settings-duo {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    grid-template-rows: auto auto;
    align-items: end;
    gap: 5px 8px;
}

body.customer-service-agent-body .service-agent-settings-duo > label {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

body.customer-service-agent-body .service-agent-settings-duo > .service-agent-nickname-picker,
body.customer-service-agent-body .service-agent-settings-duo > input {
    min-width: 0;
}

body.customer-service-agent-body .service-agent-settings-duo > label:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
}

body.customer-service-agent-body .service-agent-settings-duo > label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

body.customer-service-agent-body .service-agent-settings-duo > .service-agent-nickname-picker {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 220px);
    max-width: 220px;
}

body.customer-service-agent-body .service-agent-settings-duo > input {
    grid-column: 2;
    grid-row: 2;
    width: 132px !important;
    justify-self: end;
    text-align: center;
}

body.customer-service-agent-body .service-agent-settings-form .is-wide {
    grid-column: 1 / -1;
}

body.customer-service-agent-body .service-agent-settings-notice {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

body.customer-service-agent-body .service-agent-settings-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
}

body.customer-service-agent-body .service-agent-settings-switch {
    display: inline-flex !important;
    width: auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    grid-column: auto;
    gap: 6px;
    flex: 0 0 auto;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}

body.customer-service-agent-body .service-agent-settings-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.customer-service-agent-body .service-agent-settings-switch > span {
    position: relative;
    display: inline-flex;
    width: 38px;
    height: 22px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: flex-end;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    padding: 0;
    font-size: 0;
    font-weight: 950;
    line-height: 1;
    transition: background 0.16s ease, color 0.16s ease;
}

body.customer-service-agent-body .service-agent-settings-switch > span::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18);
    transition: transform 0.16s ease;
}

body.customer-service-agent-body .service-agent-settings-switch > span::after {
    content: "";
}

body.customer-service-agent-body .service-agent-settings-switch input[type="checkbox"]:checked + span {
    justify-content: flex-start;
    background: #16a34a;
    color: #ffffff;
    padding: 0;
}

body.customer-service-agent-body .service-agent-settings-switch input[type="checkbox"]:checked + span::before {
    transform: translateX(16px);
}

body.customer-service-agent-body .service-agent-settings-switch input[type="checkbox"]:checked + span::after {
    content: "";
}

body.customer-service-agent-body .service-agent-settings-switch em {
    display: none;
    color: #475569;
    font-style: normal;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-settings-form input:not([type="checkbox"]),
body.customer-service-agent-body .service-agent-settings-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

body.customer-service-agent-body .service-agent-settings-form input:not([type="checkbox"]) {
    min-height: 42px;
    padding: 0 12px;
}

body.customer-service-agent-body .service-agent-settings-form textarea {
    min-height: 86px;
    resize: vertical;
    padding: 10px 12px;
    line-height: 1.5;
}

body.customer-service-agent-body .service-agent-settings-form input:focus,
body.customer-service-agent-body .service-agent-settings-form textarea:focus {
    border-color: #60a5fa;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

body.customer-service-agent-body .service-agent-nickname-picker {
    position: relative;
}

body.customer-service-agent-body .service-agent-nickname-picker input {
    padding-right: 48px !important;
}

body.customer-service-agent-body .service-agent-nickname-picker [data-service-agent-nickname-toggle] {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
}

body.customer-service-agent-body .service-agent-nickname-picker [data-service-agent-nickname-toggle]:disabled {
    color: #94a3b8;
}

body.customer-service-agent-body .service-agent-nickname-picker.is-open [data-service-agent-nickname-toggle] {
    background: #e0f2fe;
    color: #0369a1;
}

body.customer-service-agent-body .service-agent-nickname-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 40;
    max-height: 190px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

body.customer-service-agent-body .service-agent-nickname-menu[hidden] {
    display: none;
}

body.customer-service-agent-body .service-agent-nickname-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    border-radius: 8px;
}

body.customer-service-agent-body .service-agent-nickname-row:hover,
body.customer-service-agent-body .service-agent-nickname-row.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}

body.customer-service-agent-body .service-agent-nickname-row button {
    min-height: 34px;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 850;
}

body.customer-service-agent-body .service-agent-nickname-row [data-service-agent-nickname-option] {
    min-width: 0;
    overflow: hidden;
    padding: 0 9px;
    color: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-nickname-row [data-service-agent-nickname-delete] {
    width: 30px;
    height: 30px;
    min-height: 30px;
    justify-self: center;
    border-radius: 999px;
    color: #ef4444;
    font-size: 15px;
    line-height: 1;
}

body.customer-service-agent-body .service-agent-nickname-row [data-service-agent-nickname-delete]:hover {
    background: #fee2e2;
    color: #b91c1c;
}

body.customer-service-agent-body .service-agent-nickname-row [data-service-agent-nickname-delete]:disabled {
    opacity: 0.55;
}

body.customer-service-agent-body .service-agent-settings-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
}

body.customer-service-agent-body .service-agent-settings-check input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

body.customer-service-agent-body .service-agent-settings-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

body.customer-service-agent-body .service-agent-settings-actions button {
    min-height: 40px;
    min-width: 96px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 950;
}

body.customer-service-agent-body .service-agent-settings-actions button[type="button"] {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
}

body.customer-service-agent-body .service-agent-settings-actions button[type="submit"] {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

body.customer-service-agent-body .service-agent-queue-title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.1;
}

body.customer-service-agent-body .service-agent-queue-delete {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    font-weight: 950;
}

body.customer-service-agent-body .service-agent-queue-delete:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

body.customer-service-agent-body .service-agent-session {
    cursor: pointer;
}

body.customer-service-agent-body .service-agent-session-side {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 4px;
    min-width: 96px;
    white-space: normal;
}

body.customer-service-agent-body .service-agent-session-side small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

body.customer-service-agent-body .service-agent-chat-block-controls {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

body.customer-service-agent-body .service-agent-chat-block-controls[hidden],
body.customer-service-agent-body .service-agent-chat-block-controls select[hidden] {
    display: none !important;
}

body.customer-service-agent-body .service-agent-session-side em,
body.customer-service-agent-body .service-agent-session-side .support-status-badge,
body.customer-service-agent-body .service-agent-session-side select[data-service-agent-block-limit],
body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit] {
    flex: 0 0 auto;
}

body.customer-service-agent-body .service-agent-session:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.26);
    outline-offset: 2px;
}

body.customer-service-agent-body .service-agent-session-side select[data-service-agent-block-limit],
body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit] {
    position: relative;
    z-index: 3;
    width: 92px;
    height: 28px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 7px center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    outline: none;
    padding: 0 22px 0 10px;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}

body.customer-service-agent-body .service-agent-session-side .is-blocked,
body.customer-service-agent-body .service-agent-session-side .support-status-badge.is-blocked {
    background: #f1f5f9;
    color: #475569;
}

body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit]:disabled {
    cursor: wait;
    opacity: 0.62;
}

/* Agent title and chat header visual hierarchy. */
body.customer-service-agent-body .service-agent-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 10px;
    border-color: #cfe0f5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.customer-service-agent-body .service-agent-title-block {
    display: grid;
    min-width: 0;
    gap: 4px;
}

body.customer-service-agent-body .service-agent-title-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

body.customer-service-agent-body .service-agent-title-label {
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-top h1 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

body.customer-service-agent-body .service-agent-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: 0;
}

body.customer-service-agent-body .service-agent-top-actions button,
body.customer-service-agent-body .service-agent-actions button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 950;
}

body.customer-service-agent-body .service-agent-chat-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 7px 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.customer-service-agent-body .service-agent-chat-profile {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.customer-service-agent-body .service-agent-chat-profile-text {
    align-content: center;
    display: grid;
    min-width: 0;
    gap: 3px;
}

body.customer-service-agent-body .service-agent-avatar {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    font-size: 13px;
    font-weight: 950;
}

body.customer-service-agent-body .service-agent-chat-head h2 {
    max-width: 150px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

body.customer-service-agent-body .service-agent-chat-head p {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    overflow: hidden;
}

body.customer-service-agent-body .service-agent-chat-head p span {
    min-height: 18px;
    max-width: 72px;
    padding: 0 6px;
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 850;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-chat-head .service-agent-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    margin-left: 0;
}

body.customer-service-agent-body .service-agent-chat-block-controls {
    gap: 8px;
}

body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit],
body.customer-service-agent-body .service-agent-chat-head button[data-customer-service-clear] {
    height: 30px;
    min-height: 30px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
}

body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit] {
    width: 100px;
}

body.customer-service-agent-body .service-agent-chat-head button[data-customer-service-clear] {
    min-width: 82px;
    padding: 0 10px;
    border-color: #dbe5ef;
    background: #f8fafc;
    color: #475569;
}

@media (max-width: 720px) {
    body.customer-service-agent-body .service-agent-top {
        grid-template-columns: minmax(86px, 0.82fr) minmax(0, 1.18fr);
        gap: 6px;
        min-height: 56px;
        padding: 7px 8px;
    }

    body.customer-service-agent-body .service-agent-top-actions {
        width: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    body.customer-service-agent-body .service-agent-top-actions button {
        width: 100%;
        justify-content: center;
        min-height: 30px;
        padding: 0 6px;
        font-size: 11px;
    }

    body.customer-service-agent-body .service-agent-title-label {
        font-size: 10.5px;
    }

    body.customer-service-agent-body .service-agent-presence-pill {
        min-height: 19px;
        padding: 0 7px;
        font-size: 10px;
    }

    body.customer-service-agent-body .service-agent-top h1 {
        font-size: 17px;
    }

    body.customer-service-agent-body .service-agent-chat-head {
        grid-template-columns: minmax(0, 138px) minmax(0, 1fr);
        gap: 5px;
        min-height: 44px;
        padding: 6px;
    }

    body.customer-service-agent-body .service-agent-chat-profile {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 6px;
    }

    body.customer-service-agent-body .service-agent-avatar {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 12px;
    }

    body.customer-service-agent-body .service-agent-chat-head h2 {
        max-width: 88px;
        font-size: 13px;
    }

    body.customer-service-agent-body .service-agent-chat-head p span {
        max-width: 56px;
        min-height: 16px;
        padding: 0 5px;
        font-size: 10px;
        line-height: 16px;
    }

    body.customer-service-agent-body .service-agent-chat-head .service-agent-actions {
        gap: 7px;
    }

    body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit] {
        width: 102px;
    }

    body.customer-service-agent-body .service-agent-chat-head button[data-customer-service-clear] {
        min-width: 78px;
        padding: 0 8px;
    }

    body.customer-service-agent-body .service-agent-settings-form {
        grid-template-columns: 1fr;
    }

    body.customer-service-agent-body .service-agent-settings-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    body.customer-service-agent-body .service-agent-session {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.customer-service-agent-body .service-agent-session-side {
        min-width: 96px;
        gap: 4px;
    }

    body.customer-service-agent-body .service-agent-session-side small {
        max-width: 96px;
    }
}

body.customer-service-agent-body .service-agent-session {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: 86px;
    padding: 10px 12px;
}

body.customer-service-agent-body .service-agent-session-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-top {
    display: flex;
    grid-column: auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: none;
    min-width: 0;
    overflow: visible;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    text-overflow: clip;
    white-space: normal;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta {
    display: inline-flex;
    grid-column: auto;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    max-width: none;
    min-width: 0;
    overflow: visible;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    text-overflow: clip;
    white-space: normal;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta strong {
    flex: 0 1 auto;
    max-width: 150px;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-top .service-agent-session-side {
    display: inline-flex;
    grid-column: auto;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-top .service-agent-session-side small {
    max-width: 118px;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1;
    text-align: right;
}

body.customer-service-agent-body .service-agent-session-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.24);
}

body.customer-service-agent-body .service-agent-session-unread[hidden] {
    display: none !important;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-preview {
    display: block;
    grid-column: auto;
    max-width: 100%;
    min-height: 18px;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    body.customer-service-agent-body .service-agent-session {
        min-height: 78px;
        padding: 9px 10px;
    }

    body.customer-service-agent-body .service-agent-session-main {
        gap: 10px;
    }

    body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta strong {
        max-width: 132px;
    }

    body.customer-service-agent-body .service-agent-session-main .service-agent-session-top .service-agent-session-side small {
        max-width: 104px;
    }
}

/* Agent reception mobile frame. */
@media (hover: none) and (pointer: coarse), (max-width: 720px) {
    body.customer-service-agent-body {
        --service-agent-mobile-nav-height: var(--front-mobile-card-height, 66px);
        --service-agent-mobile-nav-link-height: var(--front-mobile-link-height, 50px);
        --service-agent-mobile-gap: 4px;
        --service-agent-mobile-bottom-reserve: calc(
            var(--service-agent-mobile-nav-height) +
            var(--front-bottom-nav-bottom, 2px) +
            var(--service-agent-mobile-gap) +
            env(safe-area-inset-bottom)
        );
    }

    body.customer-service-agent-body .page-frame {
        height: 100vh;
        min-height: 100vh;
        padding-bottom: var(--service-agent-mobile-bottom-reserve) !important;
    }

    body.customer-service-agent-body .top-bar {
        box-sizing: border-box;
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: var(--service-agent-mobile-nav-height);
        min-height: var(--service-agent-mobile-nav-height);
        max-height: var(--service-agent-mobile-nav-height);
        border-right: 0;
        border-left: 0;
        border-radius: 0 0 var(--front-bottom-nav-radius, 16px) var(--front-bottom-nav-radius, 16px);
        transform: none;
    }

    body.customer-service-agent-body .top-bar-inner {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 0;
        gap: 8px;
        padding: 7px 8px !important;
    }

    body.customer-service-agent-body .top-brand {
        max-width: calc(100% - 122px);
        gap: 8px;
        overflow: hidden;
    }

    body.customer-service-agent-body .top-brand-copy,
    body.customer-service-agent-body .top-brand-title {
        min-width: 0;
        overflow: hidden;
    }

    body.customer-service-agent-body .top-brand-mark {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    body.customer-service-agent-body .top-brand-name-main,
    body.customer-service-agent-body .top-brand-name-accent {
        overflow: hidden;
        font-size: clamp(1.32rem, 5.4vw, 1.58rem) !important;
        text-overflow: ellipsis;
    }

    body.customer-service-agent-body .top-brand-domain {
        margin-top: 2px;
        overflow: hidden;
        font-size: 10.5px !important;
        text-overflow: ellipsis;
    }

    body.customer-service-agent-body .top-action-btn {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }

    body.customer-service-agent-body .top-bar-spacer {
        height: calc(var(--service-agent-mobile-nav-height) + var(--service-agent-mobile-gap));
        flex: 0 0 calc(var(--service-agent-mobile-nav-height) + var(--service-agent-mobile-gap));
    }

    body.customer-service-agent-body .bottom-float-nav {
        height: var(--service-agent-mobile-nav-height);
        min-height: var(--service-agent-mobile-nav-height);
        max-height: var(--service-agent-mobile-nav-height);
        gap: 7px;
        padding: 6px 7px;
    }

    body.customer-service-agent-body .bottom-nav-link {
        height: var(--service-agent-mobile-nav-link-height);
        min-height: var(--service-agent-mobile-nav-link-height);
        max-height: var(--service-agent-mobile-nav-link-height);
        gap: 3px;
        padding: 2px 4px;
    }

    body.customer-service-agent-body .customer-service-agent-shell {
        box-sizing: border-box;
        width: 100%;
        max-width: 760px;
        padding: 0 0 var(--service-agent-mobile-gap);
    }

    body.customer-service-agent-body .customer-service-agent-shell .customer-service-agent-console {
        height: 100%;
        min-height: 0;
        gap: 4px;
        overflow: hidden;
    }

    body.customer-service-agent-body .service-agent-top,
    body.customer-service-agent-body .service-agent-grid {
        box-sizing: border-box;
        width: calc(100% - 20px);
        justify-self: center;
        margin-right: auto;
        margin-left: auto;
    }

    body.customer-service-agent-body .service-agent-top {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 5px;
        min-height: 0;
        padding: 6px;
        border-radius: 10px;
    }

    body.customer-service-agent-body .service-agent-title-block {
        gap: 3px;
    }

    body.customer-service-agent-body .service-agent-title-meta {
        gap: 5px;
    }

    body.customer-service-agent-body .service-agent-top h1 {
        font-size: 16px;
        letter-spacing: 0;
    }

    body.customer-service-agent-body .service-agent-top-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    body.customer-service-agent-body .service-agent-top-actions form {
        display: flex;
        min-width: 0;
    }

    body.customer-service-agent-body .service-agent-top-actions button {
        width: 100%;
        min-height: 28px;
        padding: 0 4px;
        font-size: 10.5px;
    }

    body.customer-service-agent-body .service-agent-view-switch {
        gap: 4px;
    }

    body.customer-service-agent-body .service-agent-view-switch button {
        min-height: 30px;
        gap: 4px;
        padding: 0 6px;
        border-radius: 8px;
    }

    body.customer-service-agent-body .service-agent-view-switch span {
        font-size: 10.5px;
    }

    body.customer-service-agent-body .service-agent-view-switch strong {
        max-width: 78px;
        padding: 4px 5px;
        font-size: 10px;
    }

    body.customer-service-agent-body .service-agent-grid,
    body.customer-service-agent-body .service-agent-queue,
    body.customer-service-agent-body .service-agent-chat {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.customer-service-agent-body .service-agent-chat-head {
        grid-template-columns: minmax(118px, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 0;
        padding: 6px;
    }

    body.customer-service-agent-body .service-agent-chat-profile {
        grid-template-columns: 28px minmax(82px, 1fr);
        gap: 6px;
    }

    body.customer-service-agent-body .service-agent-chat-profile-text {
        gap: 2px;
    }

    body.customer-service-agent-body .service-agent-avatar {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 12px;
    }

    body.customer-service-agent-body .service-agent-chat-head h2 {
        max-width: 96px;
        font-size: 13px;
    }

    body.customer-service-agent-body .service-agent-chat-head p {
        max-width: 96px;
    }

    body.customer-service-agent-body .service-agent-chat-head p span {
        max-width: 72px;
        min-height: 16px;
        line-height: 16px;
    }

    body.customer-service-agent-body .service-agent-chat-head .service-agent-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: auto;
        min-width: 0;
    }

    body.customer-service-agent-body .service-agent-chat-block-controls {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        min-width: 0;
        width: auto;
    }

    body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit],
    body.customer-service-agent-body .service-agent-chat-head button[data-customer-service-clear] {
        height: 28px;
        min-height: 28px;
        padding: 0 8px;
        font-size: 12.5px;
    }

    body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit] {
        width: 102px;
    }

    body.customer-service-agent-body .service-agent-chat-head button[data-customer-service-clear] {
        min-width: 78px;
    }

    body.customer-service-agent-body .service-agent-message-stream {
        flex: 1 1 auto;
        min-height: 0;
        padding: 8px;
    }

    body.customer-service-agent-body .service-agent-message-stream .customer-service-bubble-wrap {
        max-width: 88%;
    }

    body.customer-service-agent-body .service-agent-compose {
        flex: 0 0 auto;
        padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    }

    body.customer-service-agent-body .service-agent-locked {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 8px;
    }

    body.customer-service-agent-body .service-agent-settings-modal {
        place-items: stretch center;
        padding: max(10px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom));
    }

    body.customer-service-agent-body .service-agent-settings-card {
        display: flex;
        width: min(100%, 520px);
        max-height: calc(100vh - 20px);
        flex-direction: column;
        overflow: hidden;
        border-radius: 14px;
    }

    body.customer-service-agent-body .service-agent-settings-head {
        flex: 0 0 auto;
        gap: 10px;
        padding: 10px 12px 8px;
    }

    body.customer-service-agent-body .service-agent-settings-head h2 {
        margin-top: 2px;
        font-size: 17px;
        line-height: 1.1;
    }

    body.customer-service-agent-body .service-agent-settings-head button {
        width: 44px;
        height: 32px;
        flex: 0 0 44px;
    }

    body.customer-service-agent-body .service-agent-settings-form {
        flex: 1 1 auto;
        grid-template-columns: 1fr;
        gap: 9px;
        min-height: 0;
        padding: 10px 12px 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.customer-service-agent-body .service-agent-settings-form label {
        gap: 5px;
        font-size: 12px;
    }

    body.customer-service-agent-body .service-agent-settings-duo {
        grid-template-columns: minmax(0, 1fr) 128px;
        gap: 5px 8px;
    }

    body.customer-service-agent-body .service-agent-settings-duo > .service-agent-nickname-picker {
        width: min(100%, 188px);
        max-width: 188px;
    }

    body.customer-service-agent-body .service-agent-settings-duo > input {
        width: 128px !important;
    }

    body.customer-service-agent-body .service-agent-settings-duo > label {
        font-size: 12px;
    }

    body.customer-service-agent-body .service-agent-settings-notice {
        gap: 5px;
        font-size: 12px;
    }

    body.customer-service-agent-body .service-agent-settings-notice-head {
        gap: 6px;
        min-height: 26px;
    }

    body.customer-service-agent-body .service-agent-settings-switch {
        gap: 5px;
        font-size: 11px;
    }

    body.customer-service-agent-body .service-agent-settings-switch > span {
        width: 36px;
        height: 22px;
        flex-basis: 36px;
        padding: 0;
        font-size: 10px;
    }

    body.customer-service-agent-body .service-agent-settings-switch > span::before {
        top: 3px;
        left: 3px;
        width: 16px;
        height: 16px;
    }

    body.customer-service-agent-body .service-agent-settings-switch input[type="checkbox"]:checked + span {
        padding: 0;
    }

    body.customer-service-agent-body .service-agent-settings-switch input[type="checkbox"]:checked + span::before {
        transform: translateX(14px);
    }

    body.customer-service-agent-body .service-agent-settings-form input:not([type="checkbox"]) {
        min-height: 38px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 13px;
    }

    body.customer-service-agent-body .service-agent-settings-form textarea {
        min-height: 68px;
        max-height: 118px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 13px;
        line-height: 1.45;
    }

    body.customer-service-agent-body .service-agent-settings-check {
        min-height: 38px;
        padding: 0 10px;
        border-radius: 10px;
    }

    body.customer-service-agent-body .service-agent-settings-actions {
        position: sticky;
        bottom: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0 -12px -12px;
        padding: 8px 12px 12px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 32%);
        box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
    }

    body.customer-service-agent-body .service-agent-settings-actions button {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        border-radius: 10px;
        font-size: 13px;
    }
}

@supports (height: 100dvh) {
    @media (hover: none) and (pointer: coarse), (max-width: 720px) {
        body.customer-service-agent-body .page-frame {
            height: 100dvh;
            min-height: 100dvh;
        }

        body.customer-service-agent-body .service-agent-settings-card {
            max-height: calc(100dvh - 20px);
        }
    }
}

/* Agent reception auto-online header. */
body.customer-service-agent-body .customer-service-agent-console {
    grid-template-rows: auto minmax(0, 1fr);
}

body.customer-service-agent-body .service-agent-top {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    overflow: hidden;
    padding-bottom: 0;
}

body.customer-service-agent-body .service-agent-top-main {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) minmax(86px, auto) minmax(74px, auto);
    align-items: center;
    gap: 12px;
}

body.customer-service-agent-body .service-agent-title-name {
    justify-self: start;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-top-main > .service-agent-presence-pill,
body.customer-service-agent-body .service-agent-top-main > .service-agent-settings-toggle {
    justify-self: end;
}

body.customer-service-agent-body .service-agent-top-main > form {
    display: flex;
    min-width: 0;
}

body.customer-service-agent-body .service-agent-settings-toggle,
body.customer-service-agent-body .service-agent-top-link,
body.customer-service-agent-body .service-agent-top-main > form > button,
body.customer-service-agent-body .service-agent-presence-pill {
    min-width: 0;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-top-main > .service-agent-settings-toggle,
body.customer-service-agent-body .service-agent-top-main > .service-agent-top-link,
body.customer-service-agent-body .service-agent-top-main > form > button {
    width: 100%;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch {
    gap: 0;
    width: calc(100% + 20px);
    margin: 0 -10px;
    overflow: hidden;
    padding-top: 0;
    border: 1px solid rgba(203, 216, 230, 0.9);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: #ffffff;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch button {
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch button + button {
    border-left: 1px solid rgba(203, 216, 230, 0.9);
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch button:first-child {
    border-radius: 0;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch button:last-child {
    border-radius: 0;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch button.is-active {
    background: #dff2ff;
    color: #075985;
    box-shadow: none;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch span,
body.customer-service-agent-body .service-agent-top .service-agent-view-switch strong {
    color: inherit;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch strong,
body.customer-service-agent-body .service-agent-top .service-agent-view-switch button.is-active strong {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

body.customer-service-agent-body .service-agent-top .service-agent-view-switch .service-agent-active-account-pill,
body.customer-service-agent-body .service-agent-top .service-agent-view-switch button.is-active .service-agent-active-account-pill {
    justify-self: end;
    max-width: 110px;
    padding: 4px 9px;
    border: 1px solid rgba(14, 116, 144, 0.2);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
    color: #075985;
}

body.customer-service-agent-body .service-agent-chat-block-controls select[data-service-agent-block-limit] {
    width: 90px;
    padding: 0 15px 0 8px;
    background-position: right 4px center;
    background-size: 12px 12px;
}

body.customer-service-agent-body .service-agent-chat-head button.service-agent-score-icon-btn[data-service-agent-score-open] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 92px;
    padding: 0 10px;
    border-color: #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-chat-head button.service-agent-score-icon-btn[data-service-agent-score-open]:hover,
body.customer-service-agent-body .service-agent-chat-head button.service-agent-score-icon-btn[data-service-agent-score-open]:focus-visible {
    border-color: #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.service-agent-score-modal {
    position: fixed;
    z-index: 10050;
    inset: var(--service-agent-score-viewport-top, 0px) 0 auto 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--service-agent-score-viewport-height, 100vh);
    max-height: var(--service-agent-score-viewport-height, 100vh);
    padding: 12px 14px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    overscroll-behavior: contain;
    transition: opacity 0.18s ease;
}

.service-agent-score-modal.is-keyboard-active {
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.service-agent-score-modal[hidden] {
    display: none;
}

.service-agent-score-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.service-agent-score-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
}

.service-agent-score-card {
    position: relative;
    z-index: 1;
    display: flex;
    max-height: calc(var(--service-agent-score-viewport-height, 100vh) - 24px);
    width: min(340px, calc(100vw - 32px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(219, 229, 239, 0.95);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24);
    transform: translate3d(0, 10px, 0) scale(0.985);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.service-agent-score-modal.is-visible .service-agent-score-card {
    transform: translate3d(0, 0, 0) scale(1);
}

.service-agent-score-modal.is-keyboard-active .service-agent-score-card {
    max-height: calc(var(--service-agent-score-viewport-height, 100vh) - 16px);
}

.service-agent-score-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.service-agent-score-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.service-agent-score-head button {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    cursor: pointer;
}

.service-agent-score-form {
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 9px 14px max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.service-agent-score-modal-open .bottom-float-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.service-agent-score-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.service-agent-score-account-row,
.service-agent-score-current-row {
    min-width: 0;
}

.service-agent-score-account-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 22px;
}

.service-agent-score-current-row {
    display: grid;
    grid-template-columns: max-content minmax(0, max-content);
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.service-agent-score-avatar {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.service-agent-score-account-row span,
.service-agent-score-current-row span,
.service-agent-score-field span {
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.service-agent-score-account-row span:not(.service-agent-score-avatar) {
    font-size: 12px;
    text-align: left;
}

.service-agent-score-current-row span {
    font-size: 19px;
    text-align: right;
}

.service-agent-score-account-row span:not(.service-agent-score-avatar)::after,
.service-agent-score-current-row span::after {
    content: "\ff1a";
}

.service-agent-score-current-row span {
    color: #c2410c;
    font-size: 19px;
    font-weight: 950;
}

.service-agent-score-account-row strong,
.service-agent-score-current-row strong {
    min-width: 0;
    overflow: hidden;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-agent-score-account-row strong {
    max-width: 170px;
    color: #0f172a;
    font-size: 12px;
    text-align: left;
}

.service-agent-score-current-row strong[data-service-agent-score-current] {
    max-width: 170px;
    color: #c2410c;
    font-size: 19px;
    line-height: 1.05;
}

.service-agent-score-field {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.service-agent-score-field input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    outline: none;
}

.service-agent-score-field input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.service-agent-score-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
}

.service-agent-score-modal.is-keyboard-active .service-agent-score-actions {
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 36%);
}

.service-agent-score-actions button {
    width: max-content;
    min-height: 38px;
    border: 0;
    border-radius: 11px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 950;
}

.service-agent-score-actions button[type="submit"] {
    background: #f97316;
    color: #ffffff;
}

body.customer-service-agent-body .service-agent-chat-head button.service-agent-clear-icon-btn[data-customer-service-clear] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    padding: 0;
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
    font-size: 15px;
}

body.customer-service-agent-body .service-agent-chat-head button.service-agent-clear-icon-btn[data-customer-service-clear]:hover,
body.customer-service-agent-body .service-agent-chat-head button.service-agent-clear-icon-btn[data-customer-service-clear]:focus-visible {
    border-color: #f87171;
    background: #fee2e2;
    color: #b91c1c;
}

body.customer-service-agent-body .service-agent-chat-head p span[data-customer-service-active-online] {
    min-height: 15px;
    height: 15px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 14px;
}

body.customer-service-agent-body .service-agent-compose {
    gap: 7px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
}

body.customer-service-agent-body .service-agent-compose .customer-service-tools {
    align-self: end;
    gap: 6px;
}

body.customer-service-agent-body .service-agent-compose .customer-service-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 16px;
}

body.customer-service-agent-body .service-agent-compose .customer-service-input {
    min-height: 38px;
    max-height: min(34vh, 168px);
    overflow-y: hidden;
    padding: 7px 10px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.45;
}

body.customer-service-agent-body .service-agent-compose .customer-service-send {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
    font-size: 17px;
}

body.customer-service-agent-body .service-agent-presence-toggle,
body.customer-service-agent-body .service-agent-title-label {
    display: none !important;
}

@media (hover: none) and (pointer: coarse), (max-width: 720px) {
    body.customer-service-agent-body .customer-service-agent-console {
        grid-template-rows: auto minmax(0, 1fr);
    }

    body.customer-service-agent-body .service-agent-top {
        gap: 6px;
        padding: 5px 5px 0;
    }

    body.customer-service-agent-body .service-agent-top-main {
        grid-template-columns: minmax(58px, 1fr) minmax(76px, auto) minmax(62px, auto);
        gap: 8px;
    }

    body.customer-service-agent-body .service-agent-title-name {
        font-size: 15px;
        letter-spacing: 0;
    }

    body.customer-service-agent-body .service-agent-presence-pill {
        min-width: 76px;
        max-width: 88px;
        min-height: 26px;
        padding: 0 8px;
        overflow: hidden;
        font-size: 10.5px;
        text-overflow: ellipsis;
    }

    body.customer-service-agent-body .service-agent-settings-toggle,
    body.customer-service-agent-body .service-agent-top-link,
    body.customer-service-agent-body .service-agent-top-main > form > button {
        min-height: 28px;
        padding: 0 7px;
        overflow: hidden;
        font-size: 10.5px;
        text-overflow: ellipsis;
    }

    body.customer-service-agent-body .service-agent-top .service-agent-view-switch {
        width: calc(100% + 10px);
        margin: 0 -5px;
        padding-top: 0;
        border-radius: 0;
    }

    body.customer-service-agent-body .service-agent-top .service-agent-view-switch button {
        min-height: 32px;
        padding: 0 7px;
        border-radius: 0;
    }

    body.customer-service-agent-body .service-agent-top .service-agent-view-switch button:first-child {
        border-radius: 0;
    }

    body.customer-service-agent-body .service-agent-top .service-agent-view-switch button:last-child {
        border-radius: 0;
    }
}

body.customer-service-agent-body .service-agent-session {
    grid-template-columns: minmax(0, 1fr);
}

body.customer-service-agent-body .service-agent-session-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta strong {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta .customer-service-session-presence {
    flex: 0 0 auto;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-top .service-agent-session-side {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-main .service-agent-session-top .service-agent-session-side small {
    max-width: 112px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-session-unread {
    min-width: 17px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 9px;
    line-height: 16px;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.22);
}

@media (max-width: 480px) {
    body.customer-service-agent-body .service-agent-session-main .service-agent-session-top {
        gap: 6px;
    }

    body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta {
        gap: 5px;
    }

    body.customer-service-agent-body .service-agent-session-main .service-agent-session-meta strong {
        max-width: 120px;
    }

    body.customer-service-agent-body .service-agent-session-main .service-agent-session-top .service-agent-session-side {
        gap: 4px;
    }

    body.customer-service-agent-body .service-agent-session-main .service-agent-session-top .service-agent-session-side small {
        max-width: 96px;
        font-size: 9.5px;
    }

    body.customer-service-agent-body .service-agent-session-unread {
        min-width: 16px;
        height: 15px;
        padding: 0 4px;
        font-size: 8.5px;
        line-height: 15px;
    }
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding-right: 0 !important;
}

body.customer-service-agent-body .service-agent-session {
    align-items: stretch !important;
    min-height: 76px !important;
    padding: 4px 10px 9px !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main > span.service-agent-session-top {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-meta {
    display: inline-flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-meta strong {
    min-width: 0 !important;
    max-width: 138px !important;
    flex: 0 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-meta .customer-service-session-presence {
    flex: 0 0 auto !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-top .service-agent-session-side {
    display: inline-flex !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    align-content: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: auto !important;
    max-width: 132px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-top .service-agent-session-side small {
    flex: 0 1 auto !important;
    display: inline-block !important;
    max-width: 106px !important;
    overflow: hidden !important;
    color: #94a3b8 !important;
    font-size: 9.5px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    text-align: right !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-preview {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 18px !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-unread {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 16px !important;
    height: 15px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    font-size: 8.5px !important;
    font-weight: 950 !important;
    line-height: 15px !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-unread[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    body.customer-service-agent-body .service-agent-session .service-agent-session-main > span.service-agent-session-top {
        gap: 6px !important;
    }

    body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-meta {
        gap: 5px !important;
    }

    body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-meta strong {
        max-width: 116px !important;
    }

    body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-top .service-agent-session-side small {
        max-width: 108px !important;
        font-size: 9px !important;
    }
}

body.customer-service-agent-body .service-agent-panel-head {
    min-height: 42px !important;
    align-items: center !important;
    padding: 5px 6px !important;
    background: #ffffff;
}

body.customer-service-agent-body .service-agent-panel-head > div:first-child {
    display: flex !important;
    min-width: 0;
    align-items: center;
    gap: 5px !important;
}

body.customer-service-agent-body .service-agent-panel-head h2,
body.customer-service-agent-body .service-agent-panel-head strong {
    line-height: 1 !important;
}

body.customer-service-agent-body .service-agent-queue-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

body.customer-service-agent-body .service-agent-queue-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 7px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

body.customer-service-agent-body .service-agent-queue-select input,
body.customer-service-agent-body .service-agent-session-check input {
    accent-color: #2563eb;
    cursor: pointer;
}

body.customer-service-agent-body .service-agent-queue-select input {
    width: 13px;
    height: 13px;
    margin: 0;
}

body.customer-service-agent-body .service-agent-queue-delete,
body.customer-service-agent-body .service-agent-session-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #dc2626;
    cursor: pointer;
}

body.customer-service-agent-body .service-agent-queue-delete {
    width: 52px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    font-size: 16px;
}

body.customer-service-agent-body .service-agent-queue-delete:disabled,
body.customer-service-agent-body .service-agent-queue-delete.is-disabled,
body.customer-service-agent-body .service-agent-session-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.customer-service-agent-body .service-agent-session {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: 72px !important;
    padding: 6px 8px !important;
}

body.customer-service-agent-body .service-agent-session-check {
    display: inline-flex;
    align-self: center;
    justify-self: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.customer-service-agent-body .service-agent-session-check input {
    width: 15px;
    height: 15px;
    margin: 0;
}

body.customer-service-agent-body .service-agent-session-check span {
    display: none;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main {
    gap: 5px !important;
}

body.customer-service-agent-body .service-agent-session-preview-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 26px !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-preview {
    display: block !important;
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.customer-service-agent-body .service-agent-session-delete {
    justify-self: end;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 8px;
    font-size: 13px;
}

body.customer-service-agent-body .service-agent-session-delete:hover,
body.customer-service-agent-body .service-agent-session-delete:focus-visible,
body.customer-service-agent-body .service-agent-queue-delete:hover,
body.customer-service-agent-body .service-agent-queue-delete:focus-visible {
    border-color: #f87171;
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 480px) {
    body.customer-service-agent-body .service-agent-panel-head {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 42px !important;
        padding: 5px 6px !important;
    }

    body.customer-service-agent-body .service-agent-queue-select {
        min-height: 26px;
        padding: 0 6px;
        font-size: 10.5px;
    }

    body.customer-service-agent-body .service-agent-queue-delete {
        width: 48px;
        height: 26px;
        font-size: 15px;
    }

    body.customer-service-agent-body .service-agent-session {
        min-height: 68px !important;
        padding: 6px 7px !important;
        gap: 6px !important;
    }

    body.customer-service-agent-body .service-agent-session .service-agent-session-main {
        gap: 4px !important;
    }

    body.customer-service-agent-body .service-agent-session .service-agent-session-main .service-agent-session-preview {
        max-height: 30px !important;
        font-size: 11px !important;
        line-height: 1.32 !important;
    }
}

.front-forecast-prediction-inner .front-forecast-prediction-plus,
.front-forecast-prediction-grid > .front-forecast-prediction-plus {
    display: inline !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0.26ch !important;
    color: #dc2626 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
}

.front-forecast-prediction-inner .front-forecast-prediction-zodiac-code > .front-forecast-prediction-plus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 1.1ch !important;
    min-height: 22px !important;
    margin: 0 0.08ch !important;
    line-height: 22px !important;
}

.front-forecast-prediction-inner .front-forecast-prediction-zodiac-code-row .front-forecast-prediction-plus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 1.1ch !important;
    min-height: 22px !important;
    margin: 0 0.12ch !important;
    line-height: 22px !important;
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../assets/vendor/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/vendor/fontawesome/webfonts/fa-brands-400.woff2") format("woff2");
}

html {
    scrollbar-gutter: stable;
}

.top-bar,
.bottom-float-nav,
.hero-live-box.is-floating,
.expert-post-modal-dialog,
.front-post-login-card,
.member-recharge-dialog {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.top-bar,
.bottom-float-nav {
    contain: layout paint;
    left: 50%;
    will-change: transform;
}

.top-bar,
.hero-live-box.is-floating {
    transform: translate3d(-50%, 0, 0);
}

.top-bar-inner {
    min-height: 74px;
}

.bottom-float-nav {
    min-height: 70px;
    transform: translate3d(-50%, 0, 0);
}

.bottom-nav-link {
    contain: layout paint;
    min-height: 54px;
    transform: none;
    will-change: auto;
    touch-action: manipulation;
}

.bottom-nav-link i {
    flex: 0 0 30px;
}

.bottom-nav-link span:not(.bottom-nav-unread) {
    display: block;
    min-height: 12px;
}

.auth-captcha-code {
    aspect-ratio: 112 / 42;
}

.member-console-avatar,
.customer-service-avatar,
.service-agent-avatar {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.expert-post-modal-avatar,
.front-post-reply-avatar {
    aspect-ratio: 1 / 1;
    overflow: visible;
}

.member-console-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-service-bubble.is-image {
    width: min(240px, 68vw);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.customer-service-bubble.is-image a,
.customer-service-bubble.is-image .customer-service-image-preview-open,
.customer-service-bubble.is-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.customer-service-bubble.is-image img {
    object-fit: cover;
}

.app-notice-modal,
.expert-post-modal,
.front-post-login-modal,
.member-recharge-modal,
.service-agent-settings-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.app-notice-modal.is-visible,
.expert-post-modal.is-visible,
.front-post-login-modal.is-visible,
.front-post-login-modal:not([hidden]),
.member-recharge-modal.is-visible,
.service-agent-settings-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.app-notice-dialog,
.expert-post-modal-dialog,
.front-post-login-card,
.member-recharge-dialog,
.service-agent-settings-card {
    transform: translate3d(0, 10px, 0) scale(0.985);
    transition: transform 0.18s ease, opacity 0.18s ease;
    will-change: transform, opacity;
}

.app-notice-modal.is-visible .app-notice-dialog,
.expert-post-modal.is-visible .expert-post-modal-dialog,
.front-post-login-modal.is-visible .front-post-login-card,
.front-post-login-modal:not([hidden]) .front-post-login-card,
.member-recharge-modal.is-visible .member-recharge-dialog,
.service-agent-settings-modal.is-visible .service-agent-settings-card {
    transform: translate3d(0, 0, 0) scale(1);
}

.expert-post-modal-body {
    position: relative;
    min-height: 420px;
}

.expert-post-modal-frame {
    aspect-ratio: 18 / 19;
    contain: layout paint;
}

.expert-post-modal.is-loading .expert-post-modal-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(226, 232, 240, 0) 0%, rgba(255, 255, 255, 0.72) 50%, rgba(226, 232, 240, 0) 100%),
        linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
    background-size: 220px 100%, 100% 100%;
    animation: app-skeleton-sheen 1.05s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes app-skeleton-sheen {
    0% {
        background-position: -220px 0, 0 0;
    }
    100% {
        background-position: calc(100% + 220px) 0, 0 0;
    }
}

/* 五个前台导航页统一居中基准。 */
:root {
    --front-fixed-center: 50%;
    --front-shell-width: min(
        var(--page-max-width),
        calc(100vw - (var(--page-side-gap) * 2))
    );
    --front-inner-width: min(
        var(--page-inner-width),
        calc(100vw - (var(--page-side-gap) * 2))
    );
    --front-bottom-nav-height: 70px;
    --front-top-card-height: 66px;
    --front-top-inner-padding-y: 7px;
    --front-top-spacer: 74px;
    --front-bottom-nav-bottom: 2px;
    --front-bottom-nav-gap: 8px;
    --front-bottom-nav-radius: 16px;
    --front-bottom-nav-padding-x: 8px;
    --front-bottom-nav-padding-y: 7px;
    --front-bottom-link-height: 54px;
    --front-bottom-link-gap: 4px;
    --front-bottom-link-padding: 4px 4px;
    --front-bottom-link-font-size: 12px;
    --front-bottom-icon-size: 30px;
    --front-bottom-icon-radius: 10px;
    --front-bottom-icon-font-size: 16px;
    --front-unified-bottom-gap: 10px;
    --front-unified-bottom-reserve: calc(
        var(--front-bottom-nav-height) +
        var(--front-bottom-nav-bottom) +
        var(--front-unified-bottom-gap) +
        env(safe-area-inset-bottom)
    );
}

body.forecast-panel-page {
    --forecast-bottom-nav-height: var(--front-bottom-nav-height) !important;
    --forecast-bottom-nav-bottom: var(--front-bottom-nav-bottom) !important;
    --forecast-bottom-nav-gap: 5px !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .page-frame {
    box-sizing: border-box !important;
    width: var(--front-shell-width) !important;
    max-width: var(--page-max-width) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .page-frame > section,
body:not(.standalone-modal-post):not(.customer-service-agent-body) .page-frame > .marquee {
    box-sizing: border-box !important;
    width: var(--front-inner-width) !important;
    max-width: var(--page-inner-width) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar {
    box-sizing: border-box !important;
    right: auto !important;
    left: var(--front-fixed-center) !important;
    width: var(--front-shell-width) !important;
    max-width: var(--page-max-width) !important;
    min-height: var(--front-top-card-height) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: translate3d(-50%, 0, 0) !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar-inner {
    box-sizing: border-box !important;
    min-height: var(--front-top-card-height) !important;
    padding-top: var(--front-top-inner-padding-y) !important;
    padding-bottom: var(--front-top-inner-padding-y) !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar-spacer {
    height: var(--front-top-spacer) !important;
    flex-basis: var(--front-top-spacer) !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .bottom-float-nav,
body.customer-service-agent-body .bottom-float-nav {
    box-sizing: border-box !important;
    right: auto !important;
    left: var(--front-fixed-center) !important;
    width: var(--front-inner-width) !important;
    max-width: var(--page-inner-width) !important;
    height: var(--front-bottom-nav-height) !important;
    min-height: var(--front-bottom-nav-height) !important;
    max-height: var(--front-bottom-nav-height) !important;
    bottom: calc(var(--front-bottom-nav-bottom) + env(safe-area-inset-bottom)) !important;
    gap: var(--front-bottom-nav-gap) !important;
    padding: var(--front-bottom-nav-padding-y) var(--front-bottom-nav-padding-x) !important;
    border-radius: var(--front-bottom-nav-radius) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: translate3d(-50%, 0, 0) !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .bottom-nav-link,
body.customer-service-agent-body .bottom-nav-link {
    box-sizing: border-box !important;
    height: var(--front-bottom-link-height) !important;
    min-height: var(--front-bottom-link-height) !important;
    gap: var(--front-bottom-link-gap) !important;
    padding: var(--front-bottom-link-padding) !important;
    font-size: var(--front-bottom-link-font-size) !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .bottom-nav-link i,
body.customer-service-agent-body .bottom-nav-link i {
    box-sizing: border-box !important;
    width: var(--front-bottom-icon-size) !important;
    height: var(--front-bottom-icon-size) !important;
    flex-basis: var(--front-bottom-icon-size) !important;
    border-radius: var(--front-bottom-icon-radius) !important;
    font-size: var(--front-bottom-icon-font-size) !important;
}

body:not(.standalone-modal-post):not(.customer-service-agent-body) .bottom-nav-link span:not(.bottom-nav-unread),
body.customer-service-agent-body .bottom-nav-link span:not(.bottom-nav-unread) {
    min-height: 12px !important;
    line-height: 1 !important;
}

html:has(body.front-unified-panel-page:not(.customer-service-agent-body)) {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-gutter: auto !important;
}

body.front-unified-panel-page:not(.customer-service-agent-body) {
    --front-unified-bottom-reserve: calc(
        var(--front-bottom-nav-height, 70px) +
        var(--front-bottom-nav-bottom, 2px) +
        var(--front-unified-bottom-gap, 10px) +
        env(safe-area-inset-bottom)
    );
    height: 100vh;
    min-height: 100vh;
    overflow: hidden !important;
    overscroll-behavior: none;
    scrollbar-gutter: auto;
}

body.front-unified-panel-page:not(.customer-service-agent-body) .page-frame {
    box-sizing: border-box !important;
    display: flex !important;
    height: 100vh !important;
    min-height: 100vh !important;
    flex-direction: column !important;
    padding-bottom: var(--front-unified-bottom-reserve) !important;
    overflow: hidden !important;
}

body.front-unified-panel-page:not(.customer-service-agent-body) .top-bar-spacer {
    flex: 0 0 auto;
}

body.front-unified-panel-page:not(.customer-service-agent-body) .front-unified-page {
    box-sizing: border-box !important;
    display: flex !important;
    width: var(--front-inner-width) !important;
    max-width: var(--page-inner-width) !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-self: start !important;
    min-height: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

body.front-unified-panel-page:not(.customer-service-agent-body)
.front-unified-page > .section-title {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto;
}

body.front-unified-panel-page:not(.customer-service-agent-body) .front-unified-frame {
    box-sizing: border-box !important;
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    grid-auto-rows: minmax(0, 1fr);
    min-height: 0 !important;
    margin-top: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
}

body.front-unified-panel-page.forecast-panel-page .front-unified-frame,
body.front-unified-panel-page.customer-service-body .front-unified-frame {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body.front-unified-panel-page.forecast-panel-page .forecast-stack,
body.front-unified-panel-page.customer-service-body .customer-service-frame,
body.front-unified-panel-page.member-auth-page .member-auth-frame {
    min-height: 0 !important;
}

body.front-unified-panel-page.customer-service-body .customer-service-frame {
    gap: 0;
    padding: 10px !important;
}

body.front-unified-panel-page.customer-service-body .customer-service-phone {
    flex: 1 1 auto;
}

body.front-unified-panel-page.customer-service-body .customer-service-section-title {
    overflow: visible;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-icon {
    position: relative;
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-icon i {
    font-size: 16px;
    line-height: 1;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-state {
    position: absolute;
    right: -8px;
    bottom: -5px;
    display: inline-flex;
    min-width: 30px;
    height: 15px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    line-height: 11px;
    white-space: nowrap;
}

body.front-unified-panel-page.customer-service-body
.customer-service-title-state[data-status-type="offline"] {
    border-color: #fde68a;
    background: #fef3c7;
    color: #92400e;
}

body.front-unified-panel-page.customer-service-body
.customer-service-title-state[data-status-type="typing"] {
    background: #f59e0b;
}

body.front-unified-panel-page.customer-service-body
.customer-service-title-state[data-status-type="image"] {
    background: #0284c7;
}

body.front-unified-panel-page.customer-service-body
.customer-service-title-state[data-status-type="voice"] {
    background: #7c3aed;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-text {
    min-width: 0;
    margin-left: 4px;
    white-space: nowrap;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-hours {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-clear {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.16);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-clear:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(254, 202, 202, 0.82);
}

body.front-unified-panel-page.customer-service-body .customer-service-title-clear:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.86);
    outline-offset: 2px;
}

body.front-unified-panel-page.customer-service-body .customer-service-head {
    display: none !important;
}

body.front-unified-panel-page.customer-service-body
.customer-service-phone > .customer-service-compose:not(.service-agent-compose) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}

body.front-unified-panel-page.customer-service-body
.customer-service-phone > .customer-service-compose:not(.service-agent-compose) .customer-service-tools {
    align-self: end;
    gap: 6px;
    padding-bottom: 0;
}

body.front-unified-panel-page.customer-service-body
.customer-service-phone > .customer-service-compose:not(.service-agent-compose) .customer-service-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
}

body.front-unified-panel-page.customer-service-body
.customer-service-phone > .customer-service-compose:not(.service-agent-compose) .customer-service-tool-btn.is-recording {
    font-size: 12px;
}

body.front-unified-panel-page.customer-service-body
.customer-service-phone > .customer-service-compose:not(.service-agent-compose) .customer-service-input {
    min-height: 40px;
    max-height: min(34vh, 168px);
    overflow-y: hidden;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.45;
}

body.front-unified-panel-page.customer-service-body
.customer-service-phone > .customer-service-compose:not(.service-agent-compose) .customer-service-send {
    align-self: end;
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
    font-size: 23px;
    line-height: 1;
}

/* 会员登录卡片按内容高度居中，避免被统一页面行高拉伸。 */
body.member-auth-page .member-auth-frame.front-unified-frame {
    grid-auto-rows: auto !important;
    align-content: center !important;
    justify-items: center !important;
}

body.member-auth-page .member-auth-card {
    align-self: center;
    justify-self: center;
    box-sizing: border-box;
    max-width: min(420px, 100%);
    height: auto;
    min-height: 0;
    margin: 0;
}

@supports (height: 100dvh) {
    body.front-unified-panel-page:not(.customer-service-agent-body) {
        height: 100dvh;
        min-height: 100dvh;
    }

    body.front-unified-panel-page:not(.customer-service-agent-body) .page-frame {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }
}

/* 稳定前台切换体验：保留真实布局，不使用顶部假加载条和滚动吸顶卡片。 */
@media (min-width: 721px) {
    html:has(body.forecast-panel-page:not(.front-unified-panel-page)),
    html:has(body.customer-service-body:not(.front-unified-panel-page)) {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        scrollbar-gutter: stable !important;
    }
}

.top-bar::after,
.bottom-float-nav::after {
    display: none !important;
    animation: none !important;
}

.top-brand-mark,
.top-brand-mark.top-brand-mark-has-image,
.bottom-nav-link.is-active i {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
}

.hero-live-box-anchor {
    display: none !important;
    height: 0 !important;
}

.hero-live-box.is-floating {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 686px !important;
    margin: 20px auto 0 !important;
    transform: none !important;
    z-index: auto !important;
    will-change: auto !important;
}

.forecast-live-slot .hero-live-box.is-floating {
    max-width: none !important;
    margin: 0 !important;
}

@media (max-width: 480px) {
    body.front-unified-panel-page:not(.customer-service-agent-body) .top-bar-inner {
        gap: 8px !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    body.front-unified-panel-page:not(.customer-service-agent-body) .top-brand {
        max-width: calc(100% - 108px) !important;
        gap: 8px !important;
    }

    body.front-unified-panel-page:not(.customer-service-agent-body) .top-brand-mark {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
        border-radius: 12px !important;
    }

    body.front-unified-panel-page:not(.customer-service-agent-body) .top-brand-name-main {
        font-size: clamp(1.1rem, 5.4vw, 1.42rem) !important;
    }

    body.front-unified-panel-page:not(.customer-service-agent-body) .top-brand-domain {
        font-size: 10px !important;
        letter-spacing: 0 !important;
    }

    body.front-unified-panel-page:not(.customer-service-agent-body) .top-action-btn {
        width: auto !important;
        min-width: 96px !important;
        height: 38px !important;
        flex-basis: auto !important;
        padding: 0 10px !important;
        border-radius: 14px !important;
        font-size: 13px !important;
    }

    body.forecast-panel-page .forecast-section-title {
        min-height: 44px;
        gap: 8px;
        padding: 8px 10px;
    }

    body.forecast-panel-page .forecast-section-title-main {
        gap: 6px;
        font-size: 18px;
    }

    body.forecast-panel-page .forecast-section-title-main i {
        font-size: 18px;
    }

body.forecast-panel-page .forecast-region-switch {
        gap: 5px;
    }

    body.forecast-panel-page .forecast-region-tab {
        min-width: 62px;
        min-height: 30px;
        gap: 4px;
        padding: 0 8px;
        font-size: 12px;
    }

    body.forecast-panel-page .forecast-page #section-live.hero-live-box {
        --forecast-live-left-width: clamp(54px, 13.6vw, 60px);
        gap: 4px !important;
        padding: 0 !important;
    }

    body.forecast-panel-page .forecast-page #section-live .hero-live-numbers {
        grid-template-columns: repeat(6, minmax(0, 1fr)) 7px minmax(0, 1fr) !important;
        padding: 3px 1px 1px !important;
    }

    body.forecast-panel-page .forecast-page #section-live .hero-live-numbers .result-jl-code {
        width: clamp(1.72rem, 6.35vw, 1.9rem) !important;
        height: clamp(1.72rem, 6.35vw, 1.9rem) !important;
        font-size: clamp(0.9rem, 3.24vw, 1rem) !important;
    }

    body.forecast-panel-page .forecast-page #section-live .hero-ball-zodiac {
        font-size: clamp(11.6px, 2.75vw, 12.8px) !important;
    }

    body.forecast-panel-page .forecast-page #section-live .hero-live-numbers .hero-ball-plus {
        width: 7px !important;
        min-width: 7px !important;
    }

    body.forecast-panel-page .forecast-page #section-live .hero-live-numbers .result-jl-plus {
        font-size: clamp(1.28rem, 4.15vw, 1.48rem) !important;
    }
}

@media (hover: none) and (pointer: coarse), (max-width: 720px) {
    :root {
        --front-mobile-card-height: calc(var(--front-bottom-nav-height, 70px) - 4px);
        --front-mobile-link-height: calc(var(--front-bottom-link-height, 54px) - 4px);
        --front-mobile-top-gap: 4px;
        --front-mobile-bottom-gap: 4px;
        --front-mobile-top-height: 58px;
        --front-mobile-top-spacer: calc(var(--front-mobile-top-height) + var(--front-mobile-top-gap));
        --front-mobile-bottom-reserve: calc(
            var(--front-mobile-card-height) +
            var(--front-bottom-nav-bottom, 2px) +
            var(--front-mobile-bottom-gap) +
            env(safe-area-inset-bottom)
        );
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .page-frame {
        padding-bottom: var(--front-mobile-bottom-reserve) !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar,
    body.customer-service-agent-body .top-bar {
        box-sizing: border-box !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: var(--front-mobile-top-height) !important;
        min-height: var(--front-mobile-top-height) !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 0 var(--front-bottom-nav-radius, 16px) var(--front-bottom-nav-radius, 16px) !important;
        transform: none !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar-inner,
    body.customer-service-agent-body .top-bar-inner {
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 98px !important;
        align-items: start !important;
        justify-content: normal !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        gap: 8px !important;
        padding: 7px 8px !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar-spacer,
    body.customer-service-agent-body .top-bar-spacer {
        height: var(--front-mobile-top-spacer) !important;
        flex: 0 0 var(--front-mobile-top-spacer) !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .bottom-float-nav,
    body.customer-service-agent-body .bottom-float-nav {
        right: var(--page-side-gap) !important;
        left: var(--page-side-gap) !important;
        width: auto !important;
        max-width: none !important;
        height: var(--front-mobile-card-height) !important;
        min-height: var(--front-mobile-card-height) !important;
        max-height: var(--front-mobile-card-height) !important;
        transform: none !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .bottom-nav-link,
    body.customer-service-agent-body .bottom-nav-link {
        height: var(--front-mobile-link-height) !important;
        min-height: var(--front-mobile-link-height) !important;
        max-height: var(--front-mobile-link-height) !important;
        gap: 3px !important;
        padding: 2px 4px !important;
    }

    body.front-unified-panel-page:not(.customer-service-agent-body) {
        --front-unified-bottom-reserve: calc(
            var(--front-mobile-card-height) +
            var(--front-bottom-nav-bottom, 2px) +
            var(--front-mobile-bottom-gap) +
            env(safe-area-inset-bottom)
        );
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand,
    body.customer-service-agent-body .top-brand {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-copy,
    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-title,
    body.customer-service-agent-body .top-brand-copy,
    body.customer-service-agent-body .top-brand-title {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-mark,
    body.customer-service-agent-body .top-brand-mark {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
        border-radius: 12px !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-name-main,
    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-name-accent,
    body.customer-service-agent-body .top-brand-name-main,
    body.customer-service-agent-body .top-brand-name-accent {
        font-size: clamp(1.18rem, 5.2vw, 1.42rem) !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-domain,
    body.customer-service-agent-body .top-brand-domain {
        margin-top: 2px !important;
        font-size: 10px !important;
        letter-spacing: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar-actions,
    body.customer-service-agent-body .top-bar-actions {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 98px !important;
        min-width: 98px !important;
        max-width: 98px !important;
        transform: none !important;
        justify-self: end !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-action-btn,
    body.customer-service-agent-body .top-action-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        flex: 0 0 auto !important;
        padding: 0 8px !important;
        border-radius: 14px !important;
        font-size: 13px !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-action-btn.top-action-download i,
    body.customer-service-agent-body .top-action-btn.top-action-download i {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
    }
}

@media (hover: none) and (pointer: coarse) and (max-width: 390px), (max-width: 390px) {
    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar-inner,
    body.customer-service-agent-body .top-bar-inner {
        grid-template-columns: minmax(0, 1fr) 94px !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-mark,
    body.customer-service-agent-body .top-brand-mark {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-name-main,
    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-brand-name-accent,
    body.customer-service-agent-body .top-brand-name-main,
    body.customer-service-agent-body .top-brand-name-accent {
        font-size: clamp(1.08rem, 5.7vw, 1.32rem) !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-action-btn,
    body.customer-service-agent-body .top-action-btn {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 12.5px !important;
    }

    body:not(.standalone-modal-post):not(.customer-service-agent-body) .top-bar-actions,
    body.customer-service-agent-body .top-bar-actions {
        width: 94px !important;
        min-width: 94px !important;
        max-width: 94px !important;
    }
}

@media (hover: none) and (pointer: coarse), (max-width: 720px) {
    body.front-unified-panel-page.customer-service-body .customer-service-frame {
        gap: 0 !important;
        padding: 0 !important;
    }

    body.front-unified-panel-page.customer-service-body .customer-service-phone {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: none !important;
    }

    body.front-unified-panel-page.customer-service-body .customer-service-chat,
    body.front-unified-panel-page.customer-service-body .customer-service-placeholder {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        flex: 1 1 auto !important;
    }

    body.front-unified-panel-page.customer-service-body {
        --front-unified-bottom-reserve: calc(
            var(--front-mobile-card-height) +
            var(--front-bottom-nav-bottom, 2px) +
            var(--front-mobile-bottom-gap)
        );
    }
}

.forecast-result-card,
.member-ai-log-card,
.member-ai-log-card-content,
.forecast-result-summary,
.forecast-result-summary-line,
.forecast-result-summary-body,
.forecast-result-summary-value {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.forecast-result-summary,
.forecast-result-summary-line,
.forecast-result-summary-body,
.forecast-result-summary-value {
    width: 100% !important;
    overflow-x: hidden !important;
}

.forecast-result-summary-line.is-pingte .forecast-result-summary-body {
    grid-template-columns: var(--forecast-result-tag-width) minmax(0, 1fr) !important;
    align-items: start !important;
}

.forecast-result-summary-line.is-pingte .forecast-result-summary-value {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    justify-self: stretch !important;
    justify-content: flex-start !important;
    gap: 2px 6px !important;
    overflow: hidden !important;
}

.forecast-result-summary-line.is-pingte .forecast-result-pingte-text {
    max-width: 100% !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group {
    display: inline-grid !important;
    align-items: center !important;
    justify-items: center !important;
    height: 22px !important;
    min-height: 22px !important;
    line-height: 22px !important;
    letter-spacing: 0 !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group.is-size-2 {
    grid-template-columns: 1.05ch 2.45ch 0.9ch 2.45ch 1.05ch;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group.is-size-3 {
    grid-template-columns: 1.05ch 2.45ch 0.9ch 2.45ch 0.9ch 2.45ch 1.05ch;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group .forecast-result-pingte-bracket,
.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group .forecast-result-pingte-separator,
.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group .forecast-result-pingte-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-height: 22px;
    line-height: 22px;
    letter-spacing: 0;
}

.member-ai-log-card .forecast-result-summary,
.member-ai-log-card .forecast-result-summary-line,
.member-ai-log-card .forecast-result-summary-body,
.member-ai-log-card .forecast-result-summary-value {
    height: auto !important;
    overflow: visible !important;
}

.member-ai-log-card .forecast-result-summary-line {
    align-items: center !important;
}

.member-ai-log-card .forecast-result-summary-line.is-zodiac .forecast-result-summary-body,
.member-ai-log-card .forecast-result-summary-line.is-number .forecast-result-summary-body,
.member-ai-log-card .forecast-result-summary-line.is-other .forecast-result-summary-body,
.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
    display: grid !important;
    grid-template-columns: var(--forecast-result-tag-width) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0 4px !important;
    min-height: 0 !important;
}

.member-ai-log-card .forecast-result-summary-line.is-zodiac .forecast-result-summary-type,
.member-ai-log-card .forecast-result-summary-line.is-number .forecast-result-summary-type,
.member-ai-log-card .forecast-result-summary-line.is-other .forecast-result-summary-type,
.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-summary-type {
    justify-self: stretch !important;
    align-self: start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-top: 1px !important;
}

.member-ai-log-card .forecast-result-summary-line.is-zodiac .forecast-result-summary-value,
.member-ai-log-card .forecast-result-summary-line.is-number .forecast-result-summary-value,
.member-ai-log-card .forecast-result-summary-line.is-other .forecast-result-summary-value,
.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-summary-value {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: flex-start !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 24px !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

.member-ai-log-card .forecast-result-summary-line.is-zodiac .forecast-result-summary-value {
    margin-left: 2px !important;
    gap: 4px 4px !important;
    padding-top: 1px !important;
}

.member-ai-log-card .forecast-result-summary-line.is-number .forecast-result-summary-value {
    margin-left: 2px !important;
    gap: 2px 3px !important;
    padding-top: 1px !important;
}

.member-ai-log-card .forecast-result-summary-line.is-other .forecast-result-summary-value {
    display: inline-flex !important;
    justify-self: start !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-left: 2px !important;
    gap: 2px 3px !important;
    padding-top: 0 !important;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-summary-value {
    display: flex !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 1px 1px !important;
    padding-top: 0 !important;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
    grid-template-columns: max-content minmax(0, 1fr) !important;
    gap: 0 !important;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-summary-type {
    justify-self: start !important;
    width: auto !important;
    max-width: none !important;
    margin-right: 0 !important;
}

.member-ai-log-card .forecast-result-summary-line.is-other .forecast-result-other-chip {
    transform: translateY(2px) !important;
}

.member-ai-log-card .forecast-result-type-chip {
    width: 100% !important;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: center !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 22px !important;
    line-height: 22px !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    vertical-align: middle !important;
    white-space: normal !important;
}

.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo .forecast-result-pingte-bracket,
.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo .forecast-result-pingte-separator,
.member-ai-log-card .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo .forecast-result-pingte-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-height: 22px;
    line-height: 22px;
    letter-spacing: 0;
}

@media (max-width: 480px) {
    .forecast-result-summary-line.is-pingte {
        --forecast-result-tag-width: 52px !important;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
        gap: 0 3px !important;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-summary-value {
        gap: 1px 4px !important;
    }

    .forecast-result-summary-line.is-pingte .forecast-result-pingte-text {
        font-size: 15px !important;
        line-height: 1.18 !important;
    }
}

.forecast-page .forecast-result-summary,
.forecast-page .forecast-result-summary-line,
.forecast-page .forecast-result-summary-body,
.forecast-page .forecast-result-summary-value {
    overflow: visible !important;
}

.forecast-page .forecast-result-scroll {
    overflow-x: hidden !important;
}

.forecast-page .forecast-result-zodiac-chip,
.forecast-page .forecast-result-number-chip,
.forecast-page .forecast-result-other-chip {
    font-size: 16px;
}

@media (max-width: 640px) {
    .forecast-page .forecast-result-zodiac-chip,
    .forecast-page .forecast-result-number-chip,
    .forecast-page .forecast-result-other-chip {
        font-size: 14.5px;
    }
}

@media (max-width: 390px) {
    .forecast-page .forecast-result-zodiac-chip,
    .forecast-page .forecast-result-number-chip,
    .forecast-page .forecast-result-other-chip {
        font-size: 13px;
    }
}

.forecast-page .forecast-result-blessing-label {
    font-size: 19px;
}

.forecast-page .forecast-result-blessing-text {
    font-size: 16.6px;
    line-height: 1.36;
}

.forecast-page .forecast-result-blessing-text.is-idiom {
    font-size: 17px;
}

.forecast-page .forecast-result-summary-line.is-pingte {
    --forecast-result-pingte-group-gap: 1px;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-summary-body {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0 !important;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-summary-type {
    justify-self: start !important;
    align-self: start !important;
    width: auto !important;
    max-width: none !important;
    margin-top: 1px !important;
    margin-right: 0 !important;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-summary-value {
    display: flex !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 1px 1px !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: center !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 22px !important;
    line-height: 22px !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    vertical-align: middle !important;
    white-space: normal !important;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group {
    display: inline-grid !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-items: center !important;
    height: 22px !important;
    min-height: 22px !important;
    line-height: 22px !important;
    letter-spacing: 0 !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group.is-size-2 {
    grid-template-columns: 1.05ch 2.45ch 0.9ch 2.45ch 1.05ch;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group.is-size-3 {
    grid-template-columns: 1.05ch 2.45ch 0.9ch 2.45ch 0.9ch 2.45ch 1.05ch;
}

.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo .forecast-result-pingte-bracket,
.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo .forecast-result-pingte-separator,
.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-combo .forecast-result-pingte-number,
.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group .forecast-result-pingte-bracket,
.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group .forecast-result-pingte-separator,
.forecast-page .forecast-result-summary-line.is-pingte .forecast-result-pingte-text.is-group .forecast-result-pingte-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-height: 22px;
    line-height: 22px;
    letter-spacing: 0;
}

.page-frame > #section-home.hero-banner {
    --home-hero-height: 388px;
    box-sizing: border-box !important;
    display: flex !important;
    width: var(--front-inner-width) !important;
    max-width: var(--page-inner-width) !important;
    height: auto !important;
    min-height: var(--home-hero-height) !important;
    max-height: none !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.page-frame > #section-home.hero-banner > .max-w-7xl {
    box-sizing: border-box !important;
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: var(--home-hero-height) !important;
    align-content: center !important;
    justify-items: center !important;
    grid-template-rows: auto auto auto auto;
    margin-right: auto !important;
    margin-left: auto !important;
    gap: clamp(8px, 1.5vw, 13px) !important;
    padding: clamp(18px, 2.6vw, 24px) clamp(12px, 2.2vw, 18px) !important;
}

.page-frame > #section-home.hero-banner #hero-library-pill,
.page-frame > #section-home.hero-banner #hero-main-title,
.page-frame > #section-home.hero-banner #hero-main-subtitle,
.page-frame > #section-home.hero-banner #section-live.hero-live-box {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page-frame > #section-home.hero-banner #hero-library-pill {
    flex-shrink: 0 !important;
    padding-top: clamp(7px, 1.6vw, 9px) !important;
    padding-bottom: clamp(7px, 1.6vw, 9px) !important;
}

.page-frame > #section-home.hero-banner #hero-library-copy {
    gap: clamp(2px, 0.6vw, 4px) !important;
}

.page-frame > #section-home.hero-banner #hero-main-title,
.page-frame > #section-home.hero-banner #hero-main-subtitle {
    min-height: 0;
}

.page-frame > #section-home.hero-banner #hero-main-title {
    line-height: 1.04 !important;
}

.page-frame > #section-home.hero-banner #hero-main-subtitle {
    line-height: 1.18 !important;
}

@media (min-width: 721px) {
    .page-frame > #section-home.hero-banner #hero-main-title {
        font-size: clamp(2.3rem, 6vw, 3.55rem) !important;
        letter-spacing: 0.006em !important;
    }

    .page-frame > #section-home.hero-banner #hero-main-subtitle {
        font-size: clamp(1.06rem, 2.65vw, 1.42rem) !important;
        font-weight: 600 !important;
    }
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box {
    display: block !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: min(100%, 686px) !important;
    max-width: 686px !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
    padding: clamp(7px, 1.25vw, 10px) clamp(9px, 1.7vw, 12px) clamp(6px, 1.1vw, 8px) !important;
    border-radius: 16px !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-head {
    display: grid !important;
    width: 100% !important;
    min-height: 30px !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: clamp(8px, 1.4vw, 12px) !important;
    margin: 0 !important;
    padding: 0 1px !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-left {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(6px, 1.1vw, 9px) !important;
    overflow: visible !important;
    text-align: left !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-badge {
    width: clamp(58px, 8.8vw, 66px) !important;
    min-width: clamp(58px, 8.8vw, 66px) !important;
    height: clamp(27px, 4.2vw, 30px) !important;
    padding: 0 5px !important;
    font-size: clamp(11px, 1.55vw, 12px) !important;
    line-height: 1 !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-period {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    padding: 0 !important;
    font-size: clamp(1.12rem, 2.55vw, 1.46rem) !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-time {
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: clamp(168px, 24vw, 182px) !important;
    max-width: 100% !important;
    min-height: clamp(28px, 4vw, 31px) !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: end !important;
    padding: 0 10px !important;
    font-size: clamp(12px, 1.55vw, 13px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-numbers {
    box-sizing: border-box !important;
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 66px !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) clamp(16px, 2.4vw, 22px) minmax(0, 1fr) !important;
    align-items: start !important;
    align-content: center !important;
    justify-items: center !important;
    justify-content: stretch !important;
    gap: 0 2px !important;
    margin-top: clamp(6px, 1.05vw, 8px) !important;
    padding: clamp(7px, 1.15vw, 9px) clamp(8px, 1.4vw, 10px) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-ball-item {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: clamp(2.18rem, 5.4vw, 2.58rem) 20px !important;
    align-items: center !important;
    justify-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 2px !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-numbers .result-jl-code {
    width: clamp(2.18rem, 5.4vw, 2.58rem) !important;
    height: clamp(2.18rem, 5.4vw, 2.58rem) !important;
    font-size: clamp(1.12rem, 2.7vw, 1.34rem) !important;
    font-weight: 600 !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-numbers .result-jl-plus {
    font-size: clamp(1.28rem, 2.9vw, 1.54rem) !important;
    line-height: clamp(2.18rem, 5.4vw, 2.58rem) !important;
    margin: 0 !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-numbers .hero-ball-plus {
    box-sizing: border-box !important;
    width: clamp(16px, 2.4vw, 22px) !important;
    min-width: clamp(16px, 2.4vw, 22px) !important;
    height: clamp(2.18rem, 5.4vw, 2.58rem) !important;
    align-self: start !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-ball-zodiac {
    display: block !important;
    margin-top: 0 !important;
    font-size: clamp(0.92rem, 2.15vw, 1.06rem) !important;
    line-height: 20px !important;
}

.page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    min-height: 20px !important;
    column-gap: clamp(18px, 3vw, 28px) !important;
    row-gap: 4px !important;
    margin-top: clamp(3px, 0.65vw, 5px) !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    font-size: clamp(0.8rem, 1.75vw, 0.92rem) !important;
    line-height: 1.32 !important;
}

@media (max-width: 720px) {
    .page-frame > #section-home.hero-banner {
        --home-hero-height: 342px;
    }

    .page-frame > #section-home.hero-banner > .max-w-7xl {
        align-content: space-between !important;
        gap: clamp(5px, 1.4vw, 7px) !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-head {
        grid-template-columns: minmax(0, 53%) minmax(0, 47%) !important;
        gap: 4px !important;
        min-height: 27px !important;
        padding: 0 !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-left {
        display: grid !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        grid-template-columns: clamp(58px, 16vw, 66px) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 4px !important;
        overflow: hidden !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-badge {
        width: 100% !important;
        min-width: 0 !important;
        height: 26px !important;
        padding: 0 3px !important;
        line-height: 1 !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-period {
        width: 100% !important;
        min-width: 0 !important;
        line-height: 1.05 !important;
        letter-spacing: -0.02em !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-time {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 26px !important;
        justify-self: stretch !important;
        padding-right: 5px !important;
        padding-left: 5px !important;
        line-height: 1.12 !important;
        letter-spacing: -0.01em !important;
        word-spacing: 0 !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-numbers {
        min-height: 62px !important;
        align-items: start !important;
        align-content: center !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box .hero-live-meta {
        min-height: 18px !important;
        margin-top: 2px !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    .page-frame > #section-home.hero-banner #hero-library-pill {
        width: min(640px, calc(100% - 64px)) !important;
    }

    .page-frame > #section-home.hero-banner #section-live.hero-live-box {
        width: min(100%, 680px) !important;
    }
}

body.customer-service-agent-body .service-agent-presence-pill,
body.customer-service-agent-body .service-agent-settings-toggle,
body.customer-service-agent-body .service-agent-top-main > form > button {
    font-size: 14px;
}

body.customer-service-agent-body .service-agent-view-switch span,
body.customer-service-agent-body .service-agent-top .service-agent-view-switch span {
    font-size: 14px;
}

body.customer-service-body.customer-service-compose-keyboard-active .page-frame,
body.front-unified-panel-page.customer-service-body.customer-service-compose-keyboard-active:not(.customer-service-agent-body) .page-frame,
body.customer-service-agent-body.customer-service-compose-keyboard-active .page-frame {
    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo {
    display: grid !important;
    grid-template-columns: 150px 132px !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    align-items: end !important;
    justify-content: space-between !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo > label:nth-of-type(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo > label:nth-of-type(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo > .service-agent-nickname-picker {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 150px !important;
    max-width: 150px !important;
    min-width: 0 !important;
    justify-self: start !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo > .service-agent-nickname-picker input {
    width: 100% !important;
    min-width: 0 !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo > #service-agent-service-hours {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 132px !important;
    max-width: 132px !important;
    min-width: 0 !important;
    justify-self: end !important;
    text-align: center !important;
}

@keyframes service-agent-activity-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 480px) {
    body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo {
        grid-template-columns: 142px 128px !important;
        column-gap: 10px !important;
    }

    body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo > .service-agent-nickname-picker {
        width: 142px !important;
        max-width: 142px !important;
    }

    body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo > #service-agent-service-hours {
        width: 128px !important;
        max-width: 128px !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
        font-size: 12px !important;
    }
}

.customer-service-activity-notice {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
}

.customer-service-activity-notice span {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.customer-service-activity-notice span > em {
    display: inline-block;
    padding-left: 100%;
    font-style: normal;
    white-space: nowrap;
    animation: service-agent-activity-marquee 18s linear infinite;
    will-change: transform;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo {
    display: grid !important;
    grid-template-columns: minmax(0, 122px) minmax(112px, 126px) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field {
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    min-width: 0 !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field.is-nickname {
    width: 100% !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field.is-hours {
    width: 100% !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field > label {
    display: block !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field .service-agent-nickname-picker,
body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field.is-hours input {
    padding-right: 6px !important;
    padding-left: 6px !important;
    font-size: 12px !important;
    text-align: center !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field.is-nickname input {
    padding-right: 30px !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field.is-nickname [data-service-agent-nickname-toggle] {
    width: 28px !important;
    height: 28px !important;
    right: 4px !important;
}

@media (max-width: 380px) {
    body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-duo {
        grid-template-columns: minmax(0, 116px) minmax(108px, 122px) !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
        gap: 8px !important;
    }

    body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field.is-nickname {
        width: 100% !important;
    }

    body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-field.is-hours {
        width: 100% !important;
    }
}

body.customer-service-agent-body .service-agent-settings-modal,
body.customer-service-agent-body .service-agent-settings-card,
body.customer-service-agent-body .service-agent-settings-form {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: contain !important;
}

body.customer-service-agent-body .service-agent-settings-card {
    box-sizing: border-box !important;
    width: min(486px, calc(100vw - 16px)) !important;
    touch-action: pan-y !important;
}

body.customer-service-agent-body .service-agent-settings-form {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-y: auto !important;
}

body.customer-service-agent-body .service-agent-settings-form .is-wide,
body.customer-service-agent-body .service-agent-settings-form label,
body.customer-service-agent-body .service-agent-settings-notice,
body.customer-service-agent-body .service-agent-settings-notice-head,
body.customer-service-agent-body .service-agent-settings-actions {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.customer-service-agent-body .service-agent-settings-form input:not([type="checkbox"]),
body.customer-service-agent-body .service-agent-settings-form textarea,
body.customer-service-agent-body .service-agent-nickname-picker,
body.customer-service-agent-body .service-agent-settings-actions button {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

body.customer-service-agent-body .service-agent-settings-form textarea {
    overflow-x: hidden !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-actions button {
    width: 100% !important;
    min-width: 0 !important;
}

body.customer-service-agent-body .service-agent-settings-head {
    min-height: 0 !important;
    padding: 10px 14px 8px !important;
}

body.customer-service-agent-body .service-agent-settings-head h2 {
    font-size: 18px !important;
    line-height: 1.1 !important;
}

body.customer-service-agent-body .service-agent-settings-head button {
    width: 40px !important;
    height: 30px !important;
    min-height: 30px !important;
    flex: 0 0 40px !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    box-shadow: none !important;
}

body.customer-service-agent-body .service-agent-settings-form .service-agent-settings-actions button[type="submit"] {
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

body.customer-service-body:not(.customer-service-compose-keyboard-active):not(.member-recharge-modal-open):not(.service-agent-score-modal-open) .bottom-float-nav {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.customer-service-body:not(.customer-service-compose-keyboard-active):not(.service-agent-settings-open) .bottom-float-nav {
    pointer-events: auto !important;
}

body.customer-service-body.service-agent-settings-open:not(.customer-service-compose-keyboard-active) .bottom-float-nav {
    z-index: 10041 !important;
    pointer-events: none !important;
}

body.customer-service-body:has(.service-agent-settings-modal.is-keyboard-active) .page-frame {
    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
}

body.customer-service-body:has(.service-agent-settings-modal.is-keyboard-active) .bottom-float-nav {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.customer-service-body.customer-service-compose-keyboard-active .page-frame,
body.customer-service-agent-body.customer-service-body.customer-service-compose-keyboard-active:has(.customer-service-agent-console) .page-frame {
    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
}

body.customer-service-body.customer-service-compose-keyboard-active .customer-service-page,
body.customer-service-body.customer-service-compose-keyboard-active .customer-service-agent-shell {
    padding-bottom: 0 !important;
}

body.customer-service-body.customer-service-compose-keyboard-active .bottom-float-nav {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.front-unified-panel-page.customer-service-body .customer-service-title-state {
    right: -6px !important;
    bottom: -4px !important;
    min-width: 26px !important;
    height: 12px !important;
    padding: 0 3px !important;
    border-width: 0.5px !important;
    font-size: 7px !important;
    line-height: 10px !important;
}

.top-agent-logout-form {
    display: inline-flex;
    margin: 0;
}

.top-action-btn.top-action-agent-logout {
    -webkit-appearance: none;
    appearance: none;
    border-color: rgba(248, 113, 113, 0.9);
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff !important;
    cursor: pointer;
    font-family: inherit;
}

.top-action-btn.top-action-agent-logout i {
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.top-action-btn.top-action-agent-logout span {
    position: relative;
    z-index: 1;
}

@media (max-width: 720px) {
    .top-action-btn.top-action-agent-logout i {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .top-action-btn.top-action-agent-logout i {
        width: 17px;
        height: 17px;
        font-size: 10px;
    }
}

.top-action-btn.top-action-agent-logout {
    white-space: nowrap !important;
}

.top-action-btn.top-action-agent-logout span {
    display: inline-block;
    min-width: max-content;
    white-space: nowrap !important;
    word-break: keep-all;
}

body.customer-service-agent-body .customer-service-agent-management .service-agent-header-save {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 17px !important;
}
