@import url(https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap);
:root {
    --main-bg-color: #0a0f1d;
    --stream-bg-color: #000000;
    --shell-bg-color: #000000;
    --text-shadow-color: rgba(0, 0, 0, 0.5);
    --header-bg-color: rgba(15, 23, 42, 0.85);
    --controls-bg-color: hsla(201, 18%, 19%, 0.8);
    --control-buttons-bg-color: #1e293b;
    --text-color: #f8fafc;
    --text-color-light: #94a3b8;
    --link-color: #00C6FF;
    --link-color-light: #00C6FF;
    --link-color_visited: #00C6FF;
    --link-color_visited-light: #00C6FF;
    --svg-checkbox-bg-color: #00C6FF;
    --svg-button-fill: #f8fafc;
    --kill-button-hover-color: #ef4444;
    --url-color: #94a3b8;
    --button-text-color: #00C6FF;
    --button-border-color: rgba(255, 255, 255, 0.1);
    --progress-background-color: hsla(225, 100%, 50%, 0.2);
    --progress-background-error-color: hsla(0, 100%, 50%, 0.2);
    --font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --main-bg-color: #0a0f1d;
        --stream-bg-color: #000000;
        --shell-bg-color: #000000;
        --text-shadow-color: rgba(0, 0, 0, 0.5);
        --header-bg-color: rgba(15, 23, 42, 0.85);
        --controls-bg-color: hsla(201, 18%, 19%, 0.8);
        --control-buttons-bg-color: #1e293b;
        --text-color: #f8fafc;
        --text-color-light: #94a3b8;
        --link-color: #00C6FF;
        --link-color-light: #00C6FF;
        --link-color_visited: #00C6FF;
        --link-color_visited-light: #0072FF;
        --svg-checkbox-bg-color: #00C6FF;
        --svg-button-fill: #f8fafc;
        --kill-button-hover-color: #ef4444;
        --url-color: #94a3b8;
        --device-list-stripe-color: transparent;
        --device-list-default-color: transparent;
        --button-text-color: #00C6FF;
        --button-border-color: rgba(255, 255, 255, 0.1);
        --progress-background-color: hsla(225, 100%, 50%, 0.2);
        --progress-background-error-color: hsla(0, 100%, 50%, 0.2);
    }
}

html {
    font-size: var(--font-size);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: var(--link-color_visited);
}

body {
    color: var(--text-color);
    background-color: var(--main-bg-color);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: absolute;
    margin: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}


body.shell {
    background-color: var(--shell-bg-color);
}

body.stream {
    background-color: var(--stream-bg-color);
}

.terminal-container {
    width: 100%;
    height: 100%;
    padding: 5px;
}

:focus {
    outline: none;
}

.flex-center {
    display: flex;
    align-items: center;
}

.wait {
    cursor: wait;
}

.device-view {
    z-index: 1;
    float: right;
    display: inline-block;
}

.video-layer {
    position: absolute;
    z-index: 0;
}

.touch-layer {
    position: absolute;
    z-index: 1;
}

.video {
    float: right;
    max-height: 100%;
    max-width: 100%;
    background-color: #000000;
}


.control-buttons-list {
    float: right;
    width: 3.715rem;
    background-color: var(--control-buttons-bg-color);
}

.control-button {
    margin: .357rem .786rem;
    padding: 0;
    width: 2.143rem;
    height: 2.143rem;
    border: none;
    opacity: 0.75;
    background-color: var(--control-buttons-bg-color);
}

.control-button:hover {
    opacity: 1;
}

.control-wrapper>input[type=checkbox] {
    display: none;
}

.control-wrapper>label {
    display: inline-block;
}

.control-button>svg {
    fill: var(--svg-button-fill);
}

.control-wrapper>input[type=checkbox].two-images:checked+label>svg.image-on {
    display: block;
}

.control-wrapper>input[type=checkbox].two-images:not(:checked)+label>svg.image-on {
    display: none;
}

.control-wrapper>input[type=checkbox].two-images:checked+label>svg.image-off {
    display: none;
}

.control-wrapper>input[type=checkbox].two-images:not(:checked)+label>svg.image-off {
    display: block;
}

