* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ede9df;
    color: #333;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    padding-bottom: 64px;
}

.topbar {
    background: #ae8b52;
    color: #fff;
    text-align: center;
    padding: 14px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
}

.section {
    padding: 12px;
}

.home-section {
    background: linear-gradient(180deg, #b18c57 0, #b18c57 120px, #ede9df 121px, #ede9df 100%);
}

.card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9e9e9;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 18px;
    margin: 0 0 8px;
}

.muted {
    color: #888;
    font-size: 13px;
}

.predict-list {
    display: grid;
    gap: 10px;
}

.predict-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    background: #fff;
}

.predict-link,
.history-link {
    text-decoration: none;
    color: inherit;
}

.predict-link .predict-item {
    transition: transform 0.15s ease;
}

.predict-link .predict-item:active {
    transform: scale(0.99);
}

.predict-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
}

.recommend {
    color: #b11111;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    background: #f2e9d9;
    color: #6f5430;
    font-weight: 600;
}

.tab.active {
    background: #ae8b52;
    color: #fff;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-row:last-child {
    border-bottom: none;
}

.badge {
    background: #ffefef;
    color: #d24444;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    border-top: 1px solid #eaeaea;
    background: #fff;
    display: flex;
    justify-content: center;
}

.nav-item {
    width: min(120px, 25vw);
    text-align: center;
    line-height: 56px;
    color: #777;
    text-decoration: none;
}

.nav-item.active {
    color: #d14444;
    font-weight: 700;
}

.auth-card {
    margin-top: 20px;
}

.login-auth-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.login-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 22px 24px 24px;
    gap: 14px;
    border: 1px solid #eadfcf;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(80, 57, 26, 0.08);
    text-align: center;
}

.login-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 72px;
    margin-bottom: 4px;
    padding: 13px 14px;
    border: 1px solid #eadfcf;
    border-radius: 12px;
    background: #fffaf2;
    text-align: left;
}

.login-notice-label {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #b89051;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.login-notice-content {
    min-width: 0;
    color: #5f5141;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.login-brand-logo {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #eadfcf;
    background: #fffaf2;
    box-shadow: 0 8px 18px rgba(90, 65, 28, 0.12);
}

.login-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.login-brand-copy h2 {
    margin: 2px 0 0;
    color: #2c2c2c;
    font-size: 22px;
    line-height: 1.25;
    word-break: break-all;
}

.login-brand-copy p {
    margin: 6px 0 0;
    color: #81776a;
    font-size: 14px;
    line-height: 1.45;
    max-width: 300px;
    word-break: break-word;
}

.auth-form {
    display: grid;
    gap: 8px;
}

.auth-form input {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
}

.auth-form select {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}

.auth-form textarea {
    min-height: 78px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
}

.auth-form button {
    margin-top: 8px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #ae8b52;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-error {
    margin: 8px 0;
    color: #d23a3a;
    font-size: 13px;
}

.logout-link {
    color: #d14444;
    text-decoration: none;
}

.home-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.analyst-card {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.analyst-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lottery-wrap {
    width: 100%;
}

.lottery-deadline {
    text-align: right;
    font-size: 13px;
    color: #415b89;
    margin-bottom: 8px;
    font-weight: 600;
}

.analyst-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.analyst-inline-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
}

.analyst-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.analyst-intro {
    font-size: 12px;
}

.lottery-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.lottery-period {
    font-size: 13px;
    color: #6f6452;
}

.lottery-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.lottery-count-item {
    min-width: 30px;
    height: 34px;
    border: 1px solid #d7d0c2;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #252525;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.lottery-count-sep {
    font-size: 22px;
    color: #3f3f3f;
    line-height: 1;
    transform: translateY(-1px);
}

.lottery-ball-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.lottery-ball-item {
    text-align: center;
    min-width: 44px;
}

.simulate-draw-btn {
    margin-left: 6px;
    margin-top: 6px;
    height: 34px;
    border: 1px solid #274dba;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    background: linear-gradient(180deg, #3a67de 0%, #2448a5 100%);
    box-shadow: 0 4px 10px rgba(36, 72, 165, .24);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.simulate-draw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(36, 72, 165, .3);
    filter: saturate(1.08);
}

.simulate-draw-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(36, 72, 165, .25);
}

.simulate-draw-btn:disabled {
    opacity: .72;
    cursor: not-allowed;
}

.lottery-draw-item .lottery-zodiac {
    display: none;
}

.lottery-draw-item.is-revealed .lottery-zodiac {
    display: block;
}

.lottery-draw-pending {
    border-radius: 50%;
    background: #d9d9d9;
    color: #111;
}

.lottery-draw-item.is-revealed .lottery-ball {
    border-radius: 50%;
}

.lottery-draw-item.is-revealed .lottery-ball.lottery-red,
.lottery-draw-item.is-revealed .lottery-ball.lottery-blue,
.lottery-draw-item.is-revealed .lottery-ball.lottery-green,
.lottery-draw-item.is-revealed .lottery-ball.lottery-black {
    display: inline-flex;
}

.lottery-draw-item.is-revealed .lottery-zodiac {
    display: block;
}

.lottery-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    padding-bottom: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(0, 0, 0, .2);
}

/* Optical centering for homepage draw balls (e.g. 15/10 with narrow "1"). */
.lottery-ball-row .lottery-ball {
    transform: translateX(1px);
}

.lottery-red {
    background: #e32121;
}

.lottery-blue {
    background: #1246c9;
}

.lottery-green {
    background: #0b8a2f;
}

.lottery-black {
    background: #000;
}

.lottery-zodiac {
    margin-top: 6px;
    color: #2f2f2f;
    font-size: 13px;
}

.lottery-plus {
    color: #d33a3a;
    font-size: 24px;
    font-weight: 700;
    line-height: 44px;
}

.lottery-time {
    margin-top: 10px;
}

.home-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.home-search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.filter-btn {
    border: 1px solid #d8d8d8;
    background: #fff;
    border-radius: 6px;
    padding: 0 12px;
    height: 38px;
    color: #5a5a5a;
}

.keyword-input {
    flex: 1;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
}

.search-clear-btn {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6f6f6f;
    background: #fff;
    white-space: nowrap;
}

.search-summary {
    margin: -4px 2px 10px;
}

.search-no-result {
    text-align: center;
    padding: 8px 0;
}

.kw-hit {
    background: #fff2b8;
    color: inherit;
    border-radius: 3px;
    padding: 0 2px;
}

.home-list-card {
    padding-top: 8px;
}

.home-predict-item {
    border-radius: 2px;
    border-color: #ececec;
    padding-top: 8px;
}

.home-predict-item .data-pill {
    margin-bottom: 10px;
}

.home-predict-item .predict-meta {
    align-items: center;
    margin-bottom: 2px;
}

.home-predict-item .predict-meta strong {
    font-size: 18px;
    line-height: 1.35;
}

.brand-card {
    border-radius: 12px;
}

.brand-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ececec;
}

.booth-grid {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.booth-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.booth-image,
.booth-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 90px;
    border-radius: 8px;
    border: 1px solid #ececec;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booth-image {
    object-fit: cover;
    cursor: pointer;
}

.booth-title {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.img-modal.show {
    display: block;
}

.img-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.img-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
}

.img-modal-content img {
    width: 100%;
    border-radius: 10px;
    display: block;
    background: #fff;
}

.admin-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-bottom: 6px;
}

.admin-success {
    margin: 8px 0;
    color: #238a43;
    font-size: 13px;
}

.prediction-editor {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    background: #d74848 !important;
}

.result-badge {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}

.result-badge.red {
    color: #b01010;
    border: 1px solid #b01010;
    background: #fff4f4;
}

.result-badge.black {
    color: #222;
    border: 1px solid #222;
    background: #f3f3f3;
}

.detail-black {
    margin-top: 6px;
    margin-bottom: 8px;
}

.price-tag {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #d53333;
    font-size: 18px;
    font-weight: 700;
}

.history-right {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.detail-page {
    background: linear-gradient(180deg, #b18c57 0, #b18c57 82px, #ede9df 83px, #ede9df 100%);
}

.detail-card {
    border-radius: 2px;
}

.detail-header-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.detail-title {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-meta {
    margin-bottom: 14px;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.split-title {
    text-align: center;
    color: #c0b49b;
    font-size: 14px;
    margin: 14px 0;
    position: relative;
}

.split-title span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.split-title::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e7decd;
}

.data-pill {
    display: inline-block;
    background: #df001c;
    color: #fff;
    border-radius: 999px;
    padding: 4px 18px;
    font-size: 14px;
    margin-bottom: 8px;
}

.data-pill.black {
    background: #2b2b2b;
}

.detail-content-line {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.history-item {
    border-bottom: 1px solid #efefef;
    padding: 10px 0 12px;
}

.history-title {
    font-size: 20px;
}

.result-badge.circle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
}

.status-badge.public {
    border: 1px solid #b01010;
    color: #b01010;
    background: #fff4f4;
}

.status-badge.private {
    border: 1px solid #d89a3f;
    color: #a06d2f;
    background: #fff6e8;
}

.lock-tip {
    margin: 10px 0 12px;
    color: #8d8d8d;
    font-size: 13px;
}

.unlock-banner {
    margin: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.unlock-banner::before,
.unlock-banner::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eadfcf;
}

.unlock-btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #f49d38 0%, #ea7e13 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
}

.pay-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.pay-mask.show {
    display: block;
}

.pay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.pay-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.2);
}

.pay-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #b9b9b9;
    font-size: 24px;
    line-height: 1;
}

.pay-sheet-head {
    text-align: center;
    padding: 20px 12px 12px;
}

.pay-amount {
    color: #9b7a46;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pay-discount {
    color: #d13344;
    font-size: 14px;
}

.pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 12px;
    border-top: 1px solid #f2f2f2;
}

.pay-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3d3d3d;
    font-size: 15px;
}

.pay-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.icon-coupon {
    background: linear-gradient(180deg, #f06a6a, #df4b4b);
}

.icon-balance {
    background: linear-gradient(180deg, #d9c29d, #c9ad7d);
}

.icon-wechat {
    background: linear-gradient(180deg, #3ccf62, #2eb653);
}

.icon-alipay {
    background: linear-gradient(180deg, #4da6ff, #338cf0);
}

.pay-row small {
    display: block;
    margin-top: 4px;
    color: #b4b4b4;
}

.coupon-row {
    min-height: 52px;
}

.coupon-link {
    color: #cf5757;
    text-decoration: none;
    font-size: 14px;
}

.pay-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #d3d3d3;
}

.pay-row.active .pay-radio {
    border-color: #c89b59;
    background: radial-gradient(circle at center, #c89b59 0 5px, #fff 6px);
}

.pay-submit-wrap {
    padding: 18px 12px 10px;
}

.pay-submit {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 6px;
    background: #ae8b52;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.pay-note {
    text-align: center;
    color: #b4b4b4;
    font-size: 12px;
    padding-bottom: 16px;
}

/* Global visual polish layer */
:root {
    --bg-page: #f5f3ee;
    --bg-card: #ffffff;
    --text-main: #2f2f2f;
    --text-sub: #7f7f7f;
    --brand-main: #ae8b52;
    --brand-soft: #f3eadb;
    --line-soft: #ece7dd;
    --radius-lg: 14px;
    --radius-md: 10px;
}

body {
    background: linear-gradient(180deg, #f8f6f2 0%, var(--bg-page) 100%);
    color: var(--text-main);
}

a {
    color: #8e6c39;
}

.app {
    max-width: 520px;
    background: transparent;
}

.topbar {
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, #b4935f 0%, #a98750 100%);
    box-shadow: 0 3px 12px rgba(88, 65, 30, 0.15);
}

.topbar h1 {
    font-size: 21px;
    letter-spacing: 0.4px;
}

.section {
    padding: 14px;
}

.card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 6px 18px rgba(61, 45, 20, 0.06);
    margin-bottom: 14px;
}

.card-title {
    font-size: 19px;
    margin-bottom: 10px;
}

.muted {
    color: var(--text-sub);
    line-height: 1.45;
}

.tabs {
    gap: 8px;
}

.tab {
    border: 1px solid #dfd0b5;
    background: #f8f2e8;
    color: #7b6038;
    border-radius: var(--radius-md);
    padding: 9px 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tab.active {
    background: linear-gradient(180deg, #b9965e 0%, #ab854a 100%);
    border-color: #ab854a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(120, 86, 40, 0.22);
}

.list-row {
    padding: 14px 0;
}

.auth-form {
    gap: 10px;
    justify-items: center;
}

.auth-form label {
    font-size: 13px;
    color: #6e6a61;
    width: min(100%, 340px);
    text-align: left;
}

.auth-form input,
.auth-form select {
    height: 42px;
    border: 1px solid #ddd5c9;
    border-radius: 9px;
    background: #fff;
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #be9756;
    box-shadow: 0 0 0 3px rgba(190, 151, 86, 0.15);
}

.auth-form button {
    height: 44px;
    border-radius: 9px;
    background: linear-gradient(180deg, #b9965e 0%, #ab854a 100%);
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
}

.auth-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 340px);
    margin: 14px auto 0;
}

.auth-quick-actions form {
    margin: 0;
}

.auth-quick-actions button {
    width: 100%;
    min-height: 42px;
    border: 1px solid #b9965e;
    border-radius: 9px;
    background: #fffaf2;
    color: #8b632a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.auth-quick-actions button.guest {
    border-color: #d14444;
    background: #fff7f7;
    color: #b83232;
}

.prediction-editor {
    border-color: #e8e0d4;
    border-radius: 12px;
    background: #fffcf8;
}

.bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e9e2d7;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    position: relative;
    line-height: 56px;
    font-size: 14px;
}

.nav-item.active {
    color: #ba3a3a;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 22px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ba3a3a;
}

.detail-title {
    font-size: 24px;
}

.detail-content-line {
    font-size: 17px;
    letter-spacing: 1px;
}

.history-title {
    font-size: 18px;
}

.profile-hero {
    background: linear-gradient(145deg, #b48f55 0%, #c8a875 100%);
    color: #fff;
}

.profile-hero .card-title {
    color: #fff;
}

.profile-hero p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0 2px;
}

.profile-actions-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.profile-action-btn-primary {
    background: linear-gradient(180deg, #c13f3f 0%, #ab2929 100%);
    border-color: #a82323;
    color: #fff;
    box-shadow: 0 6px 14px rgba(174, 41, 41, 0.22);
}

.profile-action-btn-secondary {
    background: #fff7e9;
    border-color: #dfc391;
    color: #8a6327;
    box-shadow: 0 4px 10px rgba(138, 99, 39, 0.1);
}

.profile-action-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

/* Round 2 fine tune */
.home-section {
    padding-top: 12px;
    background: linear-gradient(180deg, #b18c57 0, #b18c57 116px, #f5f3ee 117px, #f5f3ee 100%);
}

.analyst-card,
.brand-card {
    border-radius: 14px;
}

.analyst-head,
.brand-head {
    align-items: center;
}

.home-logo,
.brand-logo {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.home-tools {
    margin: 0 2px 12px;
}

.filter-btn,
.keyword-input {
    height: 40px;
    border-color: #dbcdb4;
    border-radius: 10px;
}

.search-clear-btn {
    height: 40px;
    border-color: #dbcdb4;
    border-radius: 10px;
}

.home-list-card {
    border: 1px solid #dbc9aa;
    background: #fffdf9;
}

.home-predict-item {
    border-radius: 10px;
    border: 1px solid #eee4d5;
    padding: 12px 12px 34px;
    background: #fff;
}

.home-predict-item .recommend {
    margin-top: 4px;
    font-size: 15px;
}

.price-tag {
    top: 12px;
    right: 12px;
    font-size: 17px;
}

.buyers-corner {
    position: absolute;
    right: 10px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8f8f8f;
    font-size: 12px;
}

.buyers-cart {
    font-size: 13px;
    line-height: 1;
}

.detail-page {
    background: linear-gradient(180deg, #b18c57 0, #b18c57 76px, #f5f3ee 77px, #f5f3ee 100%);
}

.detail-card {
    border-radius: 14px;
}

.detail-back-wrap {
    margin-bottom: 10px;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #7f6035;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #dccdb2;
    background: #fff8ec;
}

.detail-back-btn:active {
    transform: scale(0.98);
}

.split-title {
    margin: 18px 0 14px;
}

.history-item {
    padding: 12px 0 14px;
}

.history-link .history-item:active {
    background: #fcf9f2;
}

.pay-sheet {
    border-radius: 16px 16px 0 0;
}

.pay-submit {
    height: 46px;
    border-radius: 10px;
}

.auth-card {
    margin-top: 26px;
}

.auth-card .card-title {
    text-align: center;
    margin-bottom: 14px;
}

.admin-actions button {
    flex: 1;
}

.prediction-editor .admin-actions {
    margin-top: 4px;
}

@media (max-width: 420px) {
    .section {
        padding: 12px;
    }

    .card {
        border-radius: 12px;
        padding: 10px;
    }

    .detail-title {
        font-size: 21px;
    }

    .history-title {
        font-size: 16px;
    }

    .pay-amount {
        font-size: 30px;
    }
}

/* Customer service workbench refinement. */
.support-console-app .support-console-body {
    padding-top: 28px;
}

.support-console-app .support-workspace-heading {
    margin-top: 10px;
}

.support-console-app .cs-admin-grid {
    grid-template-columns: minmax(300px, .86fr) minmax(560px, 1.96fr) minmax(240px, .64fr);
    border-color: #dfe6ee;
    box-shadow: 0 18px 42px rgba(21, 34, 56, .09);
}

.support-console-app .cs-admin-list-column {
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fb 100%);
}

.support-console-app .cs-admin-list-toolbar:focus-within {
    border-color: #b7c5d5;
    box-shadow: 0 0 0 3px rgba(88, 122, 157, .1);
}

.support-console-app .cs-admin-list-tabs {
    margin-top: 11px;
    padding: 3px;
    border: 1px solid #e6ebf0;
    border-radius: 9px;
    background: #f1f4f7;
}

.support-console-app .cs-admin-list-tab {
    min-height: 31px;
    border-radius: 7px;
    color: #8793a1;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.support-console-app .cs-admin-list-tab:hover {
    color: #2a3a50;
}

.support-console-app .cs-admin-list-tab.active {
    background: #fff;
    color: #263850;
    box-shadow: 0 2px 8px rgba(21, 34, 56, .08);
}

.support-console-app .cs-admin-row {
    margin: 0 2px;
    padding: 13px 12px 13px 14px;
    border-left: 3px solid transparent;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.support-console-app .cs-admin-row:hover {
    background: #f2f6fa;
}

.support-console-app .cs-admin-row.active {
    border-left-color: var(--support-accent-deep);
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px rgba(213, 164, 87, .12);
}

.support-console-app .cs-admin-row.has-unread {
    border-left-color: #d56b5c;
    background: #fff8f6;
    box-shadow: none;
}

.support-console-app .cs-admin-row.has-unread.active {
    border-left-color: var(--support-accent-deep);
    background: #fffaf2;
}

.support-console-app .cs-admin-row.has-unread::before {
    display: none;
}

.support-console-app .cs-admin-avatar {
    box-shadow: 0 0 0 4px rgba(213, 164, 87, .08);
}

.support-console-app .cs-admin-status,
.support-console-app .cs-admin-priority {
    letter-spacing: .02em;
}

.support-console-app .cs-admin-detail {
    background: #fff;
}

.support-console-app .cs-detail-header {
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}

.support-console-app .cs-admin-toolbar {
    background: #fbfcfd;
}

.support-console-app .cs-admin-toolbar button:disabled,
.support-console-app .cs-admin-toolbar select:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.support-console-app .cs-admin-messages {
    background:
        radial-gradient(circle at 12% 0%, rgba(213, 164, 87, .07), transparent 18rem),
        #f5f7f9;
}

.support-console-app .support-msg {
    border-radius: 16px;
}

.support-console-app .support-msg.mine {
    border-bottom-right-radius: 5px;
    background: linear-gradient(145deg, #304b6d 0%, #233b5c 100%);
    box-shadow: 0 7px 15px rgba(35, 59, 92, .15);
}

.support-console-app .support-msg.user {
    border-bottom-left-radius: 5px;
    box-shadow: 0 5px 13px rgba(21, 34, 56, .05);
}

.support-console-app .cs-admin-send {
    background: #fff;
}

.support-console-app .cs-admin-send-actions button:focus-visible,
.support-console-app .cs-admin-toolbar button:focus-visible,
.support-console-app .cs-admin-row:focus-visible,
.support-console-app .cs-admin-list-tab:focus-visible {
    outline: 3px solid rgba(213, 164, 87, .35);
    outline-offset: 1px;
}

.support-console-app .cs-admin-send textarea::placeholder {
    color: #a4afbc;
}

@media (max-width: 1240px) {
    .support-console-app .cs-admin-grid {
        grid-template-columns: minmax(280px, .9fr) minmax(500px, 1.7fr);
    }
}

/* Match the same hierarchy on the classic admin customer-service page. */
.section #csAdminRoot .cs-admin-grid {
    gap: 14px;
    grid-template-columns: minmax(300px, .82fr) minmax(560px, 1.7fr);
}

.section #csAdminRoot .cs-admin-list-column {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fb 100%);
}

.section #csAdminRoot .cs-admin-detail {
    border-color: #e1e7ee;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(21, 34, 56, .07);
}

.section #csAdminRoot .cs-admin-list-tabs {
    margin-top: 11px;
    padding: 3px;
    border: 1px solid #e6ebf0;
    border-radius: 9px;
    background: #f1f4f7;
}

.section #csAdminRoot .cs-admin-list-tab.active {
    border-radius: 7px;
    background: #fff;
    color: #263850;
    box-shadow: 0 2px 8px rgba(21, 34, 56, .08);
}

.section #csAdminRoot .cs-admin-row {
    margin: 0 2px;
    border-left: 3px solid transparent;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.section #csAdminRoot .cs-admin-row:hover {
    background: #f2f6fa;
}

.section #csAdminRoot .cs-admin-row.active {
    border-left-color: #a8752e;
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px rgba(213, 164, 87, .12);
}

.section #csAdminRoot .cs-admin-row.has-unread {
    border-left-color: #d56b5c;
    background: #fff8f6;
    box-shadow: none;
}

.section #csAdminRoot .cs-admin-row.has-unread::before {
    display: none;
}

.section #csAdminRoot .cs-admin-toolbar button:disabled,
.section #csAdminRoot .cs-admin-toolbar select:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.section #csAdminRoot .cs-admin-messages {
    background: #f5f7f9;
}

@media (max-width: 860px) {
    .section #csAdminRoot .cs-admin-grid {
        grid-template-columns: 1fr;
    }

    .section #csAdminRoot .cs-admin-list-column {
        max-height: 40vh;
    }
}

/* Round 3 autonomous refinement */
.section > .card:last-child {
    margin-bottom: 8px;
}

.card strong {
    color: #2c2c2c;
}

.badge {
    background: #fff1f1;
    border: 1px solid #f1c8c8;
    color: #c84242;
    padding: 2px 9px;
    font-weight: 600;
}

.status-badge {
    min-width: 54px;
}

.predict-link {
    display: block;
    border-radius: 10px;
}

.predict-link + .predict-link {
    margin-top: 2px;
}

