/* Compact typography and spacing for the classic public pages.
   The simulation studio has its own styles and is intentionally unaffected. */

#dashboardPage,
#listPage,
#bountyPage,
#profilePage,
#detailPage,
#monitorPage,
#vipPage {
    font-size: 14px;
    line-height: 1.5;
}

.page-header-title .app-logo {
    width: 26px;
    height: 26px;
    border-radius: 9px;
}

.page-header-title .app-logo .logo-text {
    font-size: 17px;
}

.app-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.nav-text-btn {
    min-height: 32px;
    padding: 4px 9px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}

.risk-tip-track {
    font-size: 12px;
    font-weight: 500;
}

.wechat-bind-banner {
    padding: 12px;
    border-radius: 14px;
}

.wechat-bind-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.wechat-bind-text strong {
    font-size: 14px;
    font-weight: 600;
}

.wechat-bind-text span {
    font-size: 12px;
    line-height: 1.5;
}

.btn-wechat-bind,
.btn-bind-dismiss {
    min-height: 40px;
    font-size: 13px;
    font-weight: 600;
}

.modal-header {
    padding: 12px 16px;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-body {
    padding: 16px;
    font-size: 14px;
}

.modal-footer {
    padding: 12px 16px calc(12px + var(--safe-bottom));
}

.modal-footer .btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Home */
#dashboardPage .dashboard-market-item {
    min-height: 62px;
    padding: 6px 5px;
    border-radius: 12px;
}

#dashboardPage .dashboard-market-name {
    font-size: 10px;
    font-weight: 600;
}

#dashboardPage .dashboard-market-value {
    font-size: 13px;
    font-weight: 650;
}

#dashboardPage .dashboard-market-change {
    font-size: 10px;
    font-weight: 600;
}

#dashboardPage .stock-sections-container {
    gap: 10px;
    margin-bottom: 12px;
}

#dashboardPage .stock-display-section {
    padding: 12px;
    border-radius: 16px;
}

#dashboardPage .section-title-strong,
#dashboardPage .section-title-sell {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

#dashboardPage .dashboard-promo-section {
    gap: 7px;
    margin: 14px 0 12px;
}

#dashboardPage .dashboard-promo-card {
    min-height: 78px;
    padding: 11px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

#dashboardPage .dashboard-promo-card[data-promo="signin"],
#dashboardPage .dashboard-promo-card[data-promo="invite"] {
    min-height: 78px;
    padding: 9px 8px;
    aspect-ratio: auto;
    gap: 4px;
}

#dashboardPage .dashboard-promo-title {
    font-size: 14px;
    font-weight: 600;
}

#dashboardPage .dashboard-promo-card[data-promo="signin"] .dashboard-promo-title,
#dashboardPage .dashboard-promo-card[data-promo="invite"] .dashboard-promo-title {
    font-size: 12px;
    letter-spacing: 0;
}

#dashboardPage .dashboard-promo-subtitle {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
}

#dashboardPage .dashboard-promo-card[data-promo="signin"] .dashboard-promo-subtitle,
#dashboardPage .dashboard-promo-card[data-promo="invite"] .dashboard-promo-subtitle {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0;
}

#dashboardPage .dashboard-promo-card[data-promo="signin"] .dashboard-promo-icon,
#dashboardPage .dashboard-promo-card[data-promo="invite"] .dashboard-promo-icon {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

#dashboardPage .dashboard-watchlist-section,
#dashboardPage .dashboard-my-orders-section {
    margin: 14px 0;
}

#dashboardPage .dashboard-watchlist-item {
    gap: 6px;
    padding: 7px 9px;
}

#dashboardPage .dashboard-watchlist-identity strong,
#dashboardPage .dashboard-watchlist-quote strong {
    font-size: 12px;
    font-weight: 600;
}

#dashboardPage .dashboard-watchlist-identity small,
#dashboardPage .dashboard-watchlist-quote small {
    font-size: 10px;
}

#dashboardPage .dashboard-watchlist-rates span {
    font-size: 10px;
    font-weight: 600;
}

#dashboardPage .dashboard-list-message {
    padding: 16px 8px;
    font-size: 12px;
}

#dashboardPage .dashboard-section-more,
#dashboardPage #viewAllBountyBtn {
    font-size: 12px !important;
    font-weight: 500;
}

