input,
textarea,
select,
[contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
    -webkit-touch-callout: default;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.drag-handle {
    touch-action: none;
    cursor: grab;
    padding: 0.25rem;
    margin-left: -0.25rem;
}

.drag-handle:active { cursor: grabbing; }

.task-card.is-dragging,
.subtask-row.is-dragging,
.todo-card.is-dragging {
    opacity: 0.28;
    border-style: dashed;
    box-shadow: none;
    touch-action: none;
    pointer-events: none;
}

.drag-ghost {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0 !important;
    z-index: 60;
    pointer-events: none;
    opacity: 0.96;
    box-shadow: 0 20px 38px rgb(15 23 42 / 0.22), 0 4px 12px rgb(15 23 42 / 0.1);
    will-change: transform;
    transform-origin: center center;
    transition: none !important;
}

.dark .drag-ghost {
    box-shadow: 0 22px 42px rgb(2 6 23 / 0.55), 0 4px 12px rgb(2 6 23 / 0.35);
}

.subtask-row.drag-ghost {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

.dark .subtask-row.drag-ghost {
    background-color: #0f172a;
    border-color: #334155;
}

.todo-card {
    -webkit-touch-callout: none;
}

.deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 10px;
    line-height: 1.2;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.deadline-today { background: #fee2e2; color: #b91c1c; }
.dark .deadline-today { background: #450a0a; color: #fca5a5; }

.deadline-tomorrow { background: #fef9c3; color: #a16207; }
.dark .deadline-tomorrow { background: #422006; color: #fde047; }

.deadline-later { background: #f1f5f9; color: #475569; }
.dark .deadline-later { background: #1e293b; color: #94a3b8; }

.pull-notice {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
}

.dark .pull-notice {
    background: rgb(30 27 75 / 0.5);
    color: #a5b4fc;
    border-color: #312e81;
}

#taskForm input,
#taskForm select,
#taskForm textarea,
#todoForm input,
#todoForm select,
#todoForm textarea,
#loginForm input,
.subtask-input {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
}

.day-pill.is-active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

#taskForm input,
#taskForm select,
#taskForm textarea {
    width: 100%;
}

.task-card {
    -webkit-touch-callout: none;
}

.task-card.is-selected {
    box-shadow: 0 0 0 2px #4f46e5;
}

.task-card button:disabled {
    opacity: 1;
}

#selectSameDeadline:disabled {
    opacity: 0.45;
}

body.is-selecting #listBacklog,
body.is-selecting #listDone,
body.is-selecting #inProgressBody {
    padding-bottom: 13rem;
}

body.is-composing-subtask #listBacklog,
body.is-composing-subtask #listDone,
body.is-composing-subtask #inProgressBody {
    padding-bottom: 45vh;
}

.subtask-input {
    scroll-margin-bottom: 120px;
}