.predict-link .predict-item {
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.predict-link .predict-item:active {
    transform: scale(0.995);
    box-shadow: 0 2px 8px rgba(84, 57, 22, 0.12);
}

.booth-image,
.booth-placeholder {
    border-color: #e5dac8;
    background: #fdfaf4;
}

.booth-title {
    color: #6f6452;
}

.list-row > div:last-child {
    color: #5b5b5b;
}

.list-row span:last-child {
    color: #b1a083;
}

.logout-link {
    color: #b03e3e;
    font-weight: 600;
}

.messages-empty,
.orders-empty {
    text-align: center;
    padding: 10px 0;
}

.auth-error,
.admin-success {
    border-radius: 8px;
    padding: 8px 10px;
}

.auth-error {
    background: #fff4f4;
    border: 1px solid #f1d3d3;
}

.admin-success {
    background: #f2fbf4;
    border: 1px solid #d7efd9;
}

.tabs .tab[href] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prediction-editor input[disabled],
.prediction-editor select[disabled] {
    background: #f7f7f7;
    color: #8d8d8d;
}

.pay-mask.show .pay-sheet {
    animation: sheetUp 0.2s ease-out;
}

@keyframes sheetUp {
    from {
        transform: translateY(18px);
        opacity: 0.85;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.img-modal-content {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

/* Round 4 final pass */
html {
    font-size: 16px;
}

body,
input,
select,
button {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

p {
    margin: 0;
}

.card p + p {
    margin-top: 6px;
}

.card-title {
    line-height: 1.3;
}

.muted {
    font-size: 13px;
}

.detail-meta {
    flex-wrap: wrap;
    row-gap: 6px;
}

.detail-content-line {
    word-break: break-all;
}

.history-link {
    display: block;
    border-radius: 10px;
}

.history-link + .history-link {
    margin-top: 4px;
}

.history-link .history-item {
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 8px;
}

.history-link-static {
    cursor: default;
}

.history-link-static .history-item:active {
    background: transparent;
}

.profile-hero {
    padding-top: 14px;
    padding-bottom: 14px;
}

.profile-hero .card-title {
    margin-bottom: 4px;
}

.auth-card {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.auth-section {
    min-height: calc(100vh - 56px - 56px);
    display: flex;
    align-items: center;
}

.auth-section .auth-card {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.auth-form button {
    letter-spacing: 0.6px;
}

.admin-preview {
    border-radius: 10px;
}

.prediction-editor {
    padding: 12px;
}

.prediction-editor label {
    font-size: 12px;
    color: #807763;
}

.prediction-editor .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.prediction-editor .admin-actions button {
    min-height: 40px;
}

.section .tabs {
    margin-bottom: 14px;
}

.topbar + .section {
    padding-top: 14px;
}

.pay-sheet-head {
    border-bottom: 1px solid #f3eee4;
}

.pay-note {
    border-top: 1px solid #f6f2ea;
    margin-top: 4px;
    padding-top: 8px;
}

@media (max-width: 360px) {
    .card-title {
        font-size: 17px;
    }

    .predict-meta strong {
        font-size: 15px !important;
    }

    .price-tag {
        font-size: 15px;
    }

    .prediction-editor .admin-actions {
        grid-template-columns: 1fr;
    }
}

.tabs {
    flex-wrap: wrap;
}

.tab {
    flex: 1 1 108px;
}

.status-badge.member {
    border: 1px solid #8f6bd8;
    color: #6d4ab5;
    background: #f6f1ff;
}

.membership-card {
    text-align: center;
}

.membership-price {
    margin: 8px 0;
    color: #b03e3e;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.membership-primary-link {
    width: min(100%, 340px);
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(180deg, #b9965e 0%, #ab854a 100%);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.member-editor .admin-actions {
    width: min(100%, 340px);
}

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

.member-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee4d5;
    border-radius: 10px;
    background: #fffdf9;
}

.member-list-main {
    min-width: 0;
}

.member-list-main strong,
.member-list-main .muted {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-list-actions,
.member-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.member-list-actions .filter-btn,
.member-list-actions .search-clear-btn,
.member-detail-actions .filter-btn,
.member-detail-actions .search-clear-btn,
.member-edit-form .admin-actions .search-clear-btn {
    min-width: 70px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.member-detail-list {
    margin-bottom: 12px;
}

.member-edit-form .admin-actions {
    width: min(100%, 340px);
}

@media (max-width: 520px) {
    .member-list-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .member-list-actions {
        width: 100%;
    }

    .member-list-actions .filter-btn,
    .member-list-actions .search-clear-btn {
        flex: 1;
    }
}

.lottery-history-page .card {
    overflow: hidden;
}

.lottery-history-top-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lottery-history-row {
    padding: 12px 0 10px;
    border-bottom: 1px solid #f0ece3;
}

.lottery-history-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.lottery-history-balls-wrap {
    margin-bottom: 8px;
}

.lottery-history-mini-balls {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    flex-wrap: wrap;
}

.lottery-history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.lottery-mini {
    width: 34px;
    height: 34px;
    line-height: 1;
    border-radius: 50%;
    font-size: 22px;
}

.admin-lottery-balls {
    margin: 4px 0 8px;
}

.admin-lottery-balls .lottery-ball-item {
    min-width: 34px;
}

.admin-lottery-balls .lottery-plus {
    line-height: 34px;
    font-size: 20px;
}

.lottery-history-page .lottery-zodiac {
    font-size: 11px;
    margin-top: 3px;
}

.toggle-schemes-btn {
    width: 120px;
    border: 1px solid #bf2d2d;
    background: linear-gradient(180deg, #d24545 0%, #b92d2d 100%);
    color: #fff;
    border-radius: 6px;
    height: 34px;
    font-weight: 700;
    font-size: 12px;
}

.watch-live-btn {
    width: 72px;
    border: 1px solid #2d5bbf;
    background: linear-gradient(180deg, #3e74de 0%, #2d5bbf 100%);
    color: #fff;
    border-radius: 6px;
    height: 34px;
    font-weight: 700;
    font-size: 12px;
}

.scheme-collapse {
    background: #faf8f3;
    border-bottom: 1px solid #f0ece3;
    padding: 10px;
}

.scheme-collapse .history-item {
    background: #fff;
    border: 1px solid #ece4d5;
    border-radius: 8px;
    position: relative;
    padding: 10px 66px 10px 10px;
}

.live-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
}

.live-modal.show {
    display: block;
}

.live-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.live-modal-content {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 24px));
    margin: 8vh auto 0;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
}

.live-modal-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #61718a;
}

.live-modal-title {
    margin: 0 30px 6px 0;
    color: #1f3656;
}

.live-modal-subtitle {
    margin: 0 0 10px;
}

.live-player {
    width: 100%;
    border-radius: 8px;
    background: #000;
    min-height: 180px;
    max-height: 60vh;
}

.live-modal-tip {
    margin: 10px 0 0;
}

.live-modal-links {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.home-page-switch {
    display: flex;
    gap: 10px;
}

.home-switch-btn {
    flex: 1;
    max-width: 160px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #cdd6e5;
    background: #fff;
    color: #2a3d58;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.home-switch-btn.active {
    border-color: #bf2d2d;
    background: linear-gradient(180deg, #d24545 0%, #b92d2d 100%);
    color: #fff;
}

.home-app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.home-app-download-btn:not([href]) {
    opacity: .55;
    cursor: not-allowed;
}

.precise-series-block + .precise-series-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0ece3;
}

.precise-series-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 2px;
    color: #1f3656;
    font: inherit;
    text-align: left;
}

.precise-series-head strong {
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.precise-series-head .muted {
    flex: 0 0 auto;
}

.precise-scheme-item {
    border: 1px solid #eee4d5;
    border-radius: 10px;
    background: #fffdf9;
    padding: 10px;
}

.precise-latest-scheme {
    border-left: 4px solid #bf2d2d;
}

.precise-scheme-item.history-item {
    border-bottom: 1px solid #eee4d5;
}

.precise-scheme-item .detail-content-line {
    margin: 8px 0 0;
}

.pick-helper-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pick-helper-result label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1f3656;
}

.pick-helper-result textarea {
    width: 100%;
    min-height: 220px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    padding: 10px;
    background: #f7faff;
    resize: vertical;
    color: #1a2a3f;
    font-size: 13px;
    line-height: 1.5;
}

.pick-helper-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pick-helper-actions button,
.pick-helper-btn {
    border: 1px solid #cdd6e5;
    background: #fff;
    border-radius: 6px;
    color: #2a3d58;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.pick-helper-result-render {
    min-height: 220px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    padding: 10px;
    background: #f7faff;
    color: #1a2a3f;
    font-size: 13px;
    line-height: 1.5;
}

.pick-helper-result-item + .pick-helper-result-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dbe5f3;
}

.pick-helper-result-title {
    font-weight: 700;
    color: #1f3656;
    margin-bottom: 8px;
    font-size: 12px;
}

.pick-helper-result-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pick-helper-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pick-helper-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eff3f9;
}

.pick-helper-group:last-child {
    border-bottom: 0;
}

.pick-helper-btn {
    min-width: 70px;
    cursor: pointer;
}

.pick-helper-btn:hover {
    border-color: #95abd0;
    background: #f4f8ff;
}

.pick-helper-btn.active {
    border-color: #2f6fed !important;
    background: #2f6fed !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(47, 111, 237, .25);
}

.pick-helper-grid .pick-helper-btn.active:hover,
.pick-helper-btn.active:hover {
    border-color: #255bd0 !important;
    background: #255bd0 !important;
}

@media (max-width: 900px) {
    .pick-helper-wrap {
        grid-template-columns: 1fr;
    }
}

.support-automation-card {
    overflow: visible;
}

.support-automation-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.support-automation-page-head .card-title {
    margin-bottom: 4px;
}

.support-automation-page-head .muted {
    margin: 0;
}

.support-automation-shell {
    display: grid;
    gap: 12px;
}

.support-automation-top,
.support-automation-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.support-automation-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.support-automation-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-height: 30px;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f8fafc;
    color: #5b6470;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.support-automation-stats strong {
    color: #1f2937;
    font-size: 16px;
}

.support-automation-actions,
.support-automation-rule-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.support-automation-actions button,
.support-automation-section-head button,
.support-automation-rule-head button,
.support-automation-test button {
    min-height: 36px;
    border: 1px solid #d6dce6;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.support-automation-actions button:last-child,
.support-automation-section-head button,
.support-automation-test button {
    border-color: #b89051;
    background: #b89051;
    color: #fff;
}

.support-automation-notice {
    border: 1px solid #cde7d4;
    border-radius: 8px;
    padding: 9px 10px;
    background: #f2fbf4;
    color: #2d6b3f;
    font-size: 13px;
    font-weight: 700;
}

.support-automation-notice.error {
    border-color: #f0c9c9;
    background: #fff5f5;
    color: #b42318;
}

.support-automation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.support-automation-block,
.support-automation-rule {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfe;
}

.support-automation-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.support-automation-block-head strong,
.support-automation-section-head strong {
    color: #25272b;
    font-size: 15px;
}

.support-automation-switch,
.support-automation-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #596273;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.support-automation-switch input,
.support-automation-check input {
    width: 16px;
    height: 16px;
    accent-color: #b89051;
}

.support-automation-block textarea,
.support-automation-rule textarea,
.support-automation-rule input[type="text"],
.support-automation-rule select,
.support-automation-test input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    background: #fff;
    color: #262b33;
    font-size: 14px;
}

.support-automation-block textarea,
.support-automation-rule textarea {
    resize: vertical;
    min-height: 80px;
    padding: 9px 10px;
    line-height: 1.45;
}

.support-automation-rule input[type="text"],
.support-automation-rule select,
.support-automation-test input {
    min-height: 38px;
    padding: 0 10px;
}

.support-automation-rule-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(140px, 180px);
    gap: 10px;
}

.support-automation-rule-grid label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.support-automation-rule-grid span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.support-automation-block small,
.support-automation-rule small {
    color: #7a8493;
    font-size: 12px;
}

.support-automation-test {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #edf0f4;
    padding-top: 12px;
}

.support-automation-test .muted {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .support-automation-grid,
    .support-automation-rule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .support-automation-page-head,
    .support-automation-top,
    .support-automation-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .support-automation-actions,
    .support-automation-section-head button,
    .support-automation-test button {
        width: 100%;
    }

    .support-automation-actions button,
    .support-automation-section-head button,
    .support-automation-test button {
        flex: 1 1 0;
    }

    .support-automation-test {
        grid-template-columns: 1fr;
    }
}

.cs-admin-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 12px;
    /* Give the conversation pane enough room to show an actual exchange. */
    height: min(900px, calc(100vh - 180px));
    min-height: 680px;
}

/* The classic admin page only needs the conversation list and chat pane. */
.section #csAdminRoot .cs-admin-grid {
    grid-template-columns: 320px minmax(0, 1fr);
}

.section #csAdminRoot .cs-admin-context {
    display: none;
}

.section #csAdminRoot .cs-admin-messages {
    padding: 18px 24px;
}

.cs-admin-notify-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    border: 1px solid #f0d4d4;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff8f8;
}

.cs-admin-notify-bar strong {
    display: block;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.3;
}

.cs-admin-notify-bar small {
    display: block;
    margin-top: 3px;
    color: #8f8f8f;
    font-size: 12px;
    line-height: 1.3;
}

.cs-admin-notify-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cs-sound-toggle,
#supportSoundToggle {
    min-width: 72px;
    min-height: 34px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.cs-sound-toggle[data-muted="1"],
#supportSoundToggle[data-muted="1"] {
    color: #8a8a8a;
    background: #f5f5f5;
}

.cs-volume-control,
.support-volume-control {
    width: 96px;
    max-width: 24vw;
    accent-color: #dc2626;
    cursor: pointer;
}

.cs-sound-settings {
    display: grid;
    gap: 14px;
}

.cs-sound-select-row,
.cs-sound-upload-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-sound-settings .member-field {
    display: grid;
    flex: 1 1 220px;
    gap: 6px;
    min-width: 180px;
}

.cs-sound-settings .member-field > span {
    color: #667085;
    font-size: 12px;
}

.cs-sound-settings .member-field input,
.cs-sound-settings .member-field select {
    min-height: 36px;
    width: 100%;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    padding: 0 10px;
    background: #fff;
    color: #26364d;
}

.cs-sound-settings button {
    min-height: 36px;
    white-space: nowrap;
}

.cs-sound-notice {
    margin: 0;
}

.cs-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
}

.cs-admin-row {
    text-align: left;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.cs-admin-row strong,
.cs-admin-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-admin-row strong {
    color: #1f2933;
    font-size: .95rem;
    line-height: 1.25;
}

.cs-admin-row small {
    color: #6b7280;
    font-size: .78rem;
}

.support-purchase-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
    margin-top: 2px;
    padding: 6px 7px;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: .74rem;
    line-height: 1.35;
}

.support-purchase-status {
    grid-column: 1 / -1;
    font-weight: 700;
}

.support-purchase-status.is-paid {
    color: #15803d;
}

.support-purchase-status.is-unpaid {
    color: #64748b;
}

.support-purchase-detail {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-admin-row.active {
    border-color: #dc2626;
    background: #fff5f5;
}

.cs-admin-row.has-unread {
    border-color: rgba(220, 38, 38, .42);
    box-shadow: 0 8px 18px rgba(220, 38, 38, .08);
}

.cs-admin-row.has-unread::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #dc2626;
}

.cs-admin-detail {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.cs-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cs-admin-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
    scrollbar-gutter: stable;
}

.cs-admin-send {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
}

.cs-admin-send-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.cs-admin-send-actions button {
    white-space: nowrap;
}

.cs-admin-send textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    resize: none;
}

@media (max-width: 860px) {
    .cs-admin-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .cs-admin-list {
        max-height: 40vh;
    }

    .cs-admin-detail {
        min-height: 560px;
    }

    .section #csAdminRoot .cs-admin-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }
}

.support-client-body {
    margin: 0;
    background: #f3f5f9;
}

.support-client-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.support-client-sidebar {
    background: #111827;
    color: #fff;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-client-brand {
    font-size: 18px;
    font-weight: 700;
}

.support-client-user {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-client-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-filter {
    border: 0;
    text-align: left;
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.support-filter.active {
    background: #dc2626;
}

.support-filter-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 6px;
    background: #ff2f2f;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.support-client-main {
    padding: 12px;
}

.support-client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-client-content {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 12px;
    min-height: calc(100vh - 90px);
}

.support-conversation-list {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto;
}

.support-conversation-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-conversation-tools {
    display: grid;
    grid-template-columns: 1fr auto 96px;
    align-items: center;
    gap: 8px;
}

.support-conversation-tools input[type="text"] {
    min-width: 0;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

@media (max-width: 520px) {
    .cs-admin-notify-bar {
        flex-wrap: wrap;
    }

    .support-conversation-tools {
        grid-template-columns: 1fr auto;
    }

    .support-volume-control {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }
}

.support-conversation-item {
    width: 100%;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    margin-bottom: 8px;
    position: relative;
}

.support-conversation-item.active {
    border-color: #dc2626;
    background: #fff5f5;
}

.support-conversation-item.has-unread {
    border-color: rgba(220, 38, 38, .42);
    box-shadow: 0 8px 18px rgba(220, 38, 38, .08);
}

.support-conversation-item.has-unread::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #dc2626;
}

.support-unread-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    line-height: 18px;
    justify-content: center;
    padding: 0 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.support-chat-pane {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.support-chat-toolbar {
    padding: 10px;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    gap: 8px;
}

.support-chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    padding: 10px;
    overflow-y: auto;
}

.support-msg {
    width: fit-content;
    max-width: 78%;
    margin: 0 auto 0 0;
    border-radius: 8px;
    padding: 8px 10px;
    word-break: break-word;
}

.support-msg.user {
    margin-right: auto;
    background: #fff;
    border: 1px solid #e6e8ec;
}

.support-msg.mine {
    margin-left: auto;
    margin-right: 0;
    background: #dc2626;
    color: #fff;
}

.support-msg-role {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
    opacity: .72;
}

.support-msg small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.2;
    opacity: .72;
}

.support-message-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.support-scheme-card {
    display: flex;
    width: min(300px, 100%);
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #dfe6ed;
    border-radius: 12px;
    background: #fff;
    color: #24344b;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(28, 42, 63, .08);
}

.support-msg.mine .support-scheme-card {
    border-color: rgba(255, 255, 255, .42);
}

.support-scheme-card:hover {
    border-color: #b89051;
}

.support-scheme-card-label {
    color: #a8752e;
    font-size: 11px;
    font-weight: 800;
}

.support-scheme-card-title {
    font-size: 14px;
    line-height: 1.45;
}

.support-scheme-card-meta {
    color: #78869a;
    font-size: 12px;
}

.support-scheme-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    color: #738096;
    font-size: 11px;
}

.support-scheme-card-footer b {
    color: #b05f35;
    font-size: 14px;
}

.support-message-image-link {
    display: inline-flex;
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    line-height: 0;
}

.support-message-image {
    display: block;
    max-width: min(280px, 100%);
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.support-msg.mine .support-message-image-link {
    border-color: rgba(255, 255, 255, 0.55);
}

.support-message-file-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 190px;
    max-width: min(360px, 100%);
    padding: 9px 11px;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    background: #fff;
    color: #32445b;
    line-height: 1.25;
    text-decoration: none;
}

.support-message-file-link:hover {
    border-color: #b5c5d5;
    background: #f8fafc;
}

.support-message-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #edf3f8;
    color: #536f8b;
    font-size: 18px;
    font-weight: 800;
}

.support-message-file-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.support-message-file-copy strong,
.support-message-file-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-message-file-copy strong {
    color: inherit;
    font-size: 12px;
}

.support-message-file-copy small {
    margin-top: 0;
    color: #8a98a8;
    font-size: 10px;
}

.support-msg.mine .support-message-file-link {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.support-msg.mine .support-message-file-icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.support-msg.mine .support-message-file-copy small {
    color: rgba(255, 255, 255, .72);
}

.support-chat-form {
    border-top: 1px solid #edf0f5;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
}

.support-chat-form textarea {
    border: 1px solid #d8dde6;
    border-radius: 8px;
    resize: none;
    padding: 8px;
}

.cs-admin-send button:disabled,
.support-chat-form button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cs-notify-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2000;
    max-width: min(320px, calc(100vw - 36px));
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.cs-notify-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .support-client-shell {
        grid-template-columns: 1fr;
    }
    .support-client-content {
        grid-template-columns: 1fr;
    }
}

/* Admin desktop layout */
.admin-body {
    background: #f4f5f7;
}

@media (min-width: 1024px) {
    .admin-app {
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100vh;
        padding-bottom: 0;
        background: #f4f5f7;
    }

    .admin-login-app {
        display: flex;
        flex-direction: column;
    }

    .admin-login-app .topbar {
        position: static;
        background: #ffffff;
        color: #222222;
        border-bottom: 1px solid #e4e6ea;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    }

    .admin-login-app .section {
        width: min(100%, 540px);
        margin: 0 auto;
        padding: 44px 24px;
    }

    .admin-shell-app {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        background: #f4f5f7;
    }

    .admin-shell-app .topbar {
        grid-column: 2;
        position: sticky;
        top: 0;
        z-index: 15;
        background: #ffffff;
        color: #222222;
        text-align: left;
        padding: 18px clamp(24px, 3vw, 44px);
        border-bottom: 1px solid #e4e6ea;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    }

    .admin-shell-app .topbar h1 {
        width: min(100%, 1360px);
        margin: 0 auto;
        font-size: 24px;
        line-height: 1.25;
        color: #222222;
    }

    .admin-shell-app .section {
        grid-column: 2;
        width: min(100%, 1360px);
        margin: 0 auto;
        padding: 24px clamp(24px, 3vw, 44px) 44px;
    }

    .admin-shell-app .section > .tabs {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 20;
        width: 240px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
        padding: 78px 14px 18px;
        overflow-y: auto;
        background: #2d2a25;
        border-right: 1px solid rgba(0, 0, 0, 0.18);
        box-shadow: 8px 0 24px rgba(31, 34, 38, 0.08);
    }

    .admin-shell-app .section > .tabs::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 20px;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #b89051;
        box-shadow: 52px 0 0 rgba(255, 255, 255, 0.18);
    }

    .admin-shell-app .section > .tabs .tab {
        flex: 0 0 auto;
        min-height: 42px;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 0 14px;
        border-radius: 8px;
        background: transparent;
        color: #ded8cf;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .admin-shell-app .section > .tabs .tab:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .admin-shell-app .section > .tabs .tab.active {
        background: #b89051;
        color: #ffffff;
        box-shadow: 0 10px 18px rgba(184, 144, 81, 0.22);
    }

    .admin-shell-app .card {
        margin-bottom: 16px;
        padding: 18px 20px;
        border-radius: 8px;
        border-color: #e1e5ea;
        box-shadow: 0 8px 24px rgba(26, 32, 44, 0.05);
    }

    .admin-shell-app .card-title {
        margin-bottom: 14px;
        font-size: 18px;
        color: #25272b;
    }

    .admin-shell-app .muted {
        color: #6b7280;
    }

    .admin-shell-app .auth-error,
    .admin-shell-app .admin-success {
        max-width: 760px;
    }

    .admin-shell-app .auth-form {
        gap: 12px 16px;
    }

    .admin-shell-app .auth-form input,
    .admin-shell-app .auth-form select,
    .admin-shell-app .auth-form textarea {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
        border-color: #d8dde5;
    }

    .admin-shell-app .auth-form input,
    .admin-shell-app .auth-form select {
        height: 42px;
    }

    .admin-shell-app .auth-form button,
    .admin-shell-app .filter-btn,
    .admin-shell-app .search-clear-btn {
        min-height: 40px;
        border-radius: 8px;
        cursor: pointer;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) {
        grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
        align-items: center;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) + .auth-form:not(.prediction-editor) {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #edf0f4;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > label {
        justify-self: end;
        text-align: right;
        color: #4f5661;
        font-size: 13px;
        font-weight: 600;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .admin-preview,
    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .muted {
        grid-column: 2;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .pick-helper-group-title,
    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .pick-helper-group-grid {
        grid-column: 1 / -1;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > button[type="submit"] {
        grid-column: 2;
        justify-self: start;
        width: auto;
        min-width: 180px;
        padding: 0 22px;
    }

    .admin-shell-app .prediction-editor {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        align-items: start;
        margin-bottom: 12px;
        padding: 14px;
        border-color: #e2e7ee;
        background: #fbfcfe;
    }

    .admin-shell-app .prediction-editor > label.prediction-editor-meta,
    .admin-shell-app .prediction-editor > .muted,
    .admin-shell-app .prediction-editor > .admin-actions {
        grid-column: 1 / -1;
    }

    .admin-shell-app .prediction-editor > label.prediction-editor-meta {
        color: #30343a;
        font-size: 13px;
        font-weight: 700;
    }

    .admin-shell-app .prediction-editor-field {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .admin-shell-app .prediction-editor-field label {
        width: auto;
        margin: 0;
        text-align: left;
        justify-self: start;
        color: #5f6874;
        font-size: 12px;
        font-weight: 600;
    }

    .admin-shell-app .prediction-editor-field input,
    .admin-shell-app .prediction-editor-field select {
        width: 100%;
        margin: 0;
    }

    .admin-shell-app .prediction-editor .admin-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: auto;
        margin-top: 0;
    }

    .admin-shell-app .prediction-editor .admin-actions button {
        flex: 0 0 auto;
        min-width: 150px;
        padding: 0 18px;
    }

    .admin-shell-app .admin-actions {
        flex-wrap: wrap;
    }

    .admin-shell-app .member-edit-form .admin-actions {
        grid-column: 2;
        width: auto;
        justify-content: flex-start;
    }

    .admin-shell-app .member-list-row {
        grid-template-columns: minmax(260px, 1fr) auto auto;
    }

    .admin-shell-app .home-search-form {
        max-width: 760px;
        align-items: center;
    }

    .admin-shell-app .home-search-form .keyword-input {
        min-width: 320px;
    }

    .admin-shell-app .filter-btn,
    .admin-shell-app .search-clear-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        white-space: nowrap;
    }

    .admin-shell-app .admin-preview {
        width: 112px;
        height: 112px;
    }

    .admin-shell-app .pick-helper-group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-shell-app .pick-number-grid {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    }

    .admin-shell-app .cs-admin-grid {
        grid-template-columns: 320px minmax(0, 1fr);
        min-height: 540px;
        height: calc(100vh - 250px);
    }
}

@media (min-width: 1280px) {
    .admin-shell-app .card > .auth-form:not(.prediction-editor) {
        grid-template-columns: minmax(150px, 210px) minmax(0, 760px);
    }
}

/* Admin member management */
.status-badge.expired {
    border: 1px solid #e09a8d;
    color: #a94636;
    background: #fff3f0;
}

.admin-members-page .member-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-members-page .member-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-members-page .member-toolbar-actions .filter-btn {
    min-height: 38px;
    padding: 0 14px;
    border-color: #b89051;
    color: #ffffff;
    background: #b89051;
    font-weight: 700;
}

.admin-members-page .member-toolbar-actions .logout-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.admin-members-page .member-admin-toolbar strong {
    display: block;
    color: #25272b;
    font-size: 16px;
}

.admin-members-page .member-admin-toolbar .muted,
.admin-members-page .member-card-head .muted,
.admin-members-page .member-identity .muted,
.admin-members-page .member-empty-state .muted {
    margin: 4px 0 0;
}

.admin-members-page .member-page-alert {
    margin: 0 0 12px;
}

.admin-members-page .member-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.admin-members-page .member-stat-card {
    min-width: 0;
    min-height: 82px;
    padding: 12px;
    border: 1px solid #e5e8ed;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(26, 32, 44, 0.04);
}

.admin-members-page .member-stat-card span {
    display: block;
    color: #737b86;
    font-size: 12px;
    font-weight: 700;
}

.admin-members-page .member-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #20242a;
    font-size: 24px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.admin-members-page .member-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-members-page .member-card-head .card-title {
    margin-bottom: 0;
}

.admin-members-page .member-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #e1e6ee;
    border-radius: 999px;
    color: #4d5968;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-members-page .member-search-form {
    max-width: none;
    margin-bottom: 12px;
}

.admin-members-page .member-per-page-field {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #596272;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-members-page .member-per-page-field select {
    width: auto;
    min-width: 78px;
    margin: 0;
    padding: 0 26px 0 8px;
    border: 0;
    background-color: transparent;
    color: #25272b;
    font-weight: 800;
}

.admin-members-page .member-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.admin-members-page .member-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    color: #4f5967;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.admin-members-page .member-filter-pill.active {
    border-color: #b89051;
    color: #ffffff;
    background: #b89051;
    box-shadow: 0 8px 18px rgba(184, 144, 81, 0.16);
}

.admin-members-page .member-profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-members-page .member-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #b89051 0%, #5c6675 100%);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.admin-members-page .member-avatar-small {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

.admin-members-page .member-profile-title {
    min-width: 0;
}

.admin-members-page .member-profile-title strong,
.admin-members-page .member-identity strong {
    display: block;
    overflow: hidden;
    color: #25272b;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.admin-members-page .member-detail-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    background: #f9fafb;
}

.admin-members-page .member-detail-item span {
    display: block;
    margin-bottom: 6px;
    color: #737b86;
    font-size: 12px;
    font-weight: 700;
}

.admin-members-page .member-detail-item strong {
    display: block;
    overflow: hidden;
    color: #25272b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-edit-form {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

.admin-members-page .member-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.admin-members-page .member-edit-form .member-field {
    width: 100%;
    display: grid;
    gap: 6px;
    margin: 0;
    color: #4f5661;
    font-size: 13px;
    font-weight: 700;
}

.admin-members-page .member-edit-form .member-field > span {
    display: block;
}

.admin-members-page .member-edit-form input,
.admin-members-page .member-edit-form select {
    width: 100%;
    margin: 0;
}

.admin-members-page .member-form-note {
    margin: 0;
}

.admin-members-page .member-list-card {
    overflow: hidden;
}

.admin-members-page .member-bulk-form {
    display: grid;
    gap: 10px;
}

.admin-members-page .member-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-members-page .member-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-members-page .member-check-all,
.admin-members-page .member-row-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #596272;
    font-size: 13px;
    font-weight: 800;
}

.admin-members-page .member-check-all input,
.admin-members-page .member-row-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #b89051;
}

