html,
body {
    background-color: #141414 !important;
}


body {
    font-family: 'Lexend', sans-serif;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: #e2e2e2;
}

.container {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 280px;
    position: relative;
    flex-shrink: 0;
    transform-origin: top center;
    align-self: center;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.header {
    height: 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    flex-shrink: 0;
    z-index: 102;
    position: relative;
}

#logo-container {
    width: 44px;
    height: 11px;
    display: flex;
    align-items: center;
    transform: translateY(3px);
    cursor: pointer !important;
}

#logo-container svg {
    width: 100%;
    height: 100%;
}

#alert-wrapper {
    flex-grow: 1;
    height: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    margin-top: -2px;
    overflow: hidden;
}

#alert-video {
    height: 100%;
    display: none;
    transform: translateY(3px);
}

#settings-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 103;
}

#settings {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 104;
    cursor: pointer !important;
    transform: translateY(3px);
}

body.settings-open #settings {
    transform: translateX(-172px) rotate(90deg);
}

#settings-text {
    position: absolute;
    left: -150px;
    display: flex;
    pointer-events: none;
}

#settings-text span {
    font-size: 13px;
    font-weight: 300;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.settings-open #settings-text span {
    opacity: 1;
    transform: translateX(0);
}

body.settings-open #settings-text span:nth-child(8) { transition-delay: 0.15s; }
body.settings-open #settings-text span:nth-child(7) { transition-delay: 0.16s; }
body.settings-open #settings-text span:nth-child(6) { transition-delay: 0.17s; }
body.settings-open #settings-text span:nth-child(5) { transition-delay: 0.18s; }
body.settings-open #settings-text span:nth-child(4) { transition-delay: 0.20s; }
body.settings-open #settings-text span:nth-child(3) { transition-delay: 0.23s; }
body.settings-open #settings-text span:nth-child(2) { transition-delay: 0.27s; }
body.settings-open #settings-text span:nth-child(1) { transition-delay: 0.32s; }

.preview-container {
    width: 300px;
    height: 169px;
    background: #141414;
    flex-shrink: 0;
    margin-top: -5px;
}

#preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.controls-area {
    padding: 6px 5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.buttons-row button {
    flex: 1;
    position: relative;
    background: #141414;
    border-radius: 5px;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 34, 0, 0.5), inset 0 0 12px rgba(255, 34, 0, 0.25);
    color: #ffffff;
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 12px;
    height: 26px;
    cursor: pointer !important;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    z-index: 1;
    transition: box-shadow 0.5s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.buttons-row button:active {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 34, 0, 0.5), inset 0 0 12px rgba(255, 34, 0, 0.25);
}

.buttons-row button:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 34, 0, 0.5), inset 0 0 20px rgba(255, 34, 0, 0.5);
}

.buttons-row button::before {
    content: '';
    position: absolute;
    background: #FF2200;
    z-index: -1;
    filter: blur(8px);
    mix-blend-mode: screen;
    opacity: 0.8;
}

.buttons-row button:hover::before {
    opacity: 1.0;
}

#start-btn::before {
    width: 100%; height: 140%;
    top: 20%; left: -25%;
    border-radius: 40%;
    transform: rotate(-10deg);
}

#set-btn::before {
    width: 120%; height: 120%;
    top: -65%; left: -10%;
    border-radius: 50%;
    transform: rotate(5deg);
}

#delete-btn::before {
    width: 100%; height: 140%;
    top: 30%; left: 40%;
    border-radius: 45%;
    transform: rotate(-15deg);
}

.data-panel {
    background: #1A1A1A;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 4px 8px;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    width: 100%;
}

