.home-dashboard-page {
    --home-accent: #ff5c74;
    --home-accent-dark: #ee4963;
    --home-ink: #26334f;
    --home-muted: #7f8aa3;
    --home-border: #e5eaf2;
    --home-surface: #fff;
    --home-soft: #f6f8fc;
}

.home-dashboard-page,
.home-dashboard-page .page-content-wrapper,
.home-dashboard-page .page-content {
    background: transparent !important;
}

@media screen and (min-width: 769px) {
    .home-dashboard-page.view-wrapper.is-webapp {
        padding-top: 60px;
    }
}

.home-dashboard-page .page-content-inner {
    padding-top: 28px;
    padding-bottom: 56px;
}

.home-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 28px;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 92, 116, .12), transparent 28%),
        var(--home-surface);
    box-shadow: 0 10px 30px rgba(31, 45, 71, .055);
}

.home-overview-copy {
    min-width: 0;
}

.home-overview-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--home-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.home-overview-copy h1 {
    margin: 0;
    color: var(--home-ink);
    font-size: 28px;
    font-weight: 750;
    line-height: 1.25;
}

.home-overview-copy p {
    margin: 7px 0 0;
    color: var(--home-muted);
    font-size: 14px;
}

.home-quick-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.home-quick-action-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.home-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    color: #53617c;
    font-size: 14px;
    font-weight: 650;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-quick-action-wide-only {
    display: none;
}

html.dashboard-wide-layout .home-quick-action-wide-only {
    display: inline-flex;
}

.home-quick-action-edit {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px dashed rgba(255, 92, 116, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: var(--home-accent);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-quick-action-edit:hover,
.home-quick-action-edit:focus {
    border-color: var(--home-accent);
    background: #fff4f6;
    box-shadow: 0 8px 20px rgba(255, 92, 116, .14);
    transform: translateY(-1px);
}

.home-quick-action-edit i {
    font-size: 14px;
}

.home-quick-edit-label {
    display: none;
}

.home-shortcut-modal {
    --home-accent: #ff5c74;
    --home-accent-dark: #ee4963;
    --home-ink: #26334f;
    --home-muted: #7f8aa3;
    --home-border: #e5eaf2;
    --home-surface: #fff;
    --home-soft: #f6f8fc;
    z-index: 10020;
}

.home-shortcut-modal .modal-background {
    background: rgba(25, 33, 49, .6);
    backdrop-filter: blur(2px);
}

.home-shortcut-modal .modal-card {
    width: min(860px, calc(100vw - 36px));
    max-height: min(820px, calc(100vh - 44px));
    margin: 0;
    border: 1px solid var(--home-border);
    border-radius: 22px;
    background: var(--home-surface);
    box-shadow: 0 24px 70px rgba(25, 33, 49, .24);
    overflow: hidden;
}

.home-shortcut-modal .modal-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 20px;
    border: 0;
    border-bottom: 1px solid var(--home-border);
    border-radius: 0;
    background: var(--home-surface);
}

.home-shortcut-modal .modal-card-head h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.3;
}

.home-shortcut-modal .modal-card-head p {
    margin: 5px 0 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.55;
}

.home-shortcut-modal-close {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: transparent;
    color: var(--home-muted);
    cursor: pointer;
}

.home-shortcut-modal-close:hover,
.home-shortcut-modal-close:focus {
    border-color: rgba(255, 92, 116, .45);
    color: var(--home-accent);
}

.home-shortcut-modal .modal-card-body {
    padding: 22px 26px 26px;
    background: var(--home-soft);
    overflow-y: auto;
}

.home-shortcut-selected-section,
.home-shortcut-browser {
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: var(--home-surface);
}

.home-shortcut-selected-section {
    padding: 18px;
}

.home-shortcut-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-shortcut-section-heading h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 15px;
    font-weight: 700;
}

.home-shortcut-section-heading p {
    margin: 3px 0 0;
    color: var(--home-muted);
    font-size: 12px;
}

.home-shortcut-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff0f3;
    color: var(--home-accent-dark);
    font-size: 12px;
    font-weight: 750;
}

.home-shortcut-selected-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-shortcut-selected-item,
.home-shortcut-selected-placeholder {
    min-height: 92px;
    border-radius: 13px;
}

