.left,
.right {
    -webkit-flex: 1; /* Safari */
    -ms-flex: 1; /* IE */
    flex: 1;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;
    -webkit-justify-content: center; /* Safari */
    -ms-flex-pack: center; /* IE */
    justify-content: center;
    max-width: 200px;
    width:200px;
}

#customcursor:checked + .switcher-label::after {
    color: black;
  }

@media (max-width: 770px) {
    .my-collection-header {
        -webkit-flex-wrap: wrap !important; /* Safari */
        -ms-flex-wrap: wrap !important; /* IE */
        flex-wrap: wrap !important;
        -webkit-justify-content: center !important; /* Safari */
        -ms-flex-pack: center !important; /* IE */
        justify-content: center !important;
    }
    .my-collection-switcher {
        padding-left: 10px;
    }
}

@-webkit-keyframes movingGradient { /* Safari */
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@-moz-keyframes movingGradient { /* Firefox */
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes movingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.content .switcher-label { /* Замість :has() */
    width: 100% !important;
}

#slider1 {
    cursor: pointer;
}

.switcher-label-new {
    -webkit-justify-content: space-between !important; /* Safari */
    -ms-flex-pack: justify !important; /* IE */
    justify-content: space-between !important;
}

.switcher-label {
    width: 100%;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-align-content: center; /* Safari */
    -ms-flex-line-pack: center; /* IE */
    align-content: center;
    -webkit-justify-content: flex-end; /* Safari */
    -ms-flex-pack: end; /* IE */
    justify-content: flex-end;
    padding: 10px 27px;
    background: var(--transparent);
    -webkit-border-radius: 8px; /* Safari */
    -moz-border-radius: 8px; /* Firefox */
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    text-transform: uppercase;
}

/* .switcher-label::after {
    content: "💠";
    position: absolute;
    right: 2px;
    top: 50%;
    -webkit-transform: translateY(-50%); 
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%); 
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(0, 0, 0, 0.2);
    top: 17px;
} */

.switcher-switch {
    width: 125px;
    height: 50px;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-align-content: center; /* Safari */
    -ms-flex-line-pack: center; /* IE */
    align-content: center;
    -webkit-justify-content: center; /* Safari */
    -ms-flex-pack: center; /* IE */
    justify-content: center;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;   
}

.currentcursorbox {
    position: relative;
    width: 320px;
    height: 175px;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    padding: 20px;
    -webkit-border-radius: 7px; /* Safari */
    -moz-border-radius: 7px; /* Firefox */
    border-radius: 7px;
    margin: 10px;
    -webkit-justify-content: center; /* Safari */
    -ms-flex-pack: center; /* IE */
    justify-content: center;
}

.currentcursorbox::before {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--block-bg);
    padding: 0 10px;
    font-size: 14px;
    -webkit-border-radius: 6px; /* Safari */
    -moz-border-radius: 6px; /* Firefox */
    border-radius: 6px;
    color: var(--color-text);
}

.currentcursorbox #nopointer-preview {
    border-left: 1px solid var(--transparent);
    padding-left: 10px;
}

.currentcursorbox #nocursor-preview {
    padding-right: 10px;
}