.control-wrapper>input[type=checkbox]:checked+label>svg {
    fill: var(--svg-checkbox-bg-color);
}

input,
button,
textarea,
select {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--button-border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: inherit;
    transition: all 0.2s;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

button.active,
button.action-button.active {
    background-color: transparent;
    border-radius: 4px;
    color: var(--grey-4);
}

/* Elegant Toast Notifications */
.minirom-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -20px);
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.15);
    padding: 14px 20px;
    border-radius: 8px;
    color: #f8fafc;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: 450px;
    width: max-content;
}

.minirom-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.minirom-toast .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    margin-right: 12px;
}

.minirom-toast .toast-text {
    line-height: 1.5;
    word-break: break-word;
}

button.active:hover,
button.action-button.active:hover {
    background-color: rgba(0, 198, 255, 0.2);
}
:root {
    --primary-blue: #0066FF;
    --primary-gradient: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --bg-base: #030B17;
    --bg-surface: rgba(14, 25, 45, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-pure: #ffffff;
    --text-muted: #94A3B8;
    --text-dark: #cbd5e1;
    --glow-color: rgba(0, 114, 255, 0.3);
}

body.home-active {
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-pure);
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.home-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 增强 Navbar */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(3, 11, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-badge {
    background: var(--primary-gradient);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--text-pure);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-ghost:hover {
    color: var(--text-pure);
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px var(--glow-color);
}

/* 核心大视觉英雄区 */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5% 8rem 5%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

.hero-chip {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    color: #38bdf8;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-main-btn {
    background: var(--text-pure);
    color: var(--bg-base);
    font-family: inherit;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-main-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-pure);
    border: 1px solid var(--border-subtle);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mockup透视矩阵 */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.glow-bg {
    position: absolute;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.device-mockup {
    background-color: #0f172a;
    border-radius: 36px;
    border: 8px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: absolute;
    z-index: 3;
    background-image: linear-gradient(145deg, #1e293b, #030B17);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.main-device {
    width: 260px;
    height: 540px;
    z-index: 4;
    transform: rotateY(-15deg) rotateX(10deg);
}

.main-device::after {
    content: "APP MATRIX";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #38bdf8;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.hero-visual:hover .main-device {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
}

.side-device {
    width: 220px;
    height: 460px;
    opacity: 0.6;
    filter: blur(1px);
}

.left-device {
    left: 10%;
    transform: translateZ(-100px) rotateY(15deg) translateY(20px);
}

.right-device {
    right: 10%;
    transform: translateZ(-150px) rotateY(-25deg) translateY(-30px);
}

/* 断电版块通用标题 */
.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* 核心功能卡片网格 */
.features-section {
    padding: 6rem 5%;
    position: relative;
    background-color: var(--bg-base);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
}

.f-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-pure);
}

.f-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* 核心底层技术透视 */
.tech-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.tech-text {
    flex: 1;
}

.tech-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-lead {
    font-size: 1.25rem;
    color: #38bdf8;
    margin-bottom: 3rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-list li strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-pure);
}

.tech-list li span {
    color: var(--text-muted);
    line-height: 1.6;
}

.tech-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.abstract-server {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.server-node {
    height: 80px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.server-node.active::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(56, 189, 248, 0.2), transparent);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    100% {
        left: 200%;
    }
}

/* 用户评价横向排版 */
.reviews-section {
    padding: 6rem 0;
    background-color: var(--bg-base);
    text-align: center;
    overflow: hidden;
}

.reviews-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.reviews-scroller {
    width: 100%;
    max-width: 100vw;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    padding: 0 5%;
    /* 简单实现横向溢出滑动 */
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 2rem;
}

.reviews-track::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.review-card {
    min-width: 350px;
    max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.r-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.r-info {
    display: flex;
    flex-direction: column;
}

.r-info strong {
    font-size: 1.1rem;
}

.r-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 巨幅 CTA */
.cta-banner {
    padding: 6rem 5%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>'), var(--primary-color, #0b66c6);
    background: var(--primary-gradient);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.btn-gradient-large {
    background: var(--text-pure);
    color: #0072FF;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient-large:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 大型底部导航 */
.complex-footer {
    background-color: #020813;
    padding: 5rem 5% 2rem 5%;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 5rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-pure);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
}

/* 媒体查询 */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .tech-container {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* Mobile Menu needed for production */
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
.text-area {
    width: 100%;
    resize: vertical;
}

.more-box {
    display: none;
    position: absolute;
    background-color: var(--controls-bg-color);
    z-index: 2;
    padding: 0 .714rem .714rem .714rem;
}

.text-with-shadow, .more-box label {
    color: var(--text-color);
    text-shadow: var(--text-shadow-color) 0 0 .357rem;
}

.spoiler > input ~ .box {
    display: none;
}

.spoiler > input:checked ~ .box {
    display: block;
}

.spoiler > label::before {
    content: '►';
    margin-right: 5px;
}

.spoiler > input:checked ~ label::before {
    content: '▼';
}

.spoiler > input:checked ~ div {
    display: block;
    padding: 10px;
}

.spoiler > input {
    display: none;
}

:root {
    --block-top-padding: 0.5rem;
    --block-bottom-padding: 0.5rem;
    --button-top-padding: 0.2rem;
    --button-bottom-padding: 0.2rem;
    --header-height: 3rem;
    --footer-height: 1.55rem;
}

.dialog-background {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 3;
}

.dialog-container {
    font-family: monospace;
    width: 75%;
    max-width: 30rem;
    min-width: 20rem;
    background-color: var(--main-bg-color);
    /*border-radius: 0.3rem;*/
    overflow: hidden;
}

.dialog-container.ready {
    height: 100%;
    min-height: 100%;
}

.dialog-container button, .dialog-container select, .dialog-container input {
    font-family: monospace;
}

.dialog-container button {
    font-size: var(--font-size);
}

.dialog-container select {
    text-overflow: ellipsis;
}

.dialog-block {
}

.dialog-header {
    background-color: var(--header-bg-color);
    height: var(--header-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    width: auto;
    position: initial;
}

.dialog-header span.dialog-title {
    display: inline-block;
    padding: 0 0.5rem;
}

.dialog-body {
    padding: var(--block-top-padding) 0.5rem var(--block-bottom-padding);
    background-color: var(--control-buttons-bg-color);
    overflow: auto;
}

.dialog-body.hidden {
    height: 0;
    padding: 0;
}

.dialog-body.visible {
    height: calc(
            100%
            - 2 * var(--block-top-padding)
            - 2 * var(--block-bottom-padding)
            - var(--header-height)
            - var(--footer-height)
    );
}

.dialog-footer {
    /*display: flex;*/
    /*flex-direction: row-reverse;*/
    padding: var(--block-top-padding) 0.5rem var(--block-bottom-padding);
    background-color: var(--stream-bg-color);
    height: var(--footer-height);
    overflow: hidden;
}

.dialog-footer span.subtitle {
    font-weight: lighter;
    line-height: var(--footer-height);
    float: left;
}

.dialog-footer button {
    padding: var(--button-top-padding) 0.5rem var(--button-bottom-padding);
    margin: 0 0 0 0.5rem;
    border-radius: 0.3rem;
    /*background-color: var(--main-bg-color);*/
    color: var(--button-text-color);
    border: 1px solid var(--button-border-color);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    height: var(--footer-height);
    float: right;
}

.dialog-footer button:disabled {
    cursor: not-allowed;
    color: var(--text-color-light);
}

.controls .label {
    grid-column: labels;
}

.controls .input {
    grid-column: controls;
    box-sizing: border-box;
    margin: 0;
    /*height: 2.75ex;*/
}

.controls .button {
    grid-column: controls;
}

.controls {
    display: grid;
    grid-template-columns: [labels] 35% [controls] 65%;
    padding: 1rem;
    grid-gap: 0.2rem;
    align-items: center;
}

:root {
    --device-border-color: rgba(255, 255, 255, 0.1);
    --device-list-stripe-color: transparent;
    --device-list-default-color: rgba(15, 23, 42, 0.4);
    --device-list-hover-color: rgba(30, 41, 59, 0.6);
}

@media (prefers-color-scheme: dark) {
    :root {
        --device-border-color: rgba(255, 255, 255, 0.1);
        --device-list-stripe-color: transparent;
        --device-list-default-color: rgba(15, 23, 42, 0.4);
        --device-list-hover-color: rgba(30, 41, 59, 0.6);
    }
}


body.list {
    height: auto;
    width: auto;
    overflow: auto;
}

#devices {
    padding: 20px 0;
    width: 100%;
    height: calc(100% - 40px);
    overflow-y: auto;
}

body.stream #devices {
    background-color: var(--device-list-default-color);
    opacity: .8;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

body.list #device_list_menu {
    display: none;
}

#device_list_menu {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
}

#devices .device-list button {
    font-size: var(--font-size);
    color: var(--button-text-color);
}

#devices .device-list div.device {
    background-color: var(--device-list-default-color);
    border: 1px solid var(--device-border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

#devices .device-header {
    padding: 6px 0 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

#devices .device-header div {
    display: inline-flex;
    align-items: center;
}

#devices .device-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
}

