/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
html, body { height: 100%; }
body { font-size: 14px; color: #1e293b; background: #fff; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
svg { flex-shrink: 0; }
ul { list-style: none; padding: 0; }

/* Avatar background palette */
.bg-rose-600 { background-color: #e11d48; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-emerald-600 { background-color: #059669; }
.bg-sky-600 { background-color: #0284c7; }
.bg-amber-600 { background-color: #d97706; }
.bg-violet-600 { background-color: #7c3aed; }
.bg-blue-600 { background-color: #2563eb; }
.bg-slate-600 { background-color: #475569; }
.bg-teal-600 { background-color: #0d9488; }
.bg-cyan-600 { background-color: #0891b2; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.app-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 22px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.topbar-brand { font-size: 25px; font-weight: 800; color: #0D3268; letter-spacing: -.02em; }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-icon-btn {
    width: 34px; height: 34px; border-radius: 9px; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; display: flex; align-items: center; justify-content: center;
}
.topbar-icon-btn:hover { background: #f1f5f9; color: #fff; }

/* User menu */
.user-menu { position: relative; margin-left: 4px; }
.user-chip {
    display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
    border: 1px solid #e2e8f0; border-radius: 999px; background: #fff;
}
.user-chip:hover { background: #f8fafc; }
.user-avatar {
    width: 30px; height: 30px; border-radius: 999px; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.user-avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.user-name { font-size: 13px; font-weight: 600; color: #0f172a; }

.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; width: 280px; z-index: 60;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .15); padding: 8px; display: none;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown-head { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; margin-bottom: 6px; }
.user-dropdown-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.user-dropdown-role { font-size: 11px; color: #64748b; margin-top: 2px; }
.user-dropdown-label { font-size: 10px; font-weight: 700;  letter-spacing: .06em; color: #94a3b8; padding: 6px 10px 2px; }
.user-switch-form { margin: 0; }
.user-switch-item {
    width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px;
    border: none; background: none; border-radius: 8px; font-size: 13px; color: #334155; text-align: left;
}
.user-switch-item:hover { background: #f1f5f9; }
.user-switch-item.active { background: #eff6ff; color: #1d4ed8; }
.user-switch-item em { font-style: normal; color: #94a3b8; font-size: 11px; margin-left: 4px; }
.user-logout {
    display: block; margin-top: 6px; padding: 8px 10px; border-top: 1px solid #f1f5f9;
    font-size: 13px; font-weight: 600; color: #e11d48;
}
.user-logout:hover { background: #fff1f2; border-radius: 8px; }

/* ============================================================
   BODY + SIDEBAR
   ============================================================ */
.app-body { flex: 1; display: flex; min-height: 0; overflow: hidden; }

.app-sidebar {
    width: 250px; flex-shrink: 0; background: #fff; border-right: 1px solid #e2e8f0;
    padding: 14px 12px; overflow-y: auto;
}
.sidebar-project { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; }
.sidebar-project-icon {
    width: 30px; height: 30px; border-radius: 8px; background: #0D3268; color: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-project-name { font-size: 14px; font-weight: 700; color: #0f172a; flex: 1; }
.sidebar-collapse { border: none; background: none; color: #94a3b8; display: flex; }
.sidebar-collapse:hover { color: #fff; }

.sidebar-section { margin-top: 10px; }
.sidebar-section-label {
    font-size: 11px; font-weight: 700;  letter-spacing: .06em;
    color: #94a3b8; padding: 6px 8px;
}
.sidebar-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: 8px; color: #334155; font-size: 13px; font-weight: 500;
}
.sidebar-item:hover { background: #f1f5f9; }
.sidebar-item.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.sidebar-item.active .sidebar-badge { background: #dbeafe; color: #1d4ed8; }
.sidebar-item-left { display: flex; align-items: center; gap: 10px; }
.sidebar-badge {
    min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px;
    background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 700;
}

.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; }

.global-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s;
}

    .global-loader:not(.is-hidden) {
        opacity: 1;
        visibility: visible;
    }

    .global-loader.is-hidden {
        opacity: 0;
        visibility: hidden;
    }

.global-loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: global-loader-spin .75s linear infinite;
}

@keyframes global-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

    .toast.error {
        background: #be123c;
        border-color: #fecdd3;
    }

/* ============================================================
   SHARED TOOLBAR (search + actions above board/table)
   ============================================================ */
.content-toolbar {
    display: flex; align-items: center; gap: 12px; padding: 14px 24px;
    border-bottom: 1px solid #eef2f6; flex-shrink: 0;
}
.toolbar-search { position: relative; flex: 1; max-width: 640px; margin: 0 auto; }
.toolbar-search svg { position: absolute; left: 12px; top: 9px; color: #94a3b8; }
.toolbar-search input {
    width: 100%; padding: 8px 12px 8px 36px; font-size: 12px;
    border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
}
.toolbar-search input:focus { outline: none; border-color: #80bdff; box-shadow: 0 0 0 3px rgba(128,189,255,.35); background: #fff; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }
.btn-ghost { background: transparent; color: #64748b; border-color: transparent; }
.btn-ghost:hover { color: #0f172a; }
.btn-light { background: #fff; color: #334155; border-color: #e2e8f0; }
.btn-light:hover { background: #f8fafc; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    /* above every modal backdrop (modals go up to 2500, global loader 3000) so messages are never blurred */
    position: fixed; bottom: 20px; right: 20px; z-index: 3100;
    background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px;
    border: 1px solid #334155; font-size: 12px; box-shadow: 0 10px 25px rgba(0,0,0,.25);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* small helpers */
.muted { color: #64748b; }
.text-center { text-align: center; }

.module-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* search on left, Create button on far right */
    gap: 12px;
    padding: 14px 16px 6px; /* 16px left/right = same inset as the board columns */
}

.module-search {
    position: relative;
    width: 360px;
    max-width: 100%;
}

    .module-search i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #8a94a6;
        pointer-events: none;
    }

    .module-search input {
        width: 100%;
        height: 36px;
        padding: 0 12px 0 34px;
        border: 1px solid #d0d5dd;
        border-radius: 8px;
        font: inherit;
        font-size: 14px;
        outline: none;
    }

        .module-search input:focus {
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
        }

.project-tabs {
    display: flex;
    gap: 4px;
    padding: 0 16px;
    margin: 0;
    flex-shrink: 0;
    border-bottom: 1px solid #e2e8f0;
}

.page-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.project-tab {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

    .project-tab:hover {
        color: #1868D8;
    }

    .project-tab.active {
        color: #1868D8;
        border-bottom-color: #1868D8;
    }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

    .stat-card .lbl {
        font-size: 12px;
        color: #64748b;
        font-weight: 600;
    }

    .stat-card .val {
        font-size: 28px;
        font-weight: 800;
        color: #0f172a;
        margin-top: 4px;
    }

.panel-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

    .panel-card h3 {
        font-size: 14px;
        margin: 0 0 10px;
    }

.panel-empty {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}
.stat-card.sc-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #475569;
}

.sc-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.sc-name {
    font-size: 16px;
    font-weight: 700;
}

.sc-sub {
    font-size: 12px;
    color: #64748b;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width:1000px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.panel-sub {
    font-size: 13px;
    color: #64748b;
    margin: -4px 0 14px;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.donut {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.donut-hole {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .donut-hole b {
        font-size: 30px;
        color: #0f172a;
        line-height: 1;
    }

    .donut-hole span {
        font-size: 12px;
        color: #64748b;
        margin-top: 4px;
        max-width: 100px;
    }

.donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #334155;
    display: grid;
    gap: 8px;
}

    .donut-legend .dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 2px;
        margin-right: 8px;
    }

.act-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    max-height: 260px;
    overflow: auto;
}

    .act-list li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

.act-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1868D8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.act-text {
    font-size: 13px;
    color: #0f172a;
}

.act-when {
    font-size: 11px;
    color: #94a3b8;
}

.bl-section {
    background: var(--panel-bg, #f7f8f9);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.bl-head {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 4px;
    user-select: none;
}

.bl-chevron {
    transition: transform .15s;
}

.bl-section.collapsed .bl-chevron {
    transform: rotate(-90deg);
}

.bl-section.collapsed .bl-body,
.bl-section.collapsed .bl-create {
    display: none;
}

.bl-count {
    color: #6b778c;
    font-size: 13px;
}

.bl-badges {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.bl-badge {
    background: #dfe1e6;
    border-radius: 3px;
    padding: 0 6px;
    font-size: 12px;
}

.bl-body {
    background: #fff;
    border: 1px solid #dfe1e6;
    border-radius: 6px;
    margin-top: 8px;
    min-height: 44px;
}

    .bl-body:empty::after {
        content: "No work items";
        display: block;
        padding: 12px;
        color: #6b778c;
        text-align: center;
    }

.bl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #ebecf0;
    cursor: pointer;
}

    .bl-row:last-child {
        border-bottom: 0;
    }

    .bl-row:hover {
        background: #f4f5f7;
    }

.bl-id {
    color: #5e6c84;
    font-size: 13px;
    white-space: nowrap;
}

.bl-summary {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bl-epic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3e8ff;
    color: #5e4db2;
    border-radius: 3px;
    padding: 1px 8px;
    font-size: 12px;
    white-space: nowrap;
}

    .bl-epic .dot {
        width: 8px;
        height: 8px;
        border-radius: 2px;
        background: #a855f7;
    }

.bl-status {
    border: 0;
    background: #dfe1e6;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: 600;
  
    max-width: 170px;
}

.bl-create {
    background: none;
    border: 0;
    padding: 10px 6px 2px;
    color: #42526e;
    cursor: pointer;
}

    .bl-create:hover {
        color: #0c66e4;
    }
.il-eye .bi {
    font-size: 16px;
    line-height: 1;
}

#new-task-modal .form-grid.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
}

    #new-task-modal .form-grid.cols-3 > .form-field {
        min-width: 0;
    }

    #new-task-modal .form-grid.cols-3 .tm-dd {
        width: 100%;
        flex: none;
    }

/* ===== Custom dropdown (Assign To, Priority, Status, Epic, Sprint) ===== */
.tm-dd {
    position: relative;
    flex: 1;
    width: 100%;
    min-width: 0;
}

    .tm-dd .tm-dd-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 11px; /* same as .form-control */
        font-size: 12px;
        line-height: 16px; /* same as the #new-task-modal rule */
        color: #0f172a;
        text-align: left;
        background: #fff;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        cursor: pointer;
    }

        .tm-dd .tm-dd-toggle:focus {
            outline: none;
        }

    .tm-dd .tm-dd-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-dd .tm-dd-toggle .bi {
        flex-shrink: 0;
        margin-left: 8px;
        font-size: 11px;
        color: #64748b;
        transition: transform .15s;
    }

    .tm-dd.open .tm-dd-toggle {
        border-color: #80bdff;
        box-shadow: 0 0 0 3px rgba(128,189,255,.35);
    }

        .tm-dd.open .tm-dd-toggle .bi {
            transform: rotate(180deg);
        }

    .tm-dd .tm-dd-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 4px);
        z-index: 1060;
        margin: 0;
        padding: 4px;
        list-style: none;
        max-height: 200px;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(15,23,42,.15);
    }

    .tm-dd.open .tm-dd-menu {
        display: block;
    }

    .tm-dd .tm-dd-item {
        display: block;
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 12px;
        line-height: 16px;
        color: #172b4d;
        white-space: nowrap;
    }

        .tm-dd .tm-dd-item:hover {
            background: #f1f5f9;
        }

        .tm-dd .tm-dd-item.active {
            background: #eaf2ff;
            color: #1868D8;
            font-weight: 600;
        }

/* ===== Attachment drop zone: everything centered ===== */
.upload-zone .uz-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .upload-zone .uz-drop-inner p {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .upload-zone .uz-drop-inner .uz-sub {
        display: block; /* cancels the display:flex from the file-list .uz-sub rule */
        margin-top: 4px;
        font-size: 11px;
        color: #94a3b8;
    }
#new-task-modal .form-grid.cols-3,
#epic-modal .form-grid.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
}

    #new-task-modal .form-grid.cols-3 > .form-field,
    #epic-modal .form-grid.cols-3 > .form-field {
        min-width: 0;
    }

    #new-task-modal .form-grid.cols-3 .tm-dd,
    #epic-modal .form-grid.cols-3 .tm-dd {
        width: 100%;
        flex: none;
    }
.tm-dd .tm-dd-text.placeholder {
    color: #94a3b8;
}

.tm-dd.invalid .tm-dd-toggle {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225,29,72,.15);
}
.tm-dd .tm-dd-menu {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tm-dd .tm-dd-item {
    white-space: normal;
    word-break: break-word;
}

.tdm-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .tdm-side > label {
        margin: 10px 0 0;
        font-size: 12px;
        font-weight: 600;
        color: #334155;
    }

        .tdm-side > label:first-child {
            margin-top: 0;
        }

    .tdm-side .js-task-dd {
        position: relative;
    }

    .tdm-side .tdm-meta {
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
        display: grid;
        gap: 8px;
    }

        .tdm-side .tdm-meta > div {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            font-size: 12px;
        }


/* ===== DataTables sort arrows (all tables using .defect-table) ===== */
.defect-table thead th.sorting,
.defect-table thead th.sorting_asc,
.defect-table thead th.sorting_desc {
    position: relative;
    padding-right: 28px;
    cursor: pointer;
    user-select: none;
}

    /* up arrow */
    .defect-table thead th.sorting::before,
    .defect-table thead th.sorting_asc::before,
    .defect-table thead th.sorting_desc::before {
        content: "\25B2";
        position: absolute;
        right: 10px;
        top: 50%;
        margin-top: -9px;
        font-size: 8px;
        line-height: 1;
        opacity: .3;
    }

    /* down arrow */
    .defect-table thead th.sorting::after,
    .defect-table thead th.sorting_asc::after,
    .defect-table thead th.sorting_desc::after {
        content: "\25BC";
        position: absolute;
        right: 10px;
        top: 50%;
        margin-top: 1px;
        font-size: 8px;
        line-height: 1;
        opacity: .3;
    }

    /* active direction is fully visible */
    .defect-table thead th.sorting_asc::before {
        opacity: 1;
    }

    .defect-table thead th.sorting_desc::after {
        opacity: 1;
    }

/* Actions column (orderable:false) shows no arrows */
.defect-table thead th.sorting_disabled::before,
.defect-table thead th.sorting_disabled::after {
    content: none;
}

/* ===== Item picked in global search (Board card, Backlog row, Defect row) ===== */
@keyframes tm-search-hit {
    0%, 60% { box-shadow: 0 0 0 3px #1868db; background-color: #eaf2ff; }
    100%    { box-shadow: 0 0 0 0 transparent; }
}
.search-hit,
.search-hit > td {
    animation: tm-search-hit 2.6s ease-out;
}
.tm-dd .tm-dd-foot {
    position: sticky;
    bottom: -4px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    padding-top: 4px;
}

.tm-dd .tm-dd-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1868D8;
}

    .tm-dd .tm-dd-action:hover {
        background: #eaf2ff;
    }


/* ==========================================
   STATUS MODAL CATEGORY STYLING
========================================== */

#status-modal .status-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

/* Category Card */
#status-modal .status-cat {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

    /* Radio Button */
    #status-modal .status-cat input[type="radio"] {
        display: inline-block !important;
        width: 15px;
        height: 15px;
        min-width: 15px;
        margin: 0;
        padding: 0;
        flex: 0 0 15px;
        accent-color: #1868d8;
        cursor: pointer;
    }

    /* Category Text */
    #status-modal .status-cat span {
        display: inline-block;
        line-height: 1.4;
    }

    /* Hover */
    #status-modal .status-cat:hover {
        border-color: #93b4e8;
        background: #f8fafc;
    }

    /* Selected Category */
    #status-modal .status-cat:has(input[type="radio"]:checked) {
        border-color: #1868d8;
        background: #eaf2ff;
        color: #1868d8;
        box-shadow: 0 0 0 2px rgba(24, 104, 216, 0.15);
    }

    /* Keyboard Focus */
    #status-modal .status-cat input[type="radio"]:focus-visible {
        outline: 2px solid #1868d8;
        outline-offset: 3px;
    }

/* Responsive */
@media (max-width: 420px) {
    #status-modal .status-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