.effects-container-wrapper {
    width: 100%;
    margin-bottom: 25px;
    padding: 20px;
    -webkit-border-radius: 10px; /* Safari */
    -moz-border-radius: 10px; /* Firefox */
    border-radius: 10px;
    background-color: white;
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Safari */
    -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Firefox */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.switcher-off {
    pointer-events: none;
    -webkit-filter: grayscale(1); /* Safari */
    -moz-filter: grayscale(1); /* Firefox */
    -ms-filter: grayscale(1); /* IE */
    filter: grayscale(1);
}


.my-collection-header {
    background-color: var(--block-bg);
    min-height: 100px;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-flex-direction: row; /* Safari */
    -ms-flex-direction: row; /* IE */
    flex-direction: row;
    margin-bottom: 20px;
    -webkit-border-radius: 8px; /* Safari */
    -moz-border-radius: 8px; /* Firefox */
    border-radius: 8px;
    -webkit-flex-wrap: nowrap; /* Safari */
    -ms-flex-wrap: nowrap; /* IE */
    flex-wrap: nowrap;
    -webkit-justify-content: space-between; /* Safari */
    -ms-flex-pack: justify; /* IE */
    justify-content: space-between;
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Safari */
    -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Firefox */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mycollection {
    width: 100%;
    max-width: 1000px;
    -webkit-flex-direction: column; /* Safari */
    -ms-flex-direction: column; /* IE */
    flex-direction: column;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-flex-wrap: wrap; /* Safari */
    -ms-flex-wrap: wrap; /* IE */
    flex-wrap: wrap;
    position: relative;
}

.mycollection #mycursors {
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Safari */
    -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Firefox */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mycollection .content {
    width: 100% !important;
    -webkit-border-radius: 7px; /* Safari */
    -moz-border-radius: 7px; /* Firefox */
    border-radius: 7px;
    -webkit-flex: 2; /* Safari */
    -ms-flex: 2; /* IE */
    flex: 2;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    background: var(--block-bg);
    max-width: 1000px;
    -webkit-align-content: center; /* Safari */
    -ms-flex-line-pack: center; /* IE */
    align-content: center;
    -webkit-flex-direction: row; /* Safari */
    -ms-flex-direction: row; /* IE */
    flex-direction: row;
    -webkit-justify-content: center; /* Safari */
    -ms-flex-pack: center; /* IE */
    justify-content: center;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;
    height: 100px;
}

.mycollection #mycursors {
    -webkit-flex-direction: column !important; /* Safari */
    -ms-flex-direction: column !important; /* IE */
    flex-direction: column !important;
    width: 100%;
    -webkit-border-radius: 7px; /* Safari */
    -moz-border-radius: 7px; /* Firefox */
    border-radius: 7px;
    -webkit-flex: 2; /* Safari */
    -ms-flex: 2; /* IE */
    flex: 2;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    background: var(--block-bg);
    max-width: 1000px;
    height: 100px;
    padding-bottom: 20px;
}

.mycollection .title {
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;
    font-size: 24px;
    color: var(--color-text);
    padding: 30px 10px 10px 20px;
    line-height: unset;
}

.mycollection .title span {
    -webkit-flex: 1; /* Safari */
    -ms-flex: 1; /* IE */
    flex: 1;
    height: 1px;
    margin-left: 10px;
    margin-top: 4px;
}

.mycollection .line {
    -webkit-flex: 1; /* Safari */
    -ms-flex: 1; /* IE */
    flex: 1;
    height: 1px;
    margin-left: 10px;
    background: -webkit-linear-gradient(left, #a7a7a7, rgba(0, 0, 0, 0)); /* Safari */
    background: -moz-linear-gradient(left, #a7a7a7, rgba(0, 0, 0, 0)); /* Firefox */
    background: linear-gradient(to right, #a7a7a7, rgba(0, 0, 0, 0));
}

.mycollection .cursor-list {
    width: 100%;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-flex-wrap: wrap; /* Safari */
    -ms-flex-wrap: wrap; /* IE */
    flex-wrap: wrap;
    padding: 0px 20px;
}

.mycollection .cursor-item {
    background-color: var(--block-bg);
    padding: 8px 10px 10px 10px;
    -webkit-border-radius: 4px; /* Safari */
    -moz-border-radius: 4px; /* Firefox */
    border-radius: 4px;
    margin: 5px;
    text-align: center;
    margin-bottom: 7px;
    width: -webkit-calc(25% - 10px); /* Safari */
    width: -moz-calc(25% - 10px); /* Firefox */
    width: calc(25% - 10px);
    height: 207px;
    position: relative;
}

.mycollection .remove-btn {
    display: none;
    outline: none !important;
    border: none;
    background: transparent;
    top: 8px;
    position: absolute;
    left: -webkit-calc(100% - 35px); /* Safari */
    left: -moz-calc(100% - 35px); /* Firefox */
    left: calc(100% - 35px);
    opacity: 0.7;
    width: 36px;
}

.mycollection .main__item {
    background-color: var(--block-bg);
    padding: 8px 10px 10px 10px;
    -webkit-border-radius: 4px; /* Safari */
    -moz-border-radius: 4px; /* Firefox */
    border-radius: 4px;
    margin: 4px;
    text-align: center;
    margin-bottom: 7px;
    width: -webkit-calc(25% - 10px); /* Safari */
    width: -moz-calc(25% - 10px); /* Firefox */
    width: 145px;
    height: 145px;
    position: relative;
    -webkit-justify-content: center; /* Safari */
    -ms-flex-pack: center; /* IE */
    justify-content: center;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
}

.mycollection .main__item:hover .remove-btn {
    display: block;
}

.mycollection .main__item:hover {
    -webkit-box-shadow: 0px 0px 3px #98989863; /* Safari */
    -moz-box-shadow: 0px 0px 3px #98989863; /* Firefox */
    box-shadow: 0px 0px 3px #98989863;
}

.mycollection .main__item-img {
    cursor: pointer;
    height: inherit;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-box-pack: justify; /* Safari */
    -webkit-justify-content: space-around; /* Safari */
    -ms-flex-pack: justify; /* IE */
    justify-content: space-around;
    padding: 25px;
    margin-bottom: 0px;
}

.mycollection-wrapper {
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-flex-direction: row; /* Safari */
    -ms-flex-direction: row; /* IE */
    flex-direction: row;
    margin-top: 30px;
    justify-content: center;
}

.google-sides{
    position: relative;
    height: 100%;
    width: 100%;
}

[data-message-id="undefined"] {
    display: none !important;
  }
  
.google-sides .googleads{
    position: sticky;
    top: 0;
    left: 0;
}

.cursor-settings {
    display: -ms-grid; /* IE */
    display: grid;
    -ms-grid-columns: auto auto; /* IE */
    grid-template-columns: auto auto;
    gap: 10px;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;
    width: -webkit-max-content; /* Safari */
    width: -moz-max-content; /* Firefox */
    width: max-content;
}

.cursor-option {
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;
    gap: 10px;
}

emoji-picker {
    display: none;
    position: absolute;
    z-index: 999;
}


.material-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.material-label-cell {
    padding: 8px 16px 8px 0;
    vertical-align: middle;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
}

.material-input-cell {
    padding: 8px 0;
}


.child-container {
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
    -webkit-flex-direction: column; /* Safari */
    -ms-flex-direction: column; /* IE */
    flex-direction: column;
    gap: 12px;
}



.child-label {
    min-width: 80px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
}

.material-input-wrapper {
    position: relative;
    width: 100%;
    text-wrap: nowrap;
    -webkit-justify-content: center; /* Safari */
    -ms-flex-pack: center; /* IE */
    justify-content: center;
    -webkit-align-items: center; /* Safari */
    -ms-flex-align: center; /* IE */
    align-items: center;
    display: -webkit-box; /* Safari */
    display: -webkit-flex; /* Safari */
    display: -ms-flexbox; /* IE */
    display: flex;
}

.material-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--transparent);
    -webkit-border-radius: 8px; /* Safari */
    -moz-border-radius: 8px; /* Firefox */
    border-radius: 8px;
    font-size: 14px;
    -webkit-transition: border-color 0.3s; /* Safari */
    -moz-transition: border-color 0.3s; /* Firefox */
    transition: border-color 0.3s;
}

.material-input:focus {
    outline: none;
    border-color: var(--color-bg-via);
    -webkit-box-shadow: 0 0 0 5px var(--transparent); /* Safari */
    -moz-box-shadow: 0 0 0 5px var(--transparent); /* Firefox */
    box-shadow: 0 0 0 5px var(--transparent);
}

.material-select-wrapper {
    position: relative;
    width: 100%;
}

.material-select {
    width: 100%;
    padding: 8px 32px 8px 8px;
    font-size: 16px;
    border: 1px solid var(--transparent);
    -webkit-border-radius: 4px; /* Safari */
    -moz-border-radius: 4px; /* Firefox */
    border-radius: 4px;
    background: var(--block-bg) url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 8px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color: var(--color-text);
}

.material-select:focus {
    outline: none;
    border-color: var(--color-bg-via);
    -webkit-box-shadow: 0 0 0 5px var(--transparent); /* Safari */
    -moz-box-shadow: 0 0 0 5px var(--transparent); /* Firefox */
    box-shadow: 0 0 0 5px var(--transparent);
}

.material-input[type="range"] {
    width: -webkit-calc(100% - 40px); /* Safari */
    width: -moz-calc(100% - 40px); /* Firefox */
    width: calc(100% - 40px);
    margin: 0;
    height: 8px;
    -webkit-border-radius: 4px; /* Safari */
    -moz-border-radius: 4px; /* Firefox */
    border-radius: 4px;
    background: var(--slider-bg);
    outline: none;
    -webkit-appearance: none;
}

.material-input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    -webkit-border-radius: 50%; /* Safari */
    -moz-border-radius: 50%; /* Firefox */
    border-radius: 50%;
    background: var(--thumb-color);
    cursor: pointer;
}

.material-input[type="range"]::-moz-range-thumb { /* Firefox */
    width: 16px;
    height: 16px;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: var(--thumb-color);
    cursor: pointer;
    border: none;
}

.material-range-value {
    margin-left: 8px;
    color: var(--color-text);
    font-size: 14px;
    min-width: 30px;
    text-align: right;
}

.color-picker {
    height: 40px;
    background: none;
}

.effect-selector-container {
    padding: 20px;
}

.category-divider {
    padding: 10px 0;
    white-space: nowrap;
}

.category-label {
    display: inline;
    font-weight: bold;
    margin-right: 10px;
}

.category-line {
    display: inline-block;
    width: -webkit-calc(100% - 120px); /* Safari */
    width: -moz-calc(100% - 120px); /* Firefox */
    width: calc(100% - 120px);
    border: none;
    height: 2px;
    background: -webkit-linear-gradient(left, #cccccc, rgba(204, 204, 204, 0)); /* Safari */
    background: -moz-linear-gradient(left, #cccccc, rgba(204, 204, 204, 0)); /* Firefox */
    background: linear-gradient(to right, #cccccc, rgba(204, 204, 204, 0));
    margin: 0;
    vertical-align: middle;
}



/* Замість :has() для td */
td [data-nested-data] {
    width: 85%;
}

.line-effect {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.line-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: -webkit-linear-gradient(120deg, red, magenta, blue, cyan, lime, yellow, orange); /* Safari */
    background: -moz-linear-gradient(120deg, red, magenta, blue, cyan, lime, yellow, orange); /* Firefox */
    background: linear-gradient(120deg, red, magenta, blue, cyan, lime, yellow, orange);
    -webkit-transform: skewX(-20deg); /* Safari */
    -moz-transform: skewX(-20deg); /* Firefox */
    -ms-transform: skewX(-20deg); /* IE */
    transform: skewX(-20deg);
    -webkit-animation: line-move 5s linear infinite; /* Safari */
    -moz-animation: line-move 5s linear infinite; /* Firefox */
    animation: line-move 5s linear infinite;
    opacity: 0.5;
    z-index: 1;
    margin-left: 20px;
    -webkit-filter: blur(20px); /* Safari */
    -moz-filter: blur(20px); /* Firefox */
    -ms-filter: blur(20px); /* IE */
    filter: blur(20px);
}

@-webkit-keyframes line-move { /* Safari */
    0% { left: -100%; opacity: 0; }
    5% { opacity: 0.7; }
    20% { left: 100%; opacity: 0.4; }
    100% { left: 100%; opacity: 0; }
}
@-moz-keyframes line-move { /* Firefox */
    0% { left: -100%; opacity: 0; }
    5% { opacity: 0.7; }
    20% { left: 100%; opacity: 0.4; }
    100% { left: 100%; opacity: 0; }
}
@keyframes line-move {
    0% { left: -100%; opacity: 0; }
    5% { opacity: 0.7; }
    20% { left: 100%; opacity: 0.4; }
    100% { left: 100%; opacity: 0; }
}


details {
    border-bottom: 1px solid var(--transparent);
    padding: 10px 0;
    font-family: sans-serif;
    color: var(--color-text);
    position: relative;
    margin: 0px 20px 0px 20px;
  }

  summary {
    display: flex !important;
    justify-content: flex-start;
    align-items: left;
    cursor: pointer;
    font-size: 16px;
  }

  summary span {
    flex-grow: 1; /* текст займає весь простір */
  }

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

  summary::after {
    /* content: "👈"; */
    font-size: 23px;
    color: var(--color-text);
    transition: transform 0.2s ease;
    font-weight: 100;
  }

  details[open] summary::after {
    /* content: "👇"; */
  }

  details > *:not(summary) {
    margin-top: 10px;
    font-size: 15px;
    color: var(--color-text);
  }

  .emoji-container{
    width: 100%;
  }

.effects-container-wrapper {
    position: relative;
    overflow: visible;
    z-index: 12;
    border: 1px solid var(--transparent);
    border-radius: 20px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(234, 179, 8, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 250, 0.96));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.effects-container-wrapper.selector-open {
    /* z-index removed — menu now uses position:fixed to escape stacking context */
}

.effects-container-wrapper > h2 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
}

.effects-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: visible;
}

.default_cursor_cs {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.effect-aux-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.effects-container.effects-off-panel {
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    text-align: center;
}

.effects-off-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--transparent);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.effects-off-panel__badge .material-icons-round {
    font-size: 16px;
    opacity: 0.6;
}

.effects-off-panel__hint {
    margin: 0;
    max-width: 32ch;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.55;
}

.effects-off-panel__sparks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.effects-off-panel__spark {
    border-radius: 999px;
    background: var(--transparent);
    opacity: 0.45;
}

.effects-off-panel__spark:nth-child(1) { width: 10px; height: 10px; }
.effects-off-panel__spark:nth-child(2) { width: 14px; height: 14px; }
.effects-off-panel__spark:nth-child(3) { width: 9px; height: 9px; }

.effect-selector-container {
    padding: 0;
    position: relative;
    flex: 1;
    min-width: 0;
}

.effect-selector-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.effect-selector-trigger {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--transparent);
    border-radius: 16px;
    background: var(--block-bg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    appearance: none !important;
    box-shadow: inset 0 0 0 1px var(--transparent);
}

.effect-selector-trigger:hover,
.effect-selector-shell.open .effect-selector-trigger {
    transform: translateY(-1px);
    border-color: var(--transparent);
    box-shadow: inset 0 0 0 1px var(--transparent), 0 10px 22px rgba(0, 0, 0, 0.06);
}

.effect-toolbar {
    position: relative;
    z-index: 8;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.effect-trigger-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.effect-trigger-icon,
.effect-card-option-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: var(--transparent);
}

.effect-trigger-copy,
.effect-card-option-copy {
    min-width: 0;
    text-align: left;
}

.effect-trigger-name,
.effect-card-option-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
}

.effect-trigger-chevron {
    transition: transform 0.2s ease;
}

.effect-selector-shell.open .effect-trigger-chevron {
    transform: rotate(180deg);
}

.effect-card-menu {
    position: absolute;
    /* top/left/width set dynamically by JS — menu is teleported to document.body */
    z-index: 2147483647;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    padding: 14px;
    border: 1px solid var(--transparent);
    border-radius: 18px;
    background: var(--block-bg);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
}

.effect-card-menu.effect-card-menu--open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}

