/* AI todo board layout rules
   Source: ai-todo-board.css. Generated by CSS split refactor; do not edit original during staging. */

﻿/* Weekly todo board override extracted from backup-20260421-200520 */

.ai-todo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-todo-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ai-todo-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ai-todo-compose {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 18px;
    margin-top: 18px;
}

.ai-todo-compose-main {
    display: grid;
    gap: 10px;
    position: relative;
}

.ai-todo-compose-controls {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(241,245,249,0.92) 100%);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.ai-todo-week-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
}

.ai-todo-week-toolbar-main {
    display: grid;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ai-todo-week-heading-left,
.ai-todo-week-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-todo-week-heading-left {
    min-width: 0;
}

.ai-todo-week-heading-left h4 {
    margin: 0;
}

.ai-todo-week-toolbar-actions {
    justify-content: flex-end;
}

.ai-todo-week-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-todo-week-anchor-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-todo-week-anchor-controls .ai-todo-date-input {
    width: 168px;
    min-width: 168px;
}

.ai-todo-week-board,
.ai-notion-sync-card {
    display: grid;
    gap: 16px;
}

.ai-todo-week-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.ai-todo-week-board.is-focus-mode {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
}

.ai-todo-week-board.is-focus-mode .ai-todo-week-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ai-todo-week-board.is-focus-mode .ai-todo-week-section-header {
    width: 100%;
    box-sizing: border-box;
}

.ai-todo-week-section,
.ai-notion-sync-card {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.96) 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        0 14px 24px rgba(15, 23, 42, 0.05);
}

.ai-todo-week-section-span {
    grid-column: 1 / -1;
}

.ai-todo-week-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 22px;
    color: #eff6ff;
    font-weight: 800;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 34%),
        linear-gradient(135deg, #244f73 0%, #3d7da7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 10px 20px rgba(45, 93, 132, 0.12);
    overflow: hidden;
}

.ai-todo-week-section-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ai-todo-week-section-header.is-note {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 34%),
        linear-gradient(135deg, #2f604f 0%, #5b9a7d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 10px 20px rgba(47, 96, 79, 0.12);
}

.ai-todo-week-section-header.is-done {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 34%),
        linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 10px 20px rgba(100, 116, 139, 0.12);
}

.ai-todo-week-section.is-done-section {
    background: linear-gradient(180deg, rgba(248,250,252,0.98) 0%, rgba(241,245,249,0.94) 100%);
}

.ai-todo-week-section-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.ai-todo-week-section-day {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.ai-todo-week-section-date {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.88);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-todo-week-board.is-focus-mode .ai-todo-section-add-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    font-size: 15px;
}

.ai-todo-week-list {
    display: grid;
    gap: 6px;
    min-height: 220px;
    align-content: start;
    transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

.ai-todo-week-list.is-drop-target {
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.72);
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.16);
}

.ai-todo-item-header,
.ai-todo-item-footer,
.ai-todo-detail-actions,
.ai-todo-side-header,
.ai-notion-actions,
.ai-todo-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-todo-item-actions,
.ai-todo-mention-row,
.ai-notion-status-pills,
.ai-notion-field-grid,
.ai-todo-detail-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-todo-detail textarea,
.ai-todo-detail input,
.ai-notion-sync-card textarea,
.ai-notion-sync-card input {
    width: 100%;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    padding: 12px 14px;
    font: inherit;
    color: #0f172a;
}

.ai-todo-detail textarea,
.ai-notion-sync-card textarea {
    resize: vertical;
    min-height: 112px;
}

.ai-todo-detail textarea:focus,
.ai-todo-detail input:focus,
.ai-notion-sync-card textarea:focus,
.ai-notion-sync-card input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.ai-todo-history-list,
.ai-todo-mention-candidate-list {
    display: grid;
    gap: 10px;
}

.ai-todo-compose-modal-content {
    width: min(560px, 96vw);
}

.ai-todo-compose-modal-body {
    display: grid;
    gap: 16px;
    padding: 20px 24px 4px;
}

.ai-todo-compose-textarea {
    min-height: 120px;
    resize: vertical;
}

.ai-todo-compose-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ai-todo-detail-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ai-todo-detail-actions {
    justify-content: flex-start;
}

.ai-todo-modal-body {
    display: grid;
    gap: 14px;
}

/* === 2026-06-07 dark theme === */
.ai-todo-compose-controls {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.ai-todo-week-section,
.ai-notion-sync-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ai-todo-week-section.is-done-section {
    background: var(--color-surface-2);
}

.ai-todo-week-list.is-drop-target {
    background: var(--color-accent-muted);
    box-shadow: inset 0 0 0 2px var(--color-accent);
}

.ai-todo-detail textarea,
.ai-todo-detail input,
.ai-notion-sync-card textarea,
.ai-notion-sync-card input {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-primary);
}

.ai-todo-detail textarea:focus,
.ai-todo-detail input:focus,
.ai-notion-sync-card textarea:focus,
.ai-notion-sync-card input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}