.stat-item {
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-item:nth-child(1) { justify-content: flex-start; }
.stat-item:nth-child(2) { justify-content: center; }
.stat-item:nth-child(3) { justify-content: flex-end; }

.stat-item span {
    font-size: 13px;
    font-weight: 400;
    color: #e2e2e2;
    line-height: 1;
    transform: translateY(1px);
    cursor: pointer;
    transition: color 0.2s ease;
}

.stat-item span:hover {
    color: #aaa;
}

.icon {
    width: 16px;
    height: 16px;
    display: block;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.sign {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
}

.sign::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    transition: background 0.5s;
    z-index: 0;
}

.sign:hover::before {
    background: rgba(255, 255, 255, 0.1);
}

.sign img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

.sign:hover img {
    opacity: 1;
}

input[type=range] {
    -webkit-appearance: none;
    flex-grow: 1;
    background: transparent;
    cursor: pointer !important;
    width: calc(100% + 4px);
    margin: 0 -2px;
    user-select: text;
    -webkit-user-select: text;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 15px;
    border-radius: 7.5px;
    
    background-color: #131313;
    
    background-image: 
        linear-gradient(to right, 
            #990000 0%, 
            #ff3300 calc(7.5px + (100% - 15px) * var(--val, 0) / 100), 
            transparent calc(7.5px + (100% - 15px) * var(--val, 0) / 100)
        ),
        
        linear-gradient(to bottom, rgba(9, 9, 9, 0.9) 0%, rgba(14, 14, 14, 0) 50%);
        
    box-shadow: none;
    
    border: 1px solid #222;
    box-sizing: border-box;
    user-select: text;
    -webkit-user-select: text;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    margin-top: -0.5px;
    background: radial-gradient(circle, #2D2D2D 0%, #2D2D2D 25%, #000 30%, #000 45%, #1a1a1a 52%, #FF2200 62%, #FF2200 100%);
    border: none;
    user-select: text;
    -webkit-user-select: text;
}

.stat-input {
    display: none;
    width: 40px;
    background-color: #101010;
    border: 0.2px solid #444;
    border-radius: 3px;
    color: #ffffff;
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    text-align: center;
    padding: 1px;
    margin-left: 1px;
    box-sizing: border-box;
}

.stat-item.editing span {
    display: none;
}

.stat-item.editing .stat-input {
    display: block;
}


#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s, backdrop-filter 0.4s;
    pointer-events: none;
    z-index: 100;
}


#overlay.visible {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    pointer-events: auto !important;
}




.settings-content {
    flex-grow: 1;
}

.settings-group {
    position: relative;
    margin-bottom: 30px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#settings-panel {
    position: absolute;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100%;
    background: #141414;
    border-left: 1px solid #333;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 101;
    display: flex;
    flex-direction: column;
    padding: 48px 20px 10px 10px; 
    box-sizing: border-box;
    
    visibility: hidden; 

    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
}

body.settings-open #settings-panel {
    right: 0;
    
    visibility: visible; 
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.settings-group::before {
    content: attr(data-label);
    position: absolute;
    top: -18px; 
    left: 0;
    font-size: 10px;
    color: #555;
    font-weight: 300;
}

.settings-group::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0px; 
    bottom: 0;
    width: 1px;
    background: #333;
}

.settings-group[data-label="about"]::before {
    top: -20px;
}

.settings-group[data-label="about"]::after {
    top: 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #e2e2e2;
}

.footer-item span {
    color: #666;
    font-weight: 300;
}

.custom-checkbox {
    accent-color: #FF2200;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.custom-select {
    background: #1A1A1A;
    color: #FF2200;
    border: 1px solid #333;
    border-radius: 3px;
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    padding: 1px 4px;
    outline: none;
}

.arrow-icon {
    width: 14px;
    height: 14px;
}




.version-row .version-number {
    color: #666;
    font-weight: 300;
}


.setting-item.tutorial,
.setting-item.footer-item {
    cursor: pointer; 
    transition: opacity 0.2s ease, background-color 0.2s ease;
    border-radius: 4px; 
    padding: 2px 0; 
}


.setting-item.tutorial:hover,
.setting-item.footer-item:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05); 
}

.setting-item.tutorial:hover span,
.setting-item.footer-item:hover span {
    color: #ffffff; 
}

.setting-item.tutorial:hover svg,
.setting-item.footer-item:hover svg {
    transform: translateX(2px); 
    stroke: #ffffff; 
}