.admin-members-page .member-row-check span {
    display: none;
}

.admin-members-page .member-bulk-delete-btn,
.admin-members-page .member-bulk-filter-delete-btn {
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d96352;
    border-radius: 8px;
    color: #ffffff;
    background: #d96352;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.admin-members-page .member-bulk-filter-delete-btn {
    color: #bd4b3e;
    background: #fff4f2;
}

.admin-members-page .member-bulk-delete-btn:disabled {
    border-color: #d7dde5;
    color: #8b95a3;
    background: #eef2f7;
    cursor: not-allowed;
}

.admin-members-page .member-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #ffffff;
}

.admin-members-page .member-list-head,
.admin-members-page .member-list-row {
    display: grid;
    grid-template-columns: minmax(44px, 0.32fr) minmax(180px, 2fr) minmax(90px, 0.75fr) minmax(76px, 0.6fr) minmax(130px, 1.05fr) minmax(130px, 1.05fr) minmax(94px, 0.75fr) minmax(128px, auto);
    align-items: center;
    gap: 12px;
}

.admin-members-page .member-list-head {
    padding: 10px 14px;
    color: #687180;
    background: #f6f8fb;
    font-size: 12px;
    font-weight: 800;
}

.admin-members-page .member-list-row {
    padding: 12px 14px;
    border-top: 1px solid #edf0f4;
    background: #ffffff;
}

.admin-members-page .member-list-row:hover {
    background: #fbfcfe;
}

.admin-members-page .member-list-row.is-selected {
    background: #fffaf2;
    box-shadow: inset 3px 0 0 #b89051;
}

.admin-members-page .member-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-members-page .member-identity > div {
    min-width: 0;
}

.admin-members-page .member-identity .muted {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-list-cell {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.admin-members-page .member-list-cell span {
    display: none;
    color: #798290;
    font-size: 12px;
    font-weight: 700;
}

.admin-members-page .member-list-cell strong {
    display: block;
    overflow: hidden;
    color: #30343a;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-date-cell strong,
.admin-members-page .member-expire-cell strong {
    font-size: 12px;
}

.admin-members-page .member-list-row > .status-badge {
    justify-self: start;
    min-height: 26px;
    white-space: nowrap;
}

.admin-members-page .status-badge.member {
    border-color: #84c39a;
    color: #207246;
    background: #eefaf2;
}

.admin-members-page .status-badge.private {
    border-color: #e1b977;
    color: #91652a;
    background: #fff8eb;
}

.admin-members-page .member-list-actions,
.admin-members-page .member-detail-actions,
.admin-members-page .member-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-members-page .member-edit-actions button {
    width: auto;
    min-width: 140px;
    margin: 0;
    padding: 0 18px;
}

.admin-members-page .member-balance-adjustment-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #eadfce;
    border-radius: 10px;
    background: #fffaf3;
}

.admin-members-page .member-balance-adjustment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #61481f;
}

.admin-members-page .member-balance-adjustment-head span {
    color: #9b7540;
    font-size: 12px;
}

.admin-members-page .member-balance-adjustment-fields {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.2fr);
    gap: 12px;
}

.admin-members-page .member-balance-adjustment-fields .member-field {
    display: grid;
    gap: 6px;
    color: #4f5661;
    font-size: 13px;
    font-weight: 700;
}

.admin-members-page .member-balance-adjustment-fields input {
    width: 100%;
    min-height: 38px;
    margin: 0;
}

.admin-members-page .member-balance-adjustment-actions {
    gap: 8px;
}

.admin-members-page .member-balance-adjustment-actions button {
    width: auto;
    min-width: 120px;
    min-height: 36px;
    margin: 0;
    padding: 0 16px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.admin-members-page .member-balance-adjustment-actions .member-balance-increase {
    border-color: #198754;
    background: #198754;
}

.admin-members-page .member-balance-adjustment-actions .member-balance-increase:hover {
    background: #146c43;
}

.admin-members-page .member-balance-adjustment-actions .member-balance-decrease {
    border-color: #d14343;
    background: #d14343;
}

.admin-members-page .member-balance-adjustment-actions .member-balance-decrease:hover {
    background: #b33232;
}

@media (max-width: 600px) {
    .admin-members-page .member-balance-adjustment-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-members-page .member-balance-adjustment-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-members-page .member-balance-adjustment-actions button {
        flex: 1 1 0;
    }
}

.admin-members-page .member-list-actions .filter-btn,
.admin-members-page .member-list-actions .search-clear-btn,
.admin-members-page .member-detail-actions .filter-btn,
.admin-members-page .member-detail-actions .search-clear-btn,
.admin-members-page .member-edit-actions .search-clear-btn {
    min-width: 70px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-members-page .member-empty-state {
    padding: 22px 12px;
    border: 1px dashed #dce2ea;
    border-radius: 8px;
    text-align: center;
    background: #fbfcfe;
}

.admin-members-page .member-empty-state strong {
    color: #30343a;
}

@media (min-width: 760px) {
    .admin-members-page .member-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-members-page .member-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-members-page .member-field-wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1120px) {
    .admin-members-page .member-stats-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .admin-members-page .member-detail-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .admin-shell-app.admin-members-page .member-search-form {
        max-width: none;
    }

    .admin-shell-app.admin-members-page .home-search-form .keyword-input {
        min-width: 260px;
    }

    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-form-grid,
    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-form-note,
    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-edit-actions {
        grid-column: 1;
    }

    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-edit-actions {
        width: auto;
    }

    .admin-shell-app.admin-members-page .member-list-row {
        grid-template-columns: minmax(44px, 0.32fr) minmax(180px, 2fr) minmax(90px, 0.75fr) minmax(76px, 0.6fr) minmax(130px, 1.05fr) minmax(130px, 1.05fr) minmax(94px, 0.75fr) minmax(128px, auto);
    }
}

@media (max-width: 780px) {
    .admin-members-page .member-admin-toolbar,
    .admin-members-page .member-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-members-page .member-toolbar-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .admin-members-page .member-toolbar-actions .filter-btn,
    .admin-members-page .member-toolbar-actions .logout-link {
        flex: 1 1 120px;
    }

    .admin-members-page .member-search-form {
        flex-wrap: wrap;
    }

    .admin-members-page .member-search-form .keyword-input {
        flex: 1 0 100%;
    }

    .admin-members-page .member-per-page-field,
    .admin-members-page .member-search-form .filter-btn,
    .admin-members-page .member-search-form .search-clear-btn {
        flex: 1 1 120px;
    }

    .admin-members-page .member-per-page-field {
        justify-content: space-between;
    }

    .admin-members-page .member-profile-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-members-page .member-profile-head > .status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .admin-members-page .member-list-card {
        overflow: visible;
    }

    .admin-members-page .member-list {
        gap: 8px;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .admin-members-page .member-list-head {
        display: none;
    }

    .admin-members-page .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 10px 12px;
        padding: 12px;
        border: 1px solid #e3e8ef;
        border-radius: 8px;
        background: #ffffff;
    }

    .admin-members-page .member-identity,
    .admin-members-page .member-date-cell,
    .admin-members-page .member-expire-cell,
    .admin-members-page .member-list-actions {
        grid-column: 1 / -1;
    }

    .admin-members-page .member-row-check {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .admin-members-page .member-row-check span {
        display: inline;
    }

    .admin-members-page .member-list-cell span {
        display: block;
    }

    .admin-members-page .member-list-row > .status-badge {
        justify-self: start;
    }

    .admin-members-page .member-list-actions {
        width: 100%;
    }

    .admin-members-page .member-list-actions .filter-btn,
    .admin-members-page .member-list-actions .search-clear-btn {
        flex: 1 1 0;
    }

    .admin-members-page .member-bulk-bar,
    .admin-members-page .member-bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-members-page .member-bulk-delete-btn,
    .admin-members-page .member-bulk-filter-delete-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .admin-members-page .member-stats-grid,
    .admin-members-page .member-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-members-page .member-orders-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.admin-members-page .member-orders-head {
    margin-bottom: 10px;
}

.admin-members-page .member-orders-head .card-title {
    margin: 0;
    font-size: 15px;
}

.admin-members-page .member-order-list .member-list-head,
.admin-members-page .member-order-list .member-list-row {
    grid-template-columns: minmax(170px, 2fr) minmax(84px, 0.8fr) minmax(88px, 0.75fr) minmax(72px, 0.65fr) minmax(88px, 0.75fr) minmax(130px, 1fr);
}

.admin-members-page .member-order-list .order-time-cell strong {
    font-size: 12px;
}

.admin-members-page .member-pagination-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.admin-members-page .member-pagination-meta {
    margin-bottom: 10px;
    font-size: 12px;
    color: #7a869a;
}

.admin-members-page .member-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-members-page .member-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d4deeb;
    background: #fff;
    color: #3d4e67;
    font-size: 13px;
    text-decoration: none;
    transition: all .14s ease;
}

.admin-members-page .member-page-btn:hover {
    border-color: #2f78dd;
    color: #2f78dd;
    box-shadow: 0 4px 12px rgba(47, 120, 221, 0.12);
}

.admin-members-page .member-page-btn.is-current {
    border-color: #2f78dd;
    background: linear-gradient(180deg, #3f8cff 0%, #2f78dd 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(47, 120, 221, 0.25);
}

.admin-members-page .member-page-btn.is-disabled {
    pointer-events: none;
    color: #a0a8b5;
    border-color: #e4e9f1;
    background: #f8fafd;
}

@media (max-width: 780px) {
    .admin-members-page .member-order-list .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .admin-members-page .member-order-list .member-identity,
    .admin-members-page .member-order-list .order-time-cell {
        grid-column: 1 / -1;
    }

    .admin-members-page .member-pagination {
        gap: 6px;
    }

    .admin-members-page .member-page-btn {
        height: 32px;
        min-width: 32px;
        padding: 0 10px;
        font-size: 12px;
    }
}

.admin-orders-page .order-status-pills {
    margin-top: 8px;
}

.admin-orders-page .order-list .member-list-head,
.admin-orders-page .order-list .member-list-row {
    grid-template-columns: minmax(190px, 2fr) minmax(110px, 1fr) minmax(84px, 0.7fr) minmax(88px, 0.75fr) minmax(72px, 0.65fr) minmax(88px, 0.75fr) minmax(130px, 1fr) minmax(72px, auto);
}

.admin-orders-page .order-time-cell strong {
    font-size: 12px;
}

@media (min-width: 1024px) {
    .admin-shell-app.admin-orders-page .order-list .member-list-row {
        grid-template-columns: minmax(190px, 2fr) minmax(110px, 1fr) minmax(84px, 0.7fr) minmax(88px, 0.75fr) minmax(72px, 0.65fr) minmax(88px, 0.75fr) minmax(130px, 1fr) minmax(72px, auto);
    }
}

@media (max-width: 780px) {
    .admin-orders-page .order-list .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .admin-orders-page .order-list .member-identity,
    .admin-orders-page .order-list .order-time-cell,
    .admin-orders-page .order-list .member-list-actions {
        grid-column: 1 / -1;
    }
}

/* Collected-home visual pass */
.home-app {
    background: #f7f7f7;
    padding-bottom: 70px;
}

.home-app .topbar {
    display: none;
}

.home-app .home-section {
    padding: 12px;
    background: #f7f7f7;
}

.home-top-box {
    margin-bottom: 10px;
    padding: 0;
    background: #fff;
}

.home-merchant-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2a1111 0%, #6f1212 48%, #171717 100%);
}

.home-merchant-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.12), transparent 22%),
        radial-gradient(circle at 86% 84%, rgba(255, 255, 255, 0.08), transparent 26%);
    pointer-events: none;
}

.home-merchant-card > * {
    position: relative;
    z-index: 1;
}

.home-seller-row,
.home-seller-main,
.home-interactions,
.home-category-flex,
.home-online-count {
    display: flex;
    align-items: center;
}

.home-seller-row {
    justify-content: space-between;
    gap: 10px;
}

.home-seller-main {
    min-width: 0;
    gap: 9px;
}

.home-seller-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.96);
}

.home-seller-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d50000;
    font-weight: 800;
}

.home-seller-name {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    line-height: 32px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-change-seller {
    flex: 0 0 auto;
    margin-right: -12px;
    padding: 5px 12px 5px 10px;
    border-radius: 16px 0 0 16px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.home-seller-remark {
    margin: 10px 0 12px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    line-height: 1.45;
}

.home-interactions {
    justify-content: space-around;
    gap: 9px;
}

.home-interaction {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 4px;
    padding: 7px 4px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

body.home-modal-open {
    overflow: hidden;
}

.home-action-modal[hidden],
.home-contact-qr-wrap[hidden],
.home-contact-empty[hidden],
.home-contact-tip[hidden] {
    display: none;
}

.home-action-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-action-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(14, 20, 31, 0.68);
    backdrop-filter: blur(3px);
    cursor: default;
}

.home-action-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 20px;
    background: #fff;
    color: #1d2736;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    animation: homeActionDialogIn 180ms ease-out;
}

@keyframes homeActionDialogIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-action-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: #526071;
    font-size: 25px;
    line-height: 32px;
    cursor: pointer;
}

.home-contact-dialog {
    padding: 30px 28px 25px;
    text-align: center;
}

.home-contact-dialog h3 {
    margin: 0 38px 20px;
    color: #192436;
    font-size: 20px;
    line-height: 1.4;
}

.home-contact-qr-wrap {
    width: min(100%, 286px);
    margin: 0 auto;
    padding: 12px;
    border: 1px solid #e8ebf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(33, 45, 62, 0.08);
}

.home-contact-qr {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 9px;
    background: #fff;
}

.home-contact-tip,
.home-contact-empty {
    margin: 16px 0 0;
    color: #7a8492;
    font-size: 13px;
}

.home-contact-empty {
    padding: 34px 16px;
    border: 1px dashed #d5dae2;
    border-radius: 14px;
    background: #f8f9fb;
}

.home-feedback-dialog {
    padding: 30px 26px 26px;
}

.home-feedback-kicker {
    margin: 0 0 5px;
    color: #bd8a19;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.home-feedback-dialog h3 {
    margin: 0 36px 7px 0;
    color: #192436;
    font-size: 21px;
}

.home-feedback-intro {
    margin: 0 0 20px;
    color: #778292;
    font-size: 13px;
    line-height: 1.6;
}

.home-feedback-form label {
    display: block;
    margin-bottom: 8px;
    color: #354154;
    font-size: 13px;
    font-weight: 700;
}

.home-feedback-form textarea {
    display: block;
    width: 100%;
    min-height: 142px;
    padding: 13px 14px;
    resize: vertical;
    border: 1px solid #d9dee6;
    border-radius: 12px;
    outline: 0;
    background: #fbfcfd;
    color: #1f2937;
    font: inherit;
    font-size: 14px;
    line-height: 1.65;
    box-sizing: border-box;
}

.home-feedback-form textarea:focus {
    border-color: #d2a642;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(210, 166, 66, 0.14);
}

.home-feedback-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    margin: 5px 2px 10px;
    color: #8b94a1;
    font-size: 12px;
}

.home-feedback-meta [data-home-feedback-status] {
    padding-right: 10px;
}

.home-feedback-meta .is-error {
    color: #c93f3f;
}

.home-feedback-meta .is-success {
    color: #16835d;
}

.home-feedback-form button[type="submit"] {
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #d8ad4a, #b77f15);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(183, 127, 21, 0.22);
}

.home-feedback-form button[type="submit"]:disabled {
    opacity: 0.66;
    cursor: wait;
}

.home-category-flex {
    justify-content: space-between;
    gap: 10px;
    padding: 18px 4px 12px;
}

.admin-site-page .site-contact-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 2px;
}

.admin-site-page .site-qr-preview {
    width: 118px;
    height: 118px;
    margin: 0;
    object-fit: contain;
    background: #fff;
}

/* Super-admin feedback mailbox */
.admin-feedback-section {
    display: grid;
    gap: 16px;
}

.feedback-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 26px 28px;
    border: 1px solid rgba(221, 182, 90, 0.35);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 10%, rgba(222, 181, 87, 0.2), transparent 32%),
        linear-gradient(135deg, #242d3b, #151b25);
    color: #fff;
    box-shadow: 0 16px 36px rgba(26, 33, 44, 0.16);
}

.feedback-admin-kicker {
    margin: 0 0 5px;
    color: #e9c76f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.feedback-admin-hero h2 {
    margin: 0 0 8px;
    font-size: 27px;
}

.feedback-admin-hero p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.feedback-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 10px;
    min-width: min(100%, 330px);
}

.feedback-admin-stats div {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.feedback-admin-stats div.is-unread {
    border-color: rgba(233, 199, 111, 0.42);
    background: rgba(233, 199, 111, 0.12);
}

.feedback-admin-stats strong {
    font-size: 23px;
}

.feedback-admin-stats span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.feedback-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feedback-admin-filters,
.feedback-admin-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-admin-filters .filter-btn.active {
    border-color: #c89a34;
    background: #fff9e9;
    color: #93660d;
}

.feedback-admin-search input {
    width: min(34vw, 320px);
    min-width: 180px;
}

.feedback-admin-search button {
    white-space: nowrap;
}

.feedback-admin-search a {
    color: #7d8795;
    font-size: 13px;
}

.feedback-admin-list {
    display: grid;
    gap: 12px;
}

.feedback-admin-item {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.feedback-admin-item.is-unread {
    border-color: rgba(201, 154, 52, 0.5);
    box-shadow: 0 10px 26px rgba(132, 94, 15, 0.08);
}

.feedback-admin-item.is-unread::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #d3a33d;
}

.feedback-admin-item.is-read {
    background: #fbfcfd;
}

.feedback-admin-item-head,
.feedback-admin-item-head > div,
.feedback-admin-item-actions {
    display: flex;
    align-items: center;
}

.feedback-admin-item-head {
    justify-content: space-between;
    gap: 16px;
}

.feedback-admin-item-head > div {
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-admin-item-head time {
    color: #87919f;
    font-size: 12px;
    white-space: nowrap;
}

.feedback-admin-state {
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf0f4;
    color: #697586;
    font-size: 11px;
    font-weight: 800;
}

.feedback-admin-item.is-unread .feedback-admin-state {
    background: #fff2cf;
    color: #9b6b08;
}

.feedback-admin-content {
    margin: 16px 0;
    padding: 15px 17px;
    border-radius: 12px;
    background: #f5f7fa;
    color: #2d3746;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.feedback-admin-item.is-unread .feedback-admin-content {
    background: #fffcf4;
}

.feedback-admin-item-actions {
    justify-content: space-between;
    gap: 12px;
}

.feedback-admin-item-actions form {
    margin: 0;
}

.feedback-admin-item-actions button {
    padding: 7px 13px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #fff;
    color: #465366;
    cursor: pointer;
}

.feedback-admin-item.is-unread .feedback-admin-item-actions button {
    border-color: #d9ad50;
    background: #fff8e6;
    color: #8d620d;
}

.feedback-admin-empty {
    padding: 42px 24px;
    text-align: center;
}

.feedback-admin-empty p {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .feedback-admin-hero,
    .feedback-admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .feedback-admin-stats {
        min-width: 0;
    }

    .feedback-admin-search input {
        width: 100%;
        min-width: 0;
    }

    .feedback-admin-search {
        flex-wrap: wrap;
    }

    .feedback-admin-item-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .home-action-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .home-action-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 20px 20px 14px 14px;
    }

    .feedback-admin-hero {
        padding: 20px;
    }

    .feedback-admin-stats {
        grid-template-columns: 1fr;
    }
}

.home-category-item {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.home-category-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff0f0 0%, #ffe1e1 100%);
    color: #d50000;
    font-size: 22px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(213, 0, 0, 0.08);
}

.home-category-name {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.home-category-item.active .home-category-name {
    color: #d50000;
}

.home-main-search {
    position: relative;
    margin: 0 0 4px;
}

.home-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #f0f0f0;
    border-radius: 21px;
    padding: 0 14px 0 40px;
    background: #fff;
    color: #303133;
    font-size: 14px;
    outline: none;
}

.home-search-input:focus {
    border-color: #d50000;
    box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.08);
}

.home-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 15px;
    height: 15px;
    border: 2px solid #d50000;
    border-radius: 50%;
    transform: translateY(-55%);
}

.home-search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #d50000;
    transform: rotate(45deg);
}

.home-online-count {
    gap: 6px;
    min-height: 25px;
    margin: 10px 0;
    padding: 0 15px;
    width: 100%;
}

.home-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d50000;
}

.home-online-label,
.home-online-number {
    font-size: 14px;
}

.home-online-label {
    color: #666;
}

.home-online-number {
    color: #d50000;
}

.home-online-reward {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    color: #d50000;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-online-reward.is-jumping {
    animation: homeRewardJump .34s ease;
}