#devices .device-model {
    font-size: 1.1rem;
}

#devices .device-serial {
    color: var(--url-color);
    font-size: 80%;
    margin-left: 6px;
}

#devices .device-version {
    font-size: 100%;
    margin-left: 6px;
    align-items: baseline;
}

#devices .device-version .sdk-version {
    font-size: 75%;
    color: var(--url-color);
    margin-left: 0.2em;
}

#devices .device-state {
    border-radius: 25px;
    background-color: #ef4444;
    font-size: 80%;
    margin: 0 10px;
    width: 1em;
    height: 1em;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

#devices .device.active .device-state {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

#devices .device-header .action-button {
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

#devices .device-header .action-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

#devices .device-list {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
}

#devices .device-list {
    border-spacing: 0;
    border-collapse: collapse;
    font-family: inherit;
    /* Remove monospace */
    font-size: 0.95rem;
}

#devices .device-list div.device {
    padding: 12px 20px;
}

#devices .device-list div.device:hover {
    background-color: var(--device-list-hover-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#devices .device-list div.device select {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    outline: none;
}

#devices .device-list div.device:hover select {
    background-color: rgba(255, 255, 255, 0.1);
}

#devices .device-list div.desc-block {
    margin: .3em;
    display: inline-flex;
}

#devices .device-list div.desc-block.hidden {
    display: none;
}

