/* ============================================================
   Tek-mode olduğu için canvas mode-tab strip'ini gizle
   Üst sağdaki action paleti (palet+ayarlar) — Cmd+K + sidebar
   menüsü zaten aynı işi görüyor
   "Klasik layout'a dön" butonu da gizli
   Sidebar section başlıklarındaki collapse chevron'u kaldırıldı —
   bütün bir bölümün gizlenmesi anlamsız
   ============================================================ */
.cv-side-modes,
.cv-side-modes [data-mode],
.cv-mode-tab,
.cv-tab-actions,
.cv-layout-toggle { display: none !important; }

/* Section collapse iptal */
.cv-sect-h .cv-chev { display: none !important; }
.cv-sect-h { cursor: default !important; }
.cv-sect-h .cv-sect-title { pointer-events: none; }
.cv-sect-h .cv-sect-add { pointer-events: auto; cursor: pointer; }
/* Daha önce kapatılmış ise de gövde her zaman görünsün */
.cv-sect.collapsed > *:not(.cv-sect-h),
.cv-sect-h.collapsed + * { display: block !important; }

/* Sidebar tree'de klasör altındaki görev satırlarını gizle —
   görevler folder view'da gösteriliyor, sidebar'da klasör hiyerarşisi yeterli
   (klasöre tıklayınca aynı yere gittiği için sidebar task duplicate hissi yapıyordu) */
.cv-fld-task,
.cv-leaf.cv-fld-task { display: none !important; }

/* ============================================================
   Etiket UI'ını gizle (DB'de duruyor, ileride geri açılabilir)
   ============================================================ */
.cv-sect-tags,
.cv-section[data-section="tags"],
.cv-tag-section,
.cv-section-tags,
.sidebar-section-tags,
.cv-chip-tags,
[data-tag-section] { display: none !important; }

/* ============================================================
   Dashboard + Folder views
   ============================================================ */

.dash-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---- Quick add ---------------------------------------------- */
.dash-quickadd {
    display: flex;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.04));
}
.dash-quickadd input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    background: transparent;
    color: var(--text);
}
.dash-quickadd input::placeholder { color: var(--text-subtle); }
.dash-quickadd button {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 18px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dur-fast, .12s);
}
.dash-quickadd button:hover { background: color-mix(in srgb, var(--accent) 88%, black); }