#dashboardPage #dashboardBountySection {
    margin-top: 18px !important;
    margin-bottom: 16px !important;
}

#dashboardPage #dashboardBountySection > div:first-child {
    margin-bottom: 8px !important;
}

/* Watchlist */
#listPage .group-tabs {
    padding: 8px 12px;
    margin-bottom: 8px;
}

#listPage .group-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    box-sizing: border-box;
}

#listPage .stock-list-search {
    min-height: 42px;
}

#listPage .stock-list-search input {
    font-size: 14px;
}

#listPage #batchAddStockBtn {
    min-height: 34px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

#listPage .stock-card {
    padding: 6px 8px;
    border-radius: 11px;
}

#listPage .stock-name-text {
    font-size: 14px;
    font-weight: 600;
}

#listPage .stock-card-price,
#listPage .stock-card-change,
#listPage .stock-code-text,
#listPage .stock-card-date,
#listPage .stock-card-metric {
    font-size: 12px;
    font-weight: 600;
}

#listPage .stock-trend-text,
#listPage .date-line .date-text,
#listPage .date-line .time-text {
    font-size: 11px;
    font-weight: 500;
}

#listPage .stock-table th {
    font-size: 11px;
    font-weight: 600;
}

#listPage .stock-table td {
    font-size: 13px;
    font-weight: 500;
}

#listPage .list-footer .footer-buttons button {
    min-height: 36px;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 500 !important;
    line-height: 1.15;
}

/* Mutual help */
#bountyPage .order-tab-btn {
    min-height: 38px;
    padding: 6px 5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

#bountyPage .order-tab-btn.active {
    font-weight: 600 !important;
}

#bountyPage .status-filter-btn {
    min-height: 32px;
    padding: 4px 9px !important;
    border-radius: 9px;
    font-size: 11px !important;
    font-weight: 500;
}

#bountyPage #bountyHallStats {
    margin: 12px !important;
    padding: 12px !important;
    border-radius: 10px !important;
}

#bountyPage #bountyHallStats > div > div:first-child {
    font-size: 12px !important;
    font-weight: 500;
}

#bountyPage #expertStatusDisplay,
#bountyPage #todayEarnedPoints {
    font-size: 14px;
    font-weight: 600 !important;
}

#bountyPage .bounty-search-box input {
    font-size: 13px;
}

#bountyPage .bounty-range-btn {
    min-height: 32px;
    padding: 4px 9px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 500;
}

#bountyPage .bounty-list-container {
    padding: 0 12px 16px !important;
}

#bountyPage #bountyList > div[style*="border-radius: 10px"] {
    padding: 9px 10px !important;
}

#bountyPage #bountyList [style*="font-size: 0.92rem"] {
    font-size: 14px !important;
    font-weight: 600 !important;
}

#bountyPage #bountyList [style*="font-size: 0.76rem"],
#bountyPage #bountyList [style*="font-size: 0.74rem"],
#bountyPage #bountyList [style*="font-size: 0.72rem"] {
    font-size: 12px !important;
    font-weight: 600 !important;
}

#bountyPage #bountyList [style*="font-size: 0.7rem"],
#bountyPage #bountyList [style*="font-size: 0.68rem"] {
    font-size: 11px !important;
    font-weight: 500 !important;
}

#bountyPage #bountyList button {
    min-height: 38px;
    font-weight: 600;
}

/* Profile */
#profilePage .profile-header {
    padding: 16px;
    border-radius: 16px;
}

#profilePage .avatar-circle {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

#profilePage .profile-name {
    font-size: 17px;
    font-weight: 600;
}

#profilePage .profile-id {
    font-size: 13px;
}

#profilePage .profile-edit-btn {
    min-height: 36px;
    font-size: 12px;
    font-weight: 600;
}

#profilePage .profile-wechat-bind-btn {
    min-height: 40px;
    font-size: 13px;
    font-weight: 600;
}

#profilePage .invite-reward-card {
    margin: 12px 12px 0;
    padding: 14px;
    border-radius: 14px;
}

#profilePage .invite-reward-title {
    font-size: 14px;
    font-weight: 600;
}

#profilePage .invite-reward-desc {
    font-size: 12px;
    line-height: 1.55;
}

