/* ==========================================================================
   VGT SUPREME CORE - GLOBAL VARIABLES & LAYOUT ENGINE
   ========================================================================== */
.vgt-app-wrapper {
    /* VGT Dark Theme (Default) */
    --vg-bg: #030308;
    --vg-surface: rgba(255, 255, 255, 0.03);
    --vg-surface-solid: #0a0a12;
    --vg-border: rgba(255, 255, 255, 0.08);
    --vg-border-hover: rgba(255, 255, 255, 0.15);
    --vg-text: #ffffff;
    --vg-text-muted: #9ca3af;
    
    /* Semantic Colors */
    --c-cyan: 34, 211, 238;
    --c-purple: 168, 85, 247;
    --c-yellow: 250, 204, 21;
    --c-green: 74, 222, 128;
    --c-orange: 251, 146, 60;
    --c-pink: 244, 114, 182;
    --c-teal: 45, 212, 191;
    --c-blue: 96, 165, 250;
    
    /* Layout */
    --max-w: 1600px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Fonts */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    position: relative;
    /* FULL SCREEN PATCH: Eliminiert das "schweben" */
    min-height: 100vh;
    width: 100%;
    margin: 0;
    border-radius: 0; 
    
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    background-color: var(--vg-bg);
    color: var(--vg-text);
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

html.light-mode .vgt-app-wrapper {
    --vg-bg: #f3f4f6;
    --vg-surface: #ffffff;
    --vg-surface-solid: #ffffff;
    --vg-border: #e5e7eb;
    --vg-text: #111827;
    --vg-text-muted: #6b7280;
}

.vgt-app-wrapper * { box-sizing: border-box; }
.vgt-app-wrapper a { text-decoration: none; color: inherit; }
.vgt-app-wrapper button, .vgt-app-wrapper input { font: inherit; border: none; outline: none; background: none; }
.vgt-app-wrapper button { cursor: pointer; }

/* Layout Utilities */
.vgt-container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Backgrounds Engine */
.bg-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; transition: opacity 0.7s ease; }
.bg-grid-dark { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; opacity: 0.2; }
.bg-grid-light { position: absolute; inset: 0; background-image: radial-gradient(#cbd5e1 1px, transparent 1px); background-size: 20px 20px; opacity: 0; }
.bg-orb { position: absolute; top: -20%; left: 20%; width: 500px; height: 500px; background: rgba(var(--c-cyan), 0.1); filter: blur(120px); border-radius: 50%; mix-blend-mode: screen; }

html.light-mode .vgt-app-wrapper .bg-grid-dark { opacity: 0; }
html.light-mode .vgt-app-wrapper .bg-grid-light { opacity: 1; }
html.light-mode .vgt-app-wrapper .bg-orb { mix-blend-mode: normal; background: rgba(var(--c-cyan), 0.05); }

/* ==========================================================================
   GLOBAL UI COMPONENTS
   ========================================================================== */

.vgt-system-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(5, 7, 14, 0.82);
    box-shadow: 0 18px 60px -42px rgba(var(--c-cyan), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.vgt-shell-brand,
.vgt-shell-actions,
.vgt-shell-command,
.vgt-recent-strip,
.vgt-recent-chip,
.vgt-command-tool {
    display: flex;
    align-items: center;
}

.vgt-shell-brand {
    min-width: 0;
    gap: 0.75rem;
    color: #fff;
}

.vgt-shell-orbit {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border: 1px solid rgba(var(--c-cyan), 0.42);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(var(--c-cyan), 0.95) 0 10%, transparent 11%),
        conic-gradient(from 180deg, rgba(var(--c-cyan), 0.1), rgba(var(--c-purple), 0.62), rgba(var(--c-green), 0.52), rgba(var(--c-cyan), 0.1));
    box-shadow: 0 0 22px rgba(var(--c-cyan), 0.34);
}

.vgt-shell-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vgt-shell-actions {
    gap: 0.65rem;
}

.vgt-app-wrapper .vgt-shell-command {
    gap: 0.75rem;
    min-height: 2.35rem;
    padding: 0 0.7rem 0 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.vgt-app-wrapper .vgt-shell-command:hover,
.vgt-app-wrapper .vgt-shell-command:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--c-cyan), 0.54);
    background: rgba(var(--c-cyan), 0.12);
}

