* { box-sizing: border-box; padding: 0; margin: 0; }
body { font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 400; line-height: 28px; color: #131313; background: #1d2127; margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
p { margin-bottom: 16px; }
ul { list-style: none; }
a { text-decoration: none; outline: none; color: #acacac;}
img { display: block; }
h1, h2 { font-size: 28px; line-height: 32px; font-weight: 600; text-align: left; margin-bottom: 26px; margin-left: 15px; margin-top: 15px;}

header { 
    position: relative;
    width: 100%; 
    min-height: 90px; 
    background: #1d2127; 
    padding: 20px; 
    padding-top: calc(20px + env(safe-area-inset-top)); 
    z-index: 10; 
}

.status-bar-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background: #1d2127;
    z-index: 9999;
}

.logo { display: flex; align-items: center; justify-content: left; float: left; height: 40px; margin-top: 5px; font-size: 32px; font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 2px; color: #e0e0e0; }
.logo .highlight {background: linear-gradient(90deg, #18d6c4, #00bcd4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

nav { width: 100%; height: 50px; }
#nav-icon { display: none; width: 20px; height: 18px; position: relative; float: right; margin-left: 10px; margin-top: 16px; -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); -webkit-transition: .5s ease-in-out; -moz-transition: .5s ease-in-out; -o-transition: .5s ease-in-out; transition: .5s ease-in-out; cursor: pointer; z-index: 10;}
#nav-icon span { display: block; position: absolute; height: 2px; width: 100%; background: #838384; opacity: 1; left: 0; -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); -webkit-transition: .25s ease-in-out; -moz-transition: .25s ease-in-out; -o-transition: .25s ease-in-out; transition: .25s ease-in-out; }
#nav-icon span:nth-child(1) { top: 0px; -webkit-transform-origin: left center; -moz-transform-origin: left center; -o-transform-origin: left center; transform-origin: left center; }
#nav-icon span:nth-child(2) { top: 8px; -webkit-transform-origin: left center; -moz-transform-origin: left center; -o-transform-origin: left center; transform-origin: left center; }
#nav-icon span:nth-child(3) { top: 16px; -webkit-transform-origin: left center; -moz-transform-origin: left center; -o-transform-origin: left center; transform-origin: left center; }
#nav-icon.open span:nth-child(1) { -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); top:  1px; left: 3px; }
#nav-icon.open span:nth-child(2) { width: 0%; opacity: 0; }
#nav-icon.open span:nth-child(3) { -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); top: 15px; left: 3px; }
#menu { float: right; }
#menu li { display: inline-block; margin-right: 40px; }
#menu a { font-weight: 600; font-style: normal; color: #838384; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; display: block; line-height: 50px; }
#menu a:hover { color: #dfdfdf; }
#menu li:last-child  { margin-right: 0; }
#menu.active { max-height: 260px; transition: .1s ease-in-out; }

@media (max-width: 600px) { 
    header { position: relative; }
	.main-wrapper { padding-top: 0px; }
	#nav-icon { display: block; }
    #menu { max-height: 0; background: #1d2127; position: absolute; overflow: hidden; top: 100%; right: 0; left: 0; margin: 0; padding: 0; float: none; z-index: 3; box-shadow: 0 4px 6px rgba(0,0,0,0.3);}
	#menu li { display: block; padding-left: 20px; border-top: 0px solid #292a2c; border-bottom: 0px solid #292a2c; margin-right: 0; }
	#menu li:hover { background-color: #dfdfdf; border-top: 0px solid #dfdfdf; border-bottom: 0px solid #dfdfdf; }
	#menu a { font-size: 13px; color: #e7e7e7; letter-spacing: 0px; }
	#menu a:hover { color: #202020; }
	.column-wrapper img.google_play { width: 345px; height: 102px; top: -75px; }
	.column-wrapper img.app_store { width: 345px; height: 102px; top: -75px; }
	.fb_topicon { margin-left: 20px; }
	nav { text-align: left; }
	.mobile-hide { display: none; }
	.mobile-show { display: block; width: 100%; min-height: 0; }
	h2 { font-size: 24px; text-align: left; } 
	.main-section-top { min-height: 500px; }
	.main-section-top h1 { font-size: 36px; line-height: 36px; }
	footer { padding: 20px 0; }
	.column-wrapper img.google_play { width: 250px; height: 74px; top: 20px; right: 0; left: 0; padding: 0; float: none; display: block; margin-left: auto; margin-right: auto; }
	.column-wrapper img.app_store { width: 250px; height: 74px; top: 30px; right: 0; left: 0; padding: 0; float: none; display: block; margin-left: auto; margin-right: auto; }
}

body {
    margin: 0;
    background-color: #111317;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: #1d2127;
    border-radius: 26px;
    box-sizing: border-box;
}

form { 
    display: flex; 
    flex-direction: column; 
    gap: 0px; 
    margin-bottom: 0px;
    width: 100%;
    box-sizing: border-box;
}

.forms { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    width: 100%;
    box-sizing: border-box;
}

textarea {
    width: 100%;
    padding: 10px 20px 0px 20px;
    margin: 0;
    background: transparent; 
    border: none;
    color: #e0e0e0;
    font-size: 16px;
    min-height: 250px;
    resize: none;
    box-sizing: border-box;
    line-height: 1.5;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    table-layout: fixed;
    border-radius: 15px;
    overflow: hidden;
    border: 0px solid #444;
}

th, td {
    border: 0px solid #444;
    padding: 8px 12px;
    text-align: left;
    width: 50%;
    word-wrap: break-word;
}
th { background: #2b3038; }
td { background: #1d2127; }

th, td {
    border: none;
    border-bottom: 0px solid #444;
    border-right: 0px solid #444;
}
th:last-child, td:last-child {
    border-right: none;
}
tr:last-child th, tr:last-child td {
    border-bottom: none;
}

@media(min-width: 600px) { 
    .forms { 
        flex-direction: row;
        gap: 20px;
        width: 100%;
    }
    .forms > div {
        flex: 1;

    }
    textarea {
        flex: 1;
        width: 100%;
    }
}

* {
    scrollbar-width: thin;
    scrollbar-color: #555 #2b3038;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #2b3038;
    border-radius: 15px;
}

*::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 15px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #666;
}

button {
    background: #393f51;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0px;
    margin-bottom: 0px;
}

.button:active {
    background: #3e4559;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        background: #3e4559;
    }
}

.play-btn {
    cursor: pointer;
    margin-right: 5px;
    background: none;
    border: none;
    padding: 0;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-btn svg {
    fill: #aaa; 
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.play-btn:hover {
    background: none !important;
}

.play-btn:active svg{
    transform: scale(1.1);
    filter: brightness(1.2);
}

@media (hover: hover) and (pointer: fine) {
    .play-btn:hover svg{
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.transcription {
    color: #aaa;
    margin-left: 5px;
    font-style: italic;
}

.word-column {
    flex: 1;
    background: #2b3038;
    padding: 10px;
    border-radius: 15px;
    border: 0px solid #444;
    min-height: 200px;
    height: auto;
    overflow: hidden; 
}

.word-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    position: relative; 
    touch-action: pan-y; 
    transition: transform 0.2s ease-out;
    user-select: none;
    cursor: grab;
    overflow: hidden; 
    transition: transform 0.2s ease-out, height 0.3s ease, margin 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.word-item:active {
    cursor: grabbing;
}

.word-item:last-child {
    border-bottom: none;
}

.progress-counter {
    font-size: 16px;
    color: #bbbbbb;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: left;
    letter-spacing: 0.5px;
}

.user-word.learned {
    background-color: #2e4530;
    border-radius: 15px;
}

.en-word {
    color: #70d6c4;
    font-weight: 600;
}

.user-list li {
    margin: 10px 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    float: right;
    margin-top: 7px;
    margin-left: 20px;
    cursor: pointer;
}

.user-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.user-avatar-list {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.user-avatar-list:hover {
    transform: scale(1.1);
}

.user-link {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
}

.user-link span {
    line-height: 40px;
}

.en-blur {
    filter: blur(6px);
    transition: 0.3s ease;
    cursor: pointer;
}

.ru-blur {
    filter: blur(8px);
    transition: 0.3s ease;
    cursor: pointer;
}

.save-button {
    margin-top: 20px;
}

.hide-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.word-item.bounce-in {
    animation: bounceIn 0.45s ease;
    transform-origin: left;
}

@keyframes bounceIn {
    0%   { transform: scale(0.8); opacity: 0; }
    50%  { transform: scale(1.05); opacity: 1; }
    70%  { transform: scale(0.97); }
    100% { transform: scale(1); }
}

.tabs {
    display: none;
    background: #1d2127;
    border-radius: 15px 15px 0 0;
    padding: 0;
    gap: 0;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #24282f;
    color: #aaa;
    border-radius: 15px 15px 0 0;
}

.tab-btn.active {
    background: #2b3038;
    color: #e0e0e0;
}

@media (max-width: 600px) {

    .tabs {
        display: flex;
    }

    .forms {
        position: relative;
        background: #2b3038;
        border-radius: 0 0 15px 15px;
    }

    .word-column {
        position: absolute;
        inset: 0;
        display: none;
        background: #2b3038;
        border-radius: 0 0 15px 15px;
    }

    .word-column.active {
        display: block;
        position: relative;
    }

    .forms {
        background: none;
    }
}

@media (min-width: 600px) {

    .tabs {
        display: none;
    }

    .forms {
        background: none;
        position: static;
    }

    .word-column {
        position: relative;
        display: block;
        background: #2b3038;
        border-radius: 15px;
    }
}

.desktop-tabs {
    display: none;
    flex-direction: row;
    margin-bottom: 0px;
}

.desktop-tab {
    flex: 1;
    background: #24282f;
    color: #aaa;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    border-radius: 15px 15px 0 0;
}

@media (min-width: 600px) {
    .desktop-tabs {
        display: flex;
    }
}



@media (min-width: 600px) {
    .desktop-tabs {
        display: flex;
        gap: 20px;
        margin-bottom: 0;
    }

    .desktop-tab {
        flex: 1;
        background: #2b3038;
        color: #e0e0e0;
        padding: 7px 0;
        text-align: center;
        font-weight: 600;
    }

    .forms > .word-column {
        border-radius: 0 0 15px 15px;
    }
}

.tabs.mobile-only {
    background: #24282f;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.progress-counter {
    color: #e0e0e0;
}

.textarea-column {
    background: #2b3038;
    border-radius: 15px;
    padding: 0px;
}

textarea:focus {
    outline: none;
}

@media (max-width: 600px) {
    .textarea-column {
        display: none;
        border-radius: 0 0 15px 15px;
    }

    .textarea-column.active {
        display: block;
    }

    .forms {
        background: none; 
        gap: 0;
    }
}

@media (min-width: 600px) {
    .textarea-column {
        display: block !important;
        flex: 1;
        border-radius: 0 0 15px 15px;
    }

    .forms {
        gap: 20px;
    }
}

    .login-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        width: 100%;
        background-color: #111317;
    }

    .login-card {
        background-color: #1d2127;
        padding: 40px;
        border-radius: 26px;
        width: 100%;
        max-width: 400px;
        min-width: 400px;
        min-height: 488px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-card h2 {
        color: #e0e0e0;
        margin-bottom: 30px;
        font-weight: 600;
        text-align: left;
    }

    .input-group {
        position: relative;
        margin-bottom: 4px;
        text-align: left;
    }

    .input-group input {
        width: 100%;
        background-color: #2b3038;
        border: 1px solid transparent;
        padding: 15px 45px 15px 45px; 
        border-radius: 15px;
        color: #e0e0e0;
        font-size: 16px;
        outline: none;
        box-sizing: border-box;
        transition: border-color 0.2s, background-color 0.2s;
    }

    .input-group input:focus {
        border-color: #757575; 
    }
    
    .input-group.invalid input {
        border-color: #ff6b6b;
    }

    .input-group .icon-left {
        position: absolute;
        left: 15px;
        top: 15px;
        width: 20px;
        height: 20px;
        fill: #838384;
        pointer-events: none;
    }

    .input-group .icon-eye {
        position: absolute;
        right: 15px;
        top: 15px;
        width: 22px;
        height: 22px;
        fill: #838384;
        cursor: pointer;
        transition: 0.2s;
    }
    .input-group .icon-eye:hover { fill: #e0e0e0; }

    .msg-placeholder {
        height: 20px;
        width: 100%;
        margin-bottom: 10px;
        font-size: 13px;
        display: flex;
        align-items: flex-start;
        padding-left: 2px;
    }

    .validation-text {
        color: #ff6b6b;
        font-size: 13px;
        display: none;
        line-height: 1.2;
    }

    .helper-link {
        color: #5686fe;
        text-decoration: none;
        line-height: 1.2;
        display: block;
    }
    .helper-link:hover { text-decoration: none; }

    .input-group.invalid + .msg-placeholder .validation-text { display: block; }
    .input-group.invalid + .msg-placeholder .helper-link { display: none; }

    .remember-row {
        margin-bottom: 25px;
        display: flex;
        font-size: 14px;
        align-items: center;
    }
    .custom-checkbox {
        display: flex;
        align-items: center;
        cursor: pointer;
        position: relative;
        padding-left: 28px;
        user-select: none;
    }
    .custom-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }
    .checkmark {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 18px;
        width: 18px;
        background-color: #2b3038; 
        border-radius: 4px;
        transition: 0.2s;
    }
    .custom-checkbox input:checked ~ .checkmark {
        background-color: #5686fe; 
    }
    .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }
    .custom-checkbox input:checked ~ .checkmark:after {
        display: block;
    }
    .custom-checkbox .checkmark:after {
        left: 6px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .login-submit-btn {
        width: 100%;
        margin-bottom: 20px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .global-error-placeholder {
        height: 40px;
        width: 100%;
        margin: 0px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .alert-text {
        color: #ff9800;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        animation: fadeIn 0.3s ease;
        text-align: center;
        line-height: 1.2;
        width: 100%;
    }
    
    .alert-icon {
        width: 20px; height: 20px; fill: #ff9800; flex-shrink: 0;
    }

    .signup-row {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        color: #e0e0e0;
        white-space: nowrap;
    }
    
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .blue-input {
        border: 2px solid #414955;
        border-radius: 12px;
        color: #e0e0e0;
        padding: 10px 15px;
        font-size: 16px;
        width: 100%;
        outline: none;
        box-sizing: border-box;
        transition: box-shadow 0.2s;
        font-family: inherit;
    }

    .blue-input.dict-input-bg {
        background: #24282f;
    }
    
    .edit-actions { display: none !important; }

    .edit-form-container {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 5px 15px;
    }

    .edit-form-container .input-container {
        width: 100%;
    }

    .header-edit, .dict-edit-form, .add-row-form, .cat-create-form {
        background: transparent;
        width: 100%;
        padding: 0 28px 0 28px !important;
        margin: 0;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }

    .edit-form-container {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        height: 50px;
    }

    .input-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .blue-input {
        height: 38px;
        padding: 8px 15px;
        font-size: 16px;
        border: 2px solid #414955;
        border-radius: 12px;
        color: #e0e0e0;
        width: 100%;
        outline: none;
        box-sizing: border-box;
        transition: box-shadow 0.2s;
        font-family: inherit;
        line-height: normal;
    }

    .blue-input.cat-input-bg {
        background: #2b3038;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.5px !important;
        line-height: 28px !important;
        vertical-align: middle;
    }

    .blue-input.dict-input-bg {
        background: #24282f;
        font-size: 16px;
    }

    .header-display, .dict-link, .cat-create-display {
        height: 50px;
        min-height: 50px;
    }

    .more-btn {
        background: transparent;
        border: none;
        color: #838384;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s;
    }
    
    .more-btn.cat-btn:hover {
        background: #2f353d;
        color: #fff;
    }

    .more-btn.dict-btn:hover {
        background: #272c33;
        color: #fff;
    }

    .more-btn svg { width: 24px; height: 24px; fill: currentColor; }

    .context-menu {
        position: fixed;
        z-index: 1000;
        background: #1d2127;
        border-radius: 12px;
        padding: 6px;
        display: none;
        width: 200px;
        flex-direction: column;
        box-shadow: 0 0px 10px 0px #1d2127;
    }
    .context-menu.active { display: flex; animation: fadeInMenu 0.1s ease-out; }
    
    @keyframes fadeInMenu {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        color: #e0e0e0;
        cursor: pointer;
        border-radius: 8px;
        font-size: 15px;
        transition: background 0.2s;
        text-decoration: none;
    }
    
    .menu-item:hover { background: #24282f; color: #fff; }
    .menu-item.delete-item { color: #ff6b6b; }
    .menu-item.delete-item:hover { background: rgba(255, 107, 107, 0.1); }
    .menu-item svg { width: 18px; height: 18px; fill: currentColor; }
    
    .menu-divider {
        height: 1px;
        background: #3c414a;
        margin: 4px 0;
    }

    .modal-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
        z-index: 2000; display: none; align-items: center; justify-content: center;
        opacity: 0; transition: opacity 0.2s ease;
    }
    .modal-overlay.open { display: flex; opacity: 1; }
    .modal-box {
        background: #1d2127; padding: 24px; border-radius: 20px;
        width: 320px; max-width: 90%; text-align: center;
        transform: scale(0.9); transition: transform 0.2s ease;
        box-shadow: 0 0px 10px rgba(0,0,0,0.5);
    }
    .modal-overlay.open .modal-box { transform: scale(1); }
    .modal-title { font-size: 20px; font-weight: 600; color: #e0e0e0; margin-bottom: 8px; text-align: left; }
    .modal-desc { font-size: 15px; color: #a0a0a0; margin-bottom: 24px; text-align: left; line-height: 1.4; }
    .modal-actions { display: flex; justify-content: flex-end; gap: 12px; }
    .modal-btn { padding: 10px 20px; border-radius: 20px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
    .btn-cancel { background: #3c82f6; color: #fff; }
    .btn-cancel:hover { background: #326fd6; }
    .btn-confirm-delete { background: transparent; border: 1px solid #ff5252; color: #ff5252; }
    .btn-confirm-delete:hover { background: #ff5252; color: #fff; }

    .container-top { margin-bottom: 20px; }
    .dict-nav { margin-top: 20px; background: #2b3038; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 10px; }
    .acc-item { background: #2b3038; margin: 0; border: none; position: relative; }
    .acc-header { padding: 0; min-height: 50px; user-select: none; display: flex; flex-direction: column; }
    .row-layout { display: flex; align-items: center; width: 100%; box-sizing: border-box; height: 50px; touch-action: manipulation; }
    .text-fade { flex: 1; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(to right, black 90%, transparent 100%); min-width: 0; }
    .header-display { padding: 0 20px 0 15px; cursor: pointer; touch-action: manipulation; }
    
    .header-edit, .dict-edit-form, .add-row-form, .cat-create-form { 
        display: none; 
        background: transparent; 
        width: 100%; 
        padding: 0 28px 0 28px !important;
    }

    .arrow-container { width: 20px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; margin-right: 10px; }
    .acc-arrow { visibility: hidden !important; width: 8px; height: 8px; border-right: 2px solid #838384; border-bottom: 2px solid #838384; display: block; transform-origin: center; transition: transform 0s ease; margin-top: 1px; }
    .acc-arrow.has-dicts { visibility: visible !important; }
    .acc-arrow.closed { transform: rotate(-45deg); }
    .acc-arrow.open { transform: rotate(45deg); margin-top: -2px; margin-left: 2px;}
    .cat-title { font-weight: 700; color: #e0e0e0; font-size: 18px; letter-spacing: 0.5px; }
    .acc-body { background: #24282f; max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0, 0.55, 0.45, 1); }
    .acc-item.active .acc-body { max-height: 600px; transition: max-height 0.35s ease-out; }
    .dict-row { position: relative; }
    .dict-link { padding: 0 20px 0 15px; color: #838384; text-decoration: none; font-size: 16px; transition: color 0.2s; cursor: pointer; display: flex; align-items: center; }
    .dict-link.active { color: #e0e0e0; font-weight: normal; }
    .actions-fixed-width { display: flex; gap: 4px; margin-left: 15px; min-width: 40px; justify-content: flex-end; align-items: center; flex-shrink: 0; }
    .text-container { flex: 1; display: flex; align-items: center; min-width: 0; height: 100%; overflow: hidden; }
    .dict-name-span { font-weight: normal; width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cat-create-display { padding: 0 20px 0 15px; cursor: pointer; color: #838384; font-weight: 700; font-size: 18px; transition: 0.2s; }
    .cat-create-block { background: #2b3038; }
    .words-textarea { background: #2b3038; border-radius: 15px; }
    .input-section { margin-top: 20px; }
    .title-fade-mask { white-space: nowrap; overflow: hidden; text-overflow: clip; mask-image: linear-gradient(to right, black 90%, transparent 100%); display: block; width: 100%; }

/* * {background: #000 !important; outline: 1px solid #f00 !important;} */

.main-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-top: 15px;
    margin-bottom: 26px;
    padding: 0 15px;
    transition: margin-bottom 0.35s ease;
}
.main-acc-item.collapsed .main-acc-header {
    margin-bottom: 15px;
}
.main-acc-header h2 {
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    color: #e0e0e0;
}

.main-acc-header .arrow-container {
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    margin-right: 10px;
}
.main-acc-header .acc-arrow {
    visibility: visible !important;
    width: 10px;
    height: 10px;
}
.main-acc-body {
    min-height: 0;
    overflow: hidden;
}

.main-acc-triangle {
    width: 16px;
    height: 16px;
    fill: #e0e0e0;
    stroke: #e0e0e0;
    stroke-width: 3;
    stroke-linejoin: round;
    margin-left: 15px;
    flex-shrink: 0;
    transition: transform 0.35s ease;
    transform: rotate(0deg);
}

.main-acc-item.collapsed .main-acc-triangle {
    transform: rotate(180deg);
}

.main-acc-body-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease;
}

.main-acc-item.collapsed .main-acc-body-wrapper {
    grid-template-rows: 0fr;
}

.preload-transitions * {
    transition: none !important;
}