#devices .device-list div.desc-block.stream,
#devices .device-list div.desc-block.server_pid,
#devices .device-list div.desc-block.net_interface {
    border: 1px solid var(--device-border-color);
    border-radius: .3em;
    overflow: hidden;
    white-space: nowrap;
}

#devices .device-list div.device div.desc-block.stream button.action-button {
    color: var(--button-text-color);
}

#devices .device-list div.desc-block button {
    fill: var(--text-color)
}

#devices .device-list div.desc-block button>span {
    padding: 0 .5em;
}

#devices .device-list div.desc-block button>span,
#devices .device-list div.desc-block button>svg {
    vertical-align: middle;
}

#devices .device-list div.desc-block button>svg {
    width: var(--font-size);
    height: var(--font-size);
}

#devices .device-list div.desc-block button>svg>path {
    fill: var(--text-color);
}

#devices .device-list .device.not-active div.desc-block button>svg>path {
    fill: var(--text-color-light);
}

#devices .device-list .device.not-active select {
    color: var(--text-color-light);
}

#devices .device-list .device.not-active {
    color: var(--text-color-light);
}

#devices .device-list .device.not-active a {
    color: var(--link-color-light);
}

#devices .device-list .device.not-active a:visited {
    color: var(--link-color_visited-light);
}

#devices .device-list div.device div.desc-block .action-button {
    border: none;
    background-color: rgba(0, 0, 0, 0);
    color: inherit;
}

#devices .device-list div.device div.desc-block .action-button.update-interfaces-button {
    margin-right: 0;
}

#devices .device-list div.device div.desc-block .action-button.active {
    cursor: pointer;
}