.home-shortcut-selected-item {
    position: relative;
    padding: 13px 12px 10px;
    border: 1px solid rgba(255, 92, 116, .24);
    background: #fff9fa;
}

.home-shortcut-selected-item-main {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-right: 24px;
    color: var(--home-ink);
    font-size: 13px;
    font-weight: 680;
}

.home-shortcut-selected-item-main i {
    flex: 0 0 28px;
    color: var(--home-accent);
}

.home-shortcut-selected-item-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-shortcut-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ba5b9;
    cursor: pointer;
}

.home-shortcut-remove:hover {
    background: #ffecef;
    color: var(--home-accent);
}

.home-shortcut-order {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.home-shortcut-order button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: #fff;
    color: #6d7890;
    cursor: pointer;
}

.home-shortcut-order button:disabled {
    opacity: .35;
    cursor: default;
}

.home-shortcut-selected-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d8deea;
    color: #a8b1c3;
    font-size: 12px;
}

.home-shortcut-browser {
    margin-top: 14px;
    padding: 18px;
}

.home-shortcut-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.home-shortcut-search {
    position: relative;
    flex: 1 1 230px;
}

.home-shortcut-search > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: #9aa5ba;
    transform: translateY(-50%);
}

.home-shortcut-search .input {
    height: 42px;
    padding-left: 40px;
    border-color: var(--home-border);
    border-radius: 11px;
    box-shadow: none;
}

.home-shortcut-categories {
    display: flex;
    flex: 0 1 auto;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-shortcut-categories::-webkit-scrollbar {
    display: none;
}

.home-shortcut-category {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    background: transparent;
    color: #69758e;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.home-shortcut-category.is-active {
    border-color: rgba(255, 92, 116, .32);
    background: #fff0f3;
    color: var(--home-accent-dark);
}

.home-shortcut-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-shortcut-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: #fff;
    color: var(--home-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.home-shortcut-option:hover,
.home-shortcut-option:focus {
    border-color: rgba(255, 92, 116, .42);
    transform: translateY(-1px);
}

.home-shortcut-option.is-selected {
    border-color: rgba(255, 92, 116, .5);
    background: #fff6f8;
}

.home-shortcut-option:disabled:not(.is-selected) {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.home-shortcut-option-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--home-soft);
    color: var(--home-accent);
}

.home-shortcut-option-copy {
    min-width: 0;
}

.home-shortcut-option-copy strong,
.home-shortcut-option-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-shortcut-option-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 680;
}

.home-shortcut-option-copy small {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 11px;
}

.home-shortcut-empty {
    padding: 34px 20px;
    color: var(--home-muted);
    text-align: center;
}

.home-shortcut-empty i,
.home-shortcut-empty span {
    display: block;
}

.home-shortcut-empty i {
    margin-bottom: 8px;
    font-size: 20px;
}

.home-shortcut-modal .modal-card-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 26px;
    border: 0;
    border-top: 1px solid var(--home-border);
    border-radius: 0;
    background: var(--home-surface);
}

.home-shortcut-modal .modal-card-foot .button {
    min-width: 132px;
    min-height: 44px;
    margin: 0;
    border-radius: 11px;
}

.home-quick-action i {
    margin-right: 8px;
    color: var(--home-accent);
    font-size: 14px;
}

.home-quick-action:hover,
.home-quick-action:focus {
    border-color: rgba(255, 92, 116, .55);
    color: var(--home-accent-dark);
    box-shadow: 0 8px 20px rgba(255, 92, 116, .12);
    transform: translateY(-1px);
}

.home-dashboard-grid {
    margin: 10px -8px 0 !important;
}

.home-dashboard-grid > .column {
    padding: 8px;
}

.home-sidebar-column .grid-item-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.home-sidebar-column .grid-item-head,
.home-sidebar-column .dashboard-card,
.home-sidebar-column .grid-item,
.home-main-column .dashboard-tile,
.home-chart-card {
    margin: 0 !important;
    border: 1px solid var(--home-border) !important;
    border-radius: 16px !important;
    background: var(--home-surface) !important;
    box-shadow: 0 8px 24px rgba(31, 45, 71, .045) !important;
    overflow: hidden;
}

