/* The public homepage shares market data and trading behavior with the market terminal. */
body.tm-home-terminal .tm-market-stage { padding-bottom: 0; }
body.tm-home-terminal .tm-market-shell { padding: 0 15px; }
body.tm-home-terminal .tm-market-desktop-top { height: 48px; gap: 8px; }
body.tm-home-terminal .tm-market-desktop-logo {
    width: 62px; height: 31px; flex-basis: 62px; background: #111;
}
body.tm-home-terminal .tm-market-desktop-logo img { width: 62px; height: 31px; object-fit: contain; }
body.tm-home-terminal .tm-market-top-action,
body.tm-home-terminal .tm-market-periods button { padding: 4px 6px; }
body.tm-home-terminal .tm-home-chart-tools { display: flex; align-items: center; height: 30px; color: #647080; }
body.tm-home-terminal .tm-home-chart-tools span {
    display: grid; place-items: center; min-width: 34px; height: 30px;
    border-left: 1px solid #edf0f4; font-size: 17px;
}
body.tm-home-terminal .tm-home-chart-tools #tm-home-indicator {
    min-width: 48px; font-size: 12px; color: #171b24;
}
body.tm-home-terminal .tm-home-chart-tools svg { width: 16px; height: 16px; fill: #718092; }
body.tm-home-terminal .tm-home-auth {
    padding: 0 14px; color: #151a23; text-decoration: none; font-size: 12px;
    border-right: 1px solid #e8ebf1;
}
body.tm-home-terminal .tm-market-layout {
    grid-template-columns: 30px 285px minmax(0, 1fr) 260px;
    gap: 7px; height: 600px; min-height: 0; margin-top: 0;
}
body.tm-home-terminal .tm-home-drawing-tools {
    display: flex; flex-direction: column; align-items: center; gap: 0;
    padding-top: 5px; color: #7b8b9f; border-right: 1px solid #eef1f5;
}
body.tm-home-terminal .tm-home-drawing-tools span {
    display: grid; place-items: center; width: 30px; height: 34px; font-size: 20px;
}
body.tm-home-terminal .tm-home-drawing-tools svg { width: 21px; height: 21px; fill: #8290a4; }
body.tm-home-terminal .tm-market-main { border-radius: 0; }
body.tm-home-terminal .tm-market-table-row {
    grid-template-columns: minmax(0, 1fr) 73px 64px;
    gap: 4px; padding: 2px 8px;
}
body.tm-home-terminal .tm-market-sparkline { display: none; }
body.tm-home-terminal .tm-market-table-row.is-selected { background: #d6d7d9; }
body.tm-home-terminal .tm-market-icon-wrap .tm-market-original-icon {
    width: 37px; height: 37px; top: 0; left: 0; bottom: auto; object-fit: contain;
}
body.tm-home-terminal .tm-market-chart-panel { padding: 5px 9px; border-radius: 5px; }
body.tm-home-terminal .tm-market-account { height: 66px; gap: 2px; }
body.tm-home-terminal .tm-market-account small { display: none; }
body.tm-home-terminal .tm-market-account strong { font-size: 18px; }
body.tm-home-terminal .tm-market-order-side { gap: 6px; }
body.tm-home-terminal .tm-market-order-form { padding: 13px 15px; gap: 5px; }
body.tm-home-terminal .tm-market-stage { padding-bottom: 20px; }
@media (min-width: 701px) and (max-width: 1100px) {
    body.tm-home-terminal .tm-market-layout {
        grid-template-columns: 28px 230px minmax(0, 1fr) 225px; gap: 4px;
    }
    body.tm-home-terminal .tm-home-chart-tools span { min-width: 25px; }
}
@media (max-width: 700px) {
    body.tm-home-terminal .tm-market-stage {
        padding: 0 0 calc(77px + env(safe-area-inset-bottom));
        background: #effaff !important;
    }
    body.tm-home-terminal .tm-market-shell { max-width: 460px; padding: 0 15px; }
    body.tm-home-terminal .tm-market-logo { overflow: hidden; }
    body.tm-home-terminal .tm-market-logo img { width: 94px; height: 47px; object-fit: fill; }
    body.tm-home-terminal .tm-home-drawing-tools { display: none; }
    body.tm-home-terminal .tm-market-mobile-toolbar .tm-market-main-tabs {
        display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px; padding: 5px 15px;
    }
    body.tm-home-terminal .tm-market-main-tab {
        display: grid; place-items: center; min-width: 0; padding: 3px 4px;
        line-height: 15px; text-align: center; white-space: normal;
    }
    body.tm-home-terminal .tm-market-layout { display: block; height: auto; }
    body.tm-home-terminal .tm-market-main { border: 0; }
    body.tm-home-terminal .tm-market-mobile-toolbar { margin-bottom: 8px; }
    body.tm-home-terminal .tm-market-table-row {
        grid-template-columns: minmax(125px, 1.35fr) minmax(68px, .85fr) minmax(80px, .9fr);
        min-height: 66px; height: 66px; margin-bottom: 9px;
        border-radius: 16px; box-shadow: 0 2px 10px #cbd6e023;
    }
    body.tm-home-terminal .tm-market-sparkline { display: block; }
    body.tm-home-terminal .tm-market-icon-wrap .tm-market-original-icon {
        width: 44px; height: 43px;
    }
    body.tm-home-terminal .tm-market-table-row.is-selected { background: #fff; }
}
@media (max-width: 380px) {
    body.tm-home-terminal .tm-market-shell { padding: 0 10px; }
    body.tm-home-terminal .tm-market-main-tab { padding: 0 7px; font-size: 13px; }
    body.tm-home-terminal .tm-market-table-row {
        grid-template-columns: minmax(112px, 1.2fr) minmax(65px, .8fr) minmax(65px, .8fr);
        padding: 0 7px;
    }
}