.vgt-shell-command span {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.vgt-shell-command kbd,
.vgt-command-header span,
.vgt-command-item kbd {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.28);
    font-family: var(--font-mono), monospace;
    font-size: 0.68rem;
    font-weight: 800;
}

.vgt-shell-command kbd {
    padding: 0.25rem 0.45rem;
}

.vgt-shell-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(var(--c-green), 0.26);
    border-radius: 8px;
    color: #fff;
    background: rgba(var(--c-green), 0.08);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vgt-shell-status::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(var(--c-green), 1);
    box-shadow: 0 0 12px rgba(var(--c-green), 0.85);
}

.vgt-recent-strip {
    min-height: 2.85rem;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.vgt-recent-strip.is-empty {
    display: none;
}

.vgt-recent-strip::-webkit-scrollbar {
    display: none;
}

.vgt-recent-label {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono), monospace;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vgt-recent-chip {
    flex: 0 0 auto;
    gap: 0.55rem;
    max-width: 230px;
    padding: 0.52rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.vgt-recent-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--c-cyan), 0.36);
    background: rgba(var(--c-cyan), 0.08);
}

.vgt-tool-marker {
    width: 0.68rem;
    height: 0.68rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(var(--c-cyan), 1);
    box-shadow: 0 0 12px currentColor;
}

.vgt-tool-marker.cat-privacy { background: rgba(var(--c-green), 1); }
.vgt-tool-marker.cat-media { background: rgba(var(--c-cyan), 1); }
.vgt-tool-marker.cat-dev { background: rgba(var(--c-pink), 1); }
.vgt-tool-marker.cat-calc { background: rgba(var(--c-orange), 1); }
.vgt-tool-marker.cat-mind { background: rgba(var(--c-purple), 1); }
.vgt-tool-marker.cat-cosmos { background: rgba(var(--c-yellow), 1); }
.vgt-tool-marker.cat-creative { background: rgba(var(--c-teal), 1); }

.vgt-tool-copy {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.vgt-tool-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vgt-tool-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.68rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vgt-command-layer {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    place-items: start center;
    padding: max(4rem, 8vh) 1rem 1rem;
}

.vgt-command-layer.active {
    display: grid;
}

.vgt-command-backdrop {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(2, 3, 8, 0.82), rgba(5, 8, 18, 0.76)),
        radial-gradient(circle at 50% 0%, rgba(var(--c-cyan), 0.12), transparent 44%);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.vgt-command-modal {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(720px, calc(100svh - 6rem));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top-color: rgba(var(--c-cyan), 0.62);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(12, 17, 32, 0.98), rgba(4, 6, 12, 0.98)),
        rgba(4, 6, 12, 0.98);
    box-shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.92), 0 0 50px rgba(var(--c-cyan), 0.16);
}

.vgt-command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vgt-command-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vgt-command-header span,
.vgt-command-item kbd {
    padding: 0.28rem 0.45rem;
}

.vgt-app-wrapper .vgt-command-search {
    width: 100%;
    min-height: 3.1rem;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
    font-weight: 650;
}

.vgt-command-search::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.vgt-app-wrapper .vgt-command-search:focus {
    border-color: rgba(var(--c-cyan), 0.62);
    box-shadow: 0 0 0 1px rgba(var(--c-cyan), 0.35);
}