.home-plan-card {
    min-height: 158px;
    padding: 20px !important;
}

.home-plan-card .flex-head {
    margin-bottom: 18px;
}

.home-plan-card .meta > span:first-child,
.home-plan-card .store_plan > span:first-child {
    color: var(--home-ink);
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.home-plan-card .store_plan,
.home-plan-card .store_plan .clang_html {
    display: block !important;
}

.home-plan-card .store_plan .home-cpttm-info {
    display: block;
    margin-top: 4px;
    color: #000 !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
}

.home-plan-card .meta > span:last-child {
    margin-top: 3px;
    color: var(--home-muted);
}

.home-plan-card .field.has-addons {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
}

.home-plan-card .field.has-addons .button {
    min-height: 44px;
}

.home-plan-card .field.has-addons > .button:first-child {
    border-radius: 12px 0 0 12px;
}

.home-plan-card .field.has-addons .is-expanded {
    justify-content: flex-start;
    border-color: var(--home-border);
    color: #56647e;
}

.home-plan-card .field.has-addons .control:last-child .button {
    margin-left: -1px;
    padding-right: 18px;
    padding-left: 18px;
    border-color: var(--home-accent);
    border-radius: 0 12px 12px 0;
    background: var(--home-accent);
}

.home-plan-card .store_plan_style {
    flex: 0 0 auto;
}

.home-plan-card .store_plan_icon {
    transition: transform .18s ease;
}

.home-plan-card:hover .store_plan_icon {
    transform: scale(1.06);
}

.home-welcome-card {
    padding: 25px !important;
    background:
        linear-gradient(145deg, rgba(255, 92, 116, .09), rgba(255, 255, 255, .96) 52%),
        var(--home-surface) !important;
}

.home-welcome-card .welcome-title h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(25px, 2.1vw, 34px);
    font-weight: 750;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.home-welcome-card .welcome-title p {
    margin-top: 10px;
    color: var(--home-muted) !important;
}

.home-welcome-card .button-wrap {
    display: grid;
    gap: 8px;
}

.home-welcome-card .button-wrap .button {
    min-height: 46px;
    margin: 0 !important;
    border-radius: 12px;
    box-shadow: none !important;
}

.home-welcome-card .home-referral-button {
    border: 1px solid rgba(255, 92, 116, .32) !important;
    background: #fff7f8 !important;
    color: var(--home-accent) !important;
    font-weight: 650;
}

.home-welcome-card .home-referral-button i {
    margin-right: 9px;
    font-size: 14px;
}

.home-welcome-card .home-referral-button:hover,
.home-welcome-card .home-referral-button:focus {
    border-color: rgba(255, 92, 116, .62) !important;
    background: #fff0f3 !important;
    color: var(--home-accent-dark) !important;
}

.home-referral-public {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border: 1px solid rgba(255, 92, 116, .28);
    border-radius: 12px;
    background: #fff8f9;
    overflow: hidden;
}

.home-referral-summary {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    min-height: 56px;
    padding: 8px 10px;
    color: var(--home-ink);
}

.home-referral-summary:hover,
.home-referral-summary:focus {
    color: var(--home-ink);
    background: #fff2f4;
}

.home-referral-summary-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffe8ec;
    color: var(--home-accent);
}

.home-referral-summary-copy {
    min-width: 0;
    margin-left: 10px;
}

.home-referral-summary-copy small,
.home-referral-summary-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-referral-summary-copy small {
    color: var(--home-muted);
    font-size: 11px;
    line-height: 1.25;
}

.home-referral-summary-copy strong {
    margin-top: 2px;
    color: var(--home-ink);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: .02em;
}

.home-referral-summary-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
    padding-left: 8px;
    color: var(--home-accent);
    font-size: 12px;
    font-weight: 700;
}

.home-referral-summary-action i {
    margin-right: 0;
}

.home-referral-summary-action span {
    display: none;
}

.home-referral-public-copy {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 92, 116, .22);
    background: #fff;
    color: var(--home-accent);
    cursor: pointer;
}

.home-referral-public-copy:hover,
.home-referral-public-copy:focus,
.home-referral-public-copy.is-copied {
    background: #fff0f3;
    color: var(--home-accent-dark);
}