@keyframes homeRewardJump {
    0% {
        opacity: .25;
        transform: translateY(6px) scale(.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-notice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 0 12px;
    border: 1px solid #f4ded7;
    border-radius: 6px;
    padding: 13px 12px 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fff9f7 100%);
    box-shadow: 0 6px 16px rgba(196, 37, 37, 0.08);
    text-align: left;
    cursor: default;
}

.site-notification-ticker {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid #d4e4f5;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 5px 14px rgba(31, 92, 153, .08);
    color: #245f9b;
}

.home-site-notification-ticker {
    margin: 0 0 12px;
}

.site-notification-ticker-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0 12px;
    background: #2874b8;
    box-shadow: 4px 0 10px rgba(40, 116, 184, .16);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.site-notification-ticker-viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.site-notification-ticker-track {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    width: max-content;
    min-width: max-content;
    height: 100%;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

.site-notification-ticker-track.is-running {
    animation: site-notification-ticker-scroll var(--notification-ticker-duration, 16s) linear infinite;
}

.site-notification-ticker:hover .site-notification-ticker-track,
.site-notification-ticker:focus-within .site-notification-ticker-track {
    animation-play-state: paused;
}

.site-notification-ticker-item {
    display: inline-flex;
    align-items: center;
    color: #245f9b;
    font-size: 14px;
    line-height: 1;
}

.site-notification-ticker-item strong {
    color: inherit;
    font-weight: 800;
}

.site-notification-ticker-item + .site-notification-ticker-item::before {
    content: "◆";
    margin: 0 22px;
    color: #8eb8de;
    font-size: 8px;
}

@keyframes site-notification-ticker-scroll {
    from {
        transform: translateX(var(--notification-ticker-start, 100%));
    }
    to {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-notification-ticker-viewport {
        overflow-x: auto;
    }

    .site-notification-ticker-track.is-running {
        position: relative;
        animation: none;
        transform: none;
    }
}

.home-notice-card::before {
    content: "公告";
    position: absolute;
    top: 38px;
    left: -13px;
    z-index: 1;
    padding: 4px 25px;
    background: #d50000;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    transform: rotate(-45deg) translateY(-50%);
    transform-origin: 0 0;
    white-space: nowrap;
}

.home-notification-card {
    border-color: #d8e7f6;
    background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
    box-shadow: 0 6px 16px rgba(36, 96, 155, .09);
}

.home-notification-card::before {
    content: "通知";
    background: #2874b8;
}

.home-notification-card .home-notice-title {
    color: #2467a6;
}

.home-notification-card .announcement-dots button.active {
    background: #2874b8;
}

.home-notice-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    color: #d50000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.home-notice-text {
    display: block;
    margin: 8px 0 0 15px;
    overflow: visible;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.home-notice-divider {
    width: 100%;
    height: 1px;
    margin: 10px 0 8px;
    background: #f0f0f0;
}

.home-notice-date {
    align-self: flex-end;
    color: #999;
    font-size: 12px;
}

.announcement-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transition: transform .46s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.announcement-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: .42;
    transform: translateX(0) scale(.985);
    transition: opacity .28s ease, transform .28s ease;
}

.announcement-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.announcement-title {
    display: block;
    margin-bottom: 6px;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

.announcement-body {
    display: block;
    min-width: 0;
    line-height: 1.55;
    word-break: break-word;
}

.announcement-inline-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    margin: 8px 0 0;
    border-radius: 6px;
    object-fit: contain;
    background: #f8f8f8;
}

.announcement-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
}

.announcement-dots button {
    width: 7px;
    height: 7px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d8d8d8;
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
}

.announcement-dots button.active {
    width: 18px;
    background: #d50000;
}

.home-announcement-slide.active {
    display: flex;
    flex-direction: column;
}

.home-announcement-slide {
    display: flex;
    flex-direction: column;
    padding-right: 2px;
}

.home-announcement-dots {
    margin-left: 15px;
    justify-content: flex-start;
}

.home-notice-text .announcement-inline-image {
    max-height: 320px;
}

.home-app .analyst-card {
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.home-app .analyst-card + .card {
    display: none;
}

.home-app .home-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-app .split-title {
    margin: 8px 0 10px;
}

.home-app .split-title span {
    color: #d50000;
}

.home-app .precise-series-block {
    margin-bottom: 12px;
}

.home-app .precise-series-head {
    padding: 0 4px 8px;
}

.home-app .precise-latest-scheme {
    position: relative;
    min-height: 128px;
    border: 0;
    border-radius: 6px;
    padding: 14px 12px 14px 74px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.home-app .precise-latest-scheme::before {
    content: "料";
    position: absolute;
    top: 16px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d50000, #ff4d4f);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.home-app .precise-latest-scheme .history-title {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.home-app .precise-latest-scheme .status-badge {
    border-radius: 3px;
    background: #d50000;
    color: #fff;
}

.home-app .precise-latest-scheme .detail-content-line {
    color: #444;
    font-size: 14px;
    line-height: 1.55;
}

.home-app .history-link + .history-link {
    margin-top: 10px;
}

.home-app .lottery-count-item {
    border-color: #eeeeee;
    border-radius: 4px;
}

.home-app .lottery-red,
.home-app .lottery-blue,
.home-app .lottery-green,
.home-app .lottery-black {
    border-radius: 8px;
}

.bottom-nav {
    max-width: 480px;
    height: 58px;
    margin: 0 auto;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.04);
}

.nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: auto;
    min-width: 0;
    line-height: 1;
    font-size: 10px;
}

.nav-icon {
    position: relative;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.nav-icon-home::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
}

.nav-icon-home::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-icon-orders::before {
    content: "";
    position: absolute;
    inset: 4px 5px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.nav-icon-orders::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    width: 8px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.nav-icon-messages::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 16px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.nav-icon-messages::after {
    content: "";
    position: absolute;
    left: 9px;
    bottom: 3px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-icon-profile::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.nav-icon-profile::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 3px;
    width: 14px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 3px 3px;
}

.home-category-item.home-switch-btn,
.home-category-item.home-switch-btn.active {
    display: block;
    height: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #333;
    font-size: 14px;
}

.home-notice-card.home-switch-btn,
.home-notice-card.home-switch-btn.active {
    height: auto;
    max-width: none;
    border: 0;
    background: #fff;
    color: inherit;
}

.home-app .precise-series-block,
.home-app .precise-series-block + .precise-series-block {
    position: relative;
    margin: 0 0 16px;
    padding-top: 0;
    border-top: 0;
}

.home-app .precise-latest-scheme,
.scheme-collapse .precise-latest-scheme.history-item {
    position: relative;
    min-height: 0;
    border: 0;
    border-radius: 8px;
    padding: 12px 12px 10px 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

.home-app .precise-latest-scheme::before,
.scheme-collapse .precise-latest-scheme::before {
    content: none;
}

.home-series-profile-card {
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(122, 22, 26, .12);
}

.home-series-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 104px;
    padding: 14px 92px 14px 13px;
    background: linear-gradient(135deg, #df252d 0%, #d9222a 72%, #c91d25 100%);
    color: #fff;
}

.home-app .home-series-profile-card .home-series-profile-head,
.public-schemes-app .home-series-profile-card .home-series-profile-head {
    background: #df252d;
}

.home-series-profile-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-series-profile-avatar {
    display: inline-flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    overflow: hidden;
    background: #f4c4a3;
    color: #8b241f;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    object-fit: cover;
    box-shadow: 0 2px 7px rgba(113, 0, 0, .22);
}

img.home-series-profile-avatar {
    background: #f4c4a3;
}

.home-series-profile-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.home-series-profile-name {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 5px;
    padding: 3px 8px;
    background: #c9212a;
    overflow: hidden;
    color: #fff !important;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-app .home-series-profile-card .home-page-series-name,
.public-schemes-app .home-series-profile-card .home-page-series-name,
.home-series-profile-card .home-page-series-name {
    background: #df252d !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
}

.home-series-profile-badges,
.home-series-profile-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.home-series-profile-badges span,
.home-series-profile-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    max-width: 150px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 4px;
    padding: 1px 6px;
    color: rgba(255, 255, 255, .96);
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-series-profile-badges .home-series-profile-auto-badge {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .78);
    font-weight: 900;
}

.home-series-profile-stats span {
    border: 0;
    padding: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.home-series-profile-metrics .home-series-profile-viewers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: none;
    min-height: 20px;
    border: 0;
    padding: 0;
    color: #69717c;
}

.home-series-profile-metrics .home-series-profile-viewer-avatars {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0;
    max-width: none;
    min-height: 20px;
    padding-left: 6px;
}

.home-series-profile-metrics .home-series-profile-viewer-avatar {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-left: -6px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
    object-fit: cover;
}

.home-series-profile-metrics .home-series-profile-viewer-count {
    display: inline;
    max-width: none;
    min-height: 0;
    color: inherit;
    font-size: inherit;
    line-height: 1.2;
    white-space: nowrap;
}

.home-series-profile-metrics {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 34px;
    margin-top: 6px;
    border: 1px solid #eee4d5;
    border-radius: 7px;
    padding: 6px 12px;
    background: #fff;
    color: #69717c;
    font-size: 12px;
    line-height: 1.2;
}

.home-series-profile-metrics > .home-series-profile-purchase-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d9232b;
    font-weight: 700;
    white-space: nowrap;
}

.home-series-profile-follow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    border-radius: 5px;
    padding: 0 10px;
    background: #fff;
    color: #d9232b;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.home-series-follow-form,
.home-series-follow-login {
    position: absolute;
    top: 14px;
    right: 13px;
    z-index: 3;
    margin: 0;
}

.home-series-follow-form.is-following .home-series-profile-follow {
    background: rgba(255, 255, 255, .88);
}

.home-series-follow-form .home-series-profile-follow:disabled {
    cursor: wait;
    opacity: .65;
}

.home-series-profile-record {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin: 0 12px;
    padding: 9px 0;
}

.home-series-profile-record-title {
    flex: 0 0 auto;
    color: #5d6670;
    font-size: 13px;
    font-weight: 700;
}

.home-series-profile-results {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.home-series-profile-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 21px;
    border-radius: 4px;
    padding: 0 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.home-series-profile-result.red { background: #d9232b; }
.home-series-profile-result.black { background: #252a31; }
.home-series-profile-result.green { background: #1d9b67; }
.home-series-profile-result.blue { background: #3778c8; }

.home-series-profile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
    border-top: 1px solid #f0f1f3;
    padding: 7px 12px 8px;
    color: #9aa0a6;
    font-size: 11px;
}

.home-series-profile-foot span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-series-profile-foot span:last-child {
    max-width: 54%;
    text-align: right;
}

.home-scheme-ribbon {
    position: absolute;
    top: 11px;
    left: -21px;
    z-index: 8;
    width: 74px;
    padding: 3px 0;
    background: #ffb300;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(255, 153, 0, 0.26);
}

.home-scheme-ribbon.access-free {
    background: #d50000;
}

.home-scheme-ribbon.access-member {
    background: #ff8a00;
}

.home-scheme-card-head {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 76px;
}

.home-series-avatar {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    object-fit: cover;
    box-shadow: none;
}

img.home-series-avatar {
    background: transparent;
}

.home-scheme-main {
    min-width: 0;
    padding-right: 0;
}

.home-app .precise-latest-scheme .home-scheme-title {
    display: block;
    color: #e60000;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.28;
    word-break: break-word;
}

.home-app .precise-latest-scheme .home-public-series-title {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    border-radius: 5px;
    padding: 3px 8px;
    background: #df252d !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    line-height: 1.2;
}

.home-scheme-series {
    margin: 4px 0 0;
    color: #202020;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.45;
    word-break: break-word;
}

.precise-series-block .home-scheme-series {
    display: none;
}

.home-app .precise-latest-scheme .home-scheme-author {
    margin: 4px 0 0;
    color: #a16207;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.home-app .precise-latest-scheme .home-scheme-summary {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    word-break: break-word;
}

.home-scheme-price-box {
    display: grid;
    justify-items: end;
    min-width: 70px;
}

.home-scheme-price {
    color: #e60000;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.home-scheme-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: 8px;
    border: 2px solid #ff2b2b;
    border-radius: 50%;
    color: #ff2b2b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transform: rotate(-18deg);
}

.home-scheme-stamp.access-member {
    font-size: 12px;
}

.home-scheme-result-stamp,
.scheme-result-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid #e60000;
    border-radius: 50%;
    color: #e60000;
    background: rgba(230, 0, 0, .04);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    transform: rotate(-16deg);
}

.home-scheme-result-stamp {
    margin-top: 4px;
}

.home-scheme-result-stamp.black,
.scheme-result-stamp.black {
    border-color: #111;
    color: #111;
    background: rgba(17, 17, 17, .04);
}

.home-scheme-result-stamp.pending,
.scheme-result-stamp.pending {
    border-color: #7a7f8a;
    color: #5f6673;
    background: rgba(122, 127, 138, .08);
    font-size: 12px;
}

.scheme-result-stamp {
    position: absolute;
    top: 14px;
    right: 10px;
    z-index: 2;
}

.home-scheme-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    min-height: 22px;
}

.home-scheme-tags {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    margin-right: auto;
}

.home-scheme-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    border-radius: 3px;
    padding: 3px 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.home-scheme-tag.red,
.home-scheme-tag.green,
.home-scheme-tag.blue,
.home-scheme-tag.orange {
    background: #e60000;
}

.home-scheme-tag.orange {
    background: #ff9900;
}

.home-scheme-tag.pin {
    background: #8b6f2a;
}

.frontend-pin-form {
    display: flex;
    justify-content: flex-end;
    margin: 6px 2px 0;
}

.frontend-pin-form button {
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: #8b6f2a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.frontend-pin-form.is-pinned button {
    background: #6b7280;
}

.frontend-pin-form button:disabled {
    cursor: wait;
    opacity: .65;
}

.home-scheme-viewers {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.home-scheme-viewers b {
    color: #e60000;
    font-weight: 500;
}

.home-viewer-avatars {
    display: inline-flex;
    align-items: center;
    padding-left: 8px;
}

.home-viewer-avatar {
    display: block;
    width: 21px;
    height: 21px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
    object-fit: cover;
}

.home-scheme-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    color: #9aa0a6;
    font-size: 12px;
}

.home-scheme-bottom.no-cart {
    justify-content: flex-end;
}

.home-scheme-bottom.no-cart .home-scheme-date {
    margin-left: auto;
}

.home-scheme-cart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #e60000;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.home-scheme-cart-wrap,
.detail-cart-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.frontend-cart-growth-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.frontend-cart-growth-form button {
    min-height: 26px;
    border: 0;
    border-radius: 5px;
    padding: 0 9px;
    background: #18a35f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.frontend-cart-growth-form.is-enabled button {
    background: #6b7280;
}

.frontend-cart-growth-form button:disabled {
    cursor: wait;
    opacity: .65;
}

.cart-growth-bulk-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.cart-growth-bulk-controls > span {
    margin-right: 2px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.home-cart-growth-form {
    justify-content: flex-start;
    margin: -6px 0 8px 4px;
    position: relative;
    z-index: 2;
}

.home-scheme-cart-icon {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #e60000;
}

.home-scheme-cart-icon::before {
    content: "";
    position: absolute;
    inset: 3px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M4%205h2l2.2%2010.3h9.6L20%208H8.8M9%2020a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Zm8%200a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M4%205h2l2.2%2010.3h9.6L20%208H8.8M9%2020a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Zm8%200a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.home-scheme-cart-icon::after {
    content: none;
}

.home-scheme-cart-count,
.home-scheme-date {
    white-space: nowrap;
}

@media (max-width: 380px) {
    .home-series-profile-head {
        min-height: 98px;
        padding: 12px 82px 12px 10px;
    }

    .home-series-profile-avatar {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .home-series-profile-name {
        font-size: 16px;
    }

    .home-series-profile-follow {
        padding: 0 8px;
        font-size: 12px;
    }

    .home-series-profile-record {
        margin: 0 10px;
    }

    .home-series-profile-foot {
        padding-right: 10px;
        padding-left: 10px;
    }
}

.series-detail-profile-wrap {
    position: relative;
    margin-bottom: 16px;
}

.series-detail-profile-wrap .home-series-profile-card {
    min-height: 0;
}

.series-detail-list-card {
    margin: 12px 0 14px;
    border-color: #eee1d5;
    border-radius: 14px;
    padding: 12px 13px 14px;
    background: #fff;
}

.series-detail-list-card .split-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 4px 0 13px;
    color: #1f3656;
    font-size: 14px;
}

.series-detail-list-card .split-title strong,
.series-detail-list-card .split-title span {
    position: relative;
    z-index: 1;
    padding: 0 4px;
    background: #fff;
}

.series-detail-list-card .split-title strong {
    color: #1f3656;
    font-weight: 800;
}

.series-detail-list-card .split-title span {
    color: #e33a38;
    font-size: 13px;
}

.series-detail-prediction-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.series-detail-prediction {
    display: grid;
    gap: 0;
    margin-top: 10px;
    border: 1px solid #eee4d5;
    border-radius: 10px;
    padding: 12px 12px 10px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.series-detail-prediction-link:hover .series-detail-prediction {
    border-color: #e0b4a4;
    box-shadow: 0 5px 14px rgba(122, 22, 26, .08);
    transform: translateY(-1px);
}

.series-detail-prediction-head,
.series-detail-prediction-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.series-detail-prediction-head {
    margin-bottom: 6px;
}

.series-detail-prediction-head strong {
    color: #353b43;
    font-size: 16px;
    font-weight: 800;
}

.series-detail-prediction-title {
    margin-bottom: 8px;
    overflow: hidden;
    color: #1f3656;
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.series-detail-prediction-meta {
    color: #8190a1;
    font-size: 11px;
}

.series-detail-prediction-meta .win {
    color: #d9232b;
    font-weight: 800;
}

.series-detail-prediction-meta .black {
    color: #252a31;
    font-weight: 800;
}

.series-detail-prediction-meta .pending {
    color: #9aa0a6;
    font-weight: 700;
}

.series-detail-access-badge {
    border-radius: 999px;
    padding: 3px 9px;
    background: #fff2ed;
    color: #e14b3d;
    font-size: 11px;
    white-space: nowrap;
}

.series-detail-prediction-link:last-of-type .series-detail-prediction {
    margin-bottom: 0;
}

.message-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.message-link:hover {
    color: #d9232b;
}

@media (max-width: 380px) {
    .home-app .precise-latest-scheme,
    .scheme-collapse .precise-latest-scheme.history-item {
        padding-right: 12px;
    }

    .home-scheme-card-head {
        grid-template-columns: 66px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 66px;
    }

    .home-series-avatar {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }

    .home-scheme-price-box {
        min-width: 66px;
    }

    .home-app .precise-latest-scheme .home-scheme-title {
        font-size: 17px;
    }

    .home-scheme-series,
    .home-app .precise-latest-scheme .home-scheme-author,
    .home-app .precise-latest-scheme .home-scheme-summary {
        font-size: 12px;
    }

    .home-scheme-action-row {
        align-items: center;
        flex-direction: row;
        margin-top: 10px;
    }

    .home-scheme-viewers {
        align-self: auto;
    }

    .home-scheme-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.article-detail-app {
    background: #f3f3f3;
}

.article-detail-app .topbar {
    background: #131313;
    padding: 13px 12px;
}

.article-detail-app .topbar h1 {
    font-size: 17px;
    font-weight: 600;
}

.article-detail-app .bottom-nav {
    display: none;
}

.article-detail-app .detail-page {
    min-height: calc(100vh - 44px);
    padding: 12px 12px 76px;
    background: #f3f3f3;
}

.article-detail-app .detail-site-message-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.article-detail-app .detail-site-message {
    position: relative;
    overflow: hidden;
    border: 1px solid #f1d7d2;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff 0%, #fff8f6 100%);
    box-shadow: 0 7px 18px rgba(171, 51, 33, .08);
}

.article-detail-app .detail-site-message.is-notification {
    border-color: #d4e4f5;
    background: linear-gradient(145deg, #fff 0%, #f3f8ff 100%);
    box-shadow: 0 7px 18px rgba(31, 92, 153, .09);
}

.article-detail-app .detail-site-message-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(196, 81, 57, .12);
    color: #b3261e;
    font-size: 14px;
}

.article-detail-app .is-notification .detail-site-message-head {
    border-bottom-color: rgba(37, 99, 172, .12);
    color: #1f64a8;
}

.article-detail-app .detail-site-message-icon {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #d83a2e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(216, 58, 46, .25);
}

.article-detail-app .is-notification .detail-site-message-icon {
    background: #2b75bb;
    box-shadow: 0 3px 8px rgba(43, 117, 187, .25);
}

.article-detail-app .detail-site-message-count {
    margin-left: auto;
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(216, 58, 46, .08);
    color: #9f514a;
    font-size: 11px;
    font-weight: 700;
}

.article-detail-app .is-notification .detail-site-message-count {
    background: rgba(43, 117, 187, .09);
    color: #4f7396;
}

.article-detail-app .detail-site-message-slide {
    padding: 12px 14px 10px;
}

.article-detail-app .detail-site-message-title {
    display: block;
    margin-bottom: 6px;
    color: #bd2d23;
    font-size: 14px;
    line-height: 1.45;
}

.article-detail-app .is-notification .detail-site-message-title {
    color: #245f9b;
}

.article-detail-app .detail-site-message-body {
    color: #444;
    font-size: 13px;
    line-height: 1.65;
}

.article-detail-app .detail-site-message-body:empty {
    display: none;
}

.article-detail-app .detail-site-message-body .announcement-inline-image {
    max-height: 240px;
    margin-top: 9px;
    border: 1px solid rgba(0, 0, 0, .05);
    background: #fff;
}

.article-detail-app .detail-site-message-dots {
    justify-content: flex-start;
    margin: 0;
    padding: 0 14px 11px;
}

.article-detail-app .is-notification .detail-site-message-dots button.active {
    background: #2b75bb;
}

.article-detail-app .detail-article-card,
.article-detail-app .info-card,
.article-detail-app .paid-content {
    position: relative;
    margin-top: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.article-detail-app .detail-article-card {
    margin-top: 0;
}

.article-detail-app .detail-article-inner {
    padding: 15px;
}

.article-detail-app .detail-public-corner {
    position: absolute;
    top: 8px;
    left: -22px;
    z-index: 8;
    width: 76px;
    padding: 3px 0;
    background: #d50000;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transform: rotate(-45deg);
}

.article-detail-app .detail-article-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.article-detail-app .detail-avatar {
    display: inline-flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 24px;
    font-weight: 800;
    overflow: hidden;
}

.article-detail-app .detail-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    object-fit: cover;
}

.article-detail-app .detail-article-title-wrap {
    min-width: 0;
    flex: 1;
}

.article-detail-app .detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.article-detail-app .detail-issue,
.article-detail-app .detail-author {
    color: #d50000;
    font-size: 15px;
    font-weight: 600;
}

.article-detail-app .detail-article-title {
    margin: 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.article-detail-app .detail-series-description {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}

.article-detail-app .detail-price {
    color: #d50000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.article-detail-app .detail-side-result {
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-left: auto;
}

.article-detail-app .detail-result-stamp {
    position: static;
    width: 44px;
    height: 44px;
}

.article-detail-app .detail-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.article-detail-app .detail-mini-tag,
.article-detail-app .detail-section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.article-detail-app .detail-mini-tag.red,
.article-detail-app .detail-section-tag.red {
    border-color: #d50000;
    background: #d50000;
}

.article-detail-app .detail-mini-tag.green,
.article-detail-app .detail-section-tag.green {
    border-color: #18b566;
    background: #18b566;
}

.article-detail-app .detail-mini-tag.blue {
    border-color: #2979ff;
    background: #2979ff;
}

.article-detail-app .detail-mini-tag.purple {
    border-color: #8f6bd8;
    background: #8f6bd8;
}

.article-detail-app .detail-mini-tag.orange {
    border-color: #ff9900;
    background: #ff9900;
}

.article-detail-app .detail-section-tag.orange {
    border-color: #ff9900;
    background: #ff9900;
}

.article-detail-app .detail-section-tag.pink {
    border-color: #ff69b4;
    background: #ff69b4;
}

.article-detail-app .detail-card-bottom {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 11px;
    line-height: 1.4;
}

.article-detail-app .detail-card-bottom.no-cart {
    grid-template-columns: 1fr;
}

.article-detail-app .detail-card-bottom.no-cart > span:last-child {
    justify-self: start;
    text-align: left;
}

.article-detail-app .detail-card-bottom > span {
    min-width: 0;
}

.article-detail-app .detail-card-bottom > span:last-child {
    justify-self: start;
    text-align: left;
    word-break: break-word;
}

.article-detail-app .detail-cart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.article-detail-app .detail-cart-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #d50000;
}

.article-detail-app .detail-cart-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 7px;
    height: 5px;
    border: 1.5px solid #fff;
    border-top: 0;
    border-radius: 0 0 2px 2px;
}

.article-detail-app .detail-cart-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 4px;
    border: 1.5px solid #fff;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.article-detail-app .detail-alert {
    margin-top: 12px;
}

.article-detail-app .detail-admin-visibility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #ead6bd;
    border-radius: 8px;
    background: #fffaf2;
}

.article-detail-app .detail-admin-visibility-bar div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.article-detail-app .detail-admin-visibility-bar strong {
    color: #7a3f00;
    font-size: 14px;
}

.article-detail-app .detail-admin-visibility-bar span {
    color: #8a6a45;
    font-size: 12px;
}

.article-detail-app .detail-admin-visibility-bar button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.article-detail-app .detail-admin-visibility-bar button.hide {
    background: #d83a3a;
}

.article-detail-app .detail-admin-visibility-bar button.show {
    background: #18a35f;
}

.article-detail-app .detail-admin-visibility-bar button.pin {
    background: #8b6f2a;
}

.article-detail-app .detail-admin-visibility-bar button.unpin {
    background: #6b7280;
}

.article-detail-app .detail-admin-inline-visibility {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 2px;
}

.article-detail-app .detail-admin-inline-visibility button {
    min-height: 28px;
    border: 0;
    border-radius: 6px;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.article-detail-app .detail-admin-inline-visibility button.hide {
    background: #d83a3a;
}

.article-detail-app .detail-admin-inline-visibility button.show {
    background: #18a35f;
}

.article-detail-app .detail-admin-inline-visibility button.pin {
    background: #8b6f2a;
}

.article-detail-app .detail-admin-inline-visibility button.unpin {
    background: #6b7280;
}

@media (max-width: 640px) {
    .article-detail-app .detail-admin-visibility-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

.article-detail-app .info-header,
.article-detail-app .paid-header {
    padding: 10px 12px;
}

.article-detail-app .info-divider,
.article-detail-app .paid-divider {
    height: 1px;
    margin: 0 12px;
    background: #eee;
}

.article-detail-app .disclaimer-content,
.article-detail-app .intro-content,
.article-detail-app .history-list,
.article-detail-app .paid-unlocked {
    padding: 12px;
}

.article-detail-app .disclaimer-text,
.article-detail-app .intro-text,
.article-detail-app .glass-text {
    color: #333;
    font-size: 13px;
    line-height: 1.55;
}

.article-detail-app .paid-locked {
    position: relative;
    min-height: 100px;
    padding: 20px 12px;
}

.article-detail-app .glass-content {
    height: 100%;
    overflow: hidden;
}

.article-detail-app .glass-text {
    color: #999;
}

.article-detail-app .pay-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.article-detail-app .pay-text {
    margin: 0 0 20px;
    color: #d50000;
    font-size: 16px;
    font-weight: 600;
}

.article-detail-app .pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    border: 0;
    border-radius: 20px;
    padding: 0 30px;
    background: #d50000;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.article-detail-app .pay-btn-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.article-detail-app .unlocked-text {
    margin: 0;
    color: #ff9900;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.article-detail-app .history-item {
    position: relative;
    padding: 10px 64px 10px 0;
    border-bottom: 0;
}

.article-detail-app .history-link:last-child .history-item {
    padding-bottom: 0;
}

.article-detail-app .history-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.article-detail-app .history-meta {
    margin: 0 0 4px;
    color: #d50000;
    font-size: 14px;
    font-weight: 600;
}

.article-detail-app .history-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.article-detail-app .history-content {
    display: block;
    margin: 0 0 5px;
    color: #ff9900;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.article-detail-app .detail-open-code-row,
.article-detail-app .detail-content-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    white-space: normal;
}

.article-detail-app .detail-content-row {
    align-items: flex-start;
}

.article-detail-app .paid-content > .detail-open-code-row,
.article-detail-app .unlocked-text .detail-open-code-row,
.article-detail-app .history-content .detail-open-code-row {
    align-items: flex-start;
    margin: 10px 0 2px;
}

.article-detail-app .detail-check-area {
    display: grid;
    gap: 8px;
    margin: 10px 0 8px;
    padding: 9px 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    white-space: normal;
}

.article-detail-app .detail-check-area .detail-open-code-row {
    margin: 0;
}

.article-detail-app .detail-open-code-label {
    flex: 0 0 auto;
    color: #111;
    font-weight: 700;
}

.article-detail-app .paid-content > .detail-open-code-row .detail-open-code-label,
.article-detail-app .unlocked-text .detail-open-code-label,
.article-detail-app .history-content .detail-open-code-label {
    color: #666;
    font-size: 13px;
    line-height: 28px;
}

.article-detail-app .detail-open-code-empty {
    color: #999;
    font-size: 12px;
    line-height: 28px;
}

.article-detail-app .detail-open-code-balls {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px 7px;
    min-width: 0;
}

.article-detail-app .detail-open-code-item {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
    line-height: 1;
}

.article-detail-app .detail-open-code-zodiac {
    margin-top: 4px;
    color: #777;
    font-size: 11px;
    line-height: 1;
}

.article-detail-app .detail-open-code-plus {
    flex: 0 0 auto;
    color: #d50000;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

.article-detail-app .detail-content-label {
    flex: 0 0 auto;
    color: #ff9900;
}

.article-detail-app .detail-number-balls {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.article-detail-app .pick-helper-inline-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.article-detail-app .pick-helper-inline-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.article-detail-app .pick-helper-inline-label {
    flex: 0 0 auto;
    color: #111;
    font-weight: 700;
}

.article-detail-app .detail-open-code-inline .detail-number-balls {
    flex: 0 0 auto;
}

.article-detail-app .unlocked-text .detail-content-row:last-child {
    margin-bottom: 0;
}

.article-detail-app .lottery-ball.detail-number-ball,
.article-detail-app .lottery-ball.detail-open-code-ball {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    line-height: 1;
    font-size: 16px;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .22), inset 0 -2px 0 rgba(0, 0, 0, .2);
    transform: none;
}

.article-detail-app .detail-open-code-row .lottery-red,
.article-detail-app .detail-open-code-row .lottery-blue,
.article-detail-app .detail-open-code-row .lottery-green,
.article-detail-app .detail-open-code-row .lottery-black {
    border-radius: 50%;
}

.article-detail-app .detail-content-text {
    color: #ff9900;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-content-line .pick-helper-inline-list,
.detail-content-line .pick-helper-inline-item,
.detail-content-line .detail-number-balls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.detail-content-line .pick-helper-inline-label {
    color: #333;
    font-weight: 700;
}

.detail-content-line .lottery-ball.detail-number-ball {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 13px;
    line-height: 1;
    transform: none;
}

.article-detail-app .history-time {
    display: block;
    margin: 0;
    color: #999;
    font-size: 11px;
}

.article-detail-app .history-divider {
    width: 100%;
    height: 1px;
    margin-top: 10px;
    background: #eee;
}

.article-detail-app .empty-history {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.article-detail-app .empty-history .empty-text {
    color: #999;
    font-size: 13px;
}

.article-detail-app .right-back-btn,
.public-schemes-app .right-back-btn {
    position: fixed;
    top: 60%;
    right: calc((100vw - min(480px, 100vw)) / 2 + 15px);
    z-index: 120;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: linear-gradient(180deg, #df4b45 0%, #c72222 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(51, 34, 16, 0.18);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.article-detail-app .right-back-btn span,
.public-schemes-app .right-back-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 21px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.article-detail-app .right-back-btn small,
.public-schemes-app .right-back-btn small {
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.article-detail-app .right-back-btn:hover,
.article-detail-app .right-back-btn:focus-visible,
.public-schemes-app .right-back-btn:hover,
.public-schemes-app .right-back-btn:focus-visible {
    border-color: rgba(184, 144, 81, 0.58);
    box-shadow: 0 10px 26px rgba(51, 34, 16, 0.22);
    transform: translateY(-50%) translateY(-2px);
}

.article-detail-app .right-back-btn:focus-visible,
.public-schemes-app .right-back-btn:focus-visible {
    outline: 2px solid rgba(213, 0, 0, 0.28);
    outline-offset: 3px;
}

.article-detail-app .right-back-btn:active,
.public-schemes-app .right-back-btn:active {
    transform: translateY(-50%) scale(0.97);
}

.article-detail-app .bottom-float {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(480px, 100vw);
    height: 50px;
    margin: 0 auto;
    padding: 0 15px;
    background: #fff;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.article-detail-app .float-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.article-detail-app .float-text {
    margin-right: 5px;
    color: #333;
    font-size: 14px;
}

.article-detail-app .float-price {
    color: #d50000;
    font-size: 16px;
    font-weight: 600;
}

.article-detail-app .float-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border: 0;
    border-radius: 15px;
    padding: 0 20px;
    background: #d50000;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.article-detail-app .float-btn {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.article-detail-app .pick-helper-card {
    margin-top: 12px;
}

@media (max-width: 420px) {
    .article-detail-app .detail-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .article-detail-app .detail-article-inner {
        padding: 13px;
    }

    .article-detail-app .detail-avatar {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .article-detail-app .detail-price {
        font-size: 14px;
    }

    .article-detail-app .detail-card-bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .article-detail-app .detail-card-bottom > span:last-child {
        justify-self: start;
        text-align: left;
    }
}

@media (min-width: 421px) {
    .article-detail-app .detail-card-bottom {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .article-detail-app .detail-card-bottom > span:last-child {
        justify-self: end;
        text-align: right;
    }
}

.screenshot-detail-app .detail-page {
    padding: 12px 16px 76px;
    background: #f3f3f3;
}

.screenshot-detail-app .detail-alert,
.screenshot-detail-app .detail-admin-visibility-bar {
    display: none;
}

.screenshot-detail-app .detail-article-card {
    display: block;
}

.screenshot-detail-app .paid-content {
    margin-top: 12px;
    border-radius: 8px;
}

.screenshot-detail-app .paid-header {
    display: block;
    padding: 10px 12px;
}

.screenshot-detail-app .paid-divider {
    display: block;
}

.screenshot-detail-app .paid-locked {
    display: block;
    min-height: 100px;
    height: auto;
    padding: 20px 12px;
}

.screenshot-detail-app .paid-locked .glass-content {
    display: block;
    filter: blur(4px);
    opacity: 0.72;
}

.screenshot-detail-app .pay-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.screenshot-detail-app .pay-btn {
    min-width: 120px;
    height: 40px;
    border-radius: 20px;
    padding: 0 28px;
}

.screenshot-detail-app .paid-content > .detail-open-code-row {
    display: none;
}

.screenshot-detail-app .bottom-float {
    display: none;
}

.screenshot-detail-app .info-card {
    margin-top: 12px;
}

.screenshot-detail-app .info-card .info-header {
    padding: 10px 12px;
}

.screenshot-detail-app .info-card .history-list {
    padding: 12px;
}

.screenshot-detail-app .history-item {
    padding-top: 10px;
    padding-bottom: 10px;
}

.screenshot-detail-app .history-meta {
    color: #d50000;
    font-size: 14px;
    font-weight: 700;
}

.screenshot-detail-app .history-content {
    color: #ff8a00;
}

.screenshot-detail-app .detail-check-area {
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border-color: #e9e9e9;
    border-radius: 6px;
    background: #fafafa;
}

.site-online-config {
    grid-column: 1 / -1;
    border: 1px solid #e7dcc8;
    border-radius: 10px;
    padding: 12px;
    background: #fffdf8;
}

.site-payment-config {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    padding: 12px;
    background: #f8fbff;
}

.site-payment-head {
    display: grid;
    gap: 4px;
}

.site-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.site-payment-grid label {
    display: grid;
    gap: 5px;
    margin: 0;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.site-payment-grid input {
    width: 100%;
    margin: 0;
}

.payment-channel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-channel-options .site-check-row {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d8e3ef;
    border-radius: 8px;
    background: #fff;
}

.admin-payment-page {
    gap: 16px;
}

.payment-admin-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border: 1px solid #eadfce;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .9), transparent 35%),
        linear-gradient(135deg, #fffaf1 0%, #f5efe5 100%);
    box-shadow: 0 12px 32px rgba(103, 78, 43, .06);
}

.payment-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #b28a50;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.payment-admin-hero h2,
.payment-admin-toolbar h3 {
    margin: 0;
    color: #30291f;
}

.payment-admin-hero p,
.payment-admin-toolbar p {
    margin: 7px 0 0;
    line-height: 1.6;
}

.payment-admin-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.payment-admin-stats > div {
    min-width: 104px;
    padding: 13px 15px;
    border: 1px solid rgba(189, 157, 111, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.payment-admin-stats strong,
.payment-admin-stats span {
    display: block;
}

.payment-admin-stats strong {
    color: #9c733d;
    font-size: 23px;
    line-height: 1.1;
}

.payment-admin-stats span {
    margin-top: 5px;
    color: #8d8375;
    font-size: 12px;
}

.payment-feedback {
    margin: 0;
}

.payment-settings-form {
    display: grid;
    gap: 16px;
}

.payment-admin-toolbar,
.payment-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.payment-add-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #caa875;
    border-radius: 9px;
    background: #fffaf2;
    color: #9a723d;
    font-size: 14px;
    font-weight: 700;
}

.payment-add-button:hover {
    background: #f7eddd;
}

.payment-interface-list {
    display: grid;
    gap: 14px;
}

.payment-interface-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e3e8ee;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(48, 65, 82, .045);
}

.payment-interface-card-head,
.payment-interface-name-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.payment-interface-card-head {
    min-height: 34px;
}

.payment-interface-index {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 68px;
    color: #332c23;
}

.payment-interface-index span {
    color: #a27843;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.payment-interface-index small {
    color: #9f968a;
    font-size: 12px;
}

.payment-enabled-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: #5e6570 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.payment-enabled-toggle input,
.payment-channel-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.payment-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background: #d9dee5;
    transition: background .2s ease;
}

.payment-toggle-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(30, 38, 48, .25);
    content: '';
    transition: transform .2s ease;
}

.payment-enabled-toggle input:checked + .payment-toggle-track {
    background: #b58a50;
}

.payment-enabled-toggle input:checked + .payment-toggle-track::after {
    transform: translateX(16px);
}

.payment-delete-button {
    margin-left: auto;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: #bd7474;
    font-size: 12px;
    cursor: pointer;
}

.payment-delete-button:hover {
    color: #a54747;
    text-decoration: underline;
}

.payment-interface-name-row {
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 10px;
    background: #f7f9fb;
}

.payment-name-field {
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    margin: 0 !important;
    color: #65707c !important;
    font-size: 12px !important;
}

.payment-name-field input {
    max-width: 360px;
    margin: 0 !important;
    border-color: #dce3eb;
    background: #fff;
}

.payment-interface-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf8f0;
    color: #3d9560;
    font-size: 12px;
    font-weight: 700;
}

.payment-channel-picker {
    display: grid;
    gap: 9px;
}

.payment-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4d5864;
    font-size: 13px;
    font-weight: 800;
}

.payment-section-label small,
.payment-interface-fields label em {
    color: #a3aab2;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
}

.payment-channel-picker .payment-channel-options {
    gap: 9px;
}

.payment-channel-chip {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px 0 9px;
    border: 1px solid #dbe2e9;
    border-radius: 10px;
    background: #fff;
    color: #5a626b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.payment-channel-chip:hover {
    border-color: #c7a571;
}

.payment-channel-chip.selected {
    border-color: #c8a26c;
    background: #fffaf2;
    box-shadow: 0 3px 10px rgba(175, 132, 69, .09);
    color: #8c6535 !important;
}

.payment-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.payment-channel-chip i {
    display: none;
    margin-left: 3px;
    color: #b28449;
    font-size: 14px;
    font-style: normal;
}

.payment-channel-chip.selected i {
    display: inline;
}

.payment-interface-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding-top: 2px;
}

.payment-interface-fields label {
    display: grid;
    gap: 5px;
    margin: 0;
    color: #59636d;
    font-size: 12px;
    font-weight: 700;
}

.payment-interface-fields input {
    width: 100%;
    margin: 0;
}

.payment-interface-tip {
    margin: 0;
    padding-top: 2px;
    color: #9aa2aa;
    font-size: 12px;
}

.payment-save-bar {
    padding-top: 2px;
}

.payment-save-bar button {
    min-width: 142px;
}

@media (max-width: 640px) {
    .payment-admin-hero,
    .payment-admin-toolbar,
    .payment-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .payment-admin-stats {
        width: 100%;
    }

    .payment-admin-stats > div {
        flex: 1 1 0;
        min-width: 0;
    }

    .payment-add-button,
    .payment-save-bar button {
        width: 100%;
    }

    .payment-interface-card-head,
    .payment-interface-name-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .payment-interface-status {
        margin-left: 81px;
    }

    .payment-interface-fields {
        grid-template-columns: 1fr;
    }
}

.site-reward-config {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    border: 1px solid #f1d4d4;
    border-radius: 10px;
    padding: 12px;
    background: #fffafa;
}

.site-announcement-config {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    border: 1px solid #e1d9c9;
    border-radius: 10px;
    padding: 12px;
    background: #fffdf7;
}

.site-announcement-head {
    display: grid;
    gap: 4px;
}

.site-announcement-head strong {
    color: #4a3a22;
    font-size: 15px;
}

.site-announcement-list {
    display: grid;
    gap: 10px;
}

.site-announcement-row {
    display: grid;
    grid-template-columns: 46px repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    border: 1px solid #eee5d7;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.site-announcement-no {
    align-self: center;
    color: #7a5b2e;
    font-size: 13px;
    font-weight: 800;
}

.site-announcement-row label {
    display: grid;
    gap: 4px;
    margin: 0;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.site-announcement-row input,
.site-announcement-row textarea {
    margin: 0;
}

.site-announcement-content {
    grid-column: span 2;
}

.site-announcement-preview {
    grid-column: 2 / -1;
    max-height: 130px;
    object-fit: contain;
}

.announcement-settings-form {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    width: 100%;
}

.announcement-settings-form > input[type="hidden"] {
    display: none;
}

.announcement-module-toggle {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dde6ee;
    border-radius: 8px;
    background: #fbfdff;
}

.announcement-module-toggle .muted {
    margin: 0;
}

.announcement-admin-grid,
.announcement-save-row {
    grid-column: 1 / -1;
    width: 100%;
}

.announcement-admin-grid {
    display: grid;
    gap: 16px;
}

.announcement-editor-section {
    position: relative;
    display: grid;
    gap: 12px;
    border: 1px solid #dde6ee;
    border-radius: 8px;
    padding: 14px;
    background: #fbfdff;
}

.announcement-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.announcement-section-head h3 {
    margin: 0;
    color: #1f2933;
    font-size: 16px;
    line-height: 1.35;
}

.announcement-section-head p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.announcement-add-btn,
.announcement-remove-btn,
.announcement-clear-image-btn,
.announcement-save-single-btn,
.announcement-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    height: auto;
    margin: 0;
}

.announcement-add-btn {
    background: #b89051;
    color: #fff;
}

.announcement-save-single-btn {
    background: #2563eb;
    color: #fff;
}

.announcement-icon-btn {
    border: 1px solid #d8dde5;
    background: #fff;
    color: #4f5661;
}

.announcement-icon-btn:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.announcement-remove-btn {
    background: #fff1f1;
    color: #c33333;
}

.announcement-clear-image-btn {
    border: 1px solid #ffd3d3;
    background: #fff8f8;
    color: #b42323;
}

.announcement-editor-list {
    display: grid;
    gap: 12px;
}

.announcement-editor-item {
    position: relative;
    display: grid;
    gap: 12px;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.announcement-editor-item.is-saved {
    border-color: #53b46a;
    box-shadow: 0 0 0 3px rgba(83, 180, 106, .18), 0 8px 20px rgba(26, 32, 44, .08);
}

.announcement-editor-item.is-hidden-announcement {
    border-color: #e4e7ec;
    background: #f7f8fa;
    opacity: .86;
}

.announcement-editor-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.announcement-editor-index {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.announcement-editor-index b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f2e9d9;
    color: #7a5b2e;
}

.announcement-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.announcement-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    padding: 0 12px 0 8px;
    background: #fff;
    color: #3f4752;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.announcement-switch input[type="checkbox"] {
    position: relative;
    width: 34px;
    height: 18px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: #c7cdd5;
    cursor: pointer;
    transition: background-color .2s ease;
}

.announcement-switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .24);
    transition: transform .2s ease;
}

.announcement-switch input[type="checkbox"]:checked {
    background: #2f9e58;
}

.announcement-switch input[type="checkbox"]:checked::after {
    transform: translateX(16px);
}

.announcement-editor-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.announcement-field {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #4f5661;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.announcement-content-field,
.announcement-upload-area {
    grid-column: 1 / -1;
}

.announcement-field input,
.announcement-field textarea {
    width: 100%;
    margin: 0;
}

.announcement-field textarea {
    min-height: 106px;
    resize: vertical;
}

.announcement-color-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid #d8dde5;
    border-radius: 7px;
    padding: 6px 10px;
    background: #fff;
    color: #727984;
    font-size: 12px;
    font-weight: 500;
}

.announcement-field .announcement-color-control input[type="color"] {
    flex: 0 0 48px;
    width: 48px;
    height: 30px;
    margin: 0;
    border: 0;
    border-radius: 5px;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.announcement-upload-area {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.announcement-upload-controls {
    display: grid;
    gap: 8px;
    align-content: start;
}

.announcement-upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    gap: 7px;
    margin: 0;
    border: 1px dashed #c9d4e0;
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
    color: #2f5f95;
    text-align: center;
    cursor: pointer;
}

.announcement-upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.announcement-upload-box span {
    font-size: 14px;
    font-weight: 800;
}

.announcement-upload-box small {
    color: #7b8794;
    font-size: 12px;
    line-height: 1.4;
}

.announcement-upload-status {
    min-height: 18px;
    margin: 0;
    color: #7b8794;
    font-size: 12px;
    line-height: 1.45;
}

.announcement-upload-status.is-success {
    color: #2f7a45;
}

.announcement-upload-status.is-error {
    color: #c33333;
}

.announcement-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    max-width: min(360px, calc(100vw - 28px));
    border-radius: 8px;
    padding: 13px 16px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .28);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}

.announcement-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.announcement-toast.is-success {
    background: #166534;
}

.announcement-toast.is-error {
    background: #b42323;
}

.announcement-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    padding: 8px;
    background: #f7f7f8;
    color: #9aa0a6;
    font-size: 13px;
    overflow: hidden;
}

.announcement-image-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 6px;
}

.announcement-image-preview.is-empty {
    background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #eef2f6 10px, #eef2f6 20px);
}

.announcement-empty {
    margin: 0;
    border: 1px dashed #d8dde5;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    color: #7b8794;
    font-size: 13px;
    text-align: center;
}

.announcement-save-row {
    display: flex;
    justify-content: flex-start;
}

.announcement-save-row button {
    width: auto;
    min-width: 180px;
    margin: 0;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .site-announcement-row {
        grid-template-columns: 1fr;
    }

    .site-announcement-content,
    .site-announcement-preview {
        grid-column: 1;
    }

    .announcement-section-head,
    .announcement-editor-item-head {
        align-items: stretch;
        flex-direction: column;
    }

    .announcement-section-head .announcement-add-btn,
    .announcement-save-row button {
        width: 100%;
    }

    .announcement-editor-actions {
        justify-content: flex-start;
    }

    .announcement-editor-fields,
    .announcement-upload-area {
        grid-template-columns: 1fr;
    }

    .announcement-content-field,
    .announcement-upload-area {
        grid-column: 1;
    }
}

/* Announcement management workspace */
.admin-announcements-page .section {
    --announcement-gold: #b89051;
    --announcement-ink: #252a34;
    --announcement-muted: #6d7480;
    --announcement-line: #e4e7ec;
}

.admin-announcements-page .section *,
.admin-announcements-page .section *::before,
.admin-announcements-page .section *::after {
    box-sizing: border-box;
}

.announcement-settings-form > *,
.announcement-page-hero > * {
    min-width: 0;
}

.announcement-page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 14px;
    padding: 24px 26px;
    background:
        radial-gradient(circle at 82% 10%, rgba(218, 180, 117, .24), transparent 34%),
        linear-gradient(135deg, #26231f 0%, #383128 60%, #4a3b29 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(38, 32, 25, .18);
}

.announcement-page-hero::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -68px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .025), 0 0 0 58px rgba(255, 255, 255, .018);
    pointer-events: none;
}

.announcement-page-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.announcement-page-kicker,
.announcement-workspace-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #e5c794;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.announcement-page-hero h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.25;
}

.announcement-page-hero-copy p {
    max-width: 660px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.65;
}

.announcement-page-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 8px;
}

.announcement-page-stats > div {
    display: grid;
    gap: 3px;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .075);
    backdrop-filter: blur(8px);
}