.vgt-command-list {
    min-height: 0;
    display: grid;
    gap: 0.5rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.vgt-app-wrapper .vgt-command-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.2rem;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.vgt-app-wrapper .vgt-command-item:hover,
.vgt-app-wrapper .vgt-command-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--c-cyan), 0.42);
    background: rgba(var(--c-cyan), 0.09);
}

.vgt-command-tool {
    min-width: 0;
    gap: 0.75rem;
}

.vgt-command-tool .vgt-tool-copy strong {
    font-size: 0.9rem;
}

.vgt-command-tool .vgt-tool-copy small {
    font-size: 0.75rem;
}

.vgt-command-empty {
    margin: 0;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
}

/* Shared Tool Foundation */
.vgt-tool-wrapper {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    animation: fadeInd 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInd {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-hero {
    margin-bottom: 2.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--vg-text-muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-back:hover,
.btn-back:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(-4px);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-icon-wrapper {
    width: 4rem;
    height: 4rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.hero-icon,
.svg-icon {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
}

.svg-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.tool-title {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.tool-desc {
    max-width: 760px;
    margin: 0;
    color: var(--vg-text-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.glass-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--vg-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.022)),
        rgba(10, 10, 18, 0.62);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.hidden-input {
    display: none;
}

.vgt-system-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1.15fr) auto;
    align-items: center;
    padding: 0.82rem;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
        radial-gradient(circle at 8% 0%, rgba(var(--c-cyan), 0.16), transparent 34%),
        radial-gradient(circle at 92% 100%, rgba(var(--c-purple), 0.12), transparent 32%),
        rgba(5, 7, 14, 0.9);
}

.vgt-shell-primary {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.55rem;
}

.vgt-shell-badges {
    grid-column: 1 / -1;
}

.vgt-shell-panel {
    min-width: 0;
    display: grid;
    grid-column: 2 / -1;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.vgt-shell-mobile-toggle {
    display: none;
}

.vgt-shell-copy {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.vgt-shell-title {
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1;
    text-overflow: ellipsis;
}

.vgt-shell-subtitle {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono), monospace;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.vgt-shell-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(var(--c-cyan), 0.16), rgba(var(--c-purple), 0.12)),
        rgba(0, 0, 0, 0.32);
}

.vgt-shell-orbit::after {
    content: "";
    position: absolute;
    inset: 0.35rem;
    border: 1px solid rgba(var(--c-cyan), 0.45);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(var(--c-cyan), 0.25);
}

.vgt-shell-logo {
    position: relative;
    z-index: 1;
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(var(--c-cyan), 0.42));
}

.vgt-shell-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.vgt-shell-mobile-toggle {
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.2rem;
    padding: 0 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vgt-shell-mobile-toggle svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.vgt-system-shell.is-shell-open .vgt-shell-mobile-toggle svg {
    transform: rotate(180deg);
}

.vgt-shell-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 1.5rem;
    padding: 0 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vgt-shell-badge svg,
.vgt-shell-icon-btn svg,
.vgt-shell-search-icon svg {
    width: 0.92rem;
    height: 0.92rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.vgt-shell-badge.tone-green { border-color: rgba(var(--c-green), 0.24); background: rgba(var(--c-green), 0.08); }
.vgt-shell-badge.tone-blue { border-color: rgba(var(--c-blue), 0.24); background: rgba(var(--c-blue), 0.08); }
.vgt-shell-badge.tone-purple { border-color: rgba(var(--c-purple), 0.24); background: rgba(var(--c-purple), 0.08); }

.vgt-shell-search {
    position: relative;
    min-width: 0;
}

.vgt-shell-search-icon {
    position: absolute;
    top: 50%;
    left: 0.88rem;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.58);
    transform: translateY(-50%);
}

.vgt-app-wrapper .vgt-shell-search-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 1rem 0 2.55rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.vgt-app-wrapper .vgt-shell-search-input::placeholder {
    color: rgba(255, 255, 255, 0.44);
}

.vgt-app-wrapper .vgt-shell-search-input:focus {
    border-color: rgba(var(--c-cyan), 0.55);
    box-shadow: 0 0 0 1px rgba(var(--c-cyan), 0.22), 0 0 26px rgba(var(--c-cyan), 0.12);
}

.vgt-shell-actions {
    justify-content: flex-end;
}

.vgt-shell-link,
.vgt-shell-mode,
.vgt-shell-icon-btn {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.vgt-shell-link {
    padding: 0 0.72rem;
}

.vgt-shell-icon-btn {
    width: 2.35rem;
}

.vgt-shell-link:hover,
.vgt-shell-mode:hover,
.vgt-shell-icon-btn:hover,
.vgt-shell-link:focus-visible,
.vgt-shell-mode:focus-visible,
.vgt-shell-icon-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--c-cyan), 0.38);
    background: rgba(var(--c-cyan), 0.08);
}

.vgt-shell-icon-btn span {
    display: grid;
    place-items: center;
}

.vgt-shell-mode {
    padding: 0 0.72rem;
}

.vgt-shell-mode[aria-pressed="true"] {
    border-color: rgba(var(--c-cyan), 0.44);
    background: linear-gradient(135deg, rgba(var(--c-cyan), 0.2), rgba(var(--c-purple), 0.12));
    box-shadow: 0 0 24px rgba(var(--c-cyan), 0.14);
}

.vgt-shell-status {
    white-space: nowrap;
}

.vgt-dashboard-root,
.vgt-dashboard-main {
    flex: 1;
    display: flex;
}

body.vgt-mc-frame-body {
    margin: 0;
    background: #030308;
    overflow: hidden;
}

.vgt-frame-wrapper {
    min-height: 100svh;
    width: 100%;
    border-radius: 0;
}

.vgt-frame-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100svh;
    overflow: auto;
    padding: 1rem;
}

