* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #7dd3a0 #2a2a2a;
}

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

*::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #7dd3a0;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
}

*::-webkit-scrollbar-corner {
    background: #2a2a2a;
} 

@font-face {
  font-family: Groovy;
  src: url(VT323.ttf);
}

@font-face {
  font-family: Jersey;
  src: url(Jersey25.ttf);
}

body {
    font-family: 'Jersey', Verdana;
    background: 
        linear-gradient(
            transparent 0%,
            rgba(255,255,255,0.02) 50%,
            transparent 100%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(255,255,255,0.05) 2px,
            rgba(255,255,255,0.05) 4px
        ),
        #2f2f2f;
    height: 100vh;
    padding: 1.25rem;
    position: relative;
    overflow: hidden; 
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

.container {
    max-width: 95dvw;
    height: calc(100vh - 2.5rem);
    margin: 0 auto;
    background: #3a3a3a;
    border: 2px solid #7a7a7a;
    border-radius: 0.75rem;
    box-shadow: 
        0 0 12px rgba(125, 211, 160, 0.2),
        inset 0 0 20px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(90deg, #2f2f2f, #2a2a2a);
    color: #F2F0EF;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
    border-bottom: 2px solid #7a7a7a; 
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.header p {
    opacity: 0.9;
    font-size: 0.875rem;
}

.main {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.top-container {
    display: flex;
    gap: 0.5rem; 
    background: #2f2f2f;
    flex-shrink: 0;
    padding: 0.5rem;
    border-bottom: 1px solid #7a7a7a;
}

.palette {
    flex: 0 0 70%;
    background: #4a4a4a;
    border: 2px solid #7dd3a0;
    border-radius: 0.5rem; 
    height: 8.5rem;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
    position: relative;
}

.palette-scroll {
    height: 100%;
    overflow-y: auto; 
}

.palette-scroll.no-scroll {
    overflow-y: hidden;
    pointer-events: none;
}



.palette h3 {
    color: #7dd3a0;
    margin-bottom: 0.9375rem;
    font-size: 1rem;
    padding: 0.5rem;
    text-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
}

.palette-item {
    background: #F2F0EF;
    border: 1px solid #606060;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin: 0.3rem;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.palette-item:active {
    cursor: grabbing;
}

.palette-item .type {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-shadow: 0 0 1px #F2F0EF;
}

.palette-item .desc {
    font-size: 0.9rem;
    color: #5e5d5d;
    margin-left: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls {
    flex: 0 0 29%;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 0.1rem; 
    background: #4a4a4a;
    border: 2px solid #7a7a7a;
    border-radius: 0.5rem; 
    height: 9rem; 
    align-items: center;
    justify-items: center;
    padding: 0.5rem;
    box-shadow: 0 0 8px rgba(212, 184, 150, 0.2);
}

.btn { 
    background: linear-gradient(45deg, #ffffff, #d3d1d1);
    color: #2a1810;
    border: 2px solid #7a7a7a;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 550;
    transition: all 0.2s ease;
    width: 100%;
    max-width: none;
    font-size: 1.2rem;
    white-space: nowrap;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn:hover {
    background: linear-gradient(45deg, #c5c5c5, #ffffff);
    border-color: #7a7a7a;
    box-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
}

.btn-clear {
    grid-column: 1 / -1;
    grid-row: 4;
    background: linear-gradient(45deg, #ff7a5a, #ff8a6a);
    color: rgb(0, 0, 0);
    border: 2px solid #2a1810;
    height: auto;
    min-height: 1.5rem;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-clear:hover {
    background: linear-gradient(45deg, #ff8a6a, #ff7a5a);
    box-shadow: 0 0 8px rgba(255, 122, 90, 0.5);
}

.bottom-container {
    display: flex;
    gap: 0.5rem; 
    flex: 1;
    overflow: hidden;
    background: #2f2f2f;
    padding: 0.5rem;
}

.scope {
    background: #1a1a1a;
    border: 2px solid #606060;
    border-radius: 0.5rem; 
    position: relative;
    flex: 0 0 70%;
    overflow-y: auto;
    overflow-x: visible;
    margin: 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.scope.drag-over {
    border-color: #7dd3a0;
    background: #2a2a2a;
    box-shadow: 0 0 12px rgba(125, 211, 160, 0.4);
}

.scope.ready-to-place {
    border-color: #d4b896;
    background: #2a2a2a;
    box-shadow: 0 0 20px rgba(212, 184, 150, 0.4);
}

.module-card {
    background: #3a3a3a;
    border: 1px solid #606060;
    border-radius: 0.5rem;
    padding: 0.3rem;
    margin: 0.3rem;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

/* Make module cards bigger on desktop to accommodate larger buttons */
@media (min-width: 769px) {
    .module-card {
        padding: 0.5rem;
        margin: 0.4rem;
    }
}

.module-card:hover {
    border-color: #8ee5b8;
    background: #4a4a4a;
    box-shadow: 0 0 8px rgba(142, 229, 184, 0.4);
}

.module-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.module-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Desktop: 50% larger buttons in module controls */
@media (min-width: 769px) {
    .module-controls {
        gap: 0.75rem !important;
    }
}

.name-btn {
    background: #F2F0EF;
    color: #2a1810;
    border: 1px solid #7a7a7a;
    padding: 0.375rem 0.75rem;
    border-radius: 0.3125rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .name-btn {
        padding: 0.563rem 1.125rem !important;
        font-size: 1.219rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.469rem !important;
    }
}

.name-btn:hover, .name-btn.active {
    background: #7dd3a0;
    color: #1a1a1a;
    border-color: #5aa77c;
}

.name-btn-static {
    cursor: default;
}

.name-btn-static:hover {
    background: #dfdfdf;
    color: #2a1810;
}

.inline-input {
    font-family: 'Groovy';
    background: #3a3a3a;
    color: #7dd3a0;
    border: 1px solid #555555;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    height: 1.5rem;
    width: 5rem;
    display: flex;
    align-items: center;
    text-align: center;
}

@media (min-width: 769px) {
    .inline-input {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.5rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        width: 7.5rem !important;
        border-radius: 0.375rem !important;
    }
}

.inline-input-small {
    width: 3.125rem;
}

@media (min-width: 769px) {
    .inline-input-small {
        width: 4.688rem !important;
    }
}

.inline-input:focus {
    outline: none;
    border-color: #7dd3a0;
    box-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
}

/* Remove number input spinners */
.inline-input::-webkit-outer-spin-button,
.inline-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.type-btn {
    background: #e6fffa;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 2.8125rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .type-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.031rem !important;
        min-width: 4.219rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.375rem !important;
    }
}

.type-btn:hover {
    background: #6ee7b7;
    color: white;
}

.multival-btn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 3.4375rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .multival-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.031rem !important;
        min-width: 5.156rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.375rem !important;
    }
}

.multival-btn:hover {
    background: #fbbf24;
    color: white;
}

.sort-btn {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #c084fc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 2.1875rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .sort-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.031rem !important;
        min-width: 3.281rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.375rem !important;
    }
}

.sort-btn:hover {
    background: #c084fc;
    color: white;
}

.visibility-btn {
    width: 1.25rem;
    height: 1.25rem;
    border: none;
    border-radius: 0.1875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .visibility-btn {
        width: 1.875rem !important;
        height: 1.875rem !important;
        min-width: 1.875rem !important;
        min-height: 1.875rem !important;
        border-radius: 0.281rem !important;
    }
}

.visibility-btn.visible {
    background: #68d391;
}

.visibility-btn.hidden {
    background: #fc8181;
}

.separator-btn {
    background: #fef5e7;
    color: #744210;
    border: 1px solid #f6e05e;
    padding: 0.125rem 0.375rem;
    border-radius: 0.1875rem;
    cursor: pointer;
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 3.125rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .separator-btn {
        padding: 0.188rem 0.563rem !important;
        font-size: 0.938rem !important;
        min-width: 4.688rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.281rem !important;
    }
}

.separator-btn:hover {
    background: #f6e05e;
    color: white;
}

.delete-btn {
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #9db4c4 40%, #7a7a7a 70%, #606060);
    color: #4a4a4a;
    border: 2px solid #5a5a5a;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    box-shadow: 
        inset 1px 1px 2px rgba(255,255,255,0.3),
        inset -1px -1px 2px rgba(0,0,0,0.3),
        0 1px 3px rgba(0,0,0,0.2);
    position: relative;
}

@media (min-width: 769px) {
    .delete-btn {
        width: 2.063rem !important;
        height: 2.063rem !important;
        min-width: 2.063rem !important;
        min-height: 2.063rem !important;
        font-size: 0.975rem !important;
    }
}

.delete-btn:hover {
    background: radial-gradient(circle at 30% 30%, #f0f0f0, #adc4d4 40%, #8a8a8a 70%, #707070);
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.4),
        inset -1px -1px 3px rgba(0,0,0,0.4),
        0 2px 4px rgba(0,0,0,0.3);
}

.format-btn {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 3.125rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .format-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.031rem !important;
        min-width: 4.688rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.375rem !important;
    }
}

.format-btn:hover {
    background: #60a5fa;
    color: white;
}

.direction-btn {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 2.8125rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .direction-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.031rem !important;
        min-width: 4.219rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.375rem !important;
    }
}

.direction-btn:hover {
    background: #34d399;
    color: white;
}

.weight-btn {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #a78bfa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 2.1875rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .weight-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.031rem !important;
        min-width: 3.281rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.375rem !important;
    }
}

.weight-btn:hover {
    background: #a78bfa;
    color: white;
}

.connectivity-btn {
    background: #fed7aa;
    color: #9a3412;
    border: 1px solid #fb923c;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 3.125rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .connectivity-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 1.031rem !important;
        min-width: 4.688rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.375rem !important;
    }
}

.connectivity-btn:hover {
    background: #fb923c;
    color: white;
}

.repeat-scope {
    margin-top: 0.3rem;
    border: 1px dashed #606060;
    border-radius: 0.375rem;
    min-height: 5rem; 
    background: #2a2a2a;
    position: relative;
    pointer-events: auto;
}

.drop-placeholder {
    height: 0;
    background: #7dd3a0;
    border-radius: 0.125rem;
    opacity: 0;
    transition: all 0.2s ease;
    overflow: hidden;
}

.drop-placeholder.active {
    height: 0.1875rem;
    margin: 0.375rem 0;
    opacity: 1;
}

.floating-panel {
    position: fixed;
    background: #3a3a3a;
    border: 2px solid #7dd3a0;
    border-radius: 0.5rem;
    padding: 0.9375rem;
    box-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
    z-index: 1000;
    min-width: 15.625rem;
    max-width: 25rem;
    display: none;
    margin-top: -8rem;
}

.floating-panel.active {
    display: block;
}

.floating-panel h4 {
    margin-bottom: 0.75rem;
    color: #7dd3a0;
    font-size: 1.25rem;
    text-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
}

.param-group {
    margin-bottom: 0.625rem;
}

.param-label {
    display: block;
    font-size: 1rem;
    color: #b8b8b8;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.param-input {
    width: 100%;
    background: #2a2a2a;
    color: #7dd3a0;
    border: 1px solid #555555;
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
}

.param-input:focus {
    outline: none;
    border-color: #7dd3a0;
    box-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
}

.param-row {
    display: flex;
    gap: 0.625rem;
}

.param-row .param-group {
    flex: 1;
}

.select-input {
    font-family: 'Jersey';
    width: 100%;
    background: #2a2a2a;
    color: #7dd3a0;
    border: 1px solid #555555;
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.85rem;
}

.json-output {
    background: #1a1a1a;
    color: #7dd3a0;
    padding: 1rem;
    border: 2px solid #555555;
    border-radius: 0.5rem;
    font-family: 'Jersey';
    font-size: 0.95rem;
    white-space: pre-wrap;
    overflow-y: auto;
    overflow-x: visible;
    display: none;
    flex: 0 0 30%;
    margin: 0;
    box-shadow: 0 0 8px rgba(212, 184, 150, 0.3);
    text-shadow: 0 0 8px rgba(125, 211, 160, 0.4);
}

.close-panel {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #9db4c4 40%, #7a7a7a 70%, #606060);
    color: #4a4a4a;
    border: 2px solid #5a5a5a;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 1px 1px 2px rgba(255,255,255,0.3),
        inset -1px -1px 2px rgba(0,0,0,0.3),
        0 1px 3px rgba(0,0,0,0.2); 
}

.close-panel:hover {
    background: radial-gradient(circle at 30% 30%, #f0f0f0, #adc4d4 40%, #8a8a8a 70%, #707070);
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.4),
        inset -1px -1px 3px rgba(0,0,0,0.4),
        0 2px 4px rgba(0,0,0,0.3);
}

.close-panel::before { 
    transform: rotate(45deg);
    font-size: 0.8rem;
    line-height: 1;
}

.close-panel::after {
    content: '';
    position: absolute;
    width: 0.2rem;
    height: 0.2rem;
    background: #4a4a4a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 1px rgba(0,0,0,0.5);
}

.delete-btn::after {
    content: '';
    position: absolute;
    width: 0.15rem;
    height: 0.15rem;
    background: #4a4a4a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 1px rgba(0,0,0,0.5);
}

@media (min-width: 769px) {
    .delete-btn::after {
        width: 0.225rem;
        height: 0.225rem;
    }
}

/* Style for repeat times display */
.repeat-times-display {
    pointer-events: none;
    cursor: default;
    opacity: 0.8;
}

.repeat-times-display:hover {
    background: #e6fffa;
    color: #065f46;
}

.palette::before {
    content: 'double-tap to add';
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    font-size: 1.1rem;
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    pointer-events: none;
    z-index: 9000;
}
/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        height: calc(100dvh - 1rem);
    }
    
    .top-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.3rem;
    }
    .palette::before {
    content: 'double-tap to add';
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    font-size: 0.8rem;
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    pointer-events: none;
    z-index: 9000;
}
    .palette {
        flex: none;
        width: 100%;
        height: 6rem;
        position: relative;
    }
    
    .controls {
        flex: none;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: 2fr 2fr 2fr 0.75fr;
        grid-template-rows: repeat(2, 1fr);
        gap: 0.1rem;
        padding: 0.2rem;
        box-sizing: border-box;
    }
    
    .bottom-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.3rem;
    }
    
    .scope {
        flex: 1;
        min-height: 8rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .json-output {
        flex: 1;
        min-height: 6rem;
        max-height: 7.5rem;
    }
    
    .btn {
        max-width: none;
        padding: 0.2rem 0.2rem;
        font-size: clamp(0.9rem, 1.2vw, 1.0875rem);
        width: 100%;
        min-height: 1.5rem;
    }
    
    .btn-clear {
        grid-column: 4;
        grid-row: 1 / 3;
        width: 100%;
        height: 100%;
        font-size: clamp(0.8rem, 2vw, 1.2rem);
        padding: 0.25rem;
    }
    
    .module-controls {
        gap: 0.25rem;
    }
    
    .floating-panel {
        position: absolute;
        left: 1rem;
        right: 1rem;
        max-width: none;
        min-width: auto;
    }
}

option {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 700;
    font-size: 0.6875rem;
}

.btn {
    font-family: Jersey; 
}
 
@media (min-width: 769px) {
    .module-controls button,
    .module-controls .name-btn,
    .module-controls .type-btn,
    .module-controls .multival-btn,
    .module-controls .sort-btn,
    .module-controls .separator-btn,
    .module-controls .format-btn,
    .module-controls .direction-btn,
    .module-controls .weight-btn,
    .module-controls .connectivity-btn {
        font-size: 1.1rem !important;
        min-height: 2.25rem !important;
        height: 2.25rem !important;
        line-height: 1.2 !important;
        padding: 0.375rem 0.875rem !important;
        transform: scale(1) !important;
    }
    
    .module-controls .visibility-btn,
    .module-controls .delete-btn {
        width: 2rem !important;
        height: 2rem !important;
        min-width: 2rem !important;
        min-height: 2rem !important;
        transform: scale(1) !important;
    }
    
    .module-controls .inline-input {
        font-size: 1.5rem !important;
        height: 2.25rem !important;
        line-height: 1.2 !important;
        transform: scale(1) !important;
    }
    
    /* Ensure module cards have enough space */
    .module-card {
        padding: 0.625rem !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(24px);}
    to   { opacity: 1; transform: translateY(0);}
}