.announcement-page-stats strong {
    color: #fff;
    font-size: 23px;
    line-height: 1;
}

.announcement-page-stats span {
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    white-space: nowrap;
}

.announcement-page-hero > .admin-success,
.announcement-page-hero > .auth-error {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    max-width: none !important;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .14);
}

.announcement-settings-card {
    padding: 0 !important;
    overflow: visible;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.announcement-settings-form {
    display: grid;
    gap: 16px !important;
}

.announcement-workspace-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--announcement-line);
    border-radius: 12px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 32, 45, .05);
}

.announcement-workspace-head h3 {
    margin: 0;
    color: var(--announcement-ink);
    font-size: 18px;
    line-height: 1.35;
}

.announcement-workspace-eyebrow {
    margin-bottom: 4px;
    color: #9a7139;
}

.announcement-workspace-head > p {
    max-width: 440px;
    margin: 0;
    color: var(--announcement-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
}

.announcement-section-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.announcement-section-tabs > button {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    width: 100% !important;
    min-height: 76px !important;
    margin: 0 !important;
    border: 1px solid var(--announcement-line) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    background: #fff !important;
    color: var(--announcement-ink) !important;
    text-align: left;
    box-shadow: 0 6px 18px rgba(25, 32, 45, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.announcement-section-tabs > button:hover {
    transform: translateY(-1px);
    border-color: #d3bd98 !important;
    box-shadow: 0 10px 24px rgba(58, 45, 28, .08);
}

.announcement-section-tabs > button.is-active {
    border-color: #b89051 !important;
    background: linear-gradient(145deg, #fffdf9 0%, #fbf4e7 100%) !important;
    box-shadow: 0 0 0 2px rgba(184, 144, 81, .11), 0 10px 24px rgba(88, 64, 32, .09);
}

.announcement-section-tabs > button > span:nth-child(2) {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.announcement-section-tabs strong {
    color: inherit;
    font-size: 14px;
    line-height: 1.2;
}

.announcement-section-tabs small {
    overflow: hidden;
    color: #818792;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-tab-icon,
.announcement-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f3f6;
    color: #58606c;
    font-size: 13px;
    font-weight: 900;
}

.announcement-section-tabs > button.is-active .announcement-tab-icon {
    background: #b89051;
    color: #fff;
    box-shadow: 0 6px 14px rgba(184, 144, 81, .25);
}

.announcement-section-tabs > button > b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    padding: 0 8px;
    background: #f1f3f6;
    color: #66707d;
    font-size: 12px;
}

.announcement-section-tabs > button.is-active > b {
    background: #fff;
    color: #8b642d;
    box-shadow: 0 2px 8px rgba(80, 55, 20, .1);
}

.announcement-display-controls {
    display: grid;
    gap: 12px;
    border: 1px solid var(--announcement-line);
    border-radius: 12px;
    padding: 15px 16px;
    background: #fff;
}

.announcement-display-controls-head > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.announcement-display-controls-head strong {
    color: var(--announcement-ink);
    font-size: 14px;
}

.announcement-display-controls-head span {
    color: var(--announcement-muted);
    font-size: 12px;
}

.announcement-display-controls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.announcement-display-controls .announcement-module-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0;
    border: 1px solid #e5e8ed;
    border-radius: 10px;
    padding: 11px 12px;
    background: #f8f9fb;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.announcement-display-controls .announcement-module-toggle:hover {
    border-color: #d6c19f;
    background: #fffdf9;
}

.announcement-toggle-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.announcement-toggle-copy strong {
    color: #39404a;
    font-size: 13px;
}

.announcement-toggle-copy small {
    color: #7b828d;
    font-size: 11px;
    font-weight: 500;
}

.announcement-master-switch {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
}

.announcement-master-switch input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
}

.announcement-master-switch i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #c9ced6;
    transition: background-color .2s ease;
}

.announcement-master-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(25, 31, 42, .25);
    transition: transform .2s ease;
}