/* ---- Stat strip --------------------------------------------- */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.dash-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform var(--dur-fast, .12s), border-color var(--dur-fast, .12s);
}
.dash-stat:hover { border-color: var(--border-strong, #d4d4d8); transform: translateY(-1px); }
.dash-stat-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.dash-stat-lab {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 500;
}
.dash-stat-imp .dash-stat-num  { color: #f59e0b; }
.dash-stat-done .dash-stat-num { color: #10b981; }
@media (max-width: 720px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Section ------------------------------------------------ */
.dash-section { display: flex; flex-direction: column; gap: 12px; }
.dash-section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dst-icon { color: #f59e0b; }

/* ---- Important task list ------------------------------------ */
.dash-imp-list {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-imp-list .dash-task-row {
    border-radius: 8px;
}

/* ---- Folder grid -------------------------------------------- */
.dash-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.dash-folder-card {
    --card-accent: #6366f1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--card-accent);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: transform var(--dur-fast, .12s), border-color var(--dur-fast, .12s), box-shadow var(--dur-fast, .12s);
}
.dash-folder-card:hover {
    border-color: var(--border-strong, #d4d4d8);
    border-top-color: var(--card-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transform: translateY(-2px);
}
.dfc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.dfc-head:hover { background: var(--bg-subtle); }
.dfc-icon { font-size: 18px; line-height: 1; }
.dfc-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dfc-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
}
.dfc-list {
    list-style: none;
    margin: 0;
    padding: 6px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.dfc-empty {
    color: var(--text-subtle);
    font-size: 13px;
    padding: 16px;
    text-align: center;
    font-style: italic;
}
.dfc-foot {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    text-align: right;
    transition: color var(--dur-fast, .12s);
}
.dfc-foot:hover { color: var(--accent); }

/* Alt klasör mini-row (folder card içinde nested) */
.dfc-subfolders {
    border-top: 1px solid var(--border);
    padding: 8px 6px 6px;
    background: var(--bg-subtle);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dfc-subfolders-head {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-subtle);
    font-weight: 600;
    padding: 4px 8px 6px;
}
.dfc-subfolder-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--row-color, #6366f1);
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    transition: background var(--dur-fast, .12s), border-color var(--dur-fast, .12s);
}
.dfc-subfolder-row:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong, #d4d4d8);
    border-left-color: var(--row-color, #6366f1);
}
.dfc-sf-icon { font-size: 14px; flex-shrink: 0; }
.dfc-sf-name {
    flex: 1;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dfc-sf-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    font-weight: 500;
}

/* ---- Task row (used in cards + important) ------------------- */
.dash-task-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    list-style: none;
    transition: background var(--dur-fast, .12s);
}
.dash-task-row:hover { background: var(--bg-subtle); }
.dash-task-row.done { opacity: .55; }
.dash-task-row.done .dtr-title { text-decoration: line-through; }
.dtr-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.dtr-title {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dtr-star { margin-right: 4px; }
.dtr-sub {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 1px 6px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* ============================================================
   Folder view
   ============================================================ */
.folder-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.folder-bc {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--text-muted);
    font-size: 13px;
}
.fbc-link {
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color var(--dur-fast, .12s), background var(--dur-fast, .12s);
}
.fbc-link:hover { color: var(--text); background: var(--bg-subtle); }
.fbc-sep { color: var(--text-subtle); padding: 2px 0; }

.folder-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin: 4px 0 0;
    letter-spacing: -0.02em;
}
.folder-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6366f1;
    border-radius: 10px;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.folder-meta {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
    letter-spacing: 0;
}

.folder-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.folder-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: background var(--dur-fast, .12s);
}
.folder-task:last-child { border-bottom: none; }
.folder-task:hover { background: var(--bg-subtle); }
.folder-task.done { opacity: .55; }
.folder-task.done .ft-title { text-decoration: line-through; }
.ft-check { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.ft-star {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 1;
    color: var(--text-subtle);
    border-radius: 4px;
}
.ft-star.on { color: #f59e0b; }
.ft-star:hover { background: var(--bg-subtle); }
.ft-title { flex: 1; font-size: 14px; color: var(--text); cursor: pointer; }
.ft-sub {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 999px;
}
.ft-edit, .ft-trash, .ft-delete {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1;
    color: var(--text-subtle);
    border-radius: 4px;
    opacity: 0;
    transition: opacity var(--dur-fast, .12s), background var(--dur-fast, .12s);
}
.folder-task:hover .ft-edit,
.folder-task:hover .ft-trash,
.folder-task:hover .ft-delete { opacity: 1; }
.ft-edit:hover, .ft-trash:hover { background: var(--bg-subtle); }
.ft-delete:hover { background: var(--danger-soft); color: var(--danger); }

/* ============================================================
   Task editor modal
   ============================================================ */
.te-form { display: flex; flex-direction: column; gap: 14px; min-width: 480px; }
.te-title {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--dur-fast, .12s);
}
.te-title:focus { border-bottom-color: var(--accent); }
.te-desc {
    width: 100%;
    border: 1px solid var(--border);
    outline: 0;
    background: var(--bg-subtle);
    font: inherit;
    font-size: 13px;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 8px;
    resize: vertical;
}
.te-desc:focus { border-color: var(--accent); background: var(--bg); }
.te-meta {
    display: flex;
    gap: 16px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.te-meta label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}
.te-meta label:hover { color: var(--text); }
.te-meta input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }

.te-sub-section { display: flex; flex-direction: column; gap: 6px; }
.te-sub-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.te-sub-count {
    margin-left: auto;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 999px;
}
.te-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.te-sub-empty {
    color: var(--text-subtle);
    font-size: 13px;
    padding: 8px 10px;
    font-style: italic;
}
.te-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
}
.te-sub-item:hover { background: var(--bg-subtle); }
.te-sub-item.done .te-sub-title { text-decoration: line-through; opacity: .5; }
.te-sub-check { width: 15px; height: 15px; cursor: pointer; }
.te-sub-title {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    padding: 2px 4px;
}
.te-sub-title:focus { background: var(--bg); border-radius: 4px; }
.te-sub-del {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 18px;
    color: var(--text-subtle);
    line-height: 1;
    border-radius: 4px;
    opacity: 0;
}
.te-sub-item:hover .te-sub-del { opacity: 1; }
.te-sub-del:hover { background: var(--bg-subtle); color: var(--danger, #ef4444); }
.te-sub-add input {
    width: 100%;
    border: 1px dashed var(--border);
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    color: var(--text);
}
.te-sub-add input:focus { border-style: solid; border-color: var(--accent); }
.te-sub-add input::placeholder { color: var(--text-subtle); }

.te-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}
.te-actions button[data-danger] { color: var(--danger, #ef4444); }

/* ============================================================
   Drag-drop görsel state'leri
   ============================================================ */
.dash-task-row.dragging,
.folder-task.dragging {
    opacity: 0.4;
    cursor: grabbing;
}
.dash-folder-card.drag-over {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
    transform: translateY(-3px);
}
.folder-task.drop-above {
    border-top: 2px solid var(--accent);
    padding-top: 9px;
}
.folder-task.drop-below {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 9px;
}
.ft-grip {
    color: var(--text-subtle);
    cursor: grab;
    font-size: 12px;
    padding: 0 4px;
    user-select: none;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.5;
}
.folder-task:hover .ft-grip { opacity: 1; }
.dash-task-row { cursor: grab; }
.dash-task-row:active { cursor: grabbing; }

/* ============================================================
   Tamamlanma notu modalı
   ============================================================ */
.cn-form { display: flex; flex-direction: column; gap: 12px; min-width: 440px; }
.cn-task-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    padding: 8px 12px;
    background: var(--bg-subtle);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}
.cn-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}
.cn-hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-subtle); }
.cn-form textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    resize: vertical;
    outline: 0;
}
.cn-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.cn-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

/* Task editor: tamamlanma notu inline alanı */
.te-cnote { display: flex; flex-direction: column; gap: 6px; }
.te-cnote-lab {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 600;
}
.te-cnote textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    resize: vertical;
    outline: 0;
}
.te-cnote textarea:focus { border-color: var(--accent); background: var(--bg); }

/* ============================================================
   Dashboard önemli satırı — klasör breadcrumb
   ============================================================ */
.dtr-folder {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Archive view
   ============================================================ */
.archive-page { gap: 18px; }
.archive-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.archive-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}
.archive-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.archive-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.04));
}
.archive-search svg { color: var(--text-subtle); flex-shrink: 0; }
.archive-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}
.archive-search input::placeholder { color: var(--text-subtle); }
.archive-search-hint {
    font-size: 11px;
    color: var(--text-subtle);
    white-space: nowrap;
    border-left: 1px solid var(--border);
    padding-left: 10px;
}