.setting-item.tutorial:hover .tutorial-arrow {
    transform: translateY(-2px);
}



.header {
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    flex-shrink: 0;
    z-index: 102;
    position: relative;
    margin-bottom: 2px;
}

#header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 10;
}


#mode-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.2s ease;
}


.mode-title {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    z-index: 10;
    margin-right: 2px;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.custom-radio input {
    display: none;
}

.radio-text {
    font-size: 10px;
    font-weight: 600;
    color: #ccc;
    z-index: 10;
}

.radio-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0a0a0a;
    border: 1px solid #444;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.radio-circle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF2200;
    position: relative;

    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



.custom-radio:hover .radio-circle {
    border-color: #666;
}

.custom-radio:hover .radio-text {
    color: #fff;
}

.custom-radio input:checked+.radio-circle {
    border-color: #FF2200;
}

.custom-radio input:checked+.radio-circle::after {
    transform: scale(1);
}



.header {
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    flex-shrink: 0;
    position: relative;
    margin-bottom: 2px;
    z-index: auto;
}

#logo-container {
    position: relative;
    z-index: 105;
}

#header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 1;
}

#settings-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 105;
}


#mode-controls,
.mode-title,
.custom-radio,
.radio-text {
    z-index: auto !important;
}

#alert-video {
    position: absolute;
    height: 100%;
    z-index: 2;
}



#link-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#link-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.link-modal {
    background: #151315;
    border: 1px solid #333;
    border-radius: 8px;
    width: 255px;
    padding: 6px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    opacity: 70;
}

#link-modal-overlay.active .link-modal {
    transform: scale(1);
}

.link-modal-text {
    font-size: 12px;
    color: #e2e2e2;
    text-align: center;
    font-weight: 370;
    padding: 2px 0;
}

.link-modal-video {
    width: 100%;
    aspect-ratio: 1680 / 1080;
    background: #151315;
    border-radius: 3px;
    overflow: hidden;
}

.link-modal-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-modal-btn-wrap {
    display: flex;
    justify-content: flex-end;
}

#link-modal-btn {
    background: #1A1A1A;
    border: 1px solid #262626;
    color: #e2e2e2;
    padding: 0px 10px;
    height: 18px;
    border-radius: 4px;
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#link-modal-btn:hover {
    background: #252525;
    border-color: #333;
}



.master-toggle.active {
    background: #FF2200;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #FF2200;
}

.master-toggle.active:hover {
    background: #FF4422;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 0 0 1px #FF4422;
}

.toggle-knob {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
}


.master-toggle {
    position: absolute;
    top: 5px;
    right: 20px;
    width: 28px;
    height: 14px;
    border-radius: 7px;
    background: #1a1a1a;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8), inset 0 0 0 1px #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    box-sizing: border-box;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 105;
}


.master-toggle.active .toggle-knob {
    transform: translateX(14px);
}



.knob-icon {
    width: 8px;
    height: 8px;
    margin-left: -0.2px;
    margin-top: 0.6px;
    color: #c0c0c0;
    transition: color 0.3s ease;
}

.master-toggle:hover .knob-icon {
    color: #999999;
}


.container {
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.preview-container {
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        margin 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.3s ease;
    overflow: hidden;
}


body.compact-mode .container {
    width: 250px;
    height: 116px;
}

body.compact-mode .preview-container {
    height: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
}


#settings-panel {
    overflow-y: auto;
    overflow-x: hidden;
}


#settings-panel::-webkit-scrollbar {
    width: 4px;
}

#settings-panel::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 48px;
    margin-bottom: 5px;
}

#settings-panel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

#settings-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}



#settings-panel {
    padding-top: 0 !important;
}

#settings-panel::before {
    content: '';
    position: sticky;
    top: -10px;
    display: block;
    width: calc(100% + 30px);
    margin-left: -10px;
    height: 58px;
    margin-top: -10px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;

    background: linear-gradient(to bottom, #141414 30px, rgba(20, 20, 20, 0) 100%);

    z-index: 104;
    pointer-events: none;
}