#profilePage .invite-reward-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

#profilePage .invite-referral-code {
    margin-top: 8px;
    padding: 5px 8px;
    font-size: 12px;
}

#profilePage .vip-card,
#profilePage .points-card {
    margin: 12px 12px 0 !important;
    padding: 16px !important;
    border-radius: 14px !important;
}

#profilePage .vip-card > div:first-child {
    margin-bottom: 12px !important;
}

#profilePage #vipStatusDisplay {
    font-size: 20px !important;
    font-weight: 600 !important;
}

#profilePage .vip-card > div:first-child > div[style*="font-size: 3.5rem"] {
    font-size: 2rem !important;
}

#profilePage .points-card {
    height: auto !important;
    min-height: 0;
}

#profilePage #userPointsDisplay,
#profilePage #userTimesDisplay {
    font-size: 24px !important;
    font-weight: 600 !important;
}

#profilePage .points-card > div:first-child > div[style*="font-size: 2.75rem"] {
    font-size: 2rem !important;
}

#profilePage .points-card button,
#profilePage .vip-card button {
    min-height: 40px;
    font-size: 13px;
    font-weight: 600;
}

#profilePage .sign-in-card {
    height: auto !important;
    min-height: 0;
    margin: 12px 12px 0;
    padding: 12px;
    border-radius: 16px;
}

#profilePage .sign-in-card-title {
    font-size: 13px;
    font-weight: 600;
}

#profilePage .sign-in-card-header {
    gap: 8px;
}

#profilePage .sign-in-card-status,
#profilePage .sign-in-card-tip {
    font-size: 11px;
    font-weight: 500;
}

#profilePage .sign-in-day {
    flex-basis: 70px;
    width: 70px;
    height: 70px;
    min-height: 70px;
    padding: 3px 4px;
    border-radius: 10px;
}

#profilePage .sign-in-coin {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-width: 2px;
    font-size: 10px;
}

#profilePage .sign-in-share-btn {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
}

#profilePage .settings-title {
    padding: 12px 14px 8px;
    font-size: 12px;
    font-weight: 600;
}

#profilePage .settings-item {
    min-height: 44px;
    padding: 10px 14px;
}

#profilePage .settings-item-left {
    font-size: 14px;
    font-weight: 500;
}

/* Direct child pages */
#monitorPage .monitor-hero-card {
    min-height: 124px;
    padding: 12px;
    border-radius: 15px;
}

#monitorPage .monitor-hero-card h3 {
    font-size: 16px;
    font-weight: 600;
}

#monitorPage .monitor-hero-card .monitor-hero-proofs span {
    font-size: 12px;
    font-weight: 500;
}

#monitorPage .monitor-mode-tabs {
    min-height: 56px;
}

#monitorPage .monitor-mode-tab {
    min-height: 48px;
    font-size: 14px;
    font-weight: 600;
}

#monitorPage .monitor-table-head {
    min-height: 42px;
    font-size: 11px;
    font-weight: 600;
}

#monitorPage .monitor-item {
    min-height: 72px;
    padding: 10px;
}

#monitorPage .monitor-item .name {
    font-size: 14px;
    font-weight: 600;
}

#monitorPage .monitor-code {
    font-size: 11px;
    font-weight: 500;
}

#monitorPage .monitor-item .rate {
    font-size: 11px;
    font-weight: 600;
}

#monitorPage .monitor-empty {
    min-height: 128px;
    padding: 24px 14px;
    font-size: 13px;
}

#vipPage .vip-hero {
    margin: 14px 12px 10px;
    padding: 15px 14px;
    border-radius: 16px;
}

#vipPage .vip-hero h3 {
    font-size: 18px;
    font-weight: 600;
}

#vipPage .vip-hero p,
#vipPage .vip-hero-note {
    font-size: 12px;
    font-weight: 400;
}

#vipPage .vip-list-section {
    padding: 12px;
    border-radius: 15px;
}

#vipPage .vip-list-header {
    font-size: 13px;
    font-weight: 600;
}

#vipPage .vip-list-tab {
    min-height: 38px;
    font-size: 12px;
    font-weight: 600;
}

#vipPage .vip-stock-card {
    padding: 9px 10px;
    border-radius: 12px;
}

