html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: #000000;
    color: #e2e2e2;
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Custom scrollbar for brutalist look */
html {
    scrollbar-width: thin; 
    scrollbar-color: #ffffff #000000;
}

::-webkit-scrollbar {
    width: 8px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #ffffff;
    border: 1px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

.bento-card {
    background-color: #111111;
    border: 1px solid #ffffff;
    transition: border-color 0.2s ease;
}

.bento-card:focus-within {
    border-color: #ffffff;
}

.massive-output {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 16px;
    width: 16px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 0;
}

/* Remove arrows from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

/* Responsive Ad Gutters and Sticky Layout */
.main-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
}

.ad-sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    flex-basis: 300px;
    min-width: 0;
    flex-shrink: 1;
}

.ad-banner-container {
    height: 100%;
}

.ad-banner {
    position: sticky;
    top: 20px;
    width: 100%;
    max-width: 300px;
    height: 600px;
    border: 1px dashed #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa; /* text-on-surface-variant */
    font-family: inherit;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    background-color: #000000;
}

.center-main {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1100px;
}

@media (max-width: 1599px) {
    .ad-sidebar {
        width: 100%;
        flex-basis: 160px;
        max-width: 160px;
    }
    .ad-banner {
        width: 100%;
        font-size: 0.75rem;
    }
}

@media (max-width: 1199px) {
    .ad-sidebar {
        display: none !important;
    }
}

/* --- Mobile Compatibility & Touch-UI Audit Overrides --- */

/* Viewport and Layout Module Stacking */
@media (max-width: 767px) {
    .main-wrapper {
        flex-direction: column !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        gap: 1.5rem !important;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Touch Target Audit (Accessibility >= 44x44px) */
@media (max-width: 767px) {
    /* Copy Profile Button size increase */
    .copy-profile-btn {
        width: 44px !important;
        height: 44px !important;
    }
    
    /* Expand tap target for checkbox labels */
    .bento-card label.cursor-pointer {
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Input elements heights on mobile */
    input[type="number"], select {
        min-height: 44px;
    }
}

/* Text and Readability */
.massive-output, #out-name, #out-pass, #number-display, .out-text-container {
    font-size: clamp(1rem, 5vw, 1.8rem) !important;
    letter-spacing: -1px;
    word-break: keep-all;
    text-align: center;
    white-space: nowrap !important;
    overflow-x: auto !important;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Geist', 'Archivo Narrow', sans-serif;
}

#out-name {
    word-break: break-word;
}

@media (max-width: 480px) {
    .massive-output, #out-name, #out-pass, #number-display {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
    }

    /* Secondary text like 'ID: XXXXX' must not shrink below 12px */
    .text-\[10px\] {
        font-size: 12px !important;
    }
}