#devices .device-list .device.active div.desc-block .action-button:hover {
    color: var(--kill-button-hover-color);
}

#devices .device-list .device.active div.desc-block button.action-button:hover>svg>path {
    fill: var(--kill-button-hover-color);
}

#devices .tracker-name {
    padding: 5px 20px 5px;
    font-size: larger;
    font-weight: bolder;
}

#devices .device-list div.device .services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

#devices .device-list div.device .services .desc-block {
    margin: 0;
}

#devices .device-list div.device .services .desc-block:not(.unified-stream-btn) a {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00c6ff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#devices .device-list div.device .services .desc-block:not(.unified-stream-btn) a:hover {
    background-color: rgba(0, 198, 255, 0.1);
    color: #fff;
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.2);
}

#devices .device-list .unified-stream-btn {
    margin-left: auto;
    border: none;
}

#devices .device-list .unified-stream-btn a {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 198, 255, 0.2);
}

#devices .device-list .unified-stream-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.4);
}

.adb-connect-form {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--device-border-color);
    background-color: var(--device-list-default-color);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--device-border-color);
}

.adb-connect-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: #f8fafc;
    border-radius: 8px;
    resize: vertical;
    font-family: monospace;
    font-size: 0.9em;
}

.adb-connect-form textarea:focus {
    outline: none;
    border-color: #00C6FF;
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.2);
}

.adb-connect-form .adb-connect-actions {
    display: flex;
    gap: 12px;
    align-self: flex-end;
}

.device {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    gap: 16px;
    transition: all 0.2s ease;
}

.device-selection {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.device-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.adb-connect-form button {
    padding: 5px 15px;
    cursor: pointer;
    border: 1px solid var(--device-border-color);
    border-radius: 4px;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
}

.adb-connect-form button:hover {
    background-color: var(--device-list-hover-color);
}
:root {
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --sidebar-bg: rgba(15, 23, 42, 0.75);
    --sidebar-text: #e2e8f0;
    --sidebar-hover: rgba(51, 65, 85, 0.6);
    --active-accent: #00C6FF;
    --border-color: rgba(255, 255, 255, 0.08);
    --bg-primary: #0a0f1d;
    --bg-secondary: #0f172a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --sidebar-bg: rgba(15, 23, 42, 0.75);
        --sidebar-text: #e2e8f0;
        --sidebar-hover: rgba(51, 65, 85, 0.6);
    }
}

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    transition: width 0.3s ease;
    z-index: 10;
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.nav-item i {
    font-style: normal;
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-devices::before {
    content: "📱";
}

.icon-files::before {
    content: "📂";
}

.icon-scrcpy::before {
    content: "📺";
}

.icon-shell::before {
    content: "💻";
}

.icon-install::before {
    content: "➕";
}

.icon-log::before {
    content: "📝";
}

.icon-settings::before {
    content: "⚙️";
}

.nav-separator {
    height: 1px;
    background: var(--button-border-color);
    margin: 10px 20px;
    opacity: 0.5;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
}

.nav-item.active {
    background-color: var(--sidebar-hover);
    border-left: 4px solid var(--active-accent);
    box-shadow: inset 40px 0 40px -40px rgba(0, 198, 255, 0.3);
    padding-left: 16px;
    color: #fff;
    font-weight: 500;
}

.nav-icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--main-bg-color);
}

.top-bar {
    height: var(--topbar-height);
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-primary);
}

.multi-stream-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 16px;
    height: 100%;
}

.stream-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stream-wrapper .device-view {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
}

.no-device-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 18px;
    margin-bottom: 24px;
}

.no-device-placeholder .action-button {
    padding: 10px 24px;
}