#vipPage .vip-stock-name {
    font-size: 14px;
    font-weight: 600;
}

#vipPage .vip-stock-rate {
    font-size: 14px;
    font-weight: 650;
}

#vipPage .vip-stock-sub {
    font-size: 11px;
    font-weight: 500;
}

#vipPage .vip-empty {
    padding: 14px 0;
    font-size: 12px;
}

#detailPage .detail-market-section {
    padding: 12px;
}

#detailPage .detail-market-section-head h2 {
    font-size: 15px;
    font-weight: 600;
}

#detailPage .detail-market-period-tabs button {
    min-height: 30px;
    font-size: 10px;
    font-weight: 600;
}

#detailPage .params-section-summary {
    font-size: 13px;
    font-weight: 600;
}

#detailPage .trend-selector {
    padding: 12px;
}

#detailPage .trend-selector label {
    font-size: 12px;
    font-weight: 500;
}

#detailPage .select-wrapper select {
    min-height: 42px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 640px) {
    #dashboardPage .dashboard-promo-card {
        min-height: 74px;
    }

    #dashboardPage .dashboard-promo-card[data-promo="signin"],
    #dashboardPage .dashboard-promo-card[data-promo="invite"] {
        min-height: 74px;
    }

    #monitorPage .monitor-hero-card {
        min-height: 104px;
    }

    #monitorPage .monitor-results {
        width: calc(100% - 24px);
    }

    #listPage .list-footer .footer-buttons #batchDeleteBtn {
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
    }
}