.effect-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--transparent) transparent;
}

.effect-card-grid::-webkit-scrollbar {
    width: 10px;
}

.effect-card-grid::-webkit-scrollbar-track {
    background: transparent;
}

.effect-card-grid::-webkit-scrollbar-thumb {
    background: var(--transparent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.effect-card-grid::-webkit-scrollbar-thumb:hover {
    background: var(--transparent);
    background-clip: padding-box;
}

.effect-card-option {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--transparent);
    border-radius: 14px;
    background: var(--block-bg);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    appearance: none !important;
}

.effect-card-option:hover,
.effect-card-option.is-active {
    transform: translateY(-1px);
    border-color: var(--transparent);
    box-shadow: inset 0 0 0 1px var(--transparent), 0 10px 20px rgba(0, 0, 0, 0.05);
}

.effect-settings-toggle {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid var(--transparent);
    border-radius: 16px;
    background: var(--block-bg);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    appearance: none !important;
    box-shadow: inset 0 0 0 1px var(--transparent);
}

.effect-settings-toggle:hover,
.effect-settings-toggle.is-open {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px var(--transparent), 0 10px 22px rgba(0, 0, 0, 0.06);
}

.effect-settings-panel {
    position: relative;
    z-index: 2;
}

.effect-settings-panel[hidden] {
    display: none !important;
}

.material-form {
    padding: 18px;
    border: 1px solid var(--transparent);
    border-radius: 18px;
    background: var(--block-bg);
}

.material-select-wrapper {
    position: relative;
}

.settings-select-shell {
    position: relative;
}

.settings-select-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-select-trigger {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--transparent);
    border-radius: 14px;
    background: var(--block-bg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    appearance: none !important;
    box-shadow: inset 0 0 0 1px var(--transparent);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-select-trigger:hover,
.settings-select-shell.open .settings-select-trigger {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px var(--transparent), 0 10px 22px rgba(0, 0, 0, 0.05);
}

.settings-select-trigger-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.settings-select-trigger-icon {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.settings-select-shell.open .settings-select-trigger-icon {
    transform: rotate(180deg);
}

.settings-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 35;
    display: none;
    max-height: 260px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--transparent);
    border-radius: 16px;
    background: var(--block-bg);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
    scrollbar-width: thin;
    scrollbar-color: var(--transparent) transparent;
}

.settings-select-shell.open .settings-select-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: effect-selector-in 0.16s ease;
}