body.is-dark .home-referral-public {
    background: rgba(255, 92, 116, .07);
}

body.is-dark .home-referral-summary:hover,
body.is-dark .home-referral-summary:focus,
body.is-dark .home-referral-public-copy {
    background: #252c3c;
}

.home-resource-card {
    padding: 14px !important;
}

.home-side-promo {
    display: block;
    margin-bottom: 14px;
}

.home-side-promo img {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 12px;
}

.home-sidebar-column .home-resource-card {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.home-resource-card video {
    display: block;
    width: 100%;
    height: auto;
    min-height: 180px;
    border-radius: 12px;
    background: #1f2940;
}

.home-resource-card .dashboard-tile {
    margin-top: 14px !important;
}

.home-main-column > .columns {
    display: grid;
    grid-template-columns: .9fr 1.35fr 1fr;
    gap: 16px;
    margin: 0 !important;
}

.home-main-column > .columns > .column {
    width: auto;
    padding: 0;
}

.home-metric-card {
    min-height: 158px;
    padding: 20px !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-metric-card:hover {
    border-color: rgba(255, 92, 116, .28) !important;
    box-shadow: 0 13px 28px rgba(31, 45, 71, .08) !important;
    transform: translateY(-2px);
}

.home-metric-card .tile-head {
    align-items: center;
    margin-bottom: 13px;
}

.home-metric-card .tile-head h3 {
    color: #5b6780 !important;
    font-size: 14px !important;
    font-weight: 650;
}

.home-metric-card .h-icon {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
}

.home-metric-orders .h-icon {
    background: rgba(255, 92, 116, .11) !important;
    color: var(--home-accent) !important;
}

.home-metric-sales .h-icon {
    background: rgba(122, 97, 255, .11) !important;
    color: #7563dc !important;
}

.home-metric-members .h-icon {
    background: rgba(255, 145, 78, .12) !important;
    color: #f08749 !important;
}

.home-metric-today-sales .h-icon {
    background: rgba(40, 181, 151, .12) !important;
    color: #24a98c !important;
}

.home-yesterday-sales {
    color: #24a98c;
}

.home-wide-stat {
    display: none !important;
}

.home-metric-card .tile-body {
    min-height: 43px;
}

.home-metric-card .tile-body > a,
.home-metric-card .tile-body > span {
    color: var(--home-ink) !important;
    font-size: 30px !important;
    font-weight: 760 !important;
    line-height: 1.15;
}

.home-metric-card .tile-foot {
    margin-top: 8px;
    color: var(--home-muted);
    font-size: 13px;
}

.home-metric-card .tile-foot .dark-inverted {
    color: var(--home-muted) !important;
}

.home-metric-card .tile-foot b {
    margin-left: 3px;
}

.home-money {
    display: inline-flex !important;
    align-items: baseline;
    white-space: nowrap;
}

.home-money-sign,
.home-money-currency,
.home-money-fraction {
    display: inline !important;
    font-size: 70%;
    line-height: 1;
}

.home-money-integer {
    display: inline !important;
}

.home-money-currency {
    margin-right: .2em;
}

.home-chart-column,
.home-main-promo {
    grid-column: 1 / -1;
}

.home-chart-card {
    margin-top: 2px !important;
}

.home-chart-card .tabs-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
    border-bottom: 1px solid var(--home-border);
}

.home-chart-card .home-chart-title {
    min-width: 0;
}

.home-chart-card .home-chart-title h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.home-chart-card .home-chart-title-months {
    display: none;
}

.home-chart-card .tabs {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.home-chart-card .tabs a {
    min-height: 54px;
    color: var(--home-muted);
    font-weight: 650;
}

.home-chart-card .tabs li.is-active a {
    color: var(--home-accent);
}

.home-chart-card .stat-widget {
    margin: 0 !important;
    padding: 24px !important;
    border: 0 !important;
    box-shadow: none !important;
}

.home-chart-card .home-chart-content-head {
    display: none !important;
}

.home-chart-card .line-stats {
    gap: 30px;
}

.home-chart-card .line-stat > span:first-child {
    color: var(--home-muted) !important;
    font-size: 13px;
    font-weight: 600;
}

.home-chart-card .same_curr_style_this,
.home-chart-card .same_curr_style_last {
    color: var(--home-ink);
}

.home-main-promo {
    margin-top: 0;
}

.home-main-promo a,
.home-main-promo img {
    display: block;
    width: 100%;
}

.home-main-promo a {
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: var(--home-surface);
    box-shadow: 0 8px 24px rgba(31, 45, 71, .045);
    overflow: hidden;
}

.home-main-promo img {
    margin: 0 !important;
}

body.is-dark .home-dashboard-page {
    --home-ink: #f4f6fb;
    --home-muted: #aeb8cb;
    --home-border: #31394a;
    --home-surface: #202635;
    --home-soft: #242b3b;
}

body.is-dark .home-shortcut-modal {
    --home-ink: #f4f6fb;
    --home-muted: #aeb8cb;
    --home-border: #31394a;
    --home-surface: #202635;
    --home-soft: #242b3b;
}

body.is-dark .home-dashboard-page .page-content {
    background: transparent !important;
}

body.is-dark .home-overview-header {
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 92, 116, .14), transparent 30%),
        var(--home-surface);
}