#logo-container,
#settings-wrapper,
.master-toggle {
    transition: opacity 0.3s ease;
}



body.compact-mode.is-alerting #logo-container,
body.compact-mode.is-alerting #settings-wrapper,
body.compact-mode.is-alerting .master-toggle,
body.compact-mode.is-alerting #mode-controls {
    display: none !important;
}


body.compact-mode.is-alerting .header {
    display: block !important;
    position: relative !important;
}


body.compact-mode.is-alerting #alert-video {
    display: block !important;
    opacity: 1 !important;
    position: absolute !important;

    left: 50% !important;
    top: 5px !important;

    margin: 0 !important;
    height: 24px !important;
    width: auto !important;
    z-index: 9999 !important;
}

body.compact-mode.is-alerting #header-center {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}




body.compact-mode .link-modal {
    width: 235px;
    padding: 4px 6px;
    display: grid;
    grid-template-columns: 115px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 6px;
    align-items: center;
}


body.compact-mode .link-modal-video {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%;
    margin: 0;
}


body.compact-mode .link-modal-text {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 10px;
    text-align: left;
    padding: 0;
    line-height: 1.2;

}


body.compact-mode .link-modal-btn-wrap {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-content: flex-end;
}


body.compact-mode #link-modal-btn {
    height: 18px;
    font-size: 10px;
    padding: 0 10px;
}


#keyframe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#keyframe-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.warn-modal {
    background: #151315;
    border: 1px solid #333;
    border-radius: 8px;
    width: 220px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

#keyframe-modal-overlay.active .warn-modal {
    transform: scale(1);
}

.warn-modal-text {
    font-size: 11px;
    color: #e2e2e2;
    text-align: center;
    font-weight: 300;
    line-height: 1.4;
}

.warn-modal-btn-wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-btn {
    background: #1A1A1A;
    border: 1px solid #262626;
    color: #e2e2e2;
    padding: 0px 10px;
    height: 22px;
    border-radius: 4px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.modal-btn:hover {
    background: #252525;
    border-color: #444;
}

#keyframe-btn-sure:hover {
    background: #FF2200;
    border-color: #FF4422;
    color: #fff;
}

body.compact-mode .warn-modal {
    width: 210px;
    padding: 10px 14px;
    gap: 12px;
}

body.compact-mode .warn-modal-text {
    font-size: 10px;
}

body.compact-mode .modal-btn {
    height: 18px;
    font-size: 10px;
}


#selection-popup {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translate(-50%, 15px);
    width: 240px;
    background: #111011;
    border: 0.5px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
    z-index: 210;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#selection-popup.active {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.sel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sel-title {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#sel-apply-btn {
    background: #1a1a1a;
    border: 0.5px solid #333;
    color: #e2e2e2;
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    padding: 0 10px 2px 10px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#sel-apply-btn:hover {
    background: #FF2200;
    border-color: #FF4422;
    color: #fff;
}

.sel-divider {
    height: 1px;
    background: #222;
    margin: 0 -12px 10px -12px;
}

.sel-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #e2e2e2;
    margin-bottom: 12px;
    white-space: nowrap;
}

.num-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0a0a0a;
    padding: 0 6px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #222;
}

.num-arrow {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    cursor: pointer;
}

.num-arrow.left {
    border-right: 5px solid #444;
}

.num-arrow.right {
    border-left: 5px solid #444;
}

.num-arrow:hover.left {
    border-right-color: #FF2200;
}

.num-arrow:hover.right {
    border-left-color: #FF2200;
}

#batch-val {
    font-size: 11px;
    color: #FF2200;
    min-width: 12px;
    text-align: center;
    font-weight: 600;
}

#sel-input {
    background: #0a0a0a;
    border: 1px solid #222;
    color: #e2e2e2;
    font-size: 11px;
    width: 32px;
    height: 18px;
    padding: 0;
    text-align: center;
    border-radius: 3px;
    outline: none;
}

#sel-squares-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sel-sq {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
}

.sel-sq.active {
    background: #FF2200;
    border-color: #FF2200;
}