#mobile-app {
    display: none
}

.mob-sheet {
    position: fixed;
    inset: 0;
    z-index: 180;
    pointer-events: none;
    visibility: hidden;
    display: block
}

.mob-sheet.open {
    pointer-events: auto;
    visibility: visible
}
@media (max-width: 768px) {
    body {
        overflow: hidden;
        height: 100dvh;
        -webkit-tap-highlight-color: transparent
    }

    #workspace {
        display: none !important
    }

    #mobile-app {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        background: #1a1a1a
    }

    .boot-box {
        width: min(400px, 90vw)
    }

    .mob-header {
        flex-shrink: 0;
        padding: 14px 16px 10px;
        padding-top: max(14px, env(safe-area-inset-top));
        background: #222;
        border-bottom: 1px solid #111
    }

    .mob-logo {
        font-size: 15px;
        font-weight: 700;
        color: #FF6B00;
        letter-spacing: .12em
    }

    .mob-logo span {
        color: #ccc;
        font-weight: 500
    }

    .mob-header-sub {
        font-size: 10px;
        color: #666;
        margin-top: 2px;
        letter-spacing: .04em
    }

    .mob-main {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain
    }

    .mob-panel {
        display: none;
        padding: 12px 14px 20px;
        animation: mobFadeIn .25s ease
    }

    .mob-panel.active {
        display: block
    }

    @keyframes mobFadeIn {
        from { opacity: 0; transform: translateY(6px) }
        to { opacity: 1; transform: translateY(0) }
    }

    .mob-search {
        width: 100%;
        background: #111;
        border: 1px solid #333;
        padding: 10px 12px;
        color: #ccc;
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px;
        border-radius: 4px;
        outline: none;
        margin-bottom: 14px
    }

    .mob-search:focus {
        border-color: #44aaff
    }

    .mob-section-label {
        font-size: 10px;
        color: #666;
        letter-spacing: .1em;
        margin-bottom: 10px
    }

    .mob-cards {
        display: flex;
        flex-direction: column;
        gap: 12px
    }

    .mob-card {
        background: #222;
        border: 1px solid #333;
        border-radius: 6px;
        overflow: hidden;
        cursor: pointer;
        transition: border-color .2s, transform .15s
    }

    .mob-card:active {
        transform: scale(0.98);
        border-color: #44aaff
    }

    .mob-card-cover {
        width: 100%;
        aspect-ratio: 16/10;
        background: #111;
        overflow: hidden;
        position: relative
    }

    .mob-card-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

    .mob-card-photos {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, .75);
        border: 1px solid #444;
        padding: 3px 8px;
        font-size: 9px;
        color: #aaa;
        border-radius: 3px;
        display: flex;
        align-items: center;
        gap: 4px
    }

    .mob-card-body {
        padding: 12px 14px 14px
    }

    .mob-card-accent {
        width: 28px;
        height: 3px;
        border-radius: 2px;
        margin-bottom: 8px
    }

    .mob-card-title {
        font-size: 14px;
        font-weight: 600;
        color: #eee;
        margin-bottom: 2px
    }

    .mob-card-sub {
        font-size: 11px;
        color: #888;
        margin-bottom: 8px
    }

    .mob-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center
    }

    .mob-badge {
        font-size: 9px;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 3px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid #333
    }

    .mob-tag {
        font-size: 9px;
        padding: 2px 7px;
        background: #2a2a2a;
        border: 1px solid #444;
        color: #999;
        border-radius: 2px
    }

    .mob-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none
    }

    .mob-chips::-webkit-scrollbar {
        display: none
    }

    .mob-chip {
        flex-shrink: 0;
        padding: 8px 14px;
        background: #222;
        border: 1px solid #333;
        border-radius: 20px;
        font-size: 11px;
        color: #888;
        cursor: pointer;
        transition: all .15s;
        display: flex;
        align-items: center;
        gap: 6px
    }

    .mob-chip.active {
        border-color: #FF6B00;
        color: #FF6B00;
        background: rgba(255, 107, 0, .08)
    }

    .mob-art-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px
    }

    .mob-art-item {
        aspect-ratio: 1;
        border: 1px solid #333;
        border-radius: 4px;
        overflow: hidden;
        background: #111;
        cursor: pointer;
        transition: border-color .15s, transform .15s
    }

    .mob-art-item:active {
        transform: scale(0.97);
        border-color: #44aaff
    }

    .mob-art-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

    .mob-empty {
        text-align: center;
        padding: 32px 16px;
        color: #555;
        font-size: 11px;
        border: 1px dashed #333;
        border-radius: 6px;
        grid-column: 1 / -1
    }

    .mob-svc {
        background: #222;
        border: 1px solid #333;
        border-radius: 6px;
        padding: 14px;
        margin-bottom: 10px
    }

    .mob-svc-name {
        font-size: 13px;
        font-weight: 600;
        color: #eee;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px
    }

    .mob-svc-status {
        font-size: 10px;
        color: #4ec94e;
        margin-bottom: 10px
    }

    .mob-svc-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px
    }

    .mob-svc-tag {
        font-size: 9px;
        padding: 4px 8px;
        background: #1a1a1a;
        border: 1px solid #333;
        color: #aaa;
        border-radius: 3px;
        display: flex;
        align-items: center;
        gap: 4px
    }

    .mob-contact-intro {
        font-size: 11px;
        color: #888;
        line-height: 1.6;
        margin-bottom: 16px
    }

    .mob-nav {
        flex-shrink: 0;
        display: flex;
        background: #222;
        border-top: 1px solid #111;
        padding-bottom: env(safe-area-inset-bottom)
    }

    .mob-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 10px 4px 8px;
        background: none;
        border: none;
        color: #666;
        font-family: 'JetBrains Mono', monospace;
        font-size: 9px;
        cursor: pointer;
        transition: color .15s;
        letter-spacing: .02em
    }

    .mob-nav-btn.active {
        color: #FF6B00
    }

    .mob-nav-btn:active {
        color: #ccc
    }