body.is-dark .home-quick-action {
    background: #252c3c;
    color: #c4cbd9;
}

body.is-dark .home-quick-action-edit,
body.is-dark .home-shortcut-option,
body.is-dark .home-shortcut-order button {
    background: #252c3c;
}

body.is-dark .home-shortcut-selected-item {
    background: rgba(255, 92, 116, .07);
}

/* Dark mode contrast: keep dashboard data and headings legible on dark cards. */
body.is-dark .home-plan-card .meta > span:first-child,
body.is-dark .home-plan-card .store_plan > span:first-child,
body.is-dark .home-plan-card .store_plan .clang_html {
    color: #f4f6fb !important;
}

body.is-dark .home-plan-card .meta > span:last-child,
body.is-dark .home-plan-card .store_plan > span:last-child {
    color: #bdc6d7 !important;
}

body.is-dark .home-plan-card .field.has-addons > .button:first-child,
body.is-dark .home-plan-card .field.has-addons > .button:first-child span {
    color: #c8d0df !important;
}

body.is-dark .home-metric-card .tile-head h3,
body.is-dark .home-metric-card .tile-head h3 span,
body.is-dark .home-metric-card .tile-body > span:first-child,
body.is-dark .home-metric-card .tile-body > a:first-child {
    color: #c8d0df !important;
}

body.is-dark .home-metric-card .tile-body > span,
body.is-dark .home-metric-card .tile-body > a,
body.is-dark .home-chart-card .same_curr_style_this,
body.is-dark .home-chart-card .same_curr_style_last,
body.is-dark .home-chart-card .home-money-sign,
body.is-dark .home-chart-card .home-money-currency,
body.is-dark .home-chart-card .home-money-integer,
body.is-dark .home-chart-card .home-money-decimal {
    color: #eef2f8 !important;
}

body.is-dark .home-chart-card .line-stat > span:first-child,
body.is-dark .home-chart-card .home-chart-title,
body.is-dark .home-chart-card .home-chart-title span {
    color: #bdc6d7 !important;
}

body.is-dark .home-chart-card svg text,
body.is-dark .home-chart-card .ct-label {
    color: #aeb8cb !important;
    fill: #aeb8cb !important;
}

body.is-dark .home-chart-card .ct-grid {
    stroke: #414a5d !important;
}

body.is-dark .home-metric-card .total_get_pending_order_today {
    color: #ff7890 !important;
}

body.is-dark .home-metric-card .all_total_orders {
    color: #bfaaff !important;
}

body.is-dark .home-chart-card .line-stat span {
    color: #aeb8cb;
}

/*
 * Full-width mode adds columns without scaling dashboard cards.
 * The sidebar and summary cards keep a stable reading width; the extra
 * horizontal space is used by additional columns and side-by-side panels.
 */