.settings-select-menu::-webkit-scrollbar {
    width: 10px;
}

.settings-select-menu::-webkit-scrollbar-track {
    background: transparent;
}

.settings-select-menu::-webkit-scrollbar-thumb {
    background: var(--transparent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.settings-select-option {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    appearance: none !important;
}

.settings-select-option:hover,
.settings-select-option.is-active {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--block-bg) 72%, var(--transparent));
    box-shadow: inset 0 0 0 1px var(--transparent);
}

.grouped-options {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--block-bg) 88%, transparent);
}

.material-table {
    border-spacing: 0 14px;
}

.material-label-cell {
    width: 38%;
    padding-right: 16px;
    font-weight: 600;
}

.category-divider {
    padding: 8px 0 2px;
}

.category-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.gradient-line {
    width: 100%;
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--transparent), transparent);
}

.material-input,
.material-select {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--transparent) !important;
    background-color: var(--block-bg) !important;
    color: var(--color-text) !important;
    box-shadow: inset 0 0 0 1px var(--transparent);
}

.material-input:focus,
.material-select:focus {
    border-color: var(--transparent) !important;
    box-shadow: inset 0 0 0 1px var(--transparent), 0 0 0 4px rgba(0, 0, 0, 0.04) !important;
}

.material-input[type="range"] {
    width: calc(100% - 52px);
}

.material-range-value {
    min-width: 36px;
    font-weight: 700;
}

.child-container {
    gap: 14px;
    padding: 14px;
    border: 1px dashed var(--transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--block-bg) 90%, transparent);
}

.mycollection #mycursors {
    position: relative;
    z-index: 1;
}

@keyframes effect-selector-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .effect-toolbar {
        flex-direction: column;
    }

    .effect-settings-toggle {
        width: 100%;
        justify-content: center;
    }

    .effect-card-grid {
        grid-template-columns: 1fr;
    }

    .material-label-cell,
    .material-input-cell,
    .material-table tr,
    .material-table td {
        display: block;
        width: 100%;
    }

    .material-label-cell {
        padding: 0 0 8px;
    }
}