.mob-header-logo {
    height: 28px;
    width: auto;
}
#boot-screen .boot-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.boot-logo {
    width: 100%;
    text-align: center;
    order: -1;
}

.boot-logo-img {
    height: 48px;
}

    .mob-sheet.open {
        pointer-events: auto;
        visibility: visible
    }

    .mob-sheet-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .6);
        opacity: 0;
        transition: opacity .3s ease
    }

    .mob-sheet.open .mob-sheet-backdrop {
        opacity: 1
    }

    .mob-sheet-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 92dvh;
        background: #1e1e1e;
        border-top: 1px solid #333;
        border-radius: 14px 14px 0 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(100%);
        transition: transform .35s cubic-bezier(.32, .72, 0, 1);
        padding-bottom: env(safe-area-inset-bottom)
    }

    .mob-sheet.open .mob-sheet-panel {
        transform: translateY(0)
    }

    .mob-sheet-handle {
        width: 36px;
        height: 4px;
        background: #444;
        border-radius: 2px;
        margin: 10px auto 0
    }

    .mob-sheet-hero {
        width: 100%;
        aspect-ratio: 16/10;
        object-fit: cover;
        display: block;
        background: #111
    }

    .mob-sheet-content {
        padding: 16px 16px 24px
    }

    .mob-sheet-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, .7);
        border: 1px solid #444;
        border-radius: 50%;
        color: #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5
    }

    .mob-sheet-title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 4px
    }

    .mob-sheet-sub {
        font-size: 12px;
        color: #888;
        margin-bottom: 12px
    }

    .mob-sheet-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px
    }

    .mob-sheet-field {
        margin-bottom: 12px
    }

    .mob-sheet-label {
        font-size: 9px;
        color: #666;
        letter-spacing: .08em;
        margin-bottom: 4px
    }

    .mob-sheet-val {
        font-size: 12px;
        color: #ccc;
        line-height: 1.6
    }

    .mob-sheet-desc {
        font-size: 12px;
        color: #aaa;
        line-height: 1.7
    }

    .mob-sheet-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 14px
    }

    .mob-sheet-shots {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 16px
    }

    .mob-sheet-shots img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        border: 1px solid #333;
        border-radius: 3px;
        cursor: pointer
    }

    .mob-sheet-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px;
        background: #FF6B00;
        color: #111;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: .04em;
        border: none;
        border-radius: 6px;
        text-decoration: none;
        cursor: pointer;
        transition: background .15s
    }

    .mob-sheet-btn:active {
        background: #e55f00
    }

    /* Gallery mobile tweaks */
    .gallery-overlay.open {
        padding: 0
    }

    .gallery-box {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        border-radius: 0;
        border: none
    }

    .gallery-main {
        min-height: 200px
    }

    .gallery-nav {
        width: 44px;
        height: 44px
    }

    .gallery-prev { left: 6px }
    .gallery-next { right: 6px }

    .wiz-wrap {
        max-width: 100%;
        padding: 0 4px
    }

    .radio-u {
        padding: 12px 14px;
        font-size: 12px
    }

    .wiz-input {
        font-size: 13px;
        padding: 12px
    }

    .btn-build {
        padding: 12px 20px;
        font-size: 12px
    }
}

@media (min-width: 769px) {
    #mobile-app {
    display: none
}

.mob-sheet {
    position: fixed;
    inset: 0;
    z-index: 180;
    pointer-events: none;
    visibility: hidden;
    display: block
}

.mob-sheet.open {
    pointer-events: auto;
    visibility: visible
}
}