.archive-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.arch-group {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--dur-fast, .12s);
}
.arch-group:hover { border-color: var(--border-strong, #d4d4d8); }
.arch-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background var(--dur-fast, .12s);
}
.arch-group-head:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg-subtle)); }
.arch-group-chev {
    color: var(--text-subtle);
    font-size: 12px;
    transition: transform var(--dur-fast, .12s);
    flex-shrink: 0;
}
.arch-group.collapsed .arch-group-chev { transform: rotate(-90deg); }
.arch-group.collapsed .arch-group-head { border-bottom: none; }
.arch-group.collapsed .arch-list { display: none; }

.arch-bulk-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: flex-end;
}
.arch-group-path {
    flex: 1;
    color: var(--text);
    letter-spacing: -0.01em;
}
.arch-group-count {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.arch-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.arch-task {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.arch-task:last-child { border-bottom: none; }
.arch-task:hover { background: var(--bg-subtle); }

.arch-task-main { min-width: 0; }
.arch-task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.arch-check {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.arch-task-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: line-through;
    text-decoration-color: var(--text-subtle);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.arch-task-title:hover { color: var(--accent); text-decoration-color: var(--accent); }
.arch-task-date {
    font-size: 11.5px;
    color: var(--text-subtle);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.arch-task-note {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    padding: 8px 12px;
    background: var(--bg-subtle);
    border-left: 3px solid var(--border-strong, #d4d4d8);
    border-radius: 0 6px 6px 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.arch-task-note.empty {
    color: var(--text-subtle);
    font-style: italic;
    background: transparent;
    border-left-style: dashed;
}
.arch-task-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity .15s;
}
.arch-task:hover .arch-task-actions { opacity: 1; }
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
}
.btn-sm:hover { background: var(--bg-subtle); border-color: var(--border-strong, #d4d4d8); }
.btn-danger { color: #b91c1c; }
.btn-danger:hover { background: #fef2f2; border-color: #fca5a5; }

@media (max-width: 720px) {
    .arch-task { grid-template-columns: 1fr; }
    .arch-task-actions { opacity: 1; }
    .archive-search-hint { display: none; }
}

/* ============================================================
   Mobile responsive (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    /* Dashboard / Folder layout sıkıştır */
    .dash-page { padding: 14px 12px 64px; gap: 16px; }

    /* Quick add: vertical stack */
    .dash-quickadd { flex-direction: column; gap: 6px; padding: 8px; }
    .dash-quickadd input { width: 100%; padding: 11px 12px; }
    .dash-quickadd button { width: 100%; padding: 10px; }

    /* Stat strip: 2x2 */
    .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dash-stat { padding: 12px 14px; gap: 2px; }
    .dash-stat-num { font-size: 22px; }
    .dash-stat-lab { font-size: 11px; }

    /* Folder grid: tek kolon */
    .dash-folder-grid { grid-template-columns: 1fr; gap: 10px; }
    .dash-folder-card { min-height: auto; }

    /* Folder view header: compact */
    .folder-head { gap: 6px; }
    .folder-bc { font-size: 12px; }
    .folder-title { font-size: 22px; flex-wrap: wrap; }
    .folder-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
    .folder-meta { width: 100%; margin-left: 0; font-size: 12px; }

    /* Folder tasks: grip ve action butonları her zaman görünür */
    .ft-grip { display: none; }
    .ft-edit, .ft-trash, .ft-archive, .ft-delete { opacity: 1; }
    .folder-task { padding: 10px 12px; gap: 8px; }

    /* Archive: header dikey */
    .archive-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .archive-title { font-size: 22px; }
    .archive-search { flex-wrap: wrap; padding: 8px 12px; }
    .archive-search-hint { display: none; }

    /* Modal'lar tam ekrana yakın */
    .te-form { min-width: 0; gap: 12px; }
    .te-title { font-size: 16px; }
    .cn-form { min-width: 0; gap: 10px; }

    /* Bulk toggle butonları */
    .arch-bulk-toggle { flex-wrap: wrap; }

    /* Task editor cnote textarea boyut */
    .te-cnote textarea, .te-desc, .cn-form textarea { font-size: 14px; }
}

/* Çok küçük telefonlar (≤ 380px) — daha agresif */
@media (max-width: 380px) {
    .dash-page { padding: 12px 8px 48px; }
    .dash-folder-card .dfc-head { padding: 12px 12px; }
    .arch-task { padding: 12px; }
}