/* Fine details requested from the mobile preview */
@media (max-width: 640px) {
    #profilePage .sign-in-calendar {
        gap: 7px;
    }

    #profilePage .sign-in-day {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
        min-height: 66px;
        padding: 2px 4px;
    }

    #profilePage .sign-in-coin {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    #profilePage .sign-in-day-reward {
        font-size: 9px;
        font-weight: 500;
    }

    #profilePage .sign-in-coin.checked {
        font-size: 9px;
    }

    #detailPage .detail-combo-card {
        margin: 8px 0 10px;
        padding: 10px;
        border-radius: 16px;
    }

    #detailPage .stock-info {
        gap: 6px;
    }

    #detailPage .stock-identity {
        gap: 6px;
    }

    #detailPage .stock-name {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0;
    }

    #detailPage .stock-code {
        font-size: 11px;
        font-weight: 500;
    }

    #detailPage .current-price {
        font-size: 16px;
        font-weight: 600;
    }

    #detailPage .price-change {
        font-size: 11px;
        font-weight: 600;
    }

    #detailPage .detail-trend-badge {
        padding: 2px 6px;
        font-size: 10px;
        font-weight: 600;
    }

    #detailPage .stock-rates {
        gap: 5px;
    }

    #detailPage .rate-badge {
        min-height: 42px;
        padding: 4px 3px;
        border-radius: 10px;
    }

    #detailPage .rate-badge-label {
        font-size: 9px;
        font-weight: 600;
    }

    #detailPage .rate-badge-value {
        font-size: 13px;
        font-weight: 600;
    }

    #detailPage .detail-market-section {
        padding: 8px;
    }

    #detailPage .detail-market-section-head h2 {
        font-size: 13px;
    }

    #detailPage .detail-market-period-tabs {
        gap: 3px;
        margin-top: 6px;
        padding: 3px;
        border-radius: 10px;
    }

    #detailPage .strategy-market-period-tabs-slot .detail-market-period-tabs {
        margin-top: 0;
    }

    #detailPage .detail-market-period-tabs button {
        min-height: 28px;
        padding: 2px 3px;
        border-radius: 7px;
        font-size: 10px;
        font-weight: 500;
    }

    #detailPage .detail-market-chart .strategy-market-chart-card {
        margin-top: 6px;
        border-radius: 10px;
    }

    #detailPage .strategy-market-chart-head {
        min-height: 32px;
        gap: 5px;
        padding: 4px 8px;
    }

    #detailPage .strategy-market-title-primary > strong {
        font-size: 14px;
        font-weight: 600;
    }

    #detailPage .strategy-market-sub-heading > strong {
        font-size: 12px;
        font-weight: 600;
    }

    #detailPage .strategy-market-chart-head > span,
    #detailPage .strategy-market-sub-head > span {
        font-size: 10px;
    }

    #detailPage .strategy-market-change {
        padding: 1px 4px;
        font-size: 10px;
        font-weight: 600;
    }

    #detailPage .strategy-market-chart-readout {
        min-height: 0;
        padding: 3px 8px;
        font-size: 9px;
        line-height: 1.15;
    }

    #detailPage .strategy-market-main {
        height: clamp(129px, 15.75svh, 140px);
    }

    #detailPage .strategy-market-main-volume-shell {
        height: clamp(42px, 5svh, 46px);
    }

    #detailPage .strategy-market-sub-shell {
        height: clamp(158px, 19.1svh, 165px);
    }

    #detailPage .strategy-market-sub-pane .strategy-market-sub-head {
        min-height: 28px;
        gap: 3px 5px;
        padding: 2px 8px;
    }

    #detailPage .strategy-market-sub {
        height: calc(100% - 28px) !important;
    }

    #detailPage .strategy-market-sub-tabs button {
        padding: 3px 6px;
        font-size: 10px;
        font-weight: 600;
    }

    #detailPage .strategy-market-scale {
        top: 32px;
        right: 0;
        bottom: 12px;
        width: 42px;
        font-size: 9px;
    }

    #detailPage .strategy-market-macd-legend {
        gap: 3px;
        font-size: 9px;
    }

    #detailPage .trend-content {
        padding: 10px;
    }

    #detailPage .indicators-group {
        margin-bottom: 10px;
    }

    #detailPage .indicator-title {
        gap: 6px;
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 600;
    }

    #detailPage .indicator-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    #detailPage .indicator-item {
        align-items: flex-start;
        gap: 5px;
        min-width: 0;
        padding: 6px;
        border-width: 1px;
        border-radius: 8px;
    }

    #detailPage .indicator-item input[type="checkbox"] {
        width: 14px;
        height: 14px;
        border-width: 1px;
        box-shadow: none;
    }

    #detailPage .indicator-copy,
    #detailPage .indicator-text {
        min-width: 0;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    #detailPage .indicator-item.checked .indicator-text {
        font-weight: 600;
    }

    #vipPurchaseModal .vip-purchase-modal-content {
        height: calc(100dvh - 8px - var(--safe-bottom));
        max-height: calc(100dvh - 8px - var(--safe-bottom));
        display: flex;
        flex-direction: column;
        border-radius: 18px 18px 0 0;
    }

    #vipPurchaseModal .vip-purchase-body {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding: 12px;
    }

    #vipPurchaseModal .vip-plan-type-card {
        min-height: 54px;
        padding: 7px 6px;
        border-radius: 10px;
    }

    #vipPurchaseModal .vip-privilege-panel {
        margin-bottom: 10px;
        padding: 11px;
    }

    #vipPurchaseModal .vip-privilege-panel ul {
        font-size: 11px;
        line-height: 1.4;
    }

    #vipPurchaseModal .vip-purchase-modal-content > .modal-footer {
        flex: 0 0 auto;
    }

    #bountyPage .bounty-order-card {
        gap: 8px;
        align-items: flex-start !important;
        margin-bottom: 8px !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
    }

    #bountyPage #bountyList {
        gap: 8px !important;
    }

    #bountyPage .bounty-order-content {
        flex: 1;
        min-width: 0;
    }

    #bountyPage .bounty-order-title {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 3px 5px;
        margin-bottom: 3px !important;
        font-size: 13px !important;
        line-height: 1.35;
    }

    #bountyPage .bounty-order-stock-name {
        font-size: 13px;
        font-weight: 600;
    }

    #bountyPage .bounty-order-stock-code {
        font-size: 10px !important;
    }

    #bountyPage .bounty-order-status {
        display: inline-flex;
        align-items: center;
        margin-left: 0 !important;
        padding: 2px 6px !important;
        border-radius: 7px !important;
        font-size: 10px !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    #bountyPage .bounty-order-time {
        font-size: 10px !important;
        line-height: 1.3;
        white-space: nowrap;
    }

    #bountyPage .bounty-order-action {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 5px 8px !important;
        border-radius: 8px !important;
        font-size: 10px !important;
        line-height: 1.2;
        white-space: nowrap;
    }
}
