/* /Components/DrawmanCanvas.razor.rz.scp.css */
.drawman-canvas[b-mm20zjauvj] {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #1e293b;
    border-radius: 4px;
}

.drawman-canvas svg[b-mm20zjauvj] {
    display: block;
    min-height: 400px;
}
/* /Layout/DrawmanLayout.razor.rz.scp.css */
.drawman-fullscreen[b-mwe2mlk3te] {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
}
/* /Layout/IndexLayout.razor.rz.scp.css */
.index-layout[b-1jxv96s4hl] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #0f172a;
    background: 
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(30, 58, 138, 0.4) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 0% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 100% 80%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-6rk6ouid2c] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-6rk6ouid2c] {
    flex: 1;
}

.sidebar[b-6rk6ouid2c] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-6rk6ouid2c] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-6rk6ouid2c]  a, .top-row[b-6rk6ouid2c]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-6rk6ouid2c]  a:hover, .top-row[b-6rk6ouid2c]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-6rk6ouid2c]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-6rk6ouid2c] {
        justify-content: space-between;
    }

    .top-row[b-6rk6ouid2c]  a, .top-row[b-6rk6ouid2c]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-6rk6ouid2c] {
        flex-direction: row;
    }

    .sidebar[b-6rk6ouid2c] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-6rk6ouid2c] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-6rk6ouid2c]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-6rk6ouid2c], article[b-6rk6ouid2c] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-vmpwmluo00] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-vmpwmluo00] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-vmpwmluo00] {
    font-size: 1.1rem;
}

.bi[b-vmpwmluo00] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-vmpwmluo00] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-vmpwmluo00] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-vmpwmluo00] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-vmpwmluo00] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-vmpwmluo00] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-vmpwmluo00] {
        padding-bottom: 1rem;
    }

    .nav-item[b-vmpwmluo00]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-vmpwmluo00]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-vmpwmluo00]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-vmpwmluo00] {
        display: none;
    }

    .collapse[b-vmpwmluo00] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-vmpwmluo00] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Drawman.razor.rz.scp.css */
.drawman-layout[b-wzjtxxeifq] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 2rem);
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.5rem;
    gap: 0.5rem;
}

.drawman-header[b-wzjtxxeifq] {
    background: #1e293b;
    border-radius: 6px;
    padding: 10px 12px;
}