.vgt-frame-content .vgt-tool-wrapper {
    max-width: none;
}

.vgt-frame-content .tool-hero {
    margin-bottom: 1rem;
}

.vgt-frame-content .btn-back {
    display: none;
}

@media (max-width: 1180px) {
    .vgt-system-shell {
        grid-template-columns: 1fr;
    }

    .vgt-shell-panel {
        grid-template-columns: 1fr;
    }

    .vgt-shell-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .vgt-system-shell {
        gap: 0.72rem;
        padding: 0.72rem;
    }

    .vgt-shell-brand {
        gap: 0.55rem;
    }

    .vgt-shell-title {
        max-width: 13rem;
        font-size: 0.74rem;
        letter-spacing: 0.03em;
    }

    .vgt-shell-subtitle {
        font-size: 0.54rem;
    }

    .vgt-shell-orbit {
        width: 2rem;
        height: 2rem;
    }

    .vgt-shell-logo {
        width: 1.3rem;
        height: 1.3rem;
    }

    .vgt-shell-badge {
        font-size: 0.55rem;
        min-height: 1.35rem;
        padding: 0 0.4rem;
    }

    .vgt-shell-badge svg {
        width: 0.78rem;
        height: 0.78rem;
    }

    .vgt-shell-primary {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .vgt-shell-badges {
        display: none;
    }

    .vgt-shell-mobile-toggle {
        display: inline-flex;
    }

    .vgt-shell-panel {
        grid-column: 1 / -1;
        display: grid;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-0.4rem);
        transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
    }

    .vgt-system-shell.is-shell-open .vgt-shell-panel {
        max-height: 22rem;
        opacity: 1;
        transform: translateY(0);
    }

    .vgt-shell-actions {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        width: 100%;
    }

    .vgt-app-wrapper .vgt-shell-command {
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
    }

    .vgt-shell-status {
        display: none;
    }
}

/* Global Footer */
.vgt-global-footer { 
    margin-top: auto;
    border-top: 1px solid var(--vg-border); 
    padding-top: 2rem; 
    padding-bottom: 1rem;
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    font-size: 0.75rem; 
    color: var(--vg-text-muted); 
    font-family: var(--font-mono), monospace; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}
