/* The mobile toolkit uses the same destination links as the desktop tool picker. */
#mobile-toolkit {display:none}

@media (max-width:1023px) {
    html, body {
        width:100%;
        height:auto !important;
        min-height:100% !important;
        max-height:none !important;
        overflow-x:clip !important;
        overflow-y:visible !important;
    }
    body {
        min-height:100svh !important;
        background-image:linear-gradient(180deg,rgba(3,15,27,.93),rgba(3,15,27,.82)),url('/images/discord-background.jpg');
        background-attachment:scroll;
        background-position:center top;
        background-size:cover;
    }
    body .back-home {
        position:relative !important;
        inset:auto !important;
        display:inline-flex;
        align-items:center;
        min-height:44px;
        margin:16px 16px 0;
        padding:10px 14px;
        font-size:15px;
        letter-spacing:.6px;
        border-radius:9px;
        background:#071c2b;
        z-index:1;
    }
    body .page {
        position:relative !important;
        display:flex !important;
        flex-direction:column;
        align-items:stretch;
        justify-content:flex-start;
        gap:22px;
        width:100% !important;
        min-height:0 !important;
        max-width:700px;
        margin:0 auto;
        padding:22px 16px calc(28px + env(safe-area-inset-bottom));
    }
    body .page > :not(.hero):not(.discord-about):not(#mobile-toolkit) {
        display:none !important;
    }
    body .page .hero {
        position:static !important;
        inset:auto !important;
        transform:none !important;
        order:0;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
    }
    body .page .hero h1 {
        font-size:20.7px !important;
        line-height:1.3 !important;
        letter-spacing:1px;
    }
    body .page .hero h1 span {
        display:block;
        font-size:40.5px !important;
        line-height:1.15;
        margin-top:4px;
        letter-spacing:.2px;
    }
    body .page .hero p {
        font-size:17.5px !important;
        line-height:1.65 !important;
        max-width:40ch;
        margin:10px 0 0;
        color:#bed1df !important;
    }
    body #mobile-toolkit {
        display:block;
        order:1;
        min-width:0;
        padding:18px;
        border:1px solid #235569;
        border-radius:15px;
        background:linear-gradient(145deg,#092636,#061a29);
        box-shadow:0 12px 32px #0003;
    }
    .mobile-toolkit-heading {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
    }
    #mobile-toolkit h2 {
        font-size:25.9px !important;
        line-height:1.25 !important;
        margin:0;
        letter-spacing:.1px;
    }
    .mobile-tool-count {
        flex-shrink:0;
        color:#87c8dd;
        font-size:14px;
        letter-spacing:.8px;
        padding:5px 7px;
        border:1px solid #29556a;
        border-radius:6px;
    }
    #mobile-toolkit > p {
        margin:8px 0 14px;
        color:#a9c2d3 !important;
        font-size:16.5px !important;
        line-height:1.5 !important;
    }
    #mobile-toolkit .mobile-server-link {
        display:flex;
        align-items:center;
        gap:10px;
        min-height:44px;
        padding:10px 12px;
        margin-bottom:16px;
        border:1px solid #246579;
        border-radius:9px;
        background:#0a3042;
        color:#9ae5f5;
        font-size:16px;
        font-weight:700;
        text-decoration:none;
        line-height:1.5;
    }
    .mobile-server-link > span:last-child {margin-left:auto}
    .mobile-tool-grid {
        display:grid;
        grid-template-columns:minmax(0,1fr);
        gap:9px;
    }
    #mobile-toolkit .mobile-tool-link {
        display:flex;
        align-items:center;
        gap:12px;
        width:100%;
        min-width:0;
        min-height:72px;
        padding:13px 12px;
        border:1px solid #285669;
        border-radius:11px;
        background:#082333;
        color:#f0f8fc;
        text-decoration:none;
        touch-action:manipulation;
        -webkit-tap-highlight-color:rgba(0,220,255,.12);
    }
    #mobile-toolkit .mobile-tool-link:hover,
    #mobile-toolkit .mobile-tool-link:active {
        background:#0e3548;
        border-color:#00c7e8;
    }
    .mobile-tool-icon {
        display:grid;
        place-items:center;
        flex:0 0 36px;
        width:36px;
        height:36px;
        border:1px solid #24576e;
        border-radius:9px;
        background:#0c3043;
        font-size:22.5px;
        color:#7cdeee;
    }
    .mobile-tool-copy {
        display:flex;
        flex-direction:column;
        gap:4px;
        min-width:0;
        flex:1;
    }
    #mobile-toolkit .mobile-tool-copy strong {
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        font-size:17.5px !important;
        line-height:1.35 !important;
        color:#f0f8fc;
        overflow-wrap:anywhere;
    }
    #mobile-toolkit .mobile-tool-copy small {
        font-size:16px !important;
        line-height:1.45 !important;
        color:#a5bfce !important;
        font-weight:400;
        overflow-wrap:anywhere;
    }
    .mobile-tool-arrow {
        color:#65d3e8;
        font-size:20.7px;
        flex-shrink:0;
    }
    body .page .discord-about {
        position:static !important;
        inset:auto !important;
        order:2;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:18px !important;
        border:1px solid #234859 !important;
        border-radius:14px !important;
        background:rgba(5,24,37,.93) !important;
        box-shadow:none !important;
        text-shadow:none;
    }
    body .page .discord-about h2 {
        font-size:22.5px !important;
        line-height:1.3 !important;
        letter-spacing:0;
    }
    body .page .discord-about-line {margin:12px 0 14px}
    body .page .discord-about-intro {
        font-size:16.5px !important;
        line-height:1.65 !important;
        margin:0 0 18px;
        color:#b6ccda !important;
    }
    body .page .discord-features {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:16px 12px;
    }
    body .page .discord-feature {gap:8px;min-width:0}
    body .page .discord-feature-icon {
        width:22px;
        font-size:23.6px;
        text-shadow:none;
    }
    body .page .discord-feature h3 {
        font-size:16px !important;
        line-height:1.5 !important;
        margin:0;
    }
    body .page .discord-feature p {display:none}
    body #dts-special-tools-launcher,
    body > .dts-category-dashboard,
    body .dts-mobile-stack,
    body #dts-discord-spinner {display:none !important}
    #mobile-toolkit a:focus-visible,
    body .back-home:focus-visible {
        outline:2px solid #00d9ff;
        outline-offset:3px;
    }
}
@media (min-width:600px) and (max-width:1023px) {
    .mobile-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    body .back-home {margin-left:max(16px,calc((100vw - 668px)/2))}
}
@media (max-width:350px) {
    body .page {padding-left:12px;padding-right:12px}
    body #mobile-toolkit {padding:14px}
    #mobile-toolkit h2 {font-size:23.6px !important}
    #mobile-toolkit .mobile-tool-link {gap:9px;padding:12px 10px}
    .mobile-tool-icon {width:30px;height:32px;flex-basis:30px;font-size:20.7px}
}