.announcement-master-switch input:checked + i {
    background: #2e9b58;
}

.announcement-master-switch input:checked + i::after {
    transform: translateX(18px);
}

.announcement-master-switch input:focus-visible + i {
    outline: 3px solid rgba(37, 99, 235, .2);
    outline-offset: 2px;
}

.announcement-admin-grid {
    min-height: 240px;
}

.announcement-editor-section {
    gap: 14px;
    border: 1px solid var(--announcement-line);
    border-radius: 14px;
    padding: 0 18px 18px;
    background: #f7f8fa;
    box-shadow: 0 10px 28px rgba(25, 32, 45, .055);
}

.announcement-editor-section[hidden] {
    display: none !important;
}

.announcement-section-head {
    align-items: center;
    margin: 0 -18px;
    border-bottom: 1px solid var(--announcement-line);
    border-radius: 14px 14px 0 0;
    padding: 17px 138px 17px 18px;
    background: #fff;
}

.announcement-section-title-wrap,
.announcement-section-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.announcement-section-title-wrap > div {
    min-width: 0;
}

.announcement-section-title-line {
    gap: 10px;
}

.announcement-section-head h3 {
    flex: 0 0 auto;
    font-size: 17px;
}

.announcement-section-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: #f3eadb;
    color: #8b642d;
}

.announcement-editor-section-login_announcements .announcement-section-icon {
    background: #e8f0fb;
    color: #356da6;
}

.announcement-editor-section-scheme_notifications .announcement-section-icon {
    background: #e7f5ed;
    color: #258050;
}

.announcement-section-count {
    border-radius: 999px;
    padding: 3px 9px;
    background: #f1f3f6;
    color: #737b87;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.announcement-section-count b {
    color: #424954;
}

.announcement-section-head p {
    margin-top: 5px;
    font-size: 12px;
}

.announcement-add-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: auto !important;
    margin-left: auto !important;
    min-height: 38px;
    border-radius: 9px;
    padding: 0 15px;
    background: #2f343c !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(30, 35, 44, .16);
}

.announcement-add-btn:hover {
    background: #171a1f !important;
}

.announcement-editor-list {
    gap: 10px;
}

.announcement-editor-item {
    gap: 0;
    overflow: hidden;
    border-color: #e0e4ea;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 5px 16px rgba(25, 32, 45, .04);
}

.announcement-editor-item:hover {
    border-color: #cfd5dd;
}

.announcement-editor-item.is-hidden-announcement {
    opacity: 1;
    background: #f7f8fa;
}

.announcement-editor-item-head {
    min-height: 62px;
    padding: 11px 13px;
    background: #fff;
}

.is-hidden-announcement .announcement-editor-item-head {
    background: #f4f5f7;
}

.announcement-editor-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.announcement-editor-index {
    flex: 0 0 auto;
}

.announcement-editor-summary {
    overflow: hidden;
    max-width: min(28vw, 360px);
    color: #707782;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-editor-item.is-collapsed .announcement-editor-item-head {
    min-height: 54px;
}

.announcement-editor-item.is-collapsed .announcement-editor-fields {
    display: none;
}

.announcement-editor-actions {
    align-items: center;
    gap: 6px;
}

.announcement-settings-form .announcement-editor-actions .announcement-switch {
    display: inline-flex;
    width: auto !important;
}

.announcement-settings-form .announcement-editor-actions button {
    width: auto !important;
    margin: 0 !important;
    padding: 0 11px !important;
    box-shadow: none !important;
}

.announcement-settings-form .announcement-editor-actions .announcement-icon-btn {
    border: 1px solid #d8dde5 !important;
    background: #fff !important;
    color: #4f5661 !important;
}

.announcement-settings-form .announcement-editor-actions .announcement-save-single-btn {
    background: #2563eb !important;
    color: #fff !important;
}

.announcement-settings-form .announcement-editor-actions .announcement-remove-btn {
    background: #fff1f1 !important;
    color: #c33333 !important;
}

.announcement-editor-actions .announcement-switch,
.announcement-editor-actions .announcement-icon-btn,
.announcement-editor-actions .announcement-save-single-btn,
.announcement-editor-actions .announcement-remove-btn {
    min-height: 32px;
}

.announcement-collapse-btn {
    min-width: 54px;
    color: #586574;
}

.announcement-editor-fields {
    grid-template-areas:
        "title color"
        "content upload"
        "image upload";
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 12px 16px;
    border-top: 1px solid #edf0f3;
    padding: 16px;
    background: #fff;
}

.announcement-title-field {
    grid-area: title;
}

.announcement-content-field {
    grid-area: content;
}

.announcement-image-url-field {
    grid-area: image;
}

.announcement-color-field {
    grid-area: color;
}

.announcement-upload-area {
    grid-area: upload;
    grid-template-columns: minmax(160px, .85fr) minmax(0, 1.15fr);
}

.announcement-field > span:first-child {
    color: #555d68;
    font-size: 12px;
}

.announcement-field input,
.announcement-field textarea,
.announcement-color-control {
    border-color: #dce1e7;
    background-color: #fbfcfd;
}

.announcement-field textarea {
    min-height: 128px;
}

.announcement-upload-box,
.announcement-image-preview {
    min-height: 146px;
}

.announcement-upload-box {
    border-radius: 10px;
    background: #f5f8fc;
}

.announcement-settings-form .announcement-clear-image-btn {
    width: auto !important;
    margin: 0 !important;
    border: 1px solid #ffd3d3 !important;
    background: #fff8f8 !important;
    color: #b42323 !important;
    box-shadow: none !important;
}

.announcement-image-preview {
    border-radius: 10px;
}

.announcement-empty {
    border-radius: 11px;
    padding: 34px 18px;
    background: rgba(255, 255, 255, .72);
}

.announcement-save-row {
    position: sticky;
    bottom: 14px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #d9dee5;
    border-radius: 12px;
    padding: 12px 14px 12px 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(25, 32, 45, .15);
    backdrop-filter: blur(12px);
}

.announcement-save-row > div {
    display: grid;
    gap: 3px;
}

.announcement-save-row strong {
    color: #39404a;
    font-size: 13px;
}

.announcement-save-row span {
    color: #7b828d;
    font-size: 11px;
}

.announcement-settings-form.is-dirty .announcement-save-row {
    border-color: #d5b57e;
    box-shadow: 0 14px 36px rgba(126, 88, 30, .17);
}

.announcement-settings-form.is-dirty .announcement-save-row strong {
    color: #926724;
}

.announcement-save-row button {
    flex: 0 0 auto;
    min-width: 170px;
    min-height: 42px;
    border-radius: 9px;
    background: #b89051;
    box-shadow: 0 7px 16px rgba(184, 144, 81, .24);
}

.announcement-save-row button:hover {
    background: #9d763d;
}

@media (max-width: 1080px) {
    .announcement-page-hero {
        grid-template-columns: 1fr;
    }

    .announcement-page-stats {
        width: 100%;
    }

    .announcement-editor-fields {
        grid-template-areas:
            "title color"
            "content content"
            "image image"
            "upload upload";
        grid-template-columns: minmax(0, 1fr) minmax(250px, .65fr);
    }
}

@media (max-width: 760px) {
    .announcement-page-hero {
        gap: 18px;
        border-radius: 10px;
        padding: 20px 16px;
    }

    .announcement-page-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .announcement-page-stats > div {
        min-width: 0;
        padding: 10px;
    }

    .announcement-page-stats strong {
        font-size: 20px;
    }

    .announcement-workspace-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .announcement-workspace-head > p {
        text-align: left;
    }

    .announcement-section-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .announcement-section-tabs > button {
        min-height: 64px !important;
    }

    .announcement-display-controls-grid {
        grid-template-columns: 1fr;
    }

    .announcement-section-head,
    .announcement-editor-item-head {
        align-items: stretch;
        flex-direction: column;
    }

    .announcement-section-title-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .announcement-section-head .announcement-add-btn {
        position: static;
        width: 100%;
        margin-left: 0 !important;
    }

    .announcement-section-head {
        padding: 15px;
    }

    .announcement-editor-summary {
        max-width: calc(100vw - 150px);
    }

    .announcement-editor-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .announcement-editor-actions .announcement-switch {
        grid-column: span 2;
        justify-content: center;
    }

    .announcement-editor-actions .announcement-save-single-btn,
    .announcement-editor-actions .announcement-remove-btn,
    .announcement-editor-actions .announcement-icon-btn {
        width: 100%;
        padding: 0 8px;
    }

    .announcement-editor-fields {
        grid-template-areas:
            "title"
            "color"
            "content"
            "image"
            "upload";
        grid-template-columns: minmax(0, 1fr);
        padding: 13px;
    }

    .announcement-upload-area {
        grid-template-columns: 1fr;
    }

    .announcement-save-row {
        bottom: 8px;
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .announcement-save-row button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .announcement-page-stats span {
        font-size: 10px;
        white-space: normal;
    }

    .announcement-section-title-wrap {
        align-items: flex-start;
    }

    .announcement-editor-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .announcement-editor-actions .announcement-switch {
        grid-column: span 2;
    }
}

.site-reward-head {
    display: grid;
    gap: 5px;
}

.site-reward-toolbar {
    display: grid;
    gap: 8px;
}

.site-reward-search-label {
    margin: 0;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.site-reward-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.site-reward-search-form .site-reward-search {
    flex: 1 1 220px;
    width: auto;
    min-width: 0;
    margin: 0;
}

.site-reward-search-summary {
    margin: 0;
}

.site-reward-row.is-hidden {
    display: none;
}

.site-reward-empty {
    margin: 0;
}

.site-reward-frequency {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #fbfdff;
}

.site-reward-frequency-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.site-reward-frequency-fields label,
.site-reward-row-field {
    display: grid;
    gap: 5px;
    margin: 0;
}

.site-reward-frequency-fields label {
    flex: 0 1 180px;
}

.site-reward-frequency-fields input,
.site-reward-row-field input {
    width: 100%;
    margin: 0;
}

.site-reward-frequency-separator {
    padding-bottom: 10px;
    color: #64748b;
    font-weight: 700;
}

.site-reward-amount-hint {
    margin: 0;
}

.site-check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #333;
    font-weight: 800;
}

.site-check-row input {
    width: 16px;
    height: 16px;
}

.site-reward-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.site-reward-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.site-reward-row input {
    width: 100%;
    margin: 0;
}

.site-reward-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-site-page .site-reward-add-btn,
.admin-site-page .site-reward-random-btn,
.admin-site-page .site-reward-remove-btn {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
}

.admin-site-page .site-reward-add-btn,
.admin-site-page .site-reward-random-btn {
    border: 1px solid #93b4e8;
    color: #245db5;
    background: #eff6ff;
}

.admin-site-page .site-reward-remove-btn {
    border: 1px solid #efb5b5;
    color: #b42318;
    background: #fff5f5;
}

.site-online-config-head {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.site-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.site-online-row {
    display: grid;
    grid-template-columns: 48px 1fr 1fr;
    align-items: end;
    gap: 8px;
    border: 1px solid #eee5d7;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.site-online-hour {
    align-self: center;
    color: #7a5b2e;
    font-size: 13px;
    font-weight: 800;
}

.site-online-row label {
    display: grid;
    gap: 3px;
    margin: 0;
    color: #777;
    font-size: 12px;
}

.site-online-row input {
    width: 100%;
    height: 32px;
    border: 1px solid #ddd4c6;
    border-radius: 6px;
    padding: 0 8px;
}

/* Admin site settings */
.admin-site-page .site-settings-section {
    display: grid;
    gap: 16px;
}

.admin-site-page .site-admin-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-color: #dfe7f0;
    background: #f8fafc;
}

.admin-site-page .site-admin-note .muted,
.admin-site-page .site-admin-note .site-note-title {
    margin: 0;
}

.admin-site-page .site-note-title {
    color: #253041;
    font-size: 15px;
    font-weight: 800;
}

.admin-site-page .site-admin-note .logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-site-page .site-admin-note .admin-success,
.admin-site-page .site-admin-note .auth-error {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
}

.admin-site-page .site-settings-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-site-page .site-settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 32, 44, 0.05);
}

.admin-site-page .site-settings-card-head .card-title {
    margin: 0;
}

.admin-site-page .site-settings-card-head .muted {
    margin: 6px 0 0;
}

.admin-site-page .site-settings-kicker {
    margin: 0 0 5px;
    color: #b0813e;
    font-size: 12px;
    font-weight: 800;
}

.admin-site-page .site-settings-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 180px;
}

.admin-site-page .site-settings-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d9e4ef;
    border-radius: 999px;
    background: #f3f8fd;
    color: #2f5f8f;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-site-page .site-settings-summary span:nth-child(2) {
    border-color: #e4dfd2;
    background: #fbf8f0;
    color: #7a5b2e;
}

.admin-site-page .site-settings-summary span:nth-child(3) {
    border-color: #d8eadf;
    background: #f1fbf5;
    color: #257347;
}

.admin-site-page .site-settings-form {
    display: grid;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 16px;
    width: 100%;
}

.admin-site-page .site-settings-form > input[type="hidden"] {
    display: none;
}

.admin-site-page .site-settings-group {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 32, 44, 0.05);
}

.admin-site-page .site-settings-group-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

.admin-site-page .site-settings-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #253041;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.admin-site-page .site-settings-group-head h4 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.35;
}

.admin-site-page .site-settings-group-head .muted {
    margin: 4px 0 0;
}

.admin-site-page .site-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-site-page .site-field {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.admin-site-page .site-field-wide {
    grid-column: 1 / -1;
}

.admin-site-page .site-field > label,
.admin-site-page .site-field-head > label:first-child,
.admin-site-page .site-range-field > strong {
    width: auto;
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.admin-site-page .site-field .muted {
    margin: -2px 0 0;
}

.admin-site-page .site-field-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-site-page .site-settings-form input,
.admin-site-page .site-settings-form select,
.admin-site-page .site-settings-form textarea {
    width: 100%;
    min-width: 0;
}

.admin-site-page .site-settings-form input[type="file"] {
    height: auto;
    min-height: 42px;
    padding: 8px 10px;
    border-style: dashed;
    background: #fff;
}

.admin-site-page .site-check-row {
    width: auto;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.admin-site-page .site-check-row input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.admin-site-page .site-upload-field {
    padding: 12px;
    border: 1px dashed #cfd9e6;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-site-page .site-upload-field .admin-preview {
    width: 118px;
    height: 118px;
    object-fit: contain;
    border-color: #d8dde5;
    background: #fff;
    box-shadow: 0 8px 20px rgba(26, 32, 44, 0.08);
}

.admin-site-page .site-range-field .site-online-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-site-page .site-online-config,
.admin-site-page .site-reward-config {
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-site-page .site-online-config-head,
.admin-site-page .site-reward-head {
    display: grid;
    gap: 5px;
}

.admin-site-page .site-online-config-head strong {
    color: #1f2937;
    font-size: 16px;
}

.admin-site-page .site-online-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.admin-site-page .site-online-config .site-online-row {
    min-height: 74px;
    border-color: #dfe7f0;
    background: #fbfdff;
}

.admin-site-page .site-online-hour {
    color: #2563eb;
}

.admin-site-page .site-reward-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.admin-site-page .site-reward-search-label {
    align-self: center;
    width: auto;
    margin: 0;
    color: #334155;
}

.admin-site-page .site-reward-search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.admin-site-page .site-reward-search-summary {
    grid-column: 1 / -1;
}

.admin-site-page .site-reward-list {
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-site-page .site-reward-row {
    grid-template-columns: 72px minmax(150px, 1fr) minmax(130px, .7fr) auto;
    gap: 10px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #fbfdff;
}

.admin-site-page .site-reward-row span {
    color: #475569;
    font-weight: 800;
}

.admin-site-page .site-reward-row-index {
    align-self: center;
}

.admin-site-page .site-reward-row-actions {
    align-self: end;
}

.admin-site-page .site-settings-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    padding: 14px 0 0;
    border-top: 1px solid #e2e8f0;
    background: #f6f8fb;
}

.admin-site-page .site-settings-actions button[type="submit"] {
    width: auto;
    min-width: 180px;
    margin: 0;
    padding: 0 24px;
    box-shadow: 0 10px 20px rgba(174, 139, 82, 0.2);
}

@media (max-width: 780px) {
    .admin-site-page .site-admin-note,
    .admin-site-page .site-settings-card-head,
    .admin-site-page .site-reward-toolbar,
    .admin-site-page .site-settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-site-page .site-reward-search-summary {
        grid-column: auto;
    }

    .admin-site-page .site-reward-row {
        grid-template-columns: 70px minmax(0, 1fr) minmax(120px, .7fr);
    }

    .admin-site-page .site-reward-row-actions {
        grid-column: 2 / -1;
    }

    .admin-site-page .site-settings-card-head {
        display: grid;
        padding: 14px;
    }

    .admin-site-page .site-settings-summary {
        justify-content: flex-start;
        min-width: 0;
    }

    .admin-site-page .site-settings-group {
        padding: 14px;
    }

    .admin-site-page .site-field-wide {
        grid-column: auto;
    }

    .admin-site-page .site-settings-actions {
        position: static;
        padding-top: 12px;
    }

    .admin-site-page .site-settings-actions button[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .admin-site-page .site-settings-group-head {
        gap: 10px;
    }

    .admin-site-page .site-settings-index {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .admin-site-page .site-field-head {
        align-items: flex-start;
    }

    .admin-site-page .site-check-row {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-site-page .site-range-field .site-online-row,
    .admin-site-page .site-online-config .site-online-row {
        grid-template-columns: 1fr;
    }

    .admin-site-page .site-online-hour {
        justify-self: start;
    }

    .admin-site-page .site-reward-row {
        grid-template-columns: 1fr;
    }

    .admin-site-page .site-reward-row-actions {
        grid-column: auto;
    }

    .admin-site-page .site-reward-search-form {
        grid-template-columns: 1fr auto;
    }

    .admin-site-page .site-reward-search-label {
        grid-column: 1 / -1;
    }
}

.login-page-app {
    max-width: 480px;
    min-height: 100vh;
    background: #fff;
    padding-bottom: 25px;
}

.login-page-app .topbar {
    background: linear-gradient(90deg, #3f6fe4 0%, #2f56c5 100%);
    box-shadow: none;
    padding: 13px 12px;
}

.login-page-app .topbar h1 {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
}

.login-clone-page {
    padding: 0 20px 24px;
}

.login-clone-logo-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 75px 0 20px;
}

.login-clone-logo,
.login-clone-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 18px;
}

.login-clone-logo {
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(120, 64, 20, .12);
}

.login-clone-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: #e3e3e3;
    box-shadow: none;
}

.login-clone-logo-placeholder::before,
.login-clone-logo-placeholder::after {
    content: "";
    position: absolute;
    left: 50%;
    background: #fff;
    transform: translateX(-50%);
}

.login-clone-logo-placeholder::before {
    top: 19px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.login-clone-logo-placeholder::after {
    bottom: 18px;
    width: 64px;
    height: 36px;
    border-radius: 50% 50% 42% 42%;
}

.login-clone-brand {
    display: grid;
    gap: 6px;
    margin: -4px 0 28px;
    text-align: center;
}

.login-clone-brand h2 {
    margin: 0;
    color: #222;
    font-size: 20px;
    line-height: 1.3;
}

.login-clone-brand p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

.login-clone-brand .login-clone-notice {
    margin: 8px auto 0;
    max-width: 360px;
    padding: 9px 12px;
    border: 1px solid #f2d9d9;
    border-radius: 8px;
    background: #fff7f7;
    color: #9b3d3d;
    text-align: left;
}

.login-notice-carousel {
    max-width: 360px;
    margin: 8px auto 0;
}

.login-notice-carousel .login-clone-notice {
    margin: 0;
}

.login-notice-carousel .announcement-dots button.active {
    background: #c24c4c;
}

.login-clone-notice .announcement-inline-image {
    max-height: 220px;
}

.login-clone-tabs {
    display: flex;
    min-height: 47px;
    margin: 0 0 30px;
    border: 5px solid #fff;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.login-clone-tabs.single {
    display: none;
}

.login-clone-tab {
    flex: 1;
    height: 37px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(213, 0, 0, .68);
    font-size: 16px;
    font-weight: 600;
    line-height: 37px;
    text-align: center;
    cursor: pointer;
}

.login-clone-tabs.single .login-clone-tab {
    color: #d50000;
    font-weight: 800;
}

.login-clone-tab.active {
    background: #d50000;
    color: #fff;
    font-weight: 800;
}

.login-clone-tabs.single .login-clone-tab.active {
    background: transparent;
    color: #d50000;
}

.login-clone-panel {
    display: none;
}

.login-clone-panel.active {
    display: block;
}

.wechat-login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wechat-login-icon {
    width: 100px;
    height: 80px;
    margin-bottom: 20px;
}

.wechat-login-copy {
    margin: 0 0 40px;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.login-video-actions {
    display: grid;
    gap: 14px;
    width: min(100%, 366px);
    margin: 0 auto;
}

.login-quick-register-btn,
.login-account-password-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);
}

.login-quick-register-btn {
    background: linear-gradient(180deg, #4075ed 0%, #2f5fd5 100%);
}

.login-account-password-btn {
    background: linear-gradient(180deg, #ff575f 0%, #f23d48 100%);
}

.login-clone-form {
    display: grid;
    gap: 15px;
}

.login-account-form {
    display: none;
    width: min(100%, 366px);
    margin: 18px auto 0;
}

.login-account-form.show {
    display: grid;
}

.login-clone-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.login-clone-input-icon {
    flex: 0 0 auto;
    width: 22px;
    color: #999;
    font-size: 18px;
    text-align: center;
}

.login-clone-input input {
    min-width: 0;
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #333;
    font-size: 15px;
}

.login-clone-register {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    color: #666;
    font-size: 12px;
    line-height: 18px;
}

.login-clone-register a {
    color: #ff8d36;
    text-decoration: none;
}

.login-clone-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: #d50000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.login-clone-primary.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.login-clone-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.login-clone-inline-form {
    margin: 0;
}

.login-clone-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid #d50000;
    border-radius: 14px;
    background: #fff;
    color: #d50000;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.login-clone-secondary.guest {
    border-color: #ff8d36;
    background: #fff9f2;
    color: #b85b00;
}

.login-clone-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: #666;
    font-size: 12px;
    line-height: 18px;
}

.login-clone-agreement input {
    width: 16px;
    height: 16px;
    accent-color: #d50000;
}

.login-clone-agreement a {
    color: #d50000;
    text-decoration: underline;
}

.login-bottom-register {
    margin-top: 210px;
    text-align: center;
}

.login-bottom-register a {
    color: #2f56c5;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.login-clone-page .auth-error {
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
}

.quick-register-modal[hidden] {
    display: none;
}

.quick-register-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.quick-register-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .22);
}

.quick-register-dialog {
    position: absolute;
    left: 50%;
    top: 45%;
    width: min(92vw, 452px);
    min-height: 184px;
    border-radius: 28px;
    padding: 32px 34px 22px;
    background:
        radial-gradient(circle at 75% 30%, rgba(231, 244, 255, .92), transparent 38%),
        radial-gradient(circle at 48% 100%, rgba(255, 217, 224, .86), transparent 44%),
        rgba(255, 255, 255, .94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.quick-register-view {
    display: none;
}

.quick-register-view.active {
    display: block;
}

.quick-register-confirm-text {
    margin: 0 0 26px;
    color: #111;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
}

.quick-register-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 -34px -22px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.quick-register-confirm-actions button {
    min-height: 62px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
}

.quick-register-confirm-actions button + button {
    border-left: 1px solid rgba(0, 0, 0, .06);
}

.quick-register-confirm-actions button:disabled {
    opacity: .55;
    cursor: wait;
}

.quick-register-success-title {
    display: block;
    margin-bottom: 18px;
    color: #111;
    font-size: 21px;
    line-height: 1.2;
}

.quick-register-view[data-quick-register-view="success"] p {
    margin: 0 0 11px;
    color: #333;
    font-size: 18px;
    line-height: 1.35;
}

.quick-register-login-now {
    display: block;
    width: 100%;
    min-height: 54px;
    margin-top: 16px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 380px) {
    .login-clone-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .login-clone-logo-wrap {
        margin-top: 56px;
    }

    .login-clone-tabs {
        margin-bottom: 24px;
    }

    .login-bottom-register {
        margin-top: 150px;
    }

    .quick-register-dialog {
        width: calc(100vw - 32px);
        padding-right: 28px;
        padding-left: 28px;
    }

    .quick-register-confirm-actions {
        margin-right: -28px;
        margin-left: -28px;
    }
}

.admin-subaccounts-page .subaccount-permissions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.admin-subaccounts-page .subaccount-permissions > strong {
    color: #2d3748;
    font-size: 14px;
}

.admin-subaccounts-page .permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.admin-subaccounts-page .permission-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
}

.admin-subaccounts-page .permission-option input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.admin-subaccounts-page .member-list-head,
.admin-subaccounts-page .member-list-row {
    grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(80px, .7fr) minmax(90px, .7fr) minmax(100px, auto);
}

@media (min-width: 1024px) {
    .admin-shell-app.admin-subaccounts-page .member-list-row {
        grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(80px, .7fr) minmax(90px, .7fr) minmax(100px, auto);
    }
}

@media (max-width: 780px) {
    .admin-subaccounts-page .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .admin-subaccounts-page .member-identity,
.admin-subaccounts-page .member-list-actions {
        grid-column: 1 / -1;
    }
}

/* Customer service emoji picker and duty staff management. */
.support-emoji-host {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.support-chat-form {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.support-chat-form textarea {
    grid-column: 1;
}

.support-chat-form .support-emoji-host {
    grid-column: 2;
}

.support-emoji-button,
.cs-widget-emoji-btn {
    min-width: 38px;
    min-height: 34px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.support-emoji-button:hover,
.cs-widget-emoji-btn:hover {
    border-color: #b89051;
    background: #fffaf0;
}

.support-emoji-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 1200;
    width: min(286px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

.support-emoji-panel[hidden] {
    display: none !important;
}

.support-emoji-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf0f5;
}

.support-emoji-tabs button {
    border: 0;
    border-radius: 6px;
    padding: 6px 8px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-size: 12px;
}

.support-emoji-tabs button.active,
.support-emoji-tabs button:hover {
    background: #fff5df;
    color: #8a5b13;
}

.support-emoji-tabs button[data-emoji-upload] {
    margin-left: auto;
    color: #2563eb;
}

.support-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 190px;
    overflow-y: auto;
}

.support-emoji-text,
.support-emoji-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 21px;
}

.support-emoji-text:hover,
.support-emoji-image:hover {
    background: #f3f4f6;
}

.support-emoji-image img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 5px;
}

.support-custom-emoji-grid {
    grid-template-columns: repeat(6, 1fr);
}

.support-custom-emoji-item {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.support-custom-emoji-delete {
    position: absolute;
    top: -3px;
    right: -1px;
    width: 15px;
    height: 15px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 15px;
}

.support-emoji-empty {
    margin: 8px 2px 2px;
    color: #98a2b3;
    font-size: 12px;
    text-align: center;
}

.cs-widget-actions .support-emoji-host {
    justify-content: center;
}

.cs-duty-staff-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cs-business-hours-form {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.cs-business-hours-options,
.cs-business-hours-time-grid,
.cs-business-hours-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-business-hours-switch,
.cs-business-hours-time-grid label,
.cs-business-hours-reply {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.cs-business-hours-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cs-business-hours-switch input,
.cs-business-hours-days input {
    accent-color: #bd9451;
}

.cs-business-hours-timezone,
.cs-business-hours-hint {
    color: #8b96a6;
    font-size: 12px;
    font-weight: 400;
}

.cs-business-hours-time-grid {
    align-items: stretch;
}

.cs-business-hours-time-grid label {
    min-width: 160px;
}

.cs-business-hours-time-grid input,
.cs-business-hours-reply textarea {
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #d8dde6;
    border-radius: 7px;
    background: #fff;
    color: #273449;
    font: inherit;
    font-weight: 400;
}

.cs-business-hours-reply textarea {
    width: min(680px, 100%);
    min-height: 82px;
    resize: vertical;
    line-height: 1.5;
}

.cs-business-hours-time-grid input:focus,
.cs-business-hours-reply textarea:focus {
    border-color: #bd9451;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(189, 148, 81, .12);
}

.cs-business-hours-days {
    margin: 0;
    padding: 10px 12px 12px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
}

.cs-business-hours-days legend {
    padding: 0 5px;
    color: #667085;
    font-size: 12px;
}

.cs-business-hours-days > div {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-business-hours-days label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}

.cs-business-hours-actions button {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #bd9451;
    border-radius: 7px;
    background: #bd9451;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cs-business-hours-actions button:hover {
    background: #a9803e;
}

.cs-business-hours-actions button:disabled {
    cursor: wait;
    opacity: .65;
}

.cs-business-hours-console-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--support-line, #edf0f5);
}

.cs-business-hours-console-block > .card-title {
    margin: 0 0 4px;
    font-size: 14px;
}

.cs-business-hours-console-block > .muted {
    margin: 0 0 12px;
}

.cs-admin-settings-panel {
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #fff;
}

.cs-admin-settings-panel + .cs-admin-settings-panel {
    margin-top: 10px;
}

.cs-admin-settings-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    color: #253247;
    cursor: pointer;
    list-style: none;
}

.cs-admin-settings-panel > summary::-webkit-details-marker {
    display: none;
}

.cs-admin-settings-panel > summary > strong {
    font-size: 15px;
}

.cs-admin-settings-panel > summary > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8b96a6;
    font-size: 12px;
    white-space: nowrap;
}

.cs-admin-settings-panel > summary b {
    color: #b89051;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: transform .18s ease;
}

.cs-admin-settings-panel[open] > summary {
    border-bottom: 1px solid #edf0f5;
    background: #fcfdfe;
}

.cs-admin-settings-panel[open] > summary b {
    transform: rotate(180deg);
}

.cs-admin-settings-panel-body {
    padding: 14px;
}

.cs-admin-settings-panel-body .cs-duty-staff-head {
    margin-bottom: 12px;
}

.cs-admin-settings-panel-body .cs-duty-staff-head p,
.cs-admin-settings-panel-body .cs-identity-settings > .muted {
    margin: 0 0 12px;
}

.cs-admin-settings-panel-body .cs-identity-settings {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.cs-duty-staff-head .card-title,
.cs-duty-staff-head p {
    margin: 0;
}

.cs-duty-staff-table {
    display: grid;
    gap: 8px;
}

.cs-duty-staff-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.3fr) minmax(130px, 1fr) 70px 70px auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fafbfc;
}

.cs-duty-staff-row input[type="text"],
.cs-duty-staff-row input[type="number"] {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
}

.cs-duty-staff-account {
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-duty-staff-enabled {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475467;
    font-size: 12px;
    white-space: nowrap;
}

.cs-duty-staff-row button {
    min-height: 34px;
    border: 1px solid #b89051;
    border-radius: 6px;
    background: #b89051;
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
}

.cs-duty-staff-row button:disabled {
    cursor: wait;
    opacity: .6;
}

.cs-identity-settings {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f5;
}

.cs-identity-settings .card-title {
    margin: 0 0 4px;
}

.cs-identity-settings > .muted {
    margin: 0 0 12px;
}

.cs-identity-create,
.cs-identity-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) 82px 70px auto;
    gap: 8px;
    align-items: center;
}

.cs-identity-create {
    margin-bottom: 8px;
}

.cs-identity-create input,
.cs-identity-row input[type="text"],
.cs-identity-row input[type="number"],
.cs-transfer-field select {
    width: 100%;
    min-height: 34px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
}

.cs-identity-create button,
.cs-identity-row button,
.cs-identity-switch-btn,
.cs-transfer-actions button {
    min-height: 34px;
    border: 1px solid #b89051;
    border-radius: 6px;
    background: #fff;
    color: #805d18;
    cursor: pointer;
    padding: 0 11px;
    white-space: nowrap;
}

.cs-identity-create button,
.cs-transfer-actions .primary {
    background: #b89051;
    color: #fff;
}

.cs-identity-list {
    display: grid;
    gap: 8px;
}

.cs-identity-row {
    padding: 8px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fafbfc;
}

.cs-identity-row label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475467;
    font-size: 12px;
    white-space: nowrap;
}