.drawman-header-row[b-wzjtxxeifq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.drawman-tasks-row[b-wzjtxxeifq] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawman-tasks-row label[b-wzjtxxeifq] {
    color: #94a3b8;
    font-size: 13px;
}

.drawman-user-info[b-wzjtxxeifq] {
    margin-left: auto;
    padding: 6px 12px;
    background: #334155;
    border-radius: 6px;
    font-size: 13px;
    color: #e2e8f0;
}

.drawman-btn-submit[b-wzjtxxeifq] {
    background: #16a34a;
}

.drawman-btn-submit:hover:not(:disabled)[b-wzjtxxeifq] {
    background: #15803d;
}

.drawman-user-info[b-wzjtxxeifq] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.drawman-user-info[b-wzjtxxeifq]::before {
    content: "Пользователь: ";
    color: #64748b;
}

.drawman-user-info a.drawman-btn-tasks[b-wzjtxxeifq] {
    text-decoration: none;
    color: inherit;
}

.drawman-btn-submit[b-wzjtxxeifq] {
    background: #16a34a;
}

.drawman-btn-submit:hover:not(:disabled)[b-wzjtxxeifq] {
    background: #15803d;
}

.drawman-description[b-wzjtxxeifq] {
    margin-top: 8px;
    padding: 8px 10px;
    background: #334155;
    border-radius: 4px;
    font-size: 12px;
    color: #cbd5e1;
    max-height: 80px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.drawman-main[b-wzjtxxeifq] {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 0;
    overflow: auto;
}

.drawman-canvas-panel[b-wzjtxxeifq] {
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border-radius: 6px;
    padding: 8px;
    min-height: 0;
}

.drawman-editor-panel[b-wzjtxxeifq] {
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border-radius: 6px;
    padding: 8px;
    min-height: 0;
}

.drawman-editor-wrap[b-wzjtxxeifq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.drawman-label[b-wzjtxxeifq] {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.drawman-editor-container[b-wzjtxxeifq] {
    flex: 1;
    display: flex;
    min-height: 100px;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 14px;
}

.drawman-line-numbers[b-wzjtxxeifq] {
    width: 36px;
    padding: 12px 8px 12px 0;
    background: #334155;
    color: #64748b;
    text-align: right;
    white-space: pre;
    line-height: 1.4;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
}

.drawman-code[b-wzjtxxeifq] {
    flex: 1;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-left: none;
    padding: 12px;
    font-family: inherit;
    font-size: inherit;
    resize: none;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

.drawman-code:focus[b-wzjtxxeifq] {
    outline: none;
    border-color: #38bdf8;
}

.drawman-errors[b-wzjtxxeifq] {
    margin-top: 4px;
    padding: 8px 10px;
    background: #7f1d1d;
    color: #fca5a5;
    font-size: 12px;
    font-family: 'Consolas', monospace;
    border-radius: 4px;
    max-height: 80px;
    overflow-y: auto;
}

.drawman-toolbar[b-wzjtxxeifq] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 0 0 0;
}

.drawman-toolbar label[b-wzjtxxeifq] {
    color: #94a3b8;
    font-size: 12px;
}

.drawman-select[b-wzjtxxeifq] {
    padding: 6px 10px;
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 4px;
    font-size: 14px;
    min-width: 130px;
}

.drawman-select-sm[b-wzjtxxeifq] {
    min-width: 100px;
}

.drawman-btn[b-wzjtxxeifq] {
    padding: 8px 14px;
    background: #334155;
    color: #e2e8f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.drawman-btn:hover:not(:disabled)[b-wzjtxxeifq] {
    background: #475569;
}

.drawman-btn:disabled[b-wzjtxxeifq] {
    opacity: 0.5;
    cursor: not-allowed;
}

.drawman-btn-primary[b-wzjtxxeifq] {
    background: #0284c7;
}

.drawman-btn-primary:hover:not(:disabled)[b-wzjtxxeifq] {
    background: #0369a1;
}

.drawman-btn-sm[b-wzjtxxeifq] {
    padding: 6px 10px;
    font-size: 12px;
}

.drawman-canvas-wrap[b-wzjtxxeifq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.drawman-canvas-container[b-wzjtxxeifq] {
    flex: 1;
    display: flex;
    min-height: 100px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    overflow: hidden;
}

.drawman-canvas-container canvas[b-wzjtxxeifq] {
    width: 100%;
    height: 100%;
    display: block;
}

.drawman-canvas-toolbar[b-wzjtxxeifq] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 0 0 0;
}

.drawman-canvas-toolbar label[b-wzjtxxeifq] {
    color: #94a3b8;
    font-size: 12px;
}

.drawman-svg-canvas[b-wzjtxxeifq] {
    display: block;
    width: 100%;
    height: 100%;
}

.drawman-canvas-fixed .drawman-svg-img[b-wzjtxxeifq] {
    display: block;
    background: #1e293b;
    border: 2px solid #475569;
    border-radius: 6px;
}

.drawman-toolbar-right[b-wzjtxxeifq] {
    margin-top: 8px;
}

.drawman-status[b-wzjtxxeifq] {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.drawman-status-success[b-wzjtxxeifq] {
    color: #22c55e;
    font-weight: 500;
}

.drawman-status-fail[b-wzjtxxeifq] {
    color: #ef4444;
    font-weight: 500;
}
/* /Pages/Index.razor.rz.scp.css */
/* Современная стартовая страница */
.index-page[b-flel1ajs36] {
    width: 100%;
    max-width: 640px;
    position: relative;
}

.index-card[b-flel1ajs36] {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 80px -20px rgba(56, 189, 248, 0.15);
    text-align: center;
    animation: indexFadeIn-b-flel1ajs36 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes indexFadeIn-b-flel1ajs36 {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.index-hero[b-flel1ajs36] {
    margin-bottom: 2.25rem;
}

.index-logo-icon[b-flel1ajs36] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
    animation: indexLogoPulse-b-flel1ajs36 3s ease-in-out infinite;
}

.index-logo-icon svg[b-flel1ajs36] {
    width: 64px;
    height: 64px;
}

.index-logo-bg[b-flel1ajs36] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    flex-shrink: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fef9c3;
    padding: 14px;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.index-logo-bg img[b-flel1ajs36] {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

@keyframes indexLogoPulse-b-flel1ajs36 {
    0%, 100% { opacity: 1; filter: drop-shadow(0 8px 24px rgba(56, 189, 248, 0.4)); }
    50% { opacity: 0.95; filter: drop-shadow(0 12px 32px rgba(56, 189, 248, 0.5)); }
}

.index-title[b-flel1ajs36] {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.75rem 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.index-tagline[b-flel1ajs36] {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

.index-actions[b-flel1ajs36] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.index-btn[b-flel1ajs36] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 120px;
    padding: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.index-btn:hover[b-flel1ajs36] {
    transform: translateY(-4px);
}

.index-btn:active[b-flel1ajs36] {
    transform: translateY(-2px);
}

.index-btn-student[b-flel1ajs36] {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.index-btn-student:hover[b-flel1ajs36] {
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

.index-btn-guest[b-flel1ajs36] {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 20px rgba(71, 85, 105, 0.3);
}

.index-btn-guest:hover[b-flel1ajs36] {
    box-shadow: 0 12px 32px rgba(71, 85, 105, 0.4);
}

.index-btn-teacher[b-flel1ajs36] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.index-btn-teacher:hover[b-flel1ajs36] {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

.index-btn-icon[b-flel1ajs36] {
    font-size: 2.25rem;
    line-height: 1;
}

.index-btn-label[b-flel1ajs36] {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.index-btn-desc[b-flel1ajs36] {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.index-bg-pattern[b-flel1ajs36] {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
/* /Pages/Tasks.razor.rz.scp.css */
/* Полноэкранная страница редактирования заданий — современный дизайн */
.tasks-page.drawman-layout[b-bxjonejg69] {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #e2e8f0;
    overflow: hidden;
}

.tasks-page .drawman-header[b-bxjonejg69] {
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 0;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.tasks-page .drawman-header-row[b-bxjonejg69] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tasks-page .drawman-user-info[b-bxjonejg69] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Современные кнопки в шапке страницы заданий */
.tasks-header-btn[b-bxjonejg69] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.tasks-header-btn-add[b-bxjonejg69] {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.tasks-header-btn-add:hover[b-bxjonejg69] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.tasks-header-btn-add:active[b-bxjonejg69] {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.tasks-header-btn-back[b-bxjonejg69] {
    background: rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.tasks-header-btn-back:hover[b-bxjonejg69] {
    background: rgba(71, 85, 105, 0.6);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
    color: white;
}

.tasks-header-btn-back:active[b-bxjonejg69] {
    transform: translateY(0);
}

.tasks-header-btn:focus-visible[b-bxjonejg69] {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.tasks-title[b-bxjonejg69] {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.tasks-content[b-bxjonejg69] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    scrollbar-width: thin;
}

.tasks-content[b-bxjonejg69]::-webkit-scrollbar {
    width: 8px;
}

.tasks-content[b-bxjonejg69]::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.tasks-content[b-bxjonejg69]::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.tasks-content[b-bxjonejg69]::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.tasks-error[b-bxjonejg69] {
    padding: 1rem 1.25rem;
    background: rgba(127, 29, 29, 0.4);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    border-radius: 12px;
}

.tasks-list[b-bxjonejg69] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
}

.tasks-card[b-bxjonejg69] {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tasks-card:hover[b-bxjonejg69] {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(56, 189, 248, 0.3);
}

.tasks-card-header[b-bxjonejg69] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tasks-card-id[b-bxjonejg69] {
    font-weight: 600;
    color: #38bdf8;
    font-size: 14px;
}

.tasks-card-title[b-bxjonejg69] {
    font-weight: 500;
    color: #e2e8f0;
}

.tasks-card-diff[b-bxjonejg69] {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
}

.tasks-card-desc[b-bxjonejg69] {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
    white-space: pre-wrap;
}

.tasks-card-hint[b-bxjonejg69] {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.tasks-card-hint strong[b-bxjonejg69] {
    color: #64748b;
}

.tasks-card-meta[b-bxjonejg69] {
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
}

.tasks-card-footer[b-bxjonejg69] {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #334155;
    display: flex;
    gap: 10px;
}

.tasks-btn[b-bxjonejg69] {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.tasks-btn-edit[b-bxjonejg69] {
    background: #2563eb;
    color: white;
}

.tasks-btn-edit:hover[b-bxjonejg69] {
    background: #1d4ed8;
}

.tasks-btn-delete[b-bxjonejg69] {
    background: #7f1d1d;
    color: #fca5a5;
}

.tasks-btn-delete:hover[b-bxjonejg69] {
    background: #991b1b;
}

.tasks-card-actions[b-bxjonejg69] {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.tasks-card-actions .drawman-btn[b-bxjonejg69] {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #475569;
    background: #334155;
    color: #e2e8f0;
    cursor: pointer;
}

.tasks-card-actions .drawman-btn:hover[b-bxjonejg69] {
    background: #475569;
}

.tasks-card-actions .drawman-btn-danger[b-bxjonejg69] {
    border-color: #7f1d1d;
    background: #7f1d1d;
    color: #fca5a5;
}

.tasks-card-actions .drawman-btn-danger:hover[b-bxjonejg69] {
    background: #991b1b;
}

/* Модальное окно */
.tasks-modal-backdrop[b-bxjonejg69] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
}

.tasks-modal[b-bxjonejg69] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.tasks-modal-sm[b-bxjonejg69] {
    max-width: 420px;
}

.tasks-modal-header[b-bxjonejg69] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tasks-modal-header h3[b-bxjonejg69] {
    margin: 0;
    font-size: 18px;
    color: #e2e8f0;
}

.tasks-modal-close[b-bxjonejg69] {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
}

.tasks-modal-close:hover[b-bxjonejg69] {
    color: #e2e8f0;
}

.tasks-form-error[b-bxjonejg69] {
    padding: 10px;
    background: #7f1d1d;
    color: #fca5a5;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}

.tasks-form[b-bxjonejg69] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tasks-form-row label[b-bxjonejg69] {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.tasks-form-row-inline[b-bxjonejg69] {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tasks-form-row-inline > div[b-bxjonejg69] {
    flex: 1;
    min-width: 80px;
}

/* Первая строка: ID, Сложность, Ширина поля, Высота поля — сетка на всю ширину */
.tasks-form-row-first-line[b-bxjonejg69] {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px;
    gap: 1rem;
    align-items: end;
    width: 100%;
}

@media (max-width: 500px) {
    .tasks-form-row-first-line[b-bxjonejg69] {
        grid-template-columns: 1fr;
    }
}

.tasks-form-row-first-line .tasks-form-field-id[b-bxjonejg69] {
    min-width: 0;
}

.tasks-form-row-first-line .tasks-form-field-sm[b-bxjonejg69] {
    min-width: 0;
}

.tasks-form-field[b-bxjonejg69],
.tasks-form-field-id[b-bxjonejg69],
.tasks-form-field-sm[b-bxjonejg69],
.tasks-form-col-45[b-bxjonejg69],
.tasks-form-row-single[b-bxjonejg69] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tasks-form-field label[b-bxjonejg69],
.tasks-form-field-id label[b-bxjonejg69],
.tasks-form-field-sm label[b-bxjonejg69],
.tasks-form-col-45 label[b-bxjonejg69],
.tasks-form-row-single label[b-bxjonejg69] {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* Описание и Подсказка: одна колонка — та же ширина, что и остальные многострочные поля */
.tasks-form-row-two-cols[b-bxjonejg69] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 600px) {
    .tasks-form-row-first-line[b-bxjonejg69] {
        grid-template-columns: 1fr 70px 70px 70px;
    }
}

.tasks-form-col-45[b-bxjonejg69] {
    min-width: 0;
}

.tasks-input-45[b-bxjonejg69] {
    width: 100% !important;
    box-sizing: border-box;
}

/* Шаблоны (эталонное решение) — три колонки по языкам */
.tasks-form-row-three-cols[b-bxjonejg69] {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 1.5rem;
}

.tasks-form-col-template[b-bxjonejg69] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tasks-form-col-template label[b-bxjonejg69] {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

@media (max-width: 750px) {
    .tasks-form-row-three-cols[b-bxjonejg69] {
        grid-template-columns: 1fr;
    }
}

/* Широкие поля: сегменты, шаблоны, стартовый код — на всю ширину контейнера */
.tasks-input-wide[b-bxjonejg69] {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ожидаемые сегменты (JSON) — 100% ширина, большая высота */
.tasks-form-section-segments[b-bxjonejg69] {
    width: 100%;
    min-width: 100%;
}

/* Секция сегментов — на всю ширину формы в расширенном модале */
.tasks-modal.tasks-modal-extended .tasks-form-section-segments[b-bxjonejg69] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tasks-modal.tasks-modal-extended .tasks-form-section-segments .tasks-segments-wrap[b-bxjonejg69] {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}

.tasks-segments-wrap[b-bxjonejg69] {
    width: 100%;
    min-width: 0;
}

.tasks-segments-wrap textarea[b-bxjonejg69],
.tasks-form-section-segments .tasks-input-segments[b-bxjonejg69],
.tasks-form-section-segments textarea.tasks-input[b-bxjonejg69] {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 400px !important;
    box-sizing: border-box;
    display: block;
    resize: vertical;
}

/* Принудительно для модального окна редактирования */
.tasks-modal.tasks-modal-extended .tasks-form-section-segments .tasks-segments-wrap textarea[b-bxjonejg69] {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 420px !important;
    height: auto;
}

/* Увеличенная высота полей (в 2 раза) */
.tasks-textarea-tall[b-bxjonejg69] {
    min-height: 160px !important;
    resize: vertical;
}

.tasks-form-section .tasks-input-wide.tasks-textarea-tall[b-bxjonejg69] {
    min-height: 240px;
}

.tasks-input[b-bxjonejg69] {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 14px;
}

.tasks-input:focus[b-bxjonejg69] {
    outline: none;
    border-color: #38bdf8;
}

.tasks-textarea[b-bxjonejg69] {
    min-height: 60px;
    resize: vertical;
}

.tasks-input-sm[b-bxjonejg69] {
    width: 80px;
}

.tasks-form-actions[b-bxjonejg69] {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.tasks-form-actions .drawman-btn[b-bxjonejg69] {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #475569;
    background: #334155;
    color: #e2e8f0;
    cursor: pointer;
}

.tasks-form-actions .drawman-btn:hover[b-bxjonejg69] {
    background: #475569;
}

.tasks-form-actions .drawman-btn-primary[b-bxjonejg69] {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.tasks-form-actions .drawman-btn-primary:hover[b-bxjonejg69] {
    background: #1d4ed8;
}

.tasks-form-actions .drawman-btn-danger[b-bxjonejg69] {
    background: #7f1d1d;
    border-color: #7f1d1d;
    color: #fca5a5;
}

.tasks-form-actions .drawman-btn-danger:hover[b-bxjonejg69] {
    background: #991b1b;
}

.tasks-delete-text[b-bxjonejg69] {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0 0 16px 0;
}

/* Расширенная форма по секциям */
.tasks-form-extended[b-bxjonejg69] {
    width: 100%;
    min-width: 0;
    max-height: 85vh;
    overflow-y: auto;
}

.tasks-form-section[b-bxjonejg69] {
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid #334155;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.tasks-form-row[b-bxjonejg69] {
    width: 100%;
    min-width: 0;
}

.tasks-form-row > .tasks-input[b-bxjonejg69],
.tasks-form-row > input.tasks-input[b-bxjonejg69],
.tasks-form-row > textarea.tasks-input[b-bxjonejg69] {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tasks-form-section:last-of-type[b-bxjonejg69] {
    border-bottom: none;
    margin-bottom: 0;
}

.tasks-form-section-title[b-bxjonejg69] {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.tasks-form-checkbox-row[b-bxjonejg69] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tasks-form-checkbox-label[b-bxjonejg69] {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
}

.tasks-form-hint[b-bxjonejg69] {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: #64748b;
}

.tasks-textarea-code[b-bxjonejg69] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

/* Модальное окно редактирования — на весь экран */
.tasks-modal.tasks-modal-extended[b-bxjonejg69] {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: none;
    padding: 1.5rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.tasks-modal.tasks-modal-extended .tasks-modal-header[b-bxjonejg69] {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.tasks-modal.tasks-modal-extended .tasks-form-extended[b-bxjonejg69] {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    overflow-x: visible;
    padding-right: 0.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
}

.tasks-modal.tasks-modal-extended .tasks-form-extended .tasks-form-section[b-bxjonejg69],
.tasks-modal.tasks-modal-extended .tasks-form-extended .tasks-form-row[b-bxjonejg69] {
    width: 100%;
    min-width: 0;
}

.tasks-modal.tasks-modal-extended .tasks-form-extended .tasks-form-row-first-line[b-bxjonejg69] {
    width: 100%;
    max-width: 100%;
}

.tasks-modal.tasks-modal-extended .tasks-form-extended[b-bxjonejg69]::-webkit-scrollbar {
    width: 8px;
}

.tasks-modal.tasks-modal-extended .tasks-form-extended[b-bxjonejg69]::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.tasks-modal.tasks-modal-extended .tasks-form-extended[b-bxjonejg69]::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