@media screen and (min-width: 1200px) {
    html.dashboard-wide-layout .home-dashboard-grid {
        display: grid;
        grid-template-columns: 340px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        margin: 10px 0 0 !important;
    }

    html.dashboard-wide-layout .home-dashboard-grid > .column {
        width: auto;
        min-width: 0;
        padding: 0;
    }

    html.dashboard-wide-layout .home-sidebar-column {
        width: 340px;
        max-width: 340px;
    }

    html.dashboard-wide-layout .home-main-column > .columns {
        grid-template-columns: repeat(auto-fit, 260px);
        justify-content: start;
        align-items: start;
        max-width: 1364px;
    }

    html.dashboard-wide-layout .home-metric-column {
        width: 260px;
        max-width: 260px;
    }

    html.dashboard-wide-layout .home-wide-stat {
        display: block !important;
    }

    html.dashboard-wide-layout .home-plan-card,
    html.dashboard-wide-layout .home-metric-card {
        min-height: 158px;
        height: 158px;
        box-sizing: border-box;
    }

    html.dashboard-wide-layout .home-chart-column {
        grid-column: 1 / span 3;
        width: 812px;
        max-width: 812px;
    }

    html.dashboard-wide-layout .home-main-promo {
        grid-column: 1 / span 2;
        width: 536px;
        max-width: 536px;
    }
}

@media screen and (min-width: 1760px) {
    html.dashboard-wide-layout .home-main-column > .columns {
        grid-template-columns: repeat(5, 260px);
    }

    html.dashboard-wide-layout .home-chart-column {
        grid-column: 1 / span 3;
        grid-row: 2;
    }

    html.dashboard-wide-layout .home-main-promo {
        grid-column: 4 / span 2;
        grid-row: 2;
    }
}

@media screen and (max-width: 1100px) {
    .home-overview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-quick-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .home-quick-action-list {
        justify-content: flex-start;
    }

    .home-main-column > .columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-metric-sales {
        grid-column: auto;
    }
}

@media screen and (max-width: 768px) {
    .home-dashboard-page .page-content-inner {
        padding-top: 18px;
    }

    .home-overview-header {
        padding: 21px 18px;
        border-radius: 15px;
    }

    .home-overview-copy h1 {
        font-size: 24px;
    }

    .home-plan-card .meta > span:first-child,
    .home-plan-card .store_plan > span:first-child {
        font-size: 18px !important;
    }

    .home-quick-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-quick-action-list {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .home-quick-action {
        justify-content: flex-start;
        width: 100%;
    }

    .home-quick-action-wide-only,
    html.dashboard-wide-layout .home-quick-action-wide-only {
        display: none;
    }

    .home-quick-action-edit {
        flex-basis: auto;
        width: 100%;
        height: 42px;
        border-radius: 11px;
    }

    .home-quick-edit-label {
        display: inline;
        margin-left: 8px;
    }

    .home-shortcut-modal .modal-card {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .home-shortcut-modal .modal-card-head {
        padding: 19px 18px 16px;
    }

    .home-shortcut-modal .modal-card-head h2 {
        font-size: 19px;
    }

    .home-shortcut-modal .modal-card-body {
        padding: 14px;
    }

    .home-shortcut-selected-list,
    .home-shortcut-catalog {
        grid-template-columns: 1fr;
    }

    .home-shortcut-selected-placeholder {
        display: none;
    }

    .home-shortcut-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .home-shortcut-search {
        flex-basis: auto;
    }

    .home-shortcut-categories {
        width: 100%;
    }

    .home-shortcut-modal .modal-card-foot {
        padding: 14px;
    }

    .home-shortcut-modal .modal-card-foot .button {
        flex: 1 1 0;
        min-width: 0;
    }

    .home-dashboard-grid {
        margin-top: 8px !important;
    }

    .home-main-column > .columns {
        grid-template-columns: 1fr;
    }

    .home-chart-column,
    .home-main-promo {
        grid-column: auto;
    }

    .home-chart-card .tabs-inner {
        flex-wrap: wrap;
        gap: 0;
        padding-top: 15px;
    }

    .home-chart-card .home-chart-title {
        flex: 0 0 100%;
    }

    .home-chart-card .tabs {
        width: 100%;
    }

    .home-metric-card {
        min-height: 140px;
    }

    .home-chart-card .tabs-inner {
        padding: 0 12px;
    }

    .home-chart-card .stat-widget {
        padding: 18px !important;
    }

    .home-chart-card .line-stats {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}