.cs-detail-header,
.cs-detail-header-meta {
    display: flex;
    align-items: center;
}

.cs-detail-header {
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.cs-detail-header-meta {
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    color: #667085;
    font-size: 12px;
}

.cs-identity-switch-btn {
    font-weight: 700;
}

.cs-open-member-message {
    flex: 0 0 auto;
    min-height: 30px;
    border: 1px solid #bd9451;
    border-radius: 7px;
    padding: 0 10px;
    background: #bd9451;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.cs-open-member-message:hover {
    background: #a9803e;
}

.cs-member-dialog {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(18, 28, 43, .48);
}

.cs-member-dialog[hidden] {
    display: none;
}

.cs-member-dialog-card {
    display: grid;
    width: min(560px, 100%);
    max-height: min(720px, 90vh);
    overflow: hidden;
    border: 1px solid #e2e7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 29, 48, .24);
}

.cs-member-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #edf0f4;
}

.cs-member-dialog-head h3 {
    margin: 4px 0 0;
    color: #1f2c3d;
    font-size: 18px;
}

.cs-member-dialog-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f3f5f7;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cs-member-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 20px 10px;
    padding: 0 11px;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    color: #8390a0;
}

.cs-member-search:focus-within {
    border-color: #bd9451;
    box-shadow: 0 0 0 3px rgba(189, 148, 81, .12);
}

.cs-member-search input {
    width: 100%;
    min-height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #273449;
}

.cs-member-list {
    min-height: 160px;
    overflow: auto;
    padding: 0 12px 14px;
}

.cs-member-list-empty {
    margin: 30px 8px;
    text-align: center;
}

.cs-member-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 10px 8px;
    border: 0;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    color: #273449;
    text-align: left;
    cursor: pointer;
}

.cs-member-row:hover {
    border-radius: 8px;
    background: #fff9ee;
}

.cs-member-avatar {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4e4c7;
    color: #8a5b13;
    font-weight: 800;
}

.cs-member-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.cs-member-copy strong,
.cs-member-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-member-copy small {
    color: #8a95a3;
}

.cs-member-row-action {
    margin-left: auto;
    color: #bd9451;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cs-transfer-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .38);
}

.cs-transfer-dialog[hidden] {
    display: none;
}

.cs-transfer-dialog-card {
    width: min(420px, 100%);
    padding: 20px;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

.cs-transfer-dialog-card h3 {
    margin: 0 0 8px;
}

.cs-transfer-dialog-card p {
    margin: 0 0 16px;
    color: #667085;
    line-height: 1.5;
}

.cs-transfer-field {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.cs-transfer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

@media (max-width: 780px) {
    .cs-identity-create,
    .cs-identity-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .cs-identity-create button,
    .cs-identity-row button {
        grid-column: 1 / -1;
    }

    .cs-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cs-detail-header-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 780px) {
    .support-chat-form {
        grid-template-columns: 1fr 1fr;
    }

    .support-chat-form textarea {
        grid-column: 1 / -1;
    }

    .cs-duty-staff-head {
        flex-direction: column;
    }

    .cs-duty-staff-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .cs-duty-staff-account,
    .cs-duty-staff-row button {
        grid-column: 1 / -1;
    }
}

/* Shared customer-service workbench polish. */
.support-workbench-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.support-workbench-head .card-title,
.support-workbench-head .muted {
    margin: 0;
}

.support-workbench-head .muted {
    margin-top: 5px;
}

.support-workbench-filters {
    flex-wrap: wrap;
}

.support-workbench-filters .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 72px;
}

.support-workbench-filters .filter-btn.active,
.admin-actions .filter-btn.active {
    border-color: #c89a34;
    background: #fff9e9;
    color: #93660d;
    font-weight: 700;
}

.cs-admin-row strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cs-admin-unread {
    flex: 0 0 auto;
    min-width: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 1.2;
    text-align: center;
}

.cs-admin-notify-bar strong.is-error {
    color: #b42318;
}

.support-workbench-section .cs-admin-grid {
    height: min(620px, calc(100vh - 420px));
}

@media (max-width: 860px) {
    .support-workbench-section .cs-admin-grid {
        height: auto;
    }
}

@media (max-width: 560px) {
    .support-workbench-head {
        align-items: stretch;
        flex-direction: column;
    }

    .support-workbench-head .logout-link {
        align-self: flex-start;
    }

    .cs-admin-send {
        grid-template-columns: 1fr;
    }

    .cs-admin-send-actions,
    .cs-admin-toolbar {
        flex-wrap: wrap;
    }

    .cs-admin-send-actions > *,
    .cs-admin-toolbar > * {
        flex: 1 1 0;
    }

    .cs-admin-send-actions .support-emoji-host {
        min-width: 42px;
        flex: 0 0 42px;
    }
}

/* Conversation list refresh. */
.cs-admin-list-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: 8px;
}

.cs-admin-list-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    background: #fff;
}

.cs-admin-list-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    background: #f6f8fb;
}

.cs-admin-list-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.cs-admin-list-tab:hover {
    color: #475467;
}

.cs-admin-list-tab.active {
    background: #fff;
    color: #8a5b13;
    box-shadow: 0 2px 7px rgba(16, 24, 40, .08);
}

.cs-admin-list-tab em {
    min-width: 20px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #e9edf3;
    color: #667085;
    font-size: 11px;
    font-style: normal;
    line-height: 1.2;
    text-align: center;
}

.cs-admin-list-tab.active em {
    background: #fff4dc;
    color: #a8752e;
}

.cs-admin-search-field {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
    color: #98a2b3;
}

.cs-admin-search-icon {
    flex: 0 0 auto;
    font-size: 21px;
    line-height: 1;
    transform: rotate(-20deg);
}

.cs-admin-search-field input {
    width: 100%;
    min-width: 0;
    height: 32px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font-size: 13px;
}

.cs-admin-list-clear {
    min-height: 30px;
    border: 0;
    border-radius: 7px;
    padding: 0 8px;
    background: #f5f6f8;
    color: #667085;
    font-size: 12px;
    cursor: pointer;
}

.cs-admin-list-clear:hover {
    background: #fff5df;
    color: #8a5b13;
}

.cs-admin-list-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 3px;
    color: #98a2b3;
    font-size: 12px;
}

.cs-admin-list-summary strong {
    color: #475467;
    font-size: 13px;
}

.cs-admin-list {
    flex: 1;
    min-height: 0;
}

.cs-admin-row {
    padding: 12px;
    gap: 9px;
    border-color: #e7eaf0;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .02);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cs-admin-row:hover {
    border-color: #d4b272;
    background: #fffdf8;
    box-shadow: 0 7px 16px rgba(16, 24, 40, .06);
    transform: translateY(-1px);
}

.cs-admin-row-head {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.cs-admin-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5e6c9, #d2a65b);
    color: #6f4b15;
    font-size: 16px;
    font-weight: 800;
}

.cs-admin-row-identity {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.cs-admin-row-identity strong {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: 6px;
    color: #1f2937;
    font-size: 14px;
}

.cs-admin-row-identity strong:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-admin-row-identity small {
    color: #98a2b3;
    font-size: 11px;
}

.cs-admin-row time {
    flex: 0 0 auto;
    align-self: flex-start;
    color: #98a2b3;
    font-size: 11px;
    white-space: nowrap;
}

.cs-admin-row-meta {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    padding-left: 45px;
    color: #98a2b3;
    font-size: 11px;
}

.cs-admin-status,
.cs-admin-priority {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 3px 7px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
}

.cs-admin-status.is-pending {
    background: #fff4d6;
    color: #9a6700;
}

.cs-admin-status.is-in-progress {
    background: #e8f1ff;
    color: #2563eb;
}

.cs-admin-status.is-closed {
    background: #eef0f3;
    color: #667085;
}

.cs-admin-status.is-unknown {
    background: #f2f4f7;
    color: #667085;
}

.cs-admin-priority {
    background: #fff0ee;
    color: #c2413a;
    font-size: 10px;
}

.cs-admin-conversation-no,
.cs-admin-assignee {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-admin-conversation-no {
    color: #667085;
}

.cs-admin-assignee {
    margin-left: auto;
    max-width: 48%;
}

.cs-admin-list-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    min-height: 180px;
    border: 1px dashed #dfe4ec;
    border-radius: 10px;
    padding: 20px 12px;
    background: #fbfcfe;
    color: #98a2b3;
    text-align: center;
}

.cs-admin-list-empty strong {
    color: #667085;
    font-size: 14px;
}

.cs-admin-list-empty span {
    font-size: 12px;
}

.cs-admin-list-empty button {
    min-height: 30px;
    border: 1px solid #d4b272;
    border-radius: 7px;
    padding: 0 10px;
    background: #fffaf0;
    color: #8a5b13;
    cursor: pointer;
    font-size: 12px;
}

@media (max-width: 560px) {
    .cs-admin-row-meta {
        padding-left: 0;
    }

    .cs-admin-assignee {
        max-width: 42%;
    }

    .cs-admin-row time {
        font-size: 10px;
    }
}

/* Support desk redesign: a focused, full-screen workspace for operators. */
.support-console-app {
    --support-ink: #152238;
    --support-ink-soft: #5f6d82;
    --support-line: #e6ebf1;
    --support-surface: #ffffff;
    --support-surface-soft: #f6f8fb;
    --support-accent: #d5a457;
    --support-accent-deep: #a8752e;
    max-width: none;
    min-height: 100vh;
    padding-bottom: 0;
    background: #f4f6f9;
    color: var(--support-ink);
}

.support-console-app .topbar {
    display: none;
}

.support-console-app .support-console-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% -10%, rgba(213, 164, 87, .11), transparent 26rem),
        #f4f6f9;
}

.support-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 0 clamp(20px, 4vw, 56px);
    background: #142136;
    color: #fff;
    box-shadow: 0 10px 28px rgba(21, 34, 56, .13);
}

.support-brand,
.support-console-header-right,
.support-operator,
.support-online-state,
.support-workbench-filters,
.support-detail-person,
.cs-detail-person,
.cs-detail-header-meta {
    display: flex;
    align-items: center;
}

.support-brand {
    gap: 12px;
}

.support-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 11px;
    background: linear-gradient(145deg, #e1b66f, #a87731);
    color: #172236;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
}

.support-brand-copy {
    display: grid;
    gap: 2px;
}

.support-brand-copy strong {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    letter-spacing: .08em;
}

.support-brand-copy small {
    color: #9caabe;
    font-size: 11px;
    letter-spacing: .08em;
}

.support-console-header-right {
    gap: 18px;
}

.support-online-state {
    gap: 8px;
    color: #c9d5df;
    font-size: 12px;
}

.support-online-state i,
.cs-notify-kicker i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fd0a0;
    box-shadow: 0 0 0 4px rgba(111, 208, 160, .13);
}

.support-console-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, .14);
}

.support-operator {
    gap: 9px;
}

.support-operator-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #e8c27d;
    color: #19263a;
    font-size: 13px;
    font-weight: 800;
}

.support-operator > span:last-child {
    display: grid;
    gap: 2px;
}

.support-operator strong {
    max-width: 132px;
    overflow: hidden;
    color: #f5f7fa;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-operator small {
    color: #8f9daf;
    font-size: 10px;
}

.support-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c2ccd9;
    font-size: 12px;
    text-decoration: none;
    transition: color .18s ease;
}

.support-logout:hover {
    color: #fff;
}

.support-console-body {
    width: min(1680px, calc(100% - 64px));
    margin: 0 auto;
    padding: 34px 0 42px;
}

.support-console-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 23px;
}

.support-eyebrow {
    margin: 0 0 8px;
    color: var(--support-accent-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.2;
}

.support-console-intro h2 {
    margin: 0;
    color: var(--support-ink);
    font-size: clamp(22px, 2.6vw, 31px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.support-console-subtitle {
    margin: 8px 0 0;
    color: var(--support-ink-soft);
    font-size: 13px;
}

.support-filter-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    border: 1px solid var(--support-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 5px 16px rgba(21, 34, 56, .04);
}

.support-filter-label {
    padding-left: 9px;
    color: #8290a3;
    font-size: 11px;
    white-space: nowrap;
}

.support-console-app .support-workbench-filters {
    gap: 3px;
    flex-wrap: nowrap;
}

.support-console-app .support-workbench-filters .filter-btn {
    min-width: 64px;
    height: 31px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6a7789;
    font-size: 12px;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.support-console-app .support-workbench-filters .filter-btn:hover {
    background: #f1f4f7;
    color: var(--support-ink);
}

.support-console-app .support-workbench-filters .filter-btn.active {
    border: 0;
    background: var(--support-ink);
    color: #fff;
    box-shadow: 0 4px 10px rgba(21, 34, 56, .16);
}

.support-console-error {
    margin: 0 0 16px;
    padding: 12px 15px;
    border: 1px solid #f2cbc6;
    border-radius: 10px;
    background: #fff7f5;
}

.support-duty-panel {
    margin-bottom: 20px;
    border: 1px solid var(--support-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 5px 16px rgba(21, 34, 56, .035);
}

.support-duty-panel summary {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 0 17px;
    color: var(--support-ink);
    cursor: pointer;
    list-style: none;
}

.support-duty-panel summary::-webkit-details-marker {
    display: none;
}

.support-duty-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #f8ecd7;
    color: var(--support-accent-deep);
    font-size: 18px;
}

.support-duty-panel summary > span:nth-child(2) {
    display: grid;
    gap: 2px;
}

.support-duty-panel summary strong {
    font-size: 13px;
}

.support-duty-panel summary small {
    color: #8995a5;
    font-size: 11px;
}

.support-duty-summary-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: #8b96a6;
    font-size: 11px;
}

.support-duty-summary-action b {
    font-size: 15px;
    font-weight: 400;
    transition: transform .18s ease;
}

.support-duty-panel[open] .support-duty-summary-action b {
    transform: rotate(180deg);
}

.support-duty-panel-body {
    padding: 0 17px 17px;
    border-top: 1px solid var(--support-line);
}

.support-console-app .cs-duty-staff-head {
    margin: 16px 0 12px;
}

.support-console-app .cs-duty-staff-head .card-title {
    margin: 0 0 3px;
    font-size: 14px;
}

.support-console-app .cs-duty-staff-row {
    border-color: var(--support-line);
    border-radius: 10px;
    background: #fbfcfd;
}

.support-console-app .cs-duty-staff-row button {
    border-color: var(--support-ink);
    border-radius: 8px;
    background: var(--support-ink);
}

.support-workspace-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 12px;
}

.support-workspace-heading h3 {
    margin: 0;
    color: var(--support-ink);
    font-size: 18px;
    letter-spacing: -.02em;
}

.support-workspace-heading .support-eyebrow {
    margin-bottom: 4px;
}

.support-workspace-hint {
    color: #8995a5;
    font-size: 11px;
}

.support-console-app #csAdminRoot {
    min-width: 0;
}

.support-console-app .cs-admin-notify-bar {
    align-items: center;
    min-height: 66px;
    margin-bottom: 13px;
    padding: 13px 18px;
    border: 1px solid #e7edf2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(21, 34, 56, .04);
}

.cs-notify-copy {
    display: grid;
    gap: 3px;
}

.cs-notify-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7890a0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cs-notify-kicker i {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px rgba(111, 208, 160, .13);
}

.support-console-app .cs-admin-notify-bar strong {
    color: var(--support-ink);
    font-size: 14px;
}

.support-console-app .cs-admin-notify-bar small {
    margin-top: 0;
    color: #8995a5;
}

.support-console-app .cs-admin-notify-actions {
    gap: 13px;
}

.cs-notify-hint {
    color: #a0aab7;
    font-size: 11px;
}

.support-console-app .cs-volume-control {
    width: 80px;
    accent-color: var(--support-accent-deep);
}

.support-console-app .cs-sound-toggle {
    min-width: 70px;
    min-height: 30px;
    border: 1px solid var(--support-line);
    border-radius: 8px;
    background: #f8fafc;
    color: #657287;
    font-size: 11px;
}

.support-console-app .cs-admin-grid {
    display: grid;
    grid-template-columns: minmax(290px, .9fr) minmax(520px, 1.9fr) minmax(228px, .62fr);
    gap: 0;
    height: min(900px, calc(100vh - 200px));
    min-height: 680px;
    overflow: hidden;
    border: 1px solid #e3e9ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(21, 34, 56, .07);
}

.support-console-app .cs-admin-list-column {
    gap: 0;
    padding: 17px 15px 0;
    background: #fbfcfd;
    border-right: 1px solid var(--support-line);
}

.support-console-app .cs-admin-list-toolbar {
    padding: 0 11px;
    min-height: 38px;
    border: 1px solid #e2e8ef;
    border-radius: 9px;
    background: #fff;
}

.support-console-app .cs-admin-search-icon {
    color: #a7b0bc;
    font-size: 19px;
}

.support-console-app .cs-admin-search-field input {
    height: 36px;
    color: var(--support-ink);
}

.support-console-app .cs-admin-list-clear {
    min-height: 27px;
    border-radius: 6px;
    background: #f4f6f8;
    color: #7d8999;
}

.support-console-app .cs-admin-list-summary {
    min-height: 45px;
    padding: 0 3px;
    border-bottom: 1px solid #eef1f4;
}

.support-console-app .cs-admin-list-summary strong {
    color: var(--support-ink);
    font-size: 12px;
}

.support-console-app .cs-admin-list {
    gap: 0;
    margin: 0 -15px;
    padding: 0 15px;
}

.support-console-app .cs-admin-row {
    gap: 8px;
    padding: 13px 12px;
    border: 0;
    border-bottom: 1px solid #edf1f4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.support-console-app .cs-admin-row:hover {
    border-color: #edf1f4;
    background: #f3f6f8;
    box-shadow: none;
    transform: none;
}

.support-console-app .cs-admin-row.active {
    border-color: #edf1f4;
    border-left: 3px solid var(--support-accent);
    padding-left: 9px;
    background: #fff8ec;
    box-shadow: none;
}

.support-console-app .cs-admin-row.has-unread {
    border-color: #edf1f4;
    box-shadow: none;
}

.support-console-app .cs-admin-row.has-unread::before {
    top: 13px;
    bottom: 13px;
    width: 3px;
    background: #d85e50;
}

.support-console-app .cs-admin-row-head {
    gap: 10px;
}

.support-console-app .cs-admin-avatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e8eef4;
    color: #5b6d83;
    font-size: 14px;
}

.support-console-app .cs-admin-row-identity {
    gap: 3px;
}

.support-console-app .cs-admin-row-identity strong {
    color: #26354a;
    font-size: 13px;
}

.support-console-app .cs-admin-row-identity small,
.support-console-app .cs-admin-row time {
    color: #99a5b2;
    font-size: 10px;
}

.support-console-app .cs-admin-row-meta {
    padding-left: 44px;
    gap: 6px;
}