.vgt-global-footer .footer-links { display: flex; gap: 1.5rem; }
.vgt-global-footer a { transition: color 0.3s ease; }
.vgt-global-footer a:hover { color: rgba(var(--c-cyan), 1); }

.vgt-failsafe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeInd 0.5s ease;
}

.vgt-failsafe-card {
    background: rgba(255, 0, 50, 0.05);
    border: 1px solid rgba(255, 0, 50, 0.2);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.vgt-failsafe-icon {
    width: 4rem;
    height: 4rem;
    stroke: rgba(255, 0, 50, 0.8);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 1.5rem;
}

.vgt-failsafe-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--vg-text);
    margin: 0 0 0.5rem;
}

.vgt-failsafe-copy {
    color: var(--vg-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.vgt-failsafe-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--vg-surface);
    border: 1px solid var(--vg-border);
    border-radius: var(--radius-lg);
    color: var(--vg-text);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
}

.vgt-failsafe-link-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@media (min-width: 1024px) { 
    .vgt-global-footer { flex-direction: row; justify-content: space-between; align-items: center; } 
}

/* ==========================================================================
   VGT GLOBAL RESPONSIVE ENGINE (MOBILE FIRST FALLBACKS)
   ========================================================================== */

/* Global Resets for Mobile */
img, canvas, video, svg, textarea { max-width: 100%; height: auto; }
textarea { max-width: 100%; min-width: 100%; }

@media (max-width: 768px) {
    /* Container & Spacing */
    .vgt-container { padding: 1rem 0.75rem; }
    .glass-panel { padding: 1.25rem !important; border-radius: var(--radius-xl) !important; }
    
    /* Hero Header Anpassungen */
    .tool-hero { margin-bottom: 1.5rem !important; }
    .hero-content { flex-direction: column; align-items: flex-start !important; gap: 1rem !important; }
    .hero-icon-wrapper { width: 3rem !important; height: 3rem !important; }
    .hero-icon { width: 1.5rem !important; height: 1.5rem !important; }
    .tool-title { font-size: 1.75rem !important; line-height: 1.1; }
    .tool-desc { font-size: 0.875rem !important; }

    /* Dropzones Mobile */
    .drop-zone { padding: 3rem 1rem !important; }
    .drop-icon { width: 2.5rem !important; height: 2.5rem !important; }
    .drop-title { font-size: 1.125rem !important; }

    /* Force Grids to Stack */
    .tools-grid, .mc-grid, .cipher-grid, .ic-workspace, .zm-grid, .pm-layout, .as-layout { 
        grid-template-columns: 1fr !important; 
    }

    /* Tool-Specific Mobile Fixes */
    .cipher-mode-selector { width: 100% !important; display: flex; }
    .mode-btn { flex: 1; justify-content: center; padding: 0.5rem !important; font-size: 0.75rem !important; }
    .key-input { font-size: 0.875rem !important; padding-right: 2.5rem !important; }
    
    .mc-exif-item { flex-direction: column; align-items: flex-start !important; gap: 0.25rem; }
    .mc-exif-key, .mc-exif-val { width: 100% !important; text-align: left !important; }
    
    .zm-header-bar { flex-direction: column; align-items: flex-start !important; }
    .zm-actions { width: 100%; display: flex; justify-content: space-between; }
    .zm-explorer { height: 400px !important; }
    
    .dim-inputs { flex-direction: column; }
    .dim-separator { display: none; }
    .ic-stats-panel { flex-direction: column; align-items: flex-start !important; }
    .stat-divider { display: none; }
    .stat-savings { padding-left: 0 !important; border-left: none !important; border-top: 1px solid var(--vg-border); padding-top: 1rem; width: 100%; align-items: flex-start !important; }
}