.lang-toggle {
    display: flex;
    background: var(--sidebar-hover);
    border-radius: 20px;
    padding: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.lang-option {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
}

.lang-option.active {
    background: var(--active-accent);
    color: white;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .nav-text {
        display: none;
    }

    .sidebar-header span {
        display: none;
    }
}
/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */

/**
 *  Default styles for xterm.js
 */

.xterm {
    cursor: text;
    position: relative;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
}

.xterm.focus,
.xterm:focus {
    outline: none;
}

.xterm .xterm-helpers {
    position: absolute;
    top: 0;
    /**
     * The z-index of the helpers must be higher than the canvases in order for
     * IMEs to appear on top.
     */
    z-index: 5;
}

.xterm .xterm-helper-textarea {
    padding: 0;
    border: 0;
    margin: 0;
    /* Move textarea out of the screen to the far left, so that the cursor is not visible */
    position: absolute;
    opacity: 0;
    left: -9999em;
    top: 0;
    width: 0;
    height: 0;
    z-index: -5;
    /** Prevent wrapping so the IME appears against the textarea at the correct position */
    white-space: nowrap;
    overflow: hidden;
    resize: none;
}

.xterm .composition-view {
    /* TODO: Composition position got messed up somewhere */
    background: #000;
    color: #FFF;
    display: none;
    position: absolute;
    white-space: nowrap;
    z-index: 1;
}

.xterm .composition-view.active {
    display: block;
}

.xterm .xterm-viewport {
    /* On OS X this is required in order for the scroll bar to appear fully opaque */
    background-color: #000;
    overflow-y: scroll;
    cursor: default;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
}

.xterm .xterm-screen {
    position: relative;
}

.xterm .xterm-screen canvas {
    position: absolute;
    left: 0;
    top: 0;
}

.xterm .xterm-scroll-area {
    visibility: hidden;
}

.xterm-char-measure-element {
    display: inline-block;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: -9999em;
    line-height: normal;
}

.xterm.enable-mouse-events {
    /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
    cursor: default;
}

.xterm.xterm-cursor-pointer,
.xterm .xterm-cursor-pointer {
    cursor: pointer;
}

.xterm.column-select.focus {
    /* Column selection mode */
    cursor: crosshair;
}

.xterm .xterm-accessibility,
.xterm .xterm-message {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    color: transparent;
}

.xterm .live-region {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.xterm-dim {
    opacity: 0.5;
}

.xterm-underline {
    text-decoration: underline;
}

.xterm-strikethrough {
    text-decoration: line-through;
}

.xterm-screen .xterm-decoration-container .xterm-decoration {
	z-index: 6;
	position: absolute;
}

.xterm-decoration-overview-ruler {
    z-index: 7;
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
}

.xterm-decoration-top {
    z-index: 2;
    position: relative;
}


body.devtools {
    font-family: Ubuntu, Arial, sans-serif;
    font-size: 13px;
}

body.devtools .device {
    padding: 20px;
}

body.devtools .device-header {
    -webkit-box-align: baseline;
    -webkit-box-orient: horizontal;
    display: -webkit-box;
    margin: 10px 0 0;
    padding: 2px 0;
}

body.devtools .device-name {
    font-size: 150%;
}

body.devtools .device-serial {
    color: var(--url-color);
    font-size: 80%;
    margin-left: 6px;
}

body.devtools .browser-header {
    align-items: center;
    display: flex;
    flex-flow: row wrap;
    min-height: 33px;
    padding-top: 10px;
}

body.devtools .browser-header > .browser-name {
    font-size: 110%;
    font-weight: bold;
}

body.devtools div.list {
    margin-top: 5px;
}

body.devtools div.list > .row {
    padding: 6px 0;
    position: relative;
}

body.devtools .properties-box {
    display: flex;
}

body.devtools .properties-box > img {
    flex-shrink: 0;
    height: 23px;
    padding-left: 2px;
    padding-right: 5px;
    vertical-align: top;
    width: 23px;
}

body.devtools .subrow-box {
    display: inline-block;
    vertical-align: top;
}

body.devtools .subrow {
    display: flex;
    flex-flow: row wrap;
}

body.devtools .subrow > div {
    margin-right: 0.5em;
}

.body.devtools url {
    color: var(--url-color);
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

body.devtools .action {
    color: var(--link-color);
    cursor: pointer;
    margin-right: 15px;
}

body.devtools .action.disabled {
    color: var(--url-color);
    cursor: not-allowed;
}

body.devtools a.action {
    text-decoration: none;
}

body.devtools a.action.copy {
    cursor: copy;
}

body.devtools .browser-header .action {
    margin-left: 10px;
}

body.devtools .open > input {
    border: 1px solid #aaa;
    height: 17px;
    line-height: 17px;
    margin-left: 20px;
    padding: 0 2px;
}

body.devtools .tooltip {
    z-index: 1;
    position: absolute;
    padding: 2px;
    color: var(--controls-bg-color);
    background-color: var(--text-color);
}

body.file-listing {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.file-listing h1 {
    border-bottom: 1px solid var(--button-border-color);
    margin-bottom: 10px;
    padding-bottom: 10px;
    white-space: nowrap;
}

.file-listing tr:hover {
    background-color: var(--controls-bg-color);
}

.file-listing .quick-link-box {
    display: inline-block;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.file-listing .quick-link-box.hidden {
    display: none;
}

.file-listing a.icon {
    -webkit-padding-start: 1.5em;
    -moz-padding-start: 1.5em;
    text-decoration: none;
    user-select: auto;
}

.file-listing a.icon:hover {
    text-decoration: underline;
}

.file-listing a.link {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAACAElEQVQ4y4WSzUsVYRjFf897RwUz+wK7LiSIyKCoyEUXDFzcqYhq0R+R4J/gMqilf0VC7VwUuBUxobJumyLTvjDIG0TcO96J7sw8T4t3Rp0kfDYH3o/DOc85Qj4LCwvGPpOmKfPz88zMzEhxFux+cGV8HARE/H2BqopzjpWVV4RhSPNH02YfzkqJwMwwDDHxKIKZR+ccAEmSMDExQZZldLY6Njc3J64gUNVtEswTFsTFdDodFhcXCYKAqakp9ijAjOK5AJbbKJSEYZ3N75t0u10+rK2VCVSVX+0elpfe8mxpHTCvCgM1btw8S71+hupwFYD3q6sAlCw4gXp4jno4ShA4nJNclf43mW0FWZbhHLTbHVZefgUxkiQlTf+QqZKmqd9NvuAsy/ZaqFSMx4+W2fjW5HccY5bgKg7BSNNunpLfjarutfCm8ZEXz9+xFbVRSxg8dIDr1y7m3Sii9lgQBLtb1ni9TqUiiBh9vT1MT9/hePUw/f29iI/KJ4N4S//GqKpUnJd4dzJkaGgQy5Rbt8fY2Pi50wnZ6ce2hVarxfkLJzDg6JEBxi6dBDNEfD9GRo5hlqswo9VqlQmiKKJWO83l2ilU1W9ZduIy9R+LwkVRVLYQxzFOYHLyKp8/NWk0vjA6OszAwT7MBFXfiaKjcRyXCaIo4v6De6WSPHnKvvMXLQgqHcJs3fIAAAAASUVORK5CYII=) left top no-repeat;
}
.file-listing a.file {
    background : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABnRSTlMAAAAAAABupgeRAAABHUlEQVR42o2RMW7DIBiF3498iHRJD5JKHurL+CRVBp+i2T16tTynF2gO0KSb5ZrBBl4HHDBuK/WXACH4eO9/CAAAbdvijzLGNE1TVZXfZuHg6XCAQESAZXbOKaXO57eiKG6ft9PrKQIkCQqFoIiQFBGlFIB5nvM8t9aOX2Nd18oDzjnPgCDpn/BH4zh2XZdlWVmWiUK4IgCBoFMUz9eP6zRN75cLgEQhcmTQIbl72O0f9865qLAAsURAAgKBJKEtgLXWvyjLuFsThCSstb8rBCaAQhDYWgIZ7myM+TUBjDHrHlZcbMYYk34cN0YSLcgS+wL0fe9TXDMbY33fR2AYBvyQ8L0Gk8MwREBrTfKe4TpTzwhArXWi8HI84h/1DfwI5mhxJamFAAAAAElFTkSuQmCC) left top no-repeat;
}

.file-listing a.dir {
    background : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAd5JREFUeNqMU79rFUEQ/vbuodFEEkzAImBpkUabFP4ldpaJhZXYm/RiZWsv/hkWFglBUyTIgyAIIfgIRjHv3r39MePM7N3LcbxAFvZ2b2bn22/mm3XMjF+HL3YW7q28YSIw8mBKoBihhhgCsoORot9d3/ywg3YowMXwNde/PzGnk2vn6PitrT+/PGeNaecg4+qNY3D43vy16A5wDDd4Aqg/ngmrjl/GoN0U5V1QquHQG3q+TPDVhVwyBffcmQGJmSVfyZk7R3SngI4JKfwDJ2+05zIg8gbiereTZRHhJ5KCMOwDFLjhoBTn2g0ghagfKeIYJDPFyibJVBtTREwq60SpYvh5++PpwatHsxSm9QRLSQpEVSd7/TYJUb49TX7gztpjjEffnoVw66+Ytovs14Yp7HaKmUXeX9rKUoMoLNW3srqI5fWn8JejrVkK0QcrkFLOgS39yoKUQe292WJ1guUHG8K2o8K00oO1BTvXoW4yasclUTgZYJY9aFNfAThX5CZRmczAV52oAPoupHhWRIUUAOoyUIlYVaAa/VbLbyiZUiyFbjQFNwiZQSGl4IDy9sO5Wrty0QLKhdZPxmgGcDo8ejn+c/6eiK9poz15Kw7Dr/vN/z6W7q++091/AQYA5mZ8GYJ9K0AAAAAASUVORK5CYII=) left top no-repeat;
}

.file-listing a.up {
    background : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmlJREFUeNpsU0toU0EUPfPysx/tTxuDH9SCWhUDooIbd7oRUUTMouqi2iIoCO6lceHWhegy4EJFinWjrlQUpVm0IIoFpVDEIthm0dpikpf3ZuZ6Z94nrXhhMjM3c8895977BBHB2PznK8WPtDgyWH5q77cPH8PpdXuhpQT4ifR9u5sfJb1bmw6VivahATDrxcRZ2njfoaMv+2j7mLDn93MPiNRMvGbL18L9IpF8h9/TN+EYkMffSiOXJ5+hkD+PdqcLpICWHOHc2CC+LEyA/K+cKQMnlQHJX8wqYG3MAJy88Wa4OLDvEqAEOpJd0LxHIMdHBziowSwVlF8D6QaicK01krw/JynwcKoEwZczewroTvZirlKJs5CqQ5CG8pb57FnJUA0LYCXMX5fibd+p8LWDDemcPZbzQyjvH+Ki1TlIciElA7ghwLKV4kRZstt2sANWRjYTAGzuP2hXZFpJ/GsxgGJ0ox1aoFWsDXyyxqCs26+ydmagFN/rRjymJ1898bzGzmQE0HCZpmk5A0RFIv8Pn0WYPsiu6t/Rsj6PauVTwffTSzGAGZhUG2F06hEc9ibS7OPMNp6ErYFlKavo7MkhmTqCxZ/jwzGA9Hx82H2BZSw1NTN9Gx8ycHkajU/7M+jInsDC7DiaEmo1bNl1AMr9ASFgqVu9MCTIzoGUimXVAnnaN0PdBBDCCYbEtMk6wkpQwIG0sn0PQIUF4GsTwLSIFKNqF6DVrQq+IWVrQDxAYQC/1SsYOI4pOxKZrfifiUSbDUisif7XlpGIPufXd/uvdvZm760M0no1FZcnrzUdjw7au3vu/BVgAFLXeuTxhTXVAAAAAElFTkSuQmCC) left top no-repeat;
}

.file-listing a.push {
    color: var(--text-color);
}

.file-listing .listing {
    margin: 8px;
}

.file-listing .foreground {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1000;
    background-color: var(--controls-bg-color);
}

.file-listing .foreground-message {
    flex: auto;
    font-size: 30px;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    pointer-events: none;
}

.file-listing .foreground-message.drop-target-message {
    border: 4px dashed #ddd;
}

.file-listing .entry-name {
    position: relative;
}

.file-listing .background-progress {
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--progress-background-color);
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border-spacing: 0;
}

.file-listing .background-progress.error {
    background-color: var(--progress-background-error-color);
}