.support-console-app .cs-admin-status,
.support-console-app .cs-admin-priority {
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10px;
}

.support-console-app .cs-admin-status.is-pending {
    background: #fff2d8;
    color: #a86c13;
}

.support-console-app .cs-admin-status.is-in-progress {
    background: #e6f1f8;
    color: #2a7394;
}

.support-console-app .cs-admin-status.is-closed,
.support-console-app .cs-admin-status.is-unknown {
    background: #eef1f4;
    color: #7c8897;
}

.support-console-app .cs-admin-unread {
    background: #d85e50;
}

.support-console-app .cs-admin-detail {
    min-width: 0;
    border: 0;
    border-right: 1px solid var(--support-line);
    border-radius: 0;
    background: #fff;
}

.support-console-app .cs-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 77px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--support-line);
}

.support-console-app .cs-detail-person {
    min-width: 0;
    gap: 10px;
}

.cs-detail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #f1e4cc;
    color: #92692e;
    font-size: 16px;
    font-weight: 800;
}

.support-console-app .cs-detail-person > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.support-console-app .cs-detail-person strong {
    overflow: hidden;
    color: #1e2d41;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-console-app .cs-detail-person small,
.cs-detail-header-meta > span:last-child {
    color: #8b98a7;
    font-size: 11px;
}

.support-console-app .cs-detail-header-meta {
    flex: 0 0 auto;
    gap: 9px;
}

.support-console-app .cs-admin-toolbar {
    align-items: center;
    min-height: 51px;
    padding: 9px 20px;
    border-bottom: 1px solid #edf1f4;
    background: #fff;
}

.cs-toolbar-label {
    margin-right: auto;
    color: #9aa5b1;
    font-size: 10px;
    letter-spacing: .08em;
}

.support-console-app .cs-admin-toolbar select,
.support-console-app .cs-admin-toolbar button {
    min-height: 30px;
    border-radius: 7px;
    font-size: 11px;
}

.support-console-app .cs-admin-toolbar select {
    min-width: 118px;
    padding: 0 8px;
    border: 1px solid #e0e6ed;
    background: #f8fafc;
    color: #506077;
}

.support-console-app .cs-admin-toolbar button {
    padding: 0 10px;
    border: 1px solid #dfe6ed;
    background: #fff;
    color: #56657a;
    cursor: pointer;
}

.support-console-app .cs-admin-toolbar #csAssignBtn {
    border-color: var(--support-ink);
    background: var(--support-ink);
    color: #fff;
}

.support-console-app .cs-admin-toolbar button:hover {
    border-color: #bdc9d6;
    background: #f6f8fa;
}

.support-console-app .cs-admin-toolbar #csAssignBtn:hover {
    background: #233653;
}

.support-console-app .cs-admin-messages {
    gap: 15px;
    min-height: 0;
    padding: 28px clamp(18px, 3vw, 42px);
    background: #f5f7f9;
}

.support-console-app .cs-admin-messages > .muted {
    align-self: center;
    margin: auto;
    color: #a4aeba;
}

.support-console-app .support-msg {
    max-width: min(75%, 560px);
    padding: 11px 14px;
    border-radius: 14px;
    box-shadow: 0 3px 9px rgba(21, 34, 56, .04);
}

.support-console-app .support-msg.user {
    border: 1px solid #e4e9ee;
    background: #fff;
    color: #344258;
}

.support-console-app .support-msg.mine {
    background: #29415f;
    color: #fff;
}

.support-console-app .support-msg-role {
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
}

.support-console-app .support-msg small {
    font-size: 10px;
}

.support-console-app .support-message-text {
    font-size: 13px;
    line-height: 1.65;
}

.support-console-app .support-message-revoked {
    color: #99a5b1;
    font-size: 12px;
    font-style: italic;
}

.support-console-app .support-message-recall {
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 10px;
    opacity: .72;
}

.support-console-app .cs-admin-send {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--support-line);
    background: #fff;
}

.support-console-app .cs-admin-send textarea {
    min-height: 67px;
    padding: 11px 13px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    outline: 0;
    background: #f9fafc;
    color: #26354a;
    font-size: 13px;
    line-height: 1.55;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.support-console-app .cs-admin-send textarea:focus {
    border-color: #b9c9d8;
    box-shadow: 0 0 0 3px rgba(102, 137, 169, .1);
}

.support-console-app .cs-admin-send-actions {
    align-items: flex-end;
    gap: 6px;
}

.support-console-app .cs-admin-send-actions button {
    min-width: 45px;
    min-height: 32px;
    border: 1px solid #dfe6ed;
    border-radius: 8px;
    background: #fff;
    color: #657287;
    cursor: pointer;
    font-size: 11px;
}

.support-console-app .cs-admin-send-actions button[type="submit"] {
    min-width: 61px;
    border-color: var(--support-ink);
    background: var(--support-ink);
    color: #fff;
    font-weight: 700;
}

.support-console-app .cs-admin-send-actions button:hover {
    background: #f4f6f8;
}

.support-console-app .cs-admin-send-actions button[type="submit"]:hover {
    background: #233653;
}

.support-console-app .support-emoji-button {
    min-width: 33px !important;
    padding: 0 !important;
    font-size: 15px !important;
}

.support-console-app .cs-admin-context {
    min-width: 0;
    padding: 23px 20px;
    background: #fbfcfd;
}

.cs-context-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
}

.support-console-app .cs-context-heading .support-eyebrow {
    margin: 0;
    color: #8290a3;
}

.cs-context-more {
    color: #a0aab6;
    font-size: 10px;
}

.cs-context-profile {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--support-line);
    text-align: center;
}

.cs-context-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    border-radius: 17px;
    background: #edf1f5;
    color: #60738b;
    font-size: 21px;
    font-weight: 800;
}

.cs-context-profile strong {
    max-width: 100%;
    overflow: hidden;
    color: #2a394d;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-context-profile small {
    max-width: 100%;
    overflow: hidden;
    color: #9aa5b1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-context-block {
    display: grid;
    gap: 5px;
    padding: 16px 0;
    border-bottom: 1px solid var(--support-line);
}

.cs-context-block span {
    color: #9aa5b1;
    font-size: 10px;
}

.cs-context-block strong {
    overflow: hidden;
    color: #4b5b70;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-context-purchase {
    display: grid;
    gap: 5px;
    padding: 16px 0;
    border-bottom: 1px solid var(--support-line);
}

.cs-context-purchase strong {
    color: #6f7e91;
    font-size: 10px;
    letter-spacing: .04em;
}

.cs-context-purchase-value {
    color: #4b8a6a;
    font-size: 12px;
    font-weight: 700;
}

.cs-context-purchase-value.is-muted {
    color: #9ba6b2;
}

.cs-context-purchase small {
    overflow: hidden;
    color: #a0aab6;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-context-note {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding: 11px 10px;
    border-radius: 9px;
    background: #f7f0e4;
    color: #8e7247;
}

.cs-context-note > span {
    flex: 0 0 auto;
    font-size: 12px;
}

.cs-context-note p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 1240px) {
    .support-console-app .cs-admin-grid {
        grid-template-columns: minmax(280px, .9fr) minmax(500px, 1.7fr);
    }

    .support-console-app .cs-admin-context {
        display: none;
    }
}

@media (max-width: 860px) {
    .support-console-body {
        width: min(100% - 32px, 760px);
        padding-top: 24px;
    }

    .support-console-intro {
        align-items: stretch;
        flex-direction: column;
        gap: 17px;
    }

    .support-filter-panel {
        align-self: flex-start;
    }

    .support-console-app .cs-admin-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .support-console-app .cs-admin-list-column {
        min-height: 0;
        max-height: 340px;
        border-right: 0;
        border-bottom: 1px solid var(--support-line);
    }

    .support-console-app .cs-admin-list {
        max-height: 240px;
    }

    .support-console-app .cs-admin-detail {
        min-height: 680px;
        border-right: 0;
    }
}

@media (max-width: 620px) {
    .support-console-header {
        min-height: 68px;
        padding: 0 17px;
    }

    .support-console-header-right {
        gap: 11px;
    }

    .support-online-state,
    .support-console-divider,
    .support-operator small {
        display: none;
    }

    .support-operator strong {
        max-width: 82px;
    }

    .support-logout {
        font-size: 0;
    }

    .support-logout span {
        font-size: 17px;
    }

    .support-console-body {
        width: calc(100% - 24px);
        padding: 21px 0 28px;
    }

    .support-console-intro h2 {
        font-size: 23px;
    }

    .support-filter-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
    }

    .support-filter-label {
        padding-left: 4px;
    }

    .support-console-app .support-workbench-filters {
        width: 100%;
    }

    .support-console-app .support-workbench-filters .filter-btn {
        min-width: 0;
        flex: 1 1 0;
        padding: 0 5px;
    }

    .support-duty-panel summary {
        min-height: 64px;
        padding: 0 12px;
    }

    .support-duty-panel summary small,
    .support-duty-summary-action {
        display: none;
    }

    .support-duty-panel-body {
        padding: 0 12px 12px;
    }

    .support-workspace-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .support-console-app .cs-admin-notify-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 13px 15px;
    }

    .support-console-app .cs-admin-notify-actions {
        width: 100%;
    }

    .cs-notify-hint {
        margin-right: auto;
    }

    .support-console-app .cs-detail-header,
    .support-console-app .cs-admin-toolbar,
    .support-console-app .cs-admin-send {
        padding-right: 14px;
        padding-left: 14px;
    }

    .support-console-app .cs-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-console-app .cs-admin-toolbar {
        flex-wrap: wrap;
    }

    .cs-toolbar-label {
        width: 100%;
        margin-right: 0;
    }

    .support-console-app .cs-admin-toolbar > *:not(.cs-toolbar-label) {
        flex: 1 1 0;
    }

    .support-console-app .cs-admin-toolbar select {
        min-width: 0;
    }

    .support-console-app .cs-admin-send {
        grid-template-columns: 1fr;
    }

    .support-console-app .cs-admin-send-actions {
        justify-content: flex-end;
    }
}

/* Referral page refresh */
.referral-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 16px;
}

.referral-page-head h2 {
    margin: 7px 0 6px;
    color: #213244;
    font-size: clamp(24px, 5vw, 32px);
    letter-spacing: -.03em;
}

.referral-page-head p {
    max-width: 560px;
    margin: 0;
}

.referral-level-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #d9e1e8;
    border-radius: 999px;
    background: #fff;
    color: #647282;
    font-size: 12px;
    font-weight: 700;
}

.referral-level-chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aab6c1;
}

.referral-level-chip.is-unlocked {
    border-color: #cce7d8;
    background: #f3fbf6;
    color: #28734a;
}

.referral-level-chip.is-unlocked i {
    background: #35a965;
    box-shadow: 0 0 0 4px rgba(53, 169, 101, .12);
}

.referral-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 14px;
}

.referral-unlock-card,
.referral-formula-card {
    min-height: 202px;
    padding: 22px;
    overflow: hidden;
}

.referral-unlock-card {
    position: relative;
    border-color: #d6e9df;
    background: linear-gradient(140deg, #effbf5 0%, #fff 72%);
}

.referral-unlock-card::after {
    position: absolute;
    right: -32px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border: 25px solid rgba(54, 164, 101, .08);
    border-radius: 50%;
    content: "";
}

.referral-card-label,
.referral-section-kicker {
    color: #7b8996;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.referral-rate-value {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #1c8150;
    font-size: clamp(42px, 8vw, 62px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
}

.referral-rate-value small {
    margin-left: 4px;
    font-size: .45em;
    letter-spacing: 0;
}

.referral-rate-value small.is-fixed {
    margin-left: 0;
    font-size: .45em;
    letter-spacing: -.02em;
}

.referral-rule-name {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: #254436;
}

.referral-unlock-card p,
.referral-formula-card p {
    position: relative;
    z-index: 1;
    margin: 7px 0 0;
}

.referral-primary-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 12px;
    padding: 9px 15px;
    border-radius: 9px;
    background: #258a58;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.referral-formula-card {
    border-color: #e4e7ed;
    background: linear-gradient(140deg, #f8faff, #fff 78%);
}

.referral-formula {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    color: #586879;
    font-size: 14px;
}

.referral-formula b {
    color: #a9b4bf;
    font-weight: 500;
}

.referral-formula strong {
    color: #2e5ca8;
    font-size: 25px;
}

.referral-formula-result {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    padding-top: 13px;
    border-top: 1px solid #e7ebf2;
    color: #82909f;
    font-size: 12px;
}

.referral-formula-result strong {
    color: #263f70;
    font-size: 15px;
}

.referral-page-stats {
    margin: 14px 0;
}

.referral-page-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 14px 16px;
    border-color: #e6ebf0;
    background: #fff;
}

.referral-page-stats > div span {
    margin-right: auto;
}

.referral-page-stats > div strong {
    color: #263847;
    font-size: 21px;
}

.referral-page-stats > div small {
    color: #9aa6b1;
    font-size: 11px;
}

.referral-share-card-modern,
.referral-rules-card,
.referral-record-card-modern {
    padding: 20px 22px;
}

.referral-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.referral-section-heading h3 {
    margin: 5px 0 0;
}

.referral-code-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid #ecdcbf;
    border-radius: 9px;
    background: #fffaf0;
}

.referral-code-pill span {
    color: #9a7a48;
    font-size: 11px;
}

.referral-code-pill strong {
    color: #8b5d22;
    font-size: 14px;
    letter-spacing: .1em;
}

.referral-rule-list {
    display: grid;
    gap: 8px;
}

.referral-rule-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 110px auto;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border: 1px solid #edf0f3;
    border-radius: 11px;
    background: #fbfcfd;
}

.referral-rule-row.is-current {
    border-color: #bfe2cc;
    background: #f2fbf5;
    box-shadow: 0 5px 16px rgba(34, 119, 70, .07);
}

.referral-rule-index {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #edf1f5;
    color: #6e7b87;
    font-size: 11px;
    font-weight: 800;
}

.referral-rule-row.is-current .referral-rule-index {
    background: #2d9b5f;
    color: #fff;
}

.referral-rule-main strong,
.referral-rule-main span,
.referral-rule-rate strong,
.referral-rule-rate span {
    display: block;
}

.referral-rule-main span,
.referral-rule-rate span {
    margin-top: 4px;
    color: #8a96a2;
    font-size: 11px;
}

.referral-rule-rate {
    text-align: right;
}

.referral-rule-rate strong {
    color: #2d7a50;
    font-size: 19px;
}

.referral-current-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #d9f2e2;
    color: #2b8651;
    font-size: 11px;
    font-weight: 700;
}

.referral-field-hint {
    display: block;
    margin-top: 5px;
    color: #9aa5af;
    font-size: 11px;
}

.membership-referral-unlock {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 12px 13px;
    border: 1px solid #eadfc9;
    border-radius: 11px;
    background: linear-gradient(135deg, #fffaf0, #fff);
}

.membership-referral-unlock.is-unlocked {
    border-color: #cbe6d5;
    background: linear-gradient(135deg, #f0fbf4, #fff);
}

.membership-referral-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f0d8a9;
    color: #8a5d20;
    font-size: 17px;
    font-weight: 800;
}

.membership-referral-unlock.is-unlocked .membership-referral-icon {
    background: #d4f0dd;
    color: #25834d;
}

.membership-referral-unlock > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.membership-referral-unlock strong {
    color: #344453;
    font-size: 13px;
}

.membership-referral-unlock p {
    margin: 3px 0 0;
    color: #7c8995;
    font-size: 11px;
    line-height: 1.5;
}

.membership-referral-unlock a {
    flex: 0 0 auto;
    color: #267c4b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.membership-purchase-card {
    border-color: #e7ebef;
}

.referral-membership-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.referral-membership-card .referral-section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #9a7a48;
}

.referral-membership-benefit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #ecdcbf;
    border-radius: 11px;
    background: #fffaf0;
    text-align: left;
}

.referral-membership-benefit strong {
    color: #8b5d22;
    font-size: 20px;
}

.referral-membership-benefit span {
    color: #9a7a48;
    font-size: 12px;
}

.referral-level-purchase-list {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    text-align: left;
}

.referral-level-purchase-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #e8edf1;
    border-radius: 11px;
    background: #fbfcfd;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.referral-level-purchase-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.referral-level-purchase-option.is-selected {
    border-color: #c9dfd1;
    background: #f2fbf5;
    box-shadow: 0 4px 12px rgba(39, 121, 73, .08);
}

.referral-level-purchase-copy {
    min-width: 0;
    flex: 1;
}

.referral-level-purchase-copy strong,
.referral-level-purchase-copy small {
    display: block;
}

.referral-level-purchase-copy strong {
    color: #344453;
    font-size: 13px;
}

.referral-level-purchase-copy small {
    margin-top: 3px;
    color: #7e8b97;
    font-size: 11px;
}

.referral-level-purchase-check {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 1px solid #cbd4dc;
    border-radius: 50%;
    background: #fff;
}

.referral-level-purchase-option.is-selected .referral-level-purchase-check {
    border: 5px solid #2d9b5f;
}

.membership-back-link,
.referral-membership-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid #e1e6eb;
    border-radius: 9px;
    background: #fff;
    color: #6f7d89;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.membership-back-link {
    width: min(640px, 100%);
    margin: 0 auto;
}

.referral-membership-back {
    margin-top: 16px;
}

@media (max-width: 680px) {
    .profile-actions-three {
        grid-template-columns: 1fr;
    }

    .referral-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .referral-overview-grid {
        grid-template-columns: 1fr;
    }

    .referral-unlock-card,
    .referral-formula-card,
    .referral-share-card-modern,
    .referral-rules-card,
    .referral-record-card-modern {
        padding: 17px;
    }

    .referral-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .referral-code-pill {
        width: 100%;
        justify-content: space-between;
    }

    .referral-rule-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .referral-rule-rate {
        grid-column: 2;
        text-align: left;
    }

    .referral-current-badge {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .membership-referral-unlock {
        align-items: flex-start;
    }

    .referral-membership-benefit {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .support-brand-copy small {
        display: none;
    }

    .support-brand-copy strong {
        font-size: 13px;
    }

    .support-console-app .cs-admin-row-meta {
        padding-left: 0;
    }

    .support-console-app .cs-admin-assignee {
        max-width: 42%;
    }
}

/* Settings feedback and bounded lists. */
.support-console-app .cs-settings-feedback {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    margin: 0 0 10px;
    padding: 7px 10px;
    border: 1px solid #cfe8d9;
    border-radius: 8px;
    background: #f1fbf5;
    color: #377453;
    font-size: 12px;
    line-height: 1.35;
}

.support-console-app .cs-settings-feedback::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #55ab78;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.support-console-app .cs-settings-feedback.is-pending {
    border-color: #ead9b8;
    background: #fffaf0;
    color: #8a672f;
}

.support-console-app .cs-settings-feedback.is-pending::before {
    content: "…";
    background: #c6964a;
}

.support-console-app .cs-settings-feedback.is-error {
    border-color: #efc9c4;
    background: #fff6f4;
    color: #a34d43;
}

.support-console-app .cs-settings-feedback.is-error::before {
    content: "!";
    background: #d56b5c;
}

.support-console-app .cs-duty-staff-table,
.support-console-app .cs-identity-list {
    max-height: 292px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.support-console-app .cs-duty-staff-table::-webkit-scrollbar,
.support-console-app .cs-identity-list::-webkit-scrollbar {
    width: 6px;
}

.support-console-app .cs-duty-staff-table::-webkit-scrollbar-thumb,
.support-console-app .cs-identity-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5df;
}

.support-console-app .cs-duty-staff-table,
.support-console-app .cs-identity-list {
    scrollbar-color: #cbd5df transparent;
    scrollbar-width: thin;
}

/* Referral centre */
.referral-page,
.admin-referrals-page {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.referral-eyebrow {
    display: inline-block;
    color: #9b6b28;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.referral-hero-card,
.referral-admin-hero {
    background: linear-gradient(135deg, #fffaf1, #fff 62%, #f5f9ff);
}

.referral-hero-card h2,
.referral-admin-hero h2 {
    margin: 8px 0 6px;
}

.referral-stats-grid,
.referral-admin-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.referral-stats-grid > div,
.referral-admin-summary > div {
    padding: 12px;
    border: 1px solid #eadfc9;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
}

.referral-stats-grid span,
.referral-admin-summary span,
.referral-record-row span,
.referral-level-row span {
    display: block;
    color: #7a8794;
    font-size: 12px;
}

.referral-stats-grid strong,
.referral-admin-summary strong {
    display: block;
    margin-top: 4px;
    color: #263443;
    font-size: 20px;
}

.referral-share-card,
.referral-record-card,
.referral-level-card {
    margin-top: 14px;
}

.referral-code-box {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 14px 0 10px;
    padding: 14px 16px;
    border: 1px dashed #d1a35e;
    border-radius: 12px;
    background: #fffaf0;
}

.referral-code-box strong {
    color: #93611e;
    font-size: 22px;
    letter-spacing: .12em;
}

.referral-code-box span {
    color: #9b6b28;
    font-size: 12px;
}

.referral-share-line {
    display: flex;
    gap: 8px;
}

.referral-share-line input {
    min-width: 0;
    flex: 1;
}

.referral-share-line button {
    flex: 0 0 auto;
}

.referral-copy-hint {
    margin-bottom: 0;
}

.profile-invite-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
}

.referral-record-list,
.referral-level-list {
    display: grid;
    gap: 8px;
}

.referral-record-row,
.referral-level-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 130px auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #edf0f3;
}

.referral-record-row:first-child,
.referral-level-row:first-child {
    border-top: 0;
}

.referral-record-row p,
.referral-level-row p {
    margin: 4px 0 0;
}

.referral-record-row strong,
.referral-level-row strong {
    color: #283847;
}

.referral-level-row {
    grid-template-columns: minmax(0, 1fr) 120px 120px auto;
}

.referral-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.referral-row-actions form {
    margin: 0;
}

.referral-level-form {
    margin-top: 14px;
}

.referral-enabled-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #526170;
    font-size: 13px;
}

.referral-feedback {
    margin-top: 14px;
}

@media (max-width: 680px) {
    .referral-stats-grid,
    .referral-admin-summary {
        gap: 6px;
    }

    .referral-stats-grid strong,
    .referral-admin-summary strong {
        font-size: 16px;
    }

    .referral-share-line {
        align-items: stretch;
        flex-direction: column;
    }

    .referral-record-row,
    .referral-level-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
    }

    .referral-record-row > .status-badge,
    .referral-level-row .referral-row-actions {
        justify-self: start;
    }

    .referral-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .support-console-app .cs-duty-staff-table,
    .support-console-app .cs-identity-list {
        max-height: 292px;
    }
}

/* Keep the workbench refinements after the legacy admin rules. */
.support-console-app .cs-admin-grid {
    grid-template-columns: minmax(300px, .86fr) minmax(560px, 1.96fr) minmax(240px, .64fr);
    border-color: #dfe6ee;
    box-shadow: 0 18px 42px rgba(21, 34, 56, .09);
}

.support-console-app .cs-admin-list-column {
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fb 100%);
}

.support-console-app .cs-admin-list-tabs {
    margin-top: 11px;
    padding: 3px;
    border: 1px solid #e6ebf0;
    border-radius: 9px;
    background: #f1f4f7;
}

.support-console-app .cs-admin-list-tab {
    min-height: 31px;
    border-radius: 7px;
    color: #8793a1;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.support-console-app .cs-admin-list-tab.active {
    background: #fff;
    color: #263850;
    box-shadow: 0 2px 8px rgba(21, 34, 56, .08);
}

.support-console-app .cs-admin-row {
    margin: 0 2px;
    padding: 13px 12px 13px 14px;
    border-left: 3px solid transparent;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.support-console-app .cs-admin-row:hover {
    background: #f2f6fa;
}

.support-console-app .cs-admin-row.active {
    border-left-color: var(--support-accent-deep);
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px rgba(213, 164, 87, .12);
}

.support-console-app .cs-admin-row.has-unread {
    border-left-color: #d56b5c;
    background: #fff8f6;
    box-shadow: none;
}

.support-console-app .cs-admin-row.has-unread.active {
    border-left-color: var(--support-accent-deep);
    background: #fffaf2;
}

.support-console-app .cs-admin-row.has-unread::before {
    display: none;
}

.support-console-app .cs-detail-header {
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}

.support-console-app .cs-admin-toolbar {
    background: #fbfcfd;
}

.support-console-app .cs-admin-toolbar button:disabled,
.support-console-app .cs-admin-toolbar select:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.support-console-app .cs-admin-messages {
    background:
        radial-gradient(circle at 12% 0%, rgba(213, 164, 87, .07), transparent 18rem),
        #f5f7f9;
}

.support-console-app .support-msg.mine {
    border-bottom-right-radius: 5px;
    background: linear-gradient(145deg, #304b6d 0%, #233b5c 100%);
    box-shadow: 0 7px 15px rgba(35, 59, 92, .15);
}

.support-console-app .support-msg.user {
    border-bottom-left-radius: 5px;
    box-shadow: 0 5px 13px rgba(21, 34, 56, .05);
}

.support-console-app .cs-admin-send-actions button:focus-visible,
.support-console-app .cs-admin-toolbar button:focus-visible,
.support-console-app .cs-admin-row:focus-visible,
.support-console-app .cs-admin-list-tab:focus-visible {
    outline: 3px solid rgba(213, 164, 87, .35);
    outline-offset: 1px;
}

@media (max-width: 1240px) {
    .support-console-app .cs-admin-grid {
        grid-template-columns: minmax(280px, .9fr) minmax(500px, 1.7fr);
    }
}
