body {
    background-color: #f8f9fa;
}

.stat-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-card-primary {
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.stat-card-warning {
    background: linear-gradient(180deg, #ffffff 0%, #fff8ea 100%);
}

.stat-card-danger {
    background: linear-gradient(180deg, #ffffff 0%, #fff0f0 100%);
}

.stat-card-success {
    background: linear-gradient(180deg, #ffffff 0%, #effaf3 100%);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.soft-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}


.dashboard-section-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.dashboard-section-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    opacity: .92;
}

.dashboard-section-focus {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-section-focus::before {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.dashboard-section-plan {
    background: linear-gradient(180deg, #ffffff 0%, #f5fcf8 100%);
}

.dashboard-section-plan::before {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.dashboard-section-notes {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
}

.dashboard-section-notes::before {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

.dashboard-section-timeline {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.dashboard-section-timeline::before {
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
}

.section-card-header-focus {
    background: linear-gradient(180deg, rgba(239, 246, 255, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(37, 99, 235, 0.10) !important;
}

.section-card-header-plan {
    background: linear-gradient(180deg, rgba(236, 253, 245, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(5, 150, 105, 0.10) !important;
}

.section-card-header-notes {
    background: linear-gradient(180deg, rgba(255, 251, 235, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(217, 119, 6, 0.10) !important;
}

.section-card-header-timeline {
    background: linear-gradient(180deg, rgba(245, 243, 255, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(124, 58, 237, 0.10) !important;
}


.focus-task {
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1rem;
    background-color: #fff;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0;
}

.task-table tbody tr {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.task-row-overdue td:first-child,
.task-row-due-today td:first-child,
.task-row-active td:first-child,
.task-row-completed td:first-child {
    border-left: 4px solid transparent;
}

.task-row-overdue {
    background: rgba(220, 53, 69, 0.06);
}

.task-row-overdue td:first-child {
    border-left-color: #dc3545;
}

.task-row-due-today {
    background: rgba(255, 193, 7, 0.10);
}

.task-row-due-today td:first-child {
    border-left-color: #ffc107;
}

.task-row-active {
    background: rgba(13, 110, 253, 0.05);
}

.task-row-active td:first-child {
    border-left-color: #0d6efd;
}

.task-row-completed {
    background: rgba(25, 135, 84, 0.05);
}

.task-row-completed td:first-child {
    border-left-color: #198754;
}

.task-state-default {
    border-left: 4px solid rgba(0, 0, 0, 0.08);
}

.task-state-active {
    border-left: 4px solid #0d6efd;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.task-state-due-today {
    border-left: 4px solid #ffc107;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.task-state-overdue {
    border-left: 4px solid #dc3545;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.task-state-completed {
    border-left: 4px solid #198754;
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
}

.task-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.category-chip,
.recurrence-chip,
.priority-pill,
.status-pill,
.kanban-metric {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.category-chip {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.08);
    color: #495057;
}

.recurrence-chip {
    background: #f4efff;
    border: 1px solid rgba(111, 66, 193, .12);
    color: #6f42c1;
}

.priority-pill-low {
    background: #eef6ff;
    color: #0d6efd;
}

.priority-pill-medium {
    background: #fff4e5;
    color: #b26a00;
}

.priority-pill-high {
    background: #ffe7ea;
    color: #c1121f;
}

.status-pill {
    background: rgba(0,0,0,.04);
    color: #495057;
}

.task-date-line {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: #495057;
    margin-top: .6rem;
}

.completed-info {
    margin-top: .7rem;
    display: grid;
    gap: .3rem;
}

.completed-line {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
}

.kanban-board {
    align-items: stretch;
}

.kanban-column {
    min-height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.kanban-column.kanban-over {
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.12);
    transform: translateY(-2px);
}

.kanban-dropzone {
    min-height: 380px;
}

.kanban-task {
    cursor: grab;
}

.kanban-task.dragging {
    opacity: .55;
    transform: rotate(1deg);
}

.kanban-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 1rem;
    color: #6c757d;
    background: rgba(255,255,255,.6);
}

.kanban-header-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .85rem;
}

.kanban-metric {
    width: 100%;
    justify-content: flex-start;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.06);
    color: #6c757d;
    white-space: normal;
    line-height: 1.25;
    min-height: 2.75rem;
    padding: .55rem .75rem;
}

.kanban-metric.alert {
    background: #fff4f4;
    color: #b42318;
    border-color: rgba(180,35,24,.12);
}

.kanban-metric.today {
    background: #fff8e6;
    color: #a15c00;
    border-color: rgba(255,193,7,.2);
}

.kanban-metric.active {
    background: #eef5ff;
    color: #0d6efd;
    border-color: rgba(13,110,253,.12);
}

.kanban-metric.done {
    background: #eefaf2;
    color: #198754;
    border-color: rgba(25,135,84,.12);
}

.kanban-task-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.kanban-task-top .badge {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    max-width: 8rem;
    flex-shrink: 0;
}

@media (max-width: 1399.98px) {
    .kanban-header-metrics {
        grid-template-columns: 1fr;
    }
}

.nav-pills .nav-link {
    color: #495057;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
}

.nav-pills .nav-link.active {
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.16);
}

.quick-panel-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

@media (max-width: 991.98px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
}


.completion-detail-row td {
    background: transparent;
}

.completion-detail-panel {
    padding: 1rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(0,0,0,.06);
}

.completion-detail-panel-compact {
    padding: .9rem 1rem;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    background: #fff;
}

.completion-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
    flex-wrap: wrap;
}

.completion-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.completion-detail-grid.compact {
    grid-template-columns: 1fr;
    gap: .85rem;
}

.completion-detail-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: .35rem;
}

.completion-detail-value {
    font-size: .95rem;
    color: #212529;
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .completion-detail-grid {
        grid-template-columns: 1fr;
    }
}


.notification-dropdown {
    width: min(420px, 92vw);
}

.notification-item {
    border-left: 4px solid transparent;
}

.notification-item-info {
    border-left-color: #0d6efd;
}

.notification-item-warning {
    border-left-color: #ffc107;
}

.notification-item-danger {
    border-left-color: #dc3545;
}

.notification-page-item {
    transition: transform .18s ease, box-shadow .18s ease;
}

.notification-page-item:hover {
    transform: translateY(-1px);
}

.reminder-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: #e8f1ff;
    color: #1d4ed8;
}

.reminder-list {
    display: grid;
    gap: .9rem;
}

.reminder-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

.reminder-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eff6ff;
    color: #1d4ed8;
}

.reminder-card-warning .reminder-icon { background: #fff7e6; color: #b26a00; }
.reminder-card-danger .reminder-icon { background: #fff0f0; color: #c1121f; }

.calendar-legend-stack {
    display: grid;
    gap: .75rem;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #4b5563;
    font-weight: 600;
}

.calendar-legend-swatch {
    width: 1rem;
    height: 1rem;
    border-radius: .35rem;
    border: 1px solid rgba(0,0,0,.08);
}

.swatch-blue { background: #DBEAFE; }
.swatch-yellow { background: #FEF3C7; }
.swatch-red { background: #FEE2E2; }
.swatch-green { background: #DCFCE7; }
.swatch-gray { background: #F3F4F6; }

.calendar-help-list {
    padding-left: 1rem;
    display: grid;
    gap: .75rem;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1rem;
}

.fc .fc-button {
    border-radius: 999px;
    padding: .45rem .8rem;
}

.fc .fc-daygrid-event {
    border-radius: .7rem;
    padding: .2rem .35rem;
}


.calendar-detail-block {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
}

#calendarTaskStatusBadge,
#calendarTaskPriorityBadge,
#calendarTaskCategoryBadge {
    font-weight: 600;
    padding: .45rem .75rem;
    border-radius: 999px;
}

.fc-event {
    cursor: pointer;
}


.notification-dropdown {
    min-width: 22rem;
}

.settings-matrix th,
.settings-matrix td {
    vertical-align: middle;
}

.toast-container .toast {
    min-width: 320px;
    backdrop-filter: blur(6px);
}



.section-card-header {
    position: relative;
    background: linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(255,255,255,.98) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: .95rem;
    min-width: 0;
}

.section-head-icon,
.section-inline-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #2563eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(37, 99, 235, 0.12);
    flex: 0 0 auto;
}

.section-head-icon i,
.section-inline-icon i {
    font-size: 1.05rem;
}

.section-head-icon-emerald {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    color: #059669;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(5, 150, 105, 0.12);
}

.section-head-icon-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    color: #d97706;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(217, 119, 6, 0.12);
}

.section-head-icon-violet {
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    color: #7c3aed;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(124, 58, 237, 0.12);
}

.section-head-eyebrow,
.section-inline-eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: #64748b;
    margin-bottom: .25rem;
}

.section-head-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.section-head-subtitle {
    margin-top: .35rem;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 42rem;
}

.section-inline-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.section-inline-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .2rem;
}

.dashboard-days-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.day-glance-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    min-height: 168px;
    overflow: hidden;
}

.day-glance-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
}

.day-glance-card-today {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    border-color: rgba(29, 78, 216, 0.35);
    color: #fff;
    box-shadow: 0 16px 34px rgba(29, 78, 216, 0.22);
}

.day-glance-card-today::before {
    width: 100%;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,.18) 100%);
}

.day-glance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.day-glance-name {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: .18rem;
}

.day-glance-card-today .day-glance-name,
.day-glance-card-today .day-glance-note {
    color: rgba(255,255,255,.78);
}

.day-glance-date {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.day-glance-card-today .day-glance-date {
    color: #fff;
}

.day-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.day-metric-box {
    padding: .65rem .6rem;
    border-radius: .9rem;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(15, 23, 42, 0.05);
    text-align: center;
}

.day-glance-card-today .day-metric-box {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

.day-metric-label {
    display: block;
    font-size: .68rem;
    color: #64748b;
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.day-glance-card-today .day-metric-label {
    color: rgba(255,255,255,.72);
}

.day-metric-value {
    font-size: 1.1rem;
    line-height: 1;
}

.day-load-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .68rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .72rem;
    white-space: nowrap;
}

.day-load-pill-empty {
    background: #eef2ff;
    color: #475569;
}

.day-load-pill-planned {
    background: #e0f2fe;
    color: #0369a1;
}

.day-load-pill-busy {
    background: #fff7ed;
    color: #c2410c;
}

.day-load-pill-critical {
    background: #fef2f2;
    color: #b91c1c;
}

.day-glance-note {
    font-size: .78rem;
    color: #64748b;
    margin-top: auto;
    line-height: 1.45;
}

.upcoming-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.upcoming-section-stack {
    display: grid;
    gap: 1.2rem;
}

.upcoming-day-block {
    padding: 1.15rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(15, 23, 42, 0.05);
}

.upcoming-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: .9rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}

.upcoming-day-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.upcoming-day-subtitle {
    font-size: .86rem;
    color: #64748b;
}

.upcoming-task-list {
    display: grid;
    gap: .85rem;
}

.upcoming-task-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.upcoming-task-main {
    flex: 1 1 auto;
    min-width: 0;
}

.upcoming-task-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

@media (max-width: 1199.98px) {
    .dashboard-days-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .section-head,
    .section-inline-head {
        align-items: center;
    }

    .dashboard-days-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upcoming-section-header,
    .upcoming-day-header,
    .upcoming-task-card,
    .day-glance-header {
        flex-direction: column;
        align-items: stretch;
    }

    .day-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dashboard-days-grid {
        grid-template-columns: 1fr;
    }

    .day-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upcoming-task-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


.day-planner-card {
    overflow: hidden;
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.planner-day-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    padding: 1rem;
    min-height: 182px;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.planner-day-card-today {
    background: linear-gradient(180deg, #16213a 0%, #23365d 100%);
    border-color: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: 0 18px 36px rgba(22, 33, 58, 0.25);
}

.planner-day-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.planner-day-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
}

.planner-day-date {
    font-size: .84rem;
    color: #6c757d;
    margin-top: .2rem;
}

.planner-day-card-today .planner-day-date,
.planner-day-card-today .planner-day-note {
    color: rgba(255,255,255,.72);
}

.planner-today-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ffd65a;
    color: #2d2200;
    font-size: .72rem;
    font-weight: 700;
    padding: .35rem .7rem;
}

.planner-day-state {
    display: flex;
}

.planner-state-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .45rem .8rem;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.planner-day-card .planner-state-pill.day-load-pill-empty {
    background: #f3f4f6;
    color: #64748b;
}

.planner-day-card .planner-state-pill.day-load-pill-planned {
    background: #e8f1ff;
    color: #1456c1;
}

.planner-day-card .planner-state-pill.day-load-pill-busy {
    background: #fff2db;
    color: #a35f00;
}

.planner-day-card .planner-state-pill.day-load-pill-critical {
    background: #ffe5e8;
    color: #ba1f33;
}

.planner-day-card-today .planner-state-pill {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

.planner-day-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.planner-metric-item {
    border-radius: .95rem;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.06);
    padding: .75rem .6rem;
    text-align: center;
}

.planner-day-card-today .planner-metric-item {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.10);
}

.planner-metric-item strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
}

.planner-metric-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
    margin-bottom: .35rem;
}

.planner-day-card-today .planner-metric-label {
    color: rgba(255,255,255,.72);
}

.planner-day-note {
    font-size: .82rem;
    color: #64748b;
    margin-top: auto;
}

.planner-task-panel {
    border-top: 1px solid rgba(15,23,42,.07);
    padding-top: 1.25rem;
}

.planner-task-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.upcoming-day-block {
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 1.1rem;
    background: #fff;
    padding: 1rem 1rem .35rem;
}

.upcoming-day-header {
    margin-bottom: .8rem;
}

.upcoming-task-card {
    border-radius: 1rem;
    border: 1px solid rgba(15,23,42,.06);
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    padding: .95rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.upcoming-task-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

@media (max-width: 1399.98px) {
    .planner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .planner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .planner-task-panel-head,
    .upcoming-task-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.section-card-header-focus .section-head-eyebrow { color: #2563eb; }
.section-card-header-plan .section-head-eyebrow { color: #059669; }
.section-card-header-notes .section-head-eyebrow { color: #b45309; }
.section-card-header-timeline .section-head-eyebrow { color: #7c3aed; }

.section-card-header-focus .btn-outline-secondary,
.section-card-header-plan .btn-outline-primary,
.section-card-header-notes .btn-outline-secondary,
.section-card-header-timeline .btn-outline-secondary {
    background-color: rgba(255,255,255,.78);
}


.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #475569;
}

.section-kicker i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: .5rem;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: .82rem;
}

.form-label-subtle {
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: .35rem;
}

.task-date-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

/* Tasks page redesign */
.task-page-shell {
    display: grid;
    gap: 1.5rem;
}

.task-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,248,252,0.98));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.task-hero-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.section-kicker.small {
    font-size: .72rem;
    margin-bottom: .4rem;
}

.section-kicker.small i {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: .45rem;
    font-size: .72rem;
}

.task-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.task-summary-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.task-summary-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.task-summary-icon.primary { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.task-summary-icon.warning { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.task-summary-icon.danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.task-summary-icon.info { background: rgba(14, 165, 233, 0.14); color: #0369a1; }
.task-summary-icon.accent { background: rgba(139, 92, 246, 0.14); color: #6d28d9; }
.task-summary-icon.success { background: rgba(34, 197, 94, 0.14); color: #15803d; }

.task-summary-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.task-summary-label {
    margin-top: .15rem;
    color: #64748b;
    font-size: .86rem;
}

.task-filter-panel,
.task-content-card {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.task-panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.input-group-modern .input-group-text {
    background: #f8fafc;
    border-right: 0;
    color: #64748b;
}

.input-group-modern .form-control {
    border-left: 0;
}

.task-filter-checks {
    display: grid;
    gap: .8rem;
}

.task-toggle-check {
    display: flex;
    gap: .8rem;
    padding: .9rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.task-toggle-check .form-check-input {
    margin-top: .2rem;
}

.task-toggle-check span {
    display: grid;
    gap: .15rem;
}

.task-toggle-check strong {
    font-size: .92rem;
    color: #0f172a;
}

.task-toggle-check small {
    color: #64748b;
}

.task-view-tabs .nav-link {
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #475569;
    background: #f8fafc;
}

.task-view-tabs .nav-link.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.task-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(255,255,255,0.96));
}

.task-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 1.6rem;
}

.task-empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: .35rem;
    color: #0f172a;
}

.task-empty-state p {
    color: #64748b;
    margin-bottom: 1rem;
}

.task-list-stack {
    display: grid;
    gap: 1rem;
}

.task-list-card {
    padding: 1.2rem 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    position: relative;
}

.task-list-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 1.35rem 0 0 1.35rem;
    background: rgba(148, 163, 184, 0.6);
}

.task-list-card.task-state-active::before { background: #2563eb; }
.task-list-card.task-state-due-today::before { background: #d97706; }
.task-list-card.task-state-overdue::before { background: #dc2626; }
.task-list-card.task-state-completed::before { background: #16a34a; }

.task-list-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.task-list-main {
    min-width: 0;
    flex: 1;
}

.task-list-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.task-list-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: #0f172a;
}

.task-list-description {
    margin: .55rem 0 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.55;
}

.task-list-actions {
    display: inline-flex;
    align-items: flex-start;
    gap: .45rem;
    flex-shrink: 0;
}

.task-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.task-list-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.task-detail-tile {
    padding: .85rem .95rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #f8fafc;
    display: grid;
    gap: .18rem;
}

.task-detail-tile strong {
    color: #0f172a;
    font-size: .94rem;
    line-height: 1.4;
}

.task-detail-label {
    color: #64748b;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.task-detail-tile.primary { background: rgba(37, 99, 235, 0.08); }
.task-detail-tile.warning { background: rgba(245, 158, 11, 0.12); }
.task-detail-tile.danger { background: rgba(239, 68, 68, 0.1); }
.task-detail-tile.success { background: rgba(34, 197, 94, 0.1); }
.task-detail-tile.neutral { background: #f8fafc; }

.task-completion-toggle-row {
    margin-top: .95rem;
}

@media (max-width: 1400px) {
    .task-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .task-page-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .task-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-list-card-head,
    .task-list-title-row {
        flex-direction: column;
    }

    .task-list-actions {
        justify-content: flex-end;
    }

    .task-list-footer {
        grid-template-columns: 1fr;
    }
}

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

    .task-page-hero,
    .task-list-card,
    .task-filter-panel .card-body,
    .task-content-card .card-body {
        padding: 1rem !important;
    }

    .task-list-actions {
        flex-wrap: wrap;
    }
}

/* Kanban refinements */
.kanban-task-top {
    min-width: 0;
}

.kanban-task-top > .flex-grow-1 {
    min-width: 0;
}

.kanban-task .fw-semibold {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    word-break: break-word;
}

.kanban-task-top .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    max-width: 5.75rem;
    min-width: 4.6rem;
    padding: .42rem .65rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.kanban-task .task-meta-row,
.kanban-task .task-date-line {
    min-width: 0;
}

/* Notes redesign */
.notes-page-hero,
.note-form-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.notes-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.notes-summary-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notes-side-insights {
    display: grid;
    gap: 1rem;
}

.notes-side-card {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.notes-side-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.notes-category-stack {
    display: grid;
    gap: .7rem;
}

.notes-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .8rem;
    border-radius: .95rem;
    background: rgba(248, 250, 252, .9);
    border: 1px solid rgba(148, 163, 184, .14);
    color: #334155;
    font-weight: 600;
}

.notes-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .55rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, .12);
    color: #4f46e5;
    font-weight: 800;
}

.notes-highlight-board {
    padding: 1.15rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    background: linear-gradient(180deg, rgba(255, 251, 235, .92) 0%, rgba(255, 255, 255, .95) 100%);
}

.notes-highlight-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.notes-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.notes-highlight-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(245, 158, 11, .16);
    box-shadow: 0 16px 30px rgba(245, 158, 11, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.notes-highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .24);
}

.notes-highlight-card-top,
.notes-highlight-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.notes-highlight-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.notes-highlight-card p {
    margin: 0;
    color: #475467;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notes-highlight-link {
    color: #9a3412;
    font-weight: 700;
}

.notes-summary-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.notes-summary-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notes-summary-icon.primary { background: #eaf2ff; color: #175cd3; }
.notes-summary-icon.warning { background: #fff4df; color: #b26a00; }
.notes-summary-icon.accent { background: #f3ebff; color: #7c3aed; }

.notes-summary-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.notes-summary-label {
    margin-top: .2rem;
    font-size: .88rem;
    color: #667085;
}

.notes-filter-panel,
.notes-content-card,
.note-form-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.notes-card-grid .col-md-6,
.notes-card-grid .col-xxl-4 {
    display: flex;
}

.note-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.note-card-pinned {
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.12);
}

.note-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.note-card-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #101828;
    line-height: 1.35;
}

.note-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.note-pin-chip,
.note-date-chip,
.note-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .42rem .78rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.note-pin-chip {
    background: #fff4df;
    color: #b26a00;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.note-date-chip {
    background: #f8fafc;
    color: #475467;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.note-card-body {
    min-height: 0;
}

.note-card-content {
    margin: 0;
    color: #475467;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.note-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.note-tag-chip {
    background: #eef4ff;
    color: #175cd3;
    border: 1px solid rgba(23, 92, 211, 0.12);
}

.note-tag-chip:hover {
    background: #dfeaff;
    color: #0f4bb8;
}

.note-card-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: .35rem;
}

.note-form-textarea {
    min-height: 220px;
    resize: vertical;
}

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

@media (max-width: 767.98px) {
    .note-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .note-card-actions > * {
        width: 100%;
    }
}


.pagination-shell{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-top:1.25rem;border-top:1px solid rgba(15,23,42,.08);margin-top:1.5rem}.pagination-summary{font-size:.92rem;color:#64748b;font-weight:600}.pagination-modern .page-link{border:none;border-radius:999px;margin:.15rem;padding:.55rem .9rem;min-width:2.5rem;text-align:center;color:#0f172a;background:#f8fafc;box-shadow:inset 0 0 0 1px rgba(148,163,184,.28)}.pagination-modern .page-item.active .page-link{background:#0f172a;color:#fff;box-shadow:none}.pagination-modern .page-item.disabled .page-link{opacity:.45;background:#f8fafc;color:#94a3b8}.pagination-modern .page-link:hover{background:#e2e8f0;color:#0f172a}.pagination-modern{flex-wrap:wrap}


.page-size-chip{display:inline-flex;align-items:center;padding:.55rem .9rem;border-radius:999px;background:#f8fafc;color:#334155;font-size:.9rem;font-weight:600;box-shadow:inset 0 0 0 1px rgba(148,163,184,.22)}
.page-size-chip i{color:#64748b}



.calendar-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.calendar-overview-card {
    display: flex;
    align-items: flex-start;
    gap: .95rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(15,23,42,.06);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.96) 100%);
    box-shadow: 0 18px 42px rgba(15,23,42,.05);
}

.calendar-overview-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.calendar-overview-icon i { font-size: 1.15rem; }
.calendar-overview-icon.icon-indigo { background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(99,102,241,.16)); color: #1d4ed8; }
.calendar-overview-icon.icon-emerald { background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(5,150,105,.16)); color: #047857; }
.calendar-overview-icon.icon-amber { background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(251,191,36,.16)); color: #b45309; }
.calendar-overview-icon.icon-rose { background: linear-gradient(135deg, rgba(244,63,94,.12), rgba(251,113,133,.15)); color: #be123c; }

.calendar-overview-label {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: .15rem;
}

.calendar-overview-value {
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
}

.calendar-overview-text {
    margin-top: .3rem;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.45;
}

.calendar-workbench-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.calendar-workbench-chip {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem .95rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248,250,252,.95) 0%, rgba(255,255,255,.98) 100%);
    border: 1px solid rgba(15,23,42,.06);
    color: #475569;
    font-size: .88rem;
}

.calendar-workbench-chip i {
    color: #2563eb;
    margin-top: .1rem;
}

.calendar-shell {
    box-shadow: 0 22px 55px rgba(15,23,42,.06);
}

.calendar-side-card {
    box-shadow: 0 18px 40px rgba(15,23,42,.05);
}

.calendar-shell-header h2,
.calendar-side-card-header h2,
.calendar-side-card-header h6 {
    letter-spacing: -.01em;
}

.calendar-selection-summary,
.calendar-legend-card,
.calendar-tip-item,
.calendar-form-tip,
.calendar-workbench-chip {
    backdrop-filter: blur(12px);
}

.fc .fc-toolbar {
    padding: .2rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248,250,252,.92) 0%, rgba(255,255,255,.98) 100%);
    border: 1px solid rgba(15,23,42,.05);
}

.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: rgba(148,163,184,.16);
}

.fc .fc-scrollgrid {
    border-radius: 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.06);
}

.fc .fc-daygrid-day-frame {
    transition: background-color .18s ease, transform .18s ease;
}

.fc .fc-daygrid-day:hover .fc-daygrid-day-frame {
    background: linear-gradient(180deg, rgba(248,250,252,.85) 0%, rgba(255,255,255,.95) 100%);
}

.fc .fc-daygrid-event {
    transition: transform .18s ease, box-shadow .18s ease;
}

.fc .fc-daygrid-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15,23,42,.08);
}

.calendar-page {
    display: grid;
    gap: 1.5rem;
}

.calendar-hero {
    padding: 1.5rem;
    background: radial-gradient(circle at top right, rgba(59,130,246,.14), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(59,130,246,.08);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.calendar-hero-main {
    min-width: 0;
}

.calendar-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(37,99,235,.08);
    color: #1d4ed8;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .01em;
}

.calendar-hero-title {
    margin: .9rem 0 .35rem;
    font-size: clamp(1.65rem, 2vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
}

.calendar-hero-text {
    margin: 0;
    color: #475569;
    max-width: 52rem;
}

.calendar-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.calendar-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
    color: #334155;
    font-weight: 600;
    font-size: .84rem;
}

.calendar-hero-actions {
    display: grid;
    gap: .75rem;
    flex: 0 0 auto;
}

.calendar-shell,
.calendar-side-card {
    border: 1px solid rgba(15,23,42,.06);
    overflow: hidden;
}

.calendar-shell-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem 1rem;
    border-bottom: 1px solid rgba(15,23,42,.06);
    background: linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(255,255,255,.98) 100%);
}

.calendar-shell-body {
    padding: 1rem 1rem 1.15rem;
}

.calendar-inline-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    max-width: 24rem;
}

.calendar-inline-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    padding: .4rem .7rem;
    color: #475569;
    font-size: .8rem;
    font-weight: 700;
}

.calendar-sidebar-sticky {
    position: sticky;
    top: 1.25rem;
}

.calendar-side-card {
    padding: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.calendar-side-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1rem;
}

.calendar-side-card-header.compact {
    margin-bottom: .85rem;
}

.calendar-selection-summary {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(37,99,235,.12);
}

.calendar-selection-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: rgba(37,99,235,.1);
    color: #2563eb;
    flex: 0 0 auto;
}

.calendar-selection-label {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: .2rem;
    font-weight: 800;
}

.calendar-selection-value {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
}

.calendar-quick-form .form-label {
    font-weight: 700;
    color: #334155;
}

.calendar-form-tip {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff9eb 0%, #fffdf6 100%);
    border: 1px solid rgba(245,158,11,.16);
    color: #92400e;
    font-size: .86rem;
}

.calendar-legend-grid {
    display: grid;
    gap: .7rem;
}

.calendar-legend-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
}

.calendar-legend-card strong {
    display: block;
    color: #0f172a;
    font-size: .88rem;
}

.calendar-legend-card small {
    display: block;
    color: #64748b;
}

.calendar-tip-list {
    display: grid;
    gap: .8rem;
}

.calendar-tip-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .75rem;
    align-items: start;
    padding: .85rem .95rem;
    border-radius: 1rem;
    border: 1px solid rgba(15,23,42,.06);
    background: #fff;
    color: #475569;
}

.calendar-tip-item i {
    color: #2563eb;
    margin-top: .1rem;
}

.fc {
    --fc-border-color: rgba(148,163,184,.18);
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: rgba(248,250,252,.75);
    --fc-list-event-hover-bg-color: #f8fbff;
    --fc-today-bg-color: rgba(37,99,235,.06);
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.1rem;
    gap: .75rem;
    flex-wrap: wrap;
}

.fc .fc-toolbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.fc .fc-button {
    border-radius: 999px;
    padding: .5rem .9rem;
    box-shadow: none !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    background: #fff !important;
    color: #334155 !important;
    text-transform: none;
    font-weight: 700;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: rgba(37,99,235,.18) !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 8.1rem;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

.fc .fc-daygrid-day-number {
    padding: .6rem .65rem 0;
}

.fc .fc-day-today {
    border-radius: 1rem;
}

.fc .fc-daygrid-day-events {
    margin: .2rem .35rem .55rem;
}

.fc .fc-daygrid-event {
    border-radius: .85rem;
    padding: .28rem .45rem;
    border-width: 1px;
    box-shadow: 0 6px 14px rgba(15,23,42,.05);
}

.fc .fc-daygrid-event .fc-event-title {
    font-weight: 700;
    font-size: .82rem;
}

.fc .fc-list-event-title a,
.fc .fc-event-main-frame {
    color: inherit;
}

.fc .fc-popover {
    border-radius: 1rem;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 42px rgba(15,23,42,.12);
}

.fc .fc-popover-header {
    padding: .8rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.fc .fc-day-other {
    background: linear-gradient(180deg, rgba(248,250,252,.85) 0%, rgba(255,255,255,.55) 100%);
}

@media (max-width: 1199.98px) {
    .calendar-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-workbench-note {
        grid-template-columns: 1fr;
    }

    .calendar-hero,
    .calendar-shell-header {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-inline-legend {
        justify-content: flex-start;
        max-width: none;
    }

    .calendar-sidebar-sticky {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .calendar-overview-grid {
        grid-template-columns: 1fr;
    }

    .calendar-shell-header {
        padding: 1rem 1rem .85rem;
    }

    .calendar-side-card {
        padding: 1rem;
    }

    .calendar-selection-summary {
        align-items: flex-start;
    }

    .calendar-hero {
        padding: 1.1rem;
    }

    .calendar-shell-body {
        padding: .75rem;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 6.8rem;
    }

    .calendar-hero-actions {
        width: 100%;
    }

    .calendar-hero-actions .btn {
        width: 100%;
    }
}


/* Tarihte Bugün */
.history-page-shell,
.history-form-shell {
    display: grid;
    gap: 1.5rem;
}

.history-page-hero,
.history-form-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem 1.8rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(124, 58, 237, .10);
    background: linear-gradient(135deg, rgba(248, 245, 255, .96), rgba(255, 255, 255, .98));
    box-shadow: 0 14px 36px rgba(15, 23, 42, .05);
}

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.history-summary-card {
    display: flex;
    align-items: center;
    gap: .95rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

.history-summary-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.history-summary-icon.primary { background: rgba(59, 130, 246, .12); color: #2563eb; }
.history-summary-icon.accent { background: rgba(124, 58, 237, .12); color: #7c3aed; }
.history-summary-icon.success { background: rgba(16, 185, 129, .12); color: #059669; }
.history-summary-icon.warning { background: rgba(245, 158, 11, .16); color: #d97706; }

.history-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.history-summary-label {
    margin-top: .2rem;
    font-size: .85rem;
    color: #64748b;
}

.history-filter-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,250,251,.96) 100%);
}

.history-section-card {
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .05);
}

.history-section-today { background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%); }
.history-section-upcoming { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.history-section-archive { background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%); }

.history-highlight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(255,255,255,.96));
    border: 1px solid rgba(124, 58, 237, .10);
    height: 100%;
}

.history-highlight-date,
.history-archive-datebox {
    min-width: 72px;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    display: grid;
    align-content: center;
    justify-items: center;
    padding: .85rem .6rem;
    box-shadow: inset 0 -8px 18px rgba(124,58,237,.05);
}

.history-highlight-date span,
.history-archive-datebox strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.history-highlight-date small,
.history-archive-datebox span {
    margin-top: .25rem;
    font-size: .8rem;
    color: #64748b;
    text-transform: capitalize;
}

.history-highlight-body,
.history-archive-body {
    display: grid;
    gap: .75rem;
    min-width: 0;
}

.history-card-topline {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.history-type-chip,
.history-years-chip,
.history-next-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.history-type-chip.annual {
    background: rgba(124, 58, 237, .12);
    color: #6d28d9;
}

.history-type-chip.once {
    background: rgba(59, 130, 246, .12);
    color: #1d4ed8;
}

.history-years-chip {
    background: rgba(16, 185, 129, .12);
    color: #047857;
}

.history-next-chip {
    background: rgba(245, 158, 11, .14);
    color: #b45309;
}

.history-highlight-body h3,
.history-archive-body h3,
.history-upcoming-content h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.history-highlight-body p,
.history-archive-body p,
.history-upcoming-content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.history-tag-cloud,
.history-card-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.history-upcoming-list {
    display: grid;
    gap: .85rem;
}

.history-upcoming-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, .10);
    background: rgba(255,255,255,.88);
}

.history-upcoming-daycount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: .55rem .85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .82rem;
    color: #1d4ed8;
    background: rgba(59, 130, 246, .12);
}

.history-upcoming-meta {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: .84rem;
    margin-top: .35rem;
    margin-bottom: .35rem;
}

.history-archive-grid .history-archive-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, .07);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    width: 100%;
}

.history-empty-state.compact {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.history-form-card {
    border: 1px solid rgba(124, 58, 237, .08);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(251,250,255,.96) 100%);
}

.history-form-textarea {
    min-height: 220px;
    resize: vertical;
}

@media (max-width: 991.98px) {
    .history-page-hero,
    .history-form-hero {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 767.98px) {
    .history-highlight-card,
    .history-archive-grid .history-archive-card,
    .history-upcoming-item {
        grid-template-columns: 1fr;
    }

    .history-highlight-date,
    .history-archive-datebox {
        min-width: 0;
        width: 100%;
    }
}


.notification-dropdown-item {
    display: grid;
    gap: .85rem;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,250,251,.92) 100%);
}

.notification-dropdown-body {
    min-width: 0;
}

.notification-dropdown-icon {
    color: #64748b;
    font-size: 1.05rem;
    margin-top: .1rem;
}

.notification-dropdown-meta {
    line-height: 1.45;
}

.notification-dropdown-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.notification-dropdown-actions .btn {
    border-radius: 999px;
}

.history-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-section-header-split {
    align-items: flex-end;
}

.history-head-icon.today {
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    color: #7c3aed;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(124,58,237,.16);
}

.history-head-icon.upcoming {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #2563eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(37,99,235,.14);
}

.history-head-icon.archive {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    color: #d97706;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(217,119,6,.12);
}

.history-count-chip {
    box-shadow: 0 10px 20px rgba(15, 23, 42, .05);
}

.history-section-card {
    overflow: hidden;
}

.history-section-card .card-body {
    position: relative;
}

.history-section-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(124,58,237,.16), rgba(59,130,246,.08), transparent);
}

.history-highlight-card {
    padding: 1.2rem;
    border-radius: 1.35rem;
    box-shadow: 0 18px 38px rgba(124, 58, 237, .08);
}

.history-upcoming-item {
    border-radius: 1.15rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .06);
}

.history-archive-grid .history-archive-card {
    border-radius: 1.35rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.history-archive-grid .history-archive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .09);
}

.history-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.history-card-actions .btn {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.history-filter-panel .section-kicker,
.history-page-hero .section-kicker,
.history-form-hero .section-kicker {
    letter-spacing: .08em;
}

@media (max-width: 767.98px) {
    .history-section-header {
        align-items: flex-start;
    }

    .notification-dropdown-actions {
        flex-direction: column;
    }

    .notification-dropdown-actions .btn {
        width: 100%;
    }
}

.history-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.history-quick-tag,
.history-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(124, 58, 237, .12);
    background: rgba(124, 58, 237, .06);
    color: #6d28d9;
    transition: all .18s ease;
}

.history-quick-tag:hover {
    transform: translateY(-1px);
    background: rgba(124, 58, 237, .1);
    color: #5b21b6;
}

.history-quick-tag.active {
    background: linear-gradient(135deg, rgba(124,58,237,.16) 0%, rgba(79,70,229,.14) 100%);
    border-color: rgba(124,58,237,.24);
    box-shadow: 0 10px 22px rgba(124,58,237,.08);
}

.history-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.history-filter-chip {
    background: rgba(15, 23, 42, .05);
    border-color: rgba(15, 23, 42, .08);
    color: #334155;
}


.task-checklist-editor {
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.task-checklist-list {
    display: grid;
    gap: 0.75rem;
}

.task-checklist-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.task-checklist-handle {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #64748b;
}

.task-checklist-summary {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.task-checklist-progress {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.task-checklist-progress .progress-bar {
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    border-radius: 999px;
}

.task-checklist-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.task-checklist-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.95rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #334155;
    min-width: 0;
}

.task-checklist-chip span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.task-checklist-chip.is-done {
    background: rgba(220, 252, 231, 0.78);
    border-color: rgba(34, 197, 94, 0.25);
    color: #166534;
}

.kanban-checklist-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
}


/* Rich note editor */
.note-editor-shell {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 38px rgba(15,23,42,.04);
}

.note-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.note-editor-helper-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.note-helper-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: .78rem;
    font-weight: 700;
}

.EasyMDEContainer {
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.EasyMDEContainer .editor-toolbar {
    border: none;
    background: #f8fafc;
    padding: .5rem .65rem;
}

.EasyMDEContainer .editor-toolbar button,
.EasyMDEContainer .editor-toolbar a {
    border-radius: .7rem !important;
}

.EasyMDEContainer .CodeMirror {
    border: none;
    min-height: 300px;
    font-size: .98rem;
    line-height: 1.7;
    padding: .25rem 0;
}

.EasyMDEContainer .CodeMirror-scroll {
    min-height: 300px;
}

.EasyMDEContainer .CodeMirror,
.EasyMDEContainer .CodeMirror-sided,
.EasyMDEContainer .editor-preview-side,
.EasyMDEContainer .editor-preview {
    background: #fff;
}

.note-preview-panel {
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
    padding-top: 1rem;
}

.note-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}

.note-preview-count {
    display: inline-flex;
    align-items: center;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: .78rem;
    font-weight: 700;
}

.note-preview-body {
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.1rem;
    min-height: 160px;
    color: #344054;
}

.note-preview-body > :last-child { margin-bottom: 0; }
.note-preview-body h1, .note-preview-body h2, .note-preview-body h3 { color: #101828; margin-top: 1rem; }
.note-preview-body h1:first-child, .note-preview-body h2:first-child, .note-preview-body h3:first-child { margin-top: 0; }
.note-preview-body pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 1rem;
    padding: .9rem 1rem;
    overflow: auto;
}
.note-preview-body code {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: .45rem;
    padding: .12rem .35rem;
    font-size: .92em;
}
.note-preview-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.note-preview-body blockquote {
    border-left: 4px solid #94a3b8;
    padding-left: .9rem;
    color: #475467;
    margin: .75rem 0;
}
.note-preview-body table {
    width: 100%;
    border-collapse: collapse;
    margin: .75rem 0;
}
.note-preview-body th,
.note-preview-body td {
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: .55rem .7rem;
}
.note-preview-body th {
    background: #f8fafc;
    color: #0f172a;
}

@media (max-width: 991.98px) {
    .note-editor-shell { padding: 1rem; }
    .EasyMDEContainer .CodeMirror,
    .EasyMDEContainer .CodeMirror-scroll { min-height: 240px; }
}


.note-editor-header--enhanced {
    align-items: flex-start;
    gap: 1rem;
}

.note-editor-actions {
    display: grid;
    gap: .9rem;
    justify-items: end;
}

.note-editor-action-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.note-editor-action-btn {
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.note-draft-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 700;
    border: 1px solid rgba(59,130,246,.12);
}

.note-draft-status.is-saving {
    background: #fff7ed;
    color: #c2410c;
    border-color: rgba(249,115,22,.18);
}

.note-draft-status.is-restored {
    background: #ecfdf3;
    color: #15803d;
    border-color: rgba(34,197,94,.18);
}

.note-draft-recovery {
    margin: 0 0 1rem;
    padding: .95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(59,130,246,.14);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.note-draft-recovery-copy {
    min-width: 0;
}

.note-draft-recovery strong {
    display: block;
    color: #0f172a;
    margin-bottom: .25rem;
}

.note-draft-recovery-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}

.note-form-shell--focus .note-form-card {
    border-color: rgba(59,130,246,.14);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12) !important;
}

.note-editor-shell--focus {
    position: fixed;
    inset: 1rem;
    z-index: 1085;
    border-radius: 1.5rem;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.35);
    overflow: auto;
}

.note-editor-shell--focus .EasyMDEContainer,
.note-editor-shell--focus .CodeMirror,
.note-editor-shell--focus .editor-preview-side {
    min-height: calc(100vh - 16rem) !important;
}

.note-editor-shell--focus .note-preview-panel {
    margin-top: 1rem !important;
}

body.note-editor-focus-body {
    overflow: hidden;
}

body.note-editor-focus-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1080;
}

.note-editor-shell--focus {
    z-index: 1085;
}

@media (max-width: 991.98px) {
    .note-editor-header--enhanced,
    .note-draft-recovery {
        flex-direction: column;
        align-items: stretch;
    }

    .note-editor-actions,
    .note-editor-action-row {
        justify-items: stretch;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .note-editor-shell--focus {
        inset: .35rem;
        border-radius: 1rem;
    }

    .note-draft-recovery-actions,
    .note-editor-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .note-editor-action-row > *,
    .note-draft-recovery-actions > * {
        width: 100%;
    }
}


/* Notification history */
.notification-history-summary { border: 0; border-radius: 1.25rem; }
.notification-history-summary .card-body { padding: 1.2rem 1.25rem; }
.notification-history-summary .summary-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #6c757d; margin-bottom: .35rem; }
.notification-history-summary .summary-value { font-size: 1.9rem; font-weight: 700; line-height: 1; margin-bottom: .35rem; }
.notification-history-summary .summary-help { color: #6c757d; font-size: .9rem; }
.notification-history-summary.summary-open { background: linear-gradient(135deg, #fff7dd 0%, #ffffff 100%); }
.notification-history-summary.summary-toast { background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%); }
.notification-history-summary.summary-email { background: linear-gradient(135deg, #eefcf4 0%, #ffffff 100%); }
.notification-history-summary.summary-dismissed { background: linear-gradient(135deg, #f6f3ff 0%, #ffffff 100%); }
.notification-log-legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.log-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip-open { background: #fff7dd; color: #8a6116; }
.chip-read { background: #eaf8ef; color: #1f6c43; }
.chip-dismissed { background: #f0f1f5; color: #4d5562; }
.notification-history-item { border-left: 4px solid transparent; }
.notification-history-item.history-open { border-left-color: #f0b429; }
.notification-history-item.history-read { border-left-color: #30a46c; }
.notification-history-item.history-dismissed { border-left-color: #8892a0; }
.notification-history-main { flex: 1 1 640px; min-width: 0; }
.notification-history-side { flex: 0 0 210px; background: #f8fafc; border: 1px solid rgba(15, 23, 42, .06); border-radius: 1rem; padding: 1rem; }
.notification-history-timeline { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: .75rem 1rem; }
.timeline-row { background: #f8fafc; border: 1px solid rgba(15, 23, 42, .06); border-radius: .9rem; padding: .8rem .9rem; }
.timeline-label { display: inline-flex; align-items: center; gap: .45rem; color: #64748b; font-size: .82rem; margin-bottom: .25rem; }
.timeline-value { display: block; font-weight: 600; color: #1f2937; font-size: .95rem; }
@media (max-width: 991.98px) {
  .notification-history-side { flex: 1 1 100%; }
}
@media (max-width: 767.98px) {
  .notification-history-timeline { grid-template-columns: 1fr; }
}


.dashboard-pref-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pref-check {
    display: flex;
    align-items: start;
    gap: .65rem;
    min-height: 100%;
    padding: .9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(248, 250, 252, .9);
}

.pref-check .form-check-input {
    float: none;
    margin-top: .2rem;
}

.pref-check .form-check-label {
    font-weight: 600;
    color: #0f172a;
}


:root {
    --app-accent: #4f46e5;
    --app-accent-soft: rgba(79, 70, 229, 0.14);
    --app-surface: #ffffff;
    --app-surface-muted: #f8fafc;
    --app-border: rgba(15, 23, 42, 0.08);
    --app-text: #1f2937;
    --app-text-muted: #6b7280;
}

body.accent-emerald {
    --app-accent: #059669;
    --app-accent-soft: rgba(5, 150, 105, 0.14);
}

body.accent-rose {
    --app-accent: #e11d48;
    --app-accent-soft: rgba(225, 29, 72, 0.14);
}

body.accent-amber {
    --app-accent: #d97706;
    --app-accent-soft: rgba(217, 119, 6, 0.16);
}

body,
body .card,
body .soft-card,
body .focus-task,
body .note-card {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body .btn-primary {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

body .btn-primary:hover,
body .btn-primary:focus {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
    filter: brightness(.96);
}

body .page-link.active,
body .active > .page-link,
body .nav-pills .nav-link.active,
body .form-check-input:checked {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

body.theme-dark {
    background: #0f172a;
    color: #e5e7eb;
}

body.theme-dark .navbar {
    background: linear-gradient(90deg, #0f172a 0%, #111827 100%) !important;
}

body.theme-dark main,
body.theme-dark .card,
body.theme-dark .soft-card,
body.theme-dark .focus-task,
body.theme-dark .note-card,
body.theme-dark .task-filter-panel,
body.theme-dark .notes-filter-panel,
body.theme-dark .task-content-card,
body.theme-dark .notes-content-card,

body.theme-dark .calendar-overview-card {
    background: linear-gradient(180deg, rgba(30,41,59,.96) 0%, rgba(15,23,42,.98) 100%);
    border-color: rgba(148,163,184,.12);
    box-shadow: 0 20px 44px rgba(2,6,23,.35);
}

body.theme-dark .calendar-overview-label,
body.theme-dark .calendar-overview-text {
    color: #94a3b8;
}

body.theme-dark .calendar-overview-value {
    color: #e2e8f0;
}

body.theme-dark .calendar-workbench-chip,
body.theme-dark .fc .fc-toolbar {
    background: linear-gradient(180deg, rgba(30,41,59,.92) 0%, rgba(15,23,42,.96) 100%);
    border-color: rgba(148,163,184,.12);
    color: #cbd5e1;
}

body.theme-dark .calendar-shell,
body.theme-dark .calendar-side-card {
    background: #111827 !important;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.theme-dark .text-muted,
body.theme-dark .form-text,
body.theme-dark .small.text-muted {
    color: #94a3b8 !important;
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .input-group-text,
body.theme-dark .table,
body.theme-dark .modal-content {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .category-chip,
body.theme-dark .page-size-chip,
body.theme-dark .status-pill,
body.theme-dark .kanban-metric,
body.theme-dark .history-count-chip,
body.theme-dark .note-date-chip,
body.theme-dark .note-tag-chip {
    background: rgba(148, 163, 184, 0.12);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.18);
}

.settings-center-hero,
.settings-summary-card,
.settings-section-card {
    position: relative;
    overflow: hidden;
}

.settings-center-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(255, 255, 255, 0.98) 65%);
    border: 1px solid var(--app-border);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.settings-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.settings-summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid var(--app-border);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.settings-summary-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.1rem;
}

.settings-summary-icon.primary { background: rgba(37, 99, 235, 0.14); color: #2563eb; }
.settings-summary-icon.accent { background: var(--app-accent-soft); color: var(--app-accent); }
.settings-summary-icon.success { background: rgba(5, 150, 105, 0.14); color: #059669; }
.settings-summary-icon.warning { background: rgba(217, 119, 6, 0.14); color: #d97706; }

.settings-summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-text);
}

.settings-summary-label {
    font-size: .86rem;
    color: var(--app-text-muted);
}

.settings-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.settings-inline-note {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: 1rem;
    background: var(--app-accent-soft);
    color: var(--app-text);
    font-size: .92rem;
}

.settings-switch-grid {
    align-items: stretch;
}

.settings-switch-card,
.settings-field-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    min-height: 100%;
}

.settings-switch-card .form-check-input {
    margin-top: .18rem;
    flex-shrink: 0;
}

.settings-switch-card strong,
.settings-field-card label {
    display: block;
    color: var(--app-text);
}

.settings-switch-card small,
.settings-field-card .form-text {
    display: block;
    color: var(--app-text-muted);
    margin-top: .2rem;
}

.settings-mini-list li + li {
    margin-top: .35rem;
}

.notes-card-grid-compact .note-card {
    padding: 1rem;
}

.notes-card-grid-compact .note-card-content {
    -webkit-line-clamp: 4;
    font-size: .92rem;
}

.notes-card-grid-compact .note-card-meta {
    gap: .4rem;
}

.notes-view-switch .btn.active {
    color: #fff;
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

body.theme-dark .settings-center-hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.24) 0%, rgba(17, 24, 39, 0.98) 65%);
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .settings-summary-card,
body.theme-dark .settings-switch-card,
body.theme-dark .settings-field-card {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .settings-summary-value,
body.theme-dark .settings-switch-card strong,
body.theme-dark .settings-field-card label,
body.theme-dark .settings-inline-note {
    color: #e5e7eb;
}

body.theme-dark .settings-summary-label,
body.theme-dark .settings-switch-card small,
body.theme-dark .settings-field-card .form-text {
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .settings-center-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Tarihte Bugün - v2 geliştirmeleri */
.history-display-toolbar {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.history-view-switch .btn {
    border-width: 1px;
}

.history-view-switch .btn.active {
    color: #fff;
    background: linear-gradient(135deg, #111827, #334155);
    border-color: transparent;
}

.history-status-chip,
.history-anniversary-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .72rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.history-status-chip.pinned {
    background: rgba(124, 58, 237, .12);
    color: #6d28d9;
}

.history-status-chip.favorite {
    background: rgba(245, 158, 11, .16);
    color: #b45309;
}

.history-anniversary-chip {
    background: rgba(236, 72, 153, .12);
    color: #be185d;
}

.history-highlight-card,
.history-upcoming-item,
.history-archive-card,
.history-timeline-item {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.history-highlight-card:hover,
.history-upcoming-item:hover,
.history-archive-card:hover,
.history-timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, .08);
}

.history-highlight-card.is-pinned,
.history-upcoming-item.is-pinned,
.history-archive-card.is-pinned,
.history-timeline-item.is-pinned {
    border-color: rgba(124, 58, 237, .28);
    box-shadow: 0 18px 42px rgba(124, 58, 237, .10);
}

.history-highlight-card.is-favorite,
.history-upcoming-item.is-favorite,
.history-archive-card.is-favorite,
.history-timeline-item.is-favorite {
    background-image: linear-gradient(135deg, rgba(250, 204, 21, .08), rgba(255,255,255,.98));
}

.history-timeline-list {
    position: relative;
    display: grid;
    gap: 1rem;
    padding-left: .25rem;
}

.history-timeline-list::before {
    content: "";
    position: absolute;
    left: 4.2rem;
    top: .75rem;
    bottom: .75rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(124, 58, 237, .25), rgba(59, 130, 246, .18));
}

.history-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, .07);
    background: #fff;
}

.history-timeline-side {
    position: relative;
    display: grid;
    justify-items: start;
    align-content: start;
    gap: .7rem;
    padding-top: .1rem;
}

.history-timeline-marker {
    width: .9rem;
    height: .9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, .10);
    margin-left: 3.75rem;
}

.history-timeline-date {
    min-width: 6.5rem;
    padding: .8rem .9rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(180deg, rgba(249, 250, 251, .95), rgba(255,255,255,.98));
}

.history-timeline-date strong {
    display: block;
    font-size: 1rem;
    color: #111827;
}

.history-timeline-date span {
    font-size: .85rem;
    color: #64748b;
}

.history-timeline-body {
    display: grid;
    gap: .8rem;
    min-width: 0;
}

.history-timeline-body h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.history-upcoming-item {
    border: 1px solid rgba(15, 23, 42, .07);
    background: rgba(255,255,255,.92);
}

.history-card-actions form {
    margin: 0;
}

@media (max-width: 991.98px) {
    .history-display-toolbar {
        justify-content: flex-start;
    }

    .history-timeline-item {
        grid-template-columns: 1fr;
    }

    .history-timeline-list::before {
        left: .42rem;
    }

    .history-timeline-marker {
        margin-left: 0;
    }

    .history-timeline-date {
        margin-left: 1.35rem;
    }
}

body.theme-dark .history-view-switch .btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

body.theme-dark .history-timeline-item,
body.theme-dark .history-upcoming-item {
    background: rgba(15, 23, 42, .72);
    border-color: rgba(148, 163, 184, .20);
}

body.theme-dark .history-timeline-date {
    background: rgba(15, 23, 42, .78);
    border-color: rgba(148, 163, 184, .18);
}

body.theme-dark .history-timeline-body h3,
body.theme-dark .history-timeline-date strong {
    color: #e5e7eb;
}

body.theme-dark .history-timeline-date span {
    color: #94a3b8;
}


/* Theme system - expanded */
body {
    background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
    color: var(--app-text);
}

body a {
    color: inherit;
}

body .navbar .nav-link.active,
body .navbar .nav-link:hover,
body .section-kicker,
body .section-kicker i,
body .settings-theme-preview-badge,
body .history-reference-link,
body .history-filter-chip i {
    color: var(--app-accent);
}

body .btn-outline-primary,
body .btn-outline-primary:hover,
body .btn-outline-primary:focus {
    color: var(--app-accent);
    border-color: color-mix(in srgb, var(--app-accent) 65%, white 35%);
    background: transparent;
}

body .btn-outline-primary:hover,
body .btn-outline-primary:focus {
    background: var(--app-accent-soft);
}

body .alert-success,
body .alert-danger,
body .alert-warning,
body .alert-info,
body .dropdown-menu,
body .pagination-modern .page-link,
body .table-responsive,
body .list-group-item {
    border-color: var(--app-border);
}

body .form-control:focus,
body .form-select:focus,
body .form-check-input:focus {
    border-color: color-mix(in srgb, var(--app-accent) 55%, white 45%);
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--app-accent) 20%, transparent 80%);
}

body .pagination-modern .page-link {
    color: var(--app-text);
    background: var(--app-surface);
}

body.theme-dark {
    --app-surface: #111827;
    --app-surface-muted: #0f172a;
    --app-border: rgba(148, 163, 184, 0.18);
    --app-text: #e5e7eb;
    --app-text-muted: #94a3b8;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

body.theme-dark .table > :not(caption) > * > * {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.14);
}

body.theme-dark .btn-outline-secondary,
body.theme-dark .btn-outline-dark,
body.theme-dark .page-link,
body.theme-dark .dropdown-menu,
body.theme-dark .alert,
body.theme-dark .timeline-row,
body.theme-dark .task-empty-state,
body.theme-dark .history-empty-state,
body.theme-dark .pagination-summary {
    background: #111827;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .btn-outline-secondary:hover,
body.theme-dark .btn-outline-dark:hover,
body.theme-dark .page-link:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #fff;
}

body.theme-dark .history-filter-chip,
body.theme-dark .history-quick-tag,
body.theme-dark .history-type-chip,
body.theme-dark .history-next-chip,
body.theme-dark .history-years-chip,
body.theme-dark .history-upcoming-daycount,
body.theme-dark .history-archive-datebox,
body.theme-dark .history-timeline-date,
body.theme-dark .settings-theme-preview,
body.theme-dark .settings-preview-card {
    background: rgba(15, 23, 42, 0.88);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .settings-preview-mini-line {
    background: rgba(148, 163, 184, 0.18);
}

.settings-theme-preview {
    border: 1px solid var(--app-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
    border-radius: 1.2rem;
    padding: 1rem;
}

.settings-theme-preview.preview-dark {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.98));
}

.settings-theme-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .95rem;
}

.settings-theme-preview-kicker {
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--app-text-muted);
    margin-bottom: .15rem;
}

.settings-theme-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .42rem .8rem;
    background: var(--app-accent-soft);
}

.settings-theme-preview-body {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: .9rem;
}

.settings-preview-card {
    border-radius: 1rem;
    border: 1px solid var(--app-border);
    padding: 1rem;
    background: var(--app-surface);
}

.settings-preview-card.main {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.settings-preview-title-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .6rem;
}

.settings-preview-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 999px;
    background: var(--app-accent);
    box-shadow: 0 0 0 6px var(--app-accent-soft);
}

.settings-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .85rem;
}

.settings-preview-mini-line {
    height: .75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.settings-preview-card.muted {
    display: grid;
    align-content: center;
    gap: .8rem;
    background: var(--app-surface-muted);
}

.history-card-media {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
}

.history-card-media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.history-card-media.is-compact img {
    aspect-ratio: 21 / 9;
}

.history-reference-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.history-reference-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    text-decoration: none;
}

.history-reference-link:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .settings-theme-preview-body {
        grid-template-columns: 1fr;
    }
}


.backup-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .backup-page-hero {
        align-items: flex-start;
    }
}


.reports-page-shell {
    display: grid;
    gap: 1.5rem;
}

.reports-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.report-summary-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.report-summary-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
}

.report-summary-icon.accent {
    background: var(--app-accent-soft);
    color: var(--app-accent);
}

.report-summary-icon.warning {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.report-summary-icon.success {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.report-summary-icon.secondary {
    background: rgba(71, 85, 105, 0.12);
    color: #475569;
}

.report-summary-label {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: .4rem;
}

.report-summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.report-summary-foot {
    margin-top: .55rem;
    color: #64748b;
    font-size: .92rem;
}

.report-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.report-block-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 1rem;
}

.report-segment-row + .report-segment-row {
    margin-top: 1rem;
}

.report-progress-track {
    height: .65rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.report-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--app-accent);
}

.report-dot {
    width: .7rem;
    height: .7rem;
    display: inline-flex;
    border-radius: 999px;
    background: var(--app-accent);
}

.report-progress-bar.tone-primary,
.report-dot.tone-primary {
    background: var(--app-accent);
}

.report-progress-bar.tone-secondary,
.report-dot.tone-secondary {
    background: #64748b;
}

.report-progress-bar.tone-success,
.report-dot.tone-success {
    background: #059669;
}

.report-progress-bar.tone-warning,
.report-dot.tone-warning {
    background: #d97706;
}

.report-progress-bar.tone-danger,
.report-dot.tone-danger {
    background: #dc2626;
}

.report-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.report-inline-chip {
    padding: .65rem .9rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.10);
    color: #312e81;
    font-size: .92rem;
}

.report-inline-chip strong {
    font-weight: 700;
    margin-left: .35rem;
}

.report-inline-chip.warning {
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
}

.report-inline-chip.success {
    background: rgba(5, 150, 105, 0.12);
    color: #065f46;
}

.report-inline-chip.danger {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.report-inline-chip.secondary {
    background: rgba(71, 85, 105, 0.12);
    color: #334155;
}

.report-empty-state {
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 1rem;
    padding: 1.25rem;
    color: #64748b;
    background: rgba(248, 250, 252, 0.7);
}

.report-month-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: .75rem;
    align-items: end;
}

.report-month-item {
    display: grid;
    gap: .45rem;
    text-align: center;
}

.report-month-item.active .report-month-bar {
    background: linear-gradient(180deg, var(--app-accent), #312e81);
}

.report-month-bar-wrap {
    height: 9rem;
    display: flex;
    align-items: end;
    justify-content: center;
}

.report-month-bar {
    width: 100%;
    max-width: 2.7rem;
    border-radius: .95rem .95rem .35rem .35rem;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.9), rgba(79, 70, 229, 0.35));
    min-height: .75rem;
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.12);
}

.report-month-label {
    font-size: .78rem;
    color: #475569;
    text-transform: capitalize;
}

.report-month-count {
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
}

.report-month-meta {
    font-size: .72rem;
    color: #64748b;
}

.report-activity-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    gap: .35rem;
    align-items: end;
}

.report-activity-day {
    display: grid;
    justify-items: center;
    gap: .45rem;
}

.report-activity-bar {
    width: 100%;
    min-height: .5rem;
    border-radius: .75rem .75rem .25rem .25rem;
    background: linear-gradient(180deg, var(--app-accent), rgba(79, 70, 229, 0.35));
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.10);
}

.report-activity-day span {
    font-size: .68rem;
    color: #64748b;
}

.report-highlight-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.10);
}

.report-highlight-label {
    font-size: .8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .2rem;
}

.report-highlight-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.report-upcoming-card {
    padding: 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.report-upcoming-daycount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--app-accent);
}

body.theme-dark .reports-page-hero,
body.theme-dark .report-summary-card,
body.theme-dark .report-upcoming-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.94));
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: none;
}

body.theme-dark .report-summary-value,
body.theme-dark .report-highlight-value,
body.theme-dark .report-month-count,
body.theme-dark .report-upcoming-card h3,
body.theme-dark .report-block-title {
    color: #f8fafc;
}

body.theme-dark .report-summary-label,
body.theme-dark .report-summary-foot,
body.theme-dark .report-month-label,
body.theme-dark .report-month-meta,
body.theme-dark .report-activity-day span,
body.theme-dark .report-empty-state,
body.theme-dark .report-highlight-label {
    color: #94a3b8;
}

body.theme-dark .report-progress-track,
body.theme-dark .report-empty-state {
    background: rgba(148, 163, 184, 0.10);
}

body.theme-dark .report-inline-chip,
body.theme-dark .report-highlight-panel {
    border-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 991.98px) {
    .reports-page-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .report-split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .report-month-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .report-activity-chart {
        grid-template-columns: repeat(15, minmax(0, 1fr));
    }

    .report-activity-day:nth-child(n+16) {
        display: none;
    }
}


/* Dashboard intelligence */
.dashboard-smart-card {
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.dashboard-smart-eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--accent-color, #6366f1);
    margin-bottom: .55rem;
}

.dashboard-smart-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.dashboard-smart-metric {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 1rem;
    padding: .85rem 1rem;
    background: rgba(255, 255, 255, .7);
}

.dashboard-smart-metric span {
    display: block;
    font-size: .8rem;
    color: #64748b;
    margin-bottom: .2rem;
}

.dashboard-smart-metric strong {
    font-size: 1.15rem;
}

.smart-progress,
.smart-segment-progress {
    height: .7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, .15);
    overflow: hidden;
}

.dashboard-smart-footer {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-size: .88rem;
    color: #475569;
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    font-size: .82rem;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .72);
}

.dashboard-chip-primary {
    color: #1d4ed8;
}

.dashboard-chip-warning {
    color: #b45309;
}

.dashboard-chip-danger {
    color: #b91c1c;
}

.dashboard-mini-segments {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.dashboard-mini-segment {
    padding: .65rem .8rem;
    border-radius: .95rem;
    background: rgba(248, 250, 252, .9);
    border: 1px solid rgba(148, 163, 184, .14);
}

.dashboard-history-glance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .75rem .9rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(148, 163, 184, .15);
}

.note-highlight-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.note-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .4rem .8rem;
    background: rgba(255, 248, 235, .95);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, .18);
    font-size: .82rem;
}

[data-theme="dark"] .dashboard-smart-metric,
[data-theme="dark"] .dashboard-chip,
[data-theme="dark"] .dashboard-mini-segment,
[data-theme="dark"] .dashboard-history-glance {
    background: rgba(15, 23, 42, .72);
    border-color: rgba(148, 163, 184, .18);
}

[data-theme="dark"] .dashboard-smart-footer,
[data-theme="dark"] .dashboard-smart-metric span {
    color: #cbd5e1;
}

[data-theme="dark"] .note-highlight-pill {
    background: rgba(120, 53, 15, .25);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, .25);
}

@media (max-width: 991.98px) {
    .dashboard-smart-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .dashboard-smart-metrics {
        grid-template-columns: 1fr;
    }
}

/* Product maturity: widget sorter polish */
.widget-sorter-panel {
    border: 1px dashed rgba(100, 116, 139, 0.35);
    border-radius: 1.25rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.75);
}

.widget-sorter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.widget-sorter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--bs-body-bg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    cursor: grab;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.widget-sorter-item:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.widget-sorter-item.is-dragging {
    opacity: 0.7;
    transform: scale(0.98);
    cursor: grabbing;
}

.widget-sorter-item i {
    color: var(--accent);
}

/* v69 - state center + standardized widget grid */
.dashboard-widget-hub {
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.dashboard-widget-definition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.dashboard-widget-definition-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1rem 0.95rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.95);
}

.dashboard-widget-definition-card.tone-primary { border-color: rgba(79, 70, 229, 0.18); }
.dashboard-widget-definition-card.tone-success { border-color: rgba(16, 185, 129, 0.2); }
.dashboard-widget-definition-card.tone-warning { border-color: rgba(245, 158, 11, 0.22); }
.dashboard-widget-definition-card.tone-secondary { border-color: rgba(100, 116, 139, 0.18); }
.dashboard-widget-definition-card.tone-info { border-color: rgba(6, 182, 212, 0.18); }

.dashboard-widget-definition-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    flex-shrink: 0;
}

.dashboard-widget-definition-body {
    min-width: 0;
    flex: 1 1 auto;
}

.widget-switch-card {
    min-height: 100%;
}

.widget-sorter-item small {
    margin-left: auto;
    font-size: 0.74rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.settings-state-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.settings-state-hub-item {
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    background: rgba(248, 250, 252, 0.92);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.settings-state-hub-item strong {
    font-size: 0.92rem;
}

.settings-state-hub-item small {
    color: #64748b;
}

[data-bs-theme="dark"] .dashboard-widget-hub,
[data-bs-theme="dark"] .dashboard-widget-definition-card,
[data-bs-theme="dark"] .settings-state-hub-item {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme="dark"] .dashboard-widget-definition-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

[data-bs-theme="dark"] .widget-sorter-item small,
[data-bs-theme="dark"] .settings-state-hub-item small {
    color: #94a3b8;
}


/* v70 - dashboard widget partial grid */
.dashboard-smart-widget-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.dashboard-smart-grid-item {
    min-width: 0;
}

.dashboard-smart-grid-item.is-full,
.dashboard-smart-grid-item.is-half,
.dashboard-smart-grid-item.is-compact {
    grid-column: span 12;
}

.dashboard-smart-grid-item .card {
    min-height: 100%;
}

@media (min-width: 992px) {
    .dashboard-smart-grid-item.is-full {
        grid-column: span 12;
    }

    .dashboard-smart-grid-item.is-half,
    .dashboard-smart-grid-item.is-compact {
        grid-column: span 6;
    }
}

@media (min-width: 1400px) {
    .dashboard-smart-grid-item.is-full {
        grid-column: span 12;
    }

    .dashboard-smart-grid-item.is-half,
    .dashboard-smart-grid-item.is-compact {
        grid-column: span 6;
    }
}

body.theme-dark .dashboard-widget-hub,
[data-bs-theme="dark"] .dashboard-widget-hub,
body.theme-dark .dashboard-widget-definition-card,
[data-bs-theme="dark"] .dashboard-widget-definition-card {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
}

.dashboard-utility-panel {
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.dashboard-utility-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-utility-panel-subsection {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.78);
}

.dashboard-utility-panels-row .dashboard-utility-panel {
    min-height: 100%;
}

:root[data-theme='dark'] .dashboard-utility-panel {
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.32);
}

:root[data-theme='dark'] .dashboard-utility-panel-subsection {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.55);
}


/* v74 - dashboard shell components */
.dashboard-shell-header-inline {
    padding: 0;
}

.dashboard-shell-card {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.dashboard-shell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-shell-actions {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.dashboard-shell-body {
    position: relative;
}

.dashboard-shell-subpanel {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(248, 250, 252, 0.85) !important;
}

.dashboard-shell-card .section-head-title {
    margin-bottom: .25rem;
}

.dashboard-shell-card .dashboard-shell-header .section-head-subtitle {
    max-width: 48rem;
}

[data-bs-theme="dark"] .dashboard-shell-card,
body.theme-dark .dashboard-shell-card {
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 42px rgba(2, 6, 23, 0.34);
}

[data-bs-theme="dark"] .dashboard-shell-subpanel,
body.theme-dark .dashboard-shell-subpanel {
    border-color: rgba(148, 163, 184, 0.16) !important;
    background: rgba(15, 23, 42, 0.62) !important;
}

@media (max-width: 767.98px) {
    .dashboard-shell-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


.settings-tab-nav .nav-link {
    border-radius: 999px;
    padding: .75rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

.settings-tab-nav .nav-link i {
    font-size: .95rem;
}

.settings-tab-nav .nav-link.active {
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}


/* v82 - dashboard section grid */
.dashboard-section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
    grid-auto-flow: row dense;
}

.dashboard-section-grid-item {
    min-width: 0;
}

.dashboard-section-grid-item.is-full {
    grid-column: span 12;
}

.dashboard-section-grid-item.is-half {
    grid-column: span 6;
}

.dashboard-section-grid-item > .row,
.dashboard-section-grid-item > .card,
.dashboard-section-grid-item > .dashboard-smart-widget-grid,
.dashboard-section-grid-item > .dashboard-utility-panels-row {
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .dashboard-section-grid-item.is-half,
    .dashboard-section-grid-item.is-full {
        grid-column: span 12;
    }
}


/* v83 - dashboard rhythm, spacing, and responsive polish */
:root {
    --dashboard-panel-padding: 1.25rem;
    --dashboard-panel-padding-compact: 1rem;
    --dashboard-section-gap: 1.25rem;
    --dashboard-shell-radius: 1.35rem;
    --dashboard-soft-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.dashboard-widget-hub,
.dashboard-shell-card,
.dashboard-smart-card,
.dashboard-utility-panel,
.dashboard-widget-definition-card,
.upcoming-day-block,
.upcoming-task-card,
.planner-day-card,
.focus-task,
.dashboard-smart-metric,
.dashboard-mini-segment,
.dashboard-history-glance {
    border-radius: var(--dashboard-shell-radius);
}

.dashboard-widget-hub,
.dashboard-shell-card,
.dashboard-smart-card,
.dashboard-utility-panel,
.stat-card {
    box-shadow: var(--dashboard-soft-shadow);
}

.dashboard-shell-card .card-body,
.dashboard-smart-card .card-body,
.dashboard-utility-panel .card-body {
    padding: var(--dashboard-panel-padding) !important;
}

.dashboard-widget-hub {
    padding: var(--dashboard-panel-padding);
}

.dashboard-section-card .section-card-header {
    padding: var(--dashboard-panel-padding) var(--dashboard-panel-padding) calc(var(--dashboard-panel-padding) - .35rem) !important;
}

.dashboard-shell-card .dashboard-shell-header .section-head-subtitle {
    max-width: 44rem;
}

.dashboard-section-grid {
    gap: var(--dashboard-section-gap);
    align-items: start;
}

.dashboard-section-grid-item {
    display: flex;
    align-self: stretch;
}

.dashboard-section-grid-item > * {
    width: 100%;
}

.dashboard-section-grid-item > .dashboard-smart-widget-grid,
.dashboard-section-grid-item > .dashboard-utility-panels-row,
.dashboard-section-grid-item .dashboard-shell-card,
.dashboard-section-grid-item .dashboard-widget-hub {
    height: 100%;
}

.dashboard-utility-panels-row {
    --bs-gutter-x: var(--dashboard-section-gap);
    --bs-gutter-y: var(--dashboard-section-gap);
}

.dashboard-utility-panels-row > [class*='col-'] {
    display: flex;
}

.dashboard-utility-panels-row > [class*='col-'] > * {
    width: 100%;
}

.dashboard-widget-definition-grid {
    align-items: stretch;
}

.dashboard-widget-definition-card,
.dashboard-smart-metric,
.dashboard-mini-segment,
.dashboard-history-glance,
.note-highlight-pill,
.dashboard-chip {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-widget-definition-card:hover,
.dashboard-smart-metric:hover,
.dashboard-mini-segment:hover,
.dashboard-history-glance:hover,
.focus-task:hover,
.upcoming-task-card:hover {
    transform: translateY(-2px);
}

.dashboard-section-grid-item[data-section-key='recent-notes'] .card-body > .mb-3.pb-3.border-bottom:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.dashboard-section-grid-item[data-section-key='upcoming-timeline'] .planner-task-panel {
    margin-top: .25rem;
}

@media (min-width: 768px) {
    .dashboard-section-grid-item.is-half {
        grid-column: span 6;
    }

    .dashboard-smart-grid-item.is-full {
        grid-column: span 12;
    }

    .dashboard-smart-grid-item.is-half,
    .dashboard-smart-grid-item.is-compact {
        grid-column: span 6;
    }
}

@media (max-width: 1199.98px) {
    .dashboard-section-grid-item.is-half[data-section-key='upcoming-timeline'] .planner-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-grid-item.is-half[data-section-key='upcoming-timeline'] .planner-day-card {
        min-height: 0;
    }
}

@media (max-width: 991.98px) {
    :root {
        --dashboard-panel-padding: 1.1rem;
        --dashboard-section-gap: 1rem;
        --dashboard-shell-radius: 1.2rem;
    }

    .dashboard-section-grid-item.is-half,
    .dashboard-section-grid-item.is-full {
        grid-column: span 12;
    }

    .dashboard-widget-hub .d-flex.justify-content-between.align-items-start.gap-3.flex-wrap.mb-3 {
        align-items: stretch !important;
    }

    .dashboard-widget-definition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-shell-header,
    .dashboard-utility-panel-header,
    .planner-task-panel-head {
        gap: .85rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --dashboard-panel-padding: 1rem;
        --dashboard-section-gap: .9rem;
        --dashboard-shell-radius: 1.05rem;
    }

    .dashboard-widget-definition-grid,
    .dashboard-smart-metrics,
    .planner-day-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-section-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-grid-item,
    .dashboard-section-grid-item.is-half,
    .dashboard-section-grid-item.is-full {
        grid-column: auto;
    }

    .dashboard-utility-panel-header,
    .dashboard-shell-header,
    .planner-task-panel-head,
    .dashboard-widget-hub .d-flex.justify-content-between.align-items-start.gap-3.flex-wrap.mb-3 {
        flex-direction: column;
        align-items: stretch !important;
    }

    .dashboard-shell-actions {
        width: 100%;
    }

    .dashboard-shell-actions .btn,
    .dashboard-utility-panel-header .btn,
    .planner-task-panel-head .badge,
    .dashboard-widget-hub .badge {
        align-self: flex-start;
    }

    .focus-task,
    .upcoming-task-card,
    .dashboard-history-glance {
        padding: .9rem;
    }

    .planner-day-card {
        min-height: 0;
        padding: .95rem;
    }

    .section-head {
        align-items: flex-start;
    }
}

@media (min-width: 1200px) {
    :root {
        --dashboard-panel-padding: 1.35rem;
        --dashboard-section-gap: 1.35rem;
        --dashboard-shell-radius: 1.45rem;
    }
}

@media (min-width: 1400px) {
    .dashboard-section-grid-item.is-half[data-section-key='upcoming-timeline'] .planner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* v84 - dashboard micro polish */
.dashboard-hero-header {
    align-items: flex-start;
    gap: 1.15rem;
}

.dashboard-hero-actions {
    align-items: center;
}

.dashboard-hero-btn,
.dashboard-shell-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.55rem;
    font-weight: 600;
}

.dashboard-hero-btn i,
.dashboard-shell-action-btn i {
    font-size: .95rem;
}

.dashboard-hero-sync-badge,
.dashboard-shell-pill {
    min-height: 2.4rem;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.dashboard-section-header {
    gap: 1rem 1.25rem;
}

.section-head-main {
    display: flex;
    align-items: flex-start;
    gap: .95rem;
    min-width: 0;
    flex: 1 1 28rem;
}

.section-head-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-shell-header .section-head-title {
    font-size: 1.08rem;
    line-height: 1.3;
}

.dashboard-shell-header .section-head-subtitle {
    margin-top: .3rem;
    font-size: .83rem;
}

.dashboard-shell-actions {
    justify-content: flex-end;
    align-self: center;
}

.dashboard-shell-actions > * {
    flex: 0 0 auto;
}

.dashboard-shell-header-inline .section-head {
    margin-bottom: 0;
}

.dashboard-utility-panel-header .h6,
.dashboard-utility-panel-header .h5 {
    line-height: 1.3;
}

.dashboard-smart-card .h5,
.dashboard-shell-card .h5,
.dashboard-shell-card .section-head-title {
    text-wrap: balance;
}

.dashboard-stats-grid .stat-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.dashboard-stat-label {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.dashboard-stat-value {
    line-height: 1;
    margin-bottom: .7rem;
}

.dashboard-stat-meta {
    line-height: 1.45;
}

.dashboard-smart-card .card-body {
    gap: .15rem;
}

.dashboard-smart-footer div,
.dashboard-history-glance,
.dashboard-mini-segment {
    line-height: 1.45;
}

.dashboard-utility-panel-subsection .dashboard-utility-panel-header {
    align-items: center;
}

.widget-sorter-item {
    min-height: 3.4rem;
}

.widget-sorter-item span {
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .dashboard-hero-actions {
        width: 100%;
    }

    .dashboard-shell-header {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .dashboard-hero-header {
        margin-bottom: 1.1rem;
    }

    .dashboard-hero-actions .dashboard-hero-btn,
    .dashboard-hero-actions .dashboard-hero-sync-badge {
        width: 100%;
        justify-content: center;
    }

    .section-head-main {
        gap: .8rem;
    }

    .section-head-icon,
    .section-inline-icon {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: .85rem;
    }

    .section-head-icon i,
    .section-inline-icon i {
        font-size: 1rem;
    }

    .dashboard-shell-header .section-head-title {
        font-size: 1rem;
    }

    .dashboard-shell-actions {
        justify-content: stretch;
    }

    .dashboard-shell-actions .dashboard-shell-action-btn,
    .dashboard-shell-actions .dashboard-shell-pill {
        width: 100%;
        justify-content: center;
    }

    .dashboard-utility-panel-subsection .dashboard-utility-panel-header {
        align-items: stretch;
    }
}

@media (min-width: 1400px) {
    .dashboard-shell-header .section-head-title {
        font-size: 1.12rem;
    }
}

/* v85 - dashboard inner card polish */
.dashboard-empty-state {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 1.15rem;
}

.dashboard-empty-state-soft {
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.96) 100%);
}

.dashboard-empty-state-icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.dashboard-empty-state-title {
    font-size: .98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .2rem;
}

.dashboard-focus-list,
.dashboard-note-list,
.dashboard-plan-stack,
.upcoming-section-stack {
    display: grid;
    gap: 1rem;
}

.focus-task {
    padding: 1.1rem 1.1rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.focus-task-main {
    display: grid;
    gap: .85rem;
}

.focus-task-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.focus-task-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.focus-task-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.focus-task-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color: #0f172a;
}

.focus-task-meta-row {
    margin-top: .8rem;
}

.focus-task-actions {
    display: inline-flex;
    gap: .5rem;
    flex-shrink: 0;
}

.focus-task-foot {
    border-top: 1px dashed rgba(15, 23, 42, 0.10);
    padding-top: .8rem;
}

.focus-task-date-line {
    margin-top: 0;
}

.dashboard-plan-subtitle {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: .85rem;
}

.dashboard-plan-priority-list,
.dashboard-plan-panels {
    display: grid;
    gap: .85rem;
}

.dashboard-plan-priority-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
}

.dashboard-plan-priority-index {
    width: 2rem;
    height: 2rem;
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #047857;
    font-size: .82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dashboard-plan-priority-text {
    color: #0f172a;
    font-weight: 600;
    line-height: 1.5;
}

.dashboard-plan-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    padding: 1rem 1rem 1.05rem;
}

.dashboard-plan-panel-head {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .7rem;
}

.dashboard-plan-panel-head i {
    color: #059669;
}

.dashboard-plan-panel-body,
.dashboard-plan-empty {
    color: #475569;
    line-height: 1.6;
}

.dashboard-note-list {
    gap: .9rem;
}

.dashboard-note-card {
    display: grid;
    gap: .8rem;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-note-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .9rem;
}

.dashboard-note-card-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-note-card-title {
    margin: 0;
    font-size: .98rem;
    line-height: 1.4;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-note-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .65rem;
}

.dashboard-note-card-body {
    color: #475569;
    line-height: 1.6;
}

.dashboard-note-pin-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .75rem;
    background: #fff5cc;
    color: #9a6700;
    font-size: .78rem;
    font-weight: 700;
}

.dashboard-note-card-action,
.dashboard-upcoming-action {
    flex-shrink: 0;
}

.day-planner-card .planner-grid {
    gap: 1.05rem;
}

.planner-day-card {
    min-height: 192px;
    padding: 1.05rem;
    gap: 1rem;
}

.planner-day-metrics {
    gap: .7rem;
}

.planner-metric-item {
    padding: .82rem .65rem;
}

.planner-day-note {
    line-height: 1.55;
}

.planner-task-panel {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1.15rem;
}

.upcoming-day-block {
    padding: 1rem 1.05rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.upcoming-task-list {
    gap: .8rem;
}

.upcoming-task-card {
    padding: 1rem 1rem .95rem;
    align-items: stretch;
}

.upcoming-task-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.upcoming-task-title {
    font-size: .96rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.upcoming-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .7rem;
}

.upcoming-task-date-line {
    margin-top: .8rem;
}

@media (min-width: 992px) {
    .dashboard-plan-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .focus-task-top,
    .dashboard-note-card-top,
    .upcoming-task-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .focus-task-actions,
    .dashboard-note-card-action,
    .dashboard-upcoming-action {
        align-self: flex-start;
    }
}

@media (max-width: 767.98px) {
    .dashboard-empty-state {
        padding: .95rem;
        gap: .85rem;
    }

    .focus-task,
    .dashboard-note-card,
    .dashboard-plan-panel,
    .upcoming-day-block,
    .upcoming-task-card {
        padding: .95rem;
    }

    .focus-task-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-note-card-action,
    .dashboard-upcoming-action {
        width: 100%;
        justify-content: center;
    }

    .planner-task-panel {
        padding-top: 1rem;
    }
}

[data-bs-theme="dark"] .dashboard-empty-state-soft,
body.theme-dark .dashboard-empty-state-soft {
    background: linear-gradient(180deg, rgba(28, 35, 51, .96) 0%, rgba(23, 29, 43, .96) 100%);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-bs-theme="dark"] .dashboard-empty-state-title,
body.theme-dark .dashboard-empty-state-title,
[data-bs-theme="dark"] .focus-task-title,
body.theme-dark .focus-task-title,
[data-bs-theme="dark"] .dashboard-note-card-title,
body.theme-dark .dashboard-note-card-title,
[data-bs-theme="dark"] .upcoming-task-title,
body.theme-dark .upcoming-task-title,
[data-bs-theme="dark"] .dashboard-plan-panel-head,
body.theme-dark .dashboard-plan-panel-head {
    color: #f8fafc;
}

[data-bs-theme="dark"] .dashboard-empty-state-icon,
body.theme-dark .dashboard-empty-state-icon {
    background: rgba(96, 165, 250, 0.14);
    color: #93c5fd;
}

[data-bs-theme="dark"] .focus-task,
body.theme-dark .focus-task,
[data-bs-theme="dark"] .dashboard-note-card,
body.theme-dark .dashboard-note-card,
[data-bs-theme="dark"] .dashboard-plan-priority-item,
body.theme-dark .dashboard-plan-priority-item,
[data-bs-theme="dark"] .dashboard-plan-panel,
body.theme-dark .dashboard-plan-panel,
[data-bs-theme="dark"] .upcoming-day-block,
body.theme-dark .upcoming-day-block,
[data-bs-theme="dark"] .upcoming-task-card,
body.theme-dark .upcoming-task-card {
    background: linear-gradient(180deg, rgba(28, 35, 51, .98) 0%, rgba(20, 26, 39, .98) 100%);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.35);
}

[data-bs-theme="dark"] .dashboard-plan-priority-text,
body.theme-dark .dashboard-plan-priority-text,
[data-bs-theme="dark"] .dashboard-plan-panel-body,
body.theme-dark .dashboard-plan-panel-body,
[data-bs-theme="dark"] .dashboard-note-card-body,
body.theme-dark .dashboard-note-card-body,
[data-bs-theme="dark"] .planner-day-note,
body.theme-dark .planner-day-note {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .focus-task-foot,
body.theme-dark .focus-task-foot,
[data-bs-theme="dark"] .planner-task-panel,
body.theme-dark .planner-task-panel {
    border-color: rgba(148, 163, 184, 0.12);
}

/* v86 - dashboard edit mode and live drag polish */
.dashboard-page-root {
    position: relative;
}

.dashboard-page-root[data-dashboard-edit-mode='true'] .dashboard-section-grid {
    gap: 1.15rem;
}

.dashboard-toggle-card {
    position: relative;
    justify-content: space-between;
    gap: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dashboard-toggle-card:hover {
    border-color: rgba(79, 70, 229, .28);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
}

.dashboard-toggle-card .form-check-input {
    margin-top: .25rem;
}

.dashboard-toggle-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 2rem;
    padding: .28rem .72rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .05);
    color: #334155;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.dashboard-edit-tip {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .9rem 1rem;
    border-radius: 1rem;
    background: rgba(79, 70, 229, .06);
    border: 1px dashed rgba(79, 70, 229, .24);
    color: #4338ca;
    font-size: .9rem;
}

.dashboard-section-live-shell {
    width: 100%;
    position: relative;
    min-width: 0;
}

.dashboard-section-edit-chrome {
    position: absolute;
    top: .7rem;
    left: .7rem;
    right: .7rem;
    z-index: 4;
    display: none;
    align-items: center;
    gap: .8rem;
    min-height: 3rem;
    padding: .7rem .85rem;
    border-radius: 1rem;
    border: 1px dashed rgba(79, 70, 229, .32);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.dashboard-page-root.is-dashboard-editing .dashboard-section-edit-chrome {
    display: flex;
}

.dashboard-page-root.is-dashboard-editing .dashboard-section-grid-item > * {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}

.dashboard-page-root.is-dashboard-editing .dashboard-section-grid-item > *:not(.dashboard-section-placeholder) {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .12), var(--dashboard-soft-shadow);
}

.dashboard-page-root.is-dashboard-editing .dashboard-shell-card .card-body,
.dashboard-page-root.is-dashboard-editing .dashboard-widget-hub {
    padding-top: calc(var(--dashboard-panel-padding) + 2.65rem) !important;
}

.dashboard-section-drag-handle {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, .1);
    color: #4f46e5;
    cursor: grab;
    flex-shrink: 0;
}

.dashboard-section-drag-handle i {
    font-size: 1rem;
}

.dashboard-section-edit-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-section-edit-copy strong {
    font-size: .92rem;
    color: #0f172a;
}

.dashboard-section-edit-copy small {
    color: #64748b;
}

.dashboard-section-order-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: .25rem .72rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    color: #334155;
    font-size: .76rem;
    font-weight: 800;
}

.dashboard-live-sortable-item.is-draggable {
    cursor: grab;
}

.dashboard-live-sortable-item.is-dragging {
    opacity: .42;
    transform: scale(.985);
}

.dashboard-section-placeholder,
.widget-sorter-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    border-radius: 1rem;
    border: 2px dashed rgba(79, 70, 229, .4);
    background: rgba(79, 70, 229, .06);
    color: #4f46e5;
    font-size: .9rem;
    font-weight: 700;
}

.dashboard-section-placeholder {
    grid-column: span 12;
}

.widget-sorter-placeholder {
    list-style: none;
    min-height: 3.4rem;
    padding: .85rem 1rem;
}

.dashboard-page-root.is-dashboard-editing .dashboard-widget-hub {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .08), var(--dashboard-soft-shadow);
}

body.theme-dark .dashboard-toggle-status,
[data-bs-theme='dark'] .dashboard-toggle-status {
    background: rgba(148, 163, 184, .12);
    color: #cbd5e1;
}

body.theme-dark .dashboard-edit-tip,
[data-bs-theme='dark'] .dashboard-edit-tip {
    background: rgba(79, 70, 229, .14);
    border-color: rgba(129, 140, 248, .3);
    color: #c7d2fe;
}

body.theme-dark .dashboard-section-edit-chrome,
[data-bs-theme='dark'] .dashboard-section-edit-chrome {
    background: rgba(15, 23, 42, .88);
    border-color: rgba(129, 140, 248, .34);
    box-shadow: 0 16px 34px rgba(2, 6, 23, .44);
}

body.theme-dark .dashboard-section-edit-copy strong,
[data-bs-theme='dark'] .dashboard-section-edit-copy strong {
    color: #e2e8f0;
}

body.theme-dark .dashboard-section-edit-copy small,
[data-bs-theme='dark'] .dashboard-section-edit-copy small {
    color: #94a3b8;
}

body.theme-dark .dashboard-section-order-chip,
[data-bs-theme='dark'] .dashboard-section-order-chip {
    background: rgba(148, 163, 184, .12);
    color: #e2e8f0;
}

@media (max-width: 991.98px) {
    .dashboard-section-edit-chrome {
        position: static;
        margin-bottom: .85rem;
    }

    .dashboard-page-root.is-dashboard-editing .dashboard-shell-card .card-body,
    .dashboard-page-root.is-dashboard-editing .dashboard-widget-hub {
        padding-top: var(--dashboard-panel-padding) !important;
    }
}

@media (max-width: 767.98px) {
    .dashboard-toggle-card {
        flex-wrap: wrap;
    }

    .dashboard-toggle-status {
        width: 100%;
        justify-content: center;
    }

    .dashboard-section-edit-chrome {
        flex-wrap: wrap;
        gap: .7rem;
    }

    .dashboard-section-order-chip {
        margin-left: 0;
    }
}


/* v87 - premium dashboard edit mode polish */
.dashboard-page-root.is-dashboard-editing .dashboard-shell-header,
.dashboard-page-root.is-dashboard-editing .dashboard-section-header {
    position: relative;
    z-index: 1;
}

.dashboard-page-root.is-dashboard-editing .dashboard-shell-header {
    opacity: .94;
}

.dashboard-page-root.is-dashboard-editing .dashboard-section-header .section-head-icon {
    transform: scale(.94);
    box-shadow: none;
}

.dashboard-page-root.is-dashboard-editing .dashboard-shell-actions {
    opacity: .9;
}

.dashboard-section-edit-chrome {
    overflow: hidden;
}

.dashboard-section-edit-chrome::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, .12) 0%, rgba(129, 140, 248, .06) 42%, rgba(255,255,255,.0) 100%);
    pointer-events: none;
}

.dashboard-section-edit-chrome > * {
    position: relative;
    z-index: 1;
}

.dashboard-section-drag-handle {
    border: 1px solid rgba(79, 70, 229, .18);
    background: linear-gradient(180deg, rgba(79, 70, 229, .15) 0%, rgba(79, 70, 229, .09) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px rgba(79, 70, 229, .14);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.dashboard-section-drag-handle:hover,
.dashboard-section-drag-handle:focus-visible {
    border-color: rgba(79, 70, 229, .34);
    background: linear-gradient(180deg, rgba(79, 70, 229, .22) 0%, rgba(79, 70, 229, .12) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 28px rgba(79, 70, 229, .2);
    transform: translateY(-1px) scale(1.03);
    outline: none;
}

.dashboard-section-drag-handle:active {
    cursor: grabbing;
    transform: scale(.98);
}

.dashboard-section-drag-handle i {
    letter-spacing: -.14rem;
}

.dashboard-live-sortable-item.is-draggable.is-drag-armed .dashboard-section-edit-chrome {
    border-color: rgba(79, 70, 229, .48);
    box-shadow: 0 18px 36px rgba(79, 70, 229, .18);
}

.dashboard-live-sortable-item.is-draggable.is-drag-armed .dashboard-section-drag-handle {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 16px 32px rgba(79, 70, 229, .24);
    transform: translateY(-1px) scale(1.04);
}

.dashboard-live-sortable-item.is-draggable.is-drag-armed .dashboard-section-order-chip {
    background: rgba(79, 70, 229, .12);
    color: #312e81;
}

.dashboard-live-sortable-item.is-draggable:not(.is-dragging) {
    transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}

.dashboard-page-root.is-dashboard-editing .dashboard-live-sortable-item.is-draggable:hover {
    transform: translateY(-2px);
}

.dashboard-live-sortable-item.is-dragging {
    opacity: .96;
    transform: scale(1.018) rotate(.15deg);
    filter: saturate(1.02);
    z-index: 30;
}

.dashboard-live-sortable-item.is-dragging .dashboard-section-live-shell {
    box-shadow: 0 28px 55px rgba(15, 23, 42, .18);
}

.dashboard-page-root.is-dashboard-editing .dashboard-section-grid-item:not(.is-dragging) {
    transition: opacity .18s ease, filter .18s ease;
}

.dashboard-page-root.is-dashboard-editing .dashboard-section-grid:has(.is-dragging) .dashboard-section-grid-item:not(.is-dragging) {
    opacity: .9;
    filter: saturate(.92);
}

.dashboard-section-placeholder,
.widget-sorter-placeholder {
    position: relative;
    background: linear-gradient(135deg, rgba(79, 70, 229, .08) 0%, rgba(129, 140, 248, .08) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 16px 32px rgba(79, 70, 229, .08);
}

.dashboard-section-placeholder::after,
.widget-sorter-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(135deg, rgba(79, 70, 229, .08) 0, rgba(79, 70, 229, .08) 10px, rgba(255,255,255,0) 10px, rgba(255,255,255,0) 20px);
    opacity: .7;
    pointer-events: none;
}

.dashboard-is-dragging,
.dashboard-is-dragging * {
    cursor: grabbing !important;
}

body.theme-dark .dashboard-section-edit-chrome::before,
[data-bs-theme='dark'] .dashboard-section-edit-chrome::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, .2) 0%, rgba(79, 70, 229, .08) 48%, rgba(15, 23, 42, 0) 100%);
}

body.theme-dark .dashboard-section-drag-handle,
[data-bs-theme='dark'] .dashboard-section-drag-handle {
    border-color: rgba(129, 140, 248, .3);
    background: linear-gradient(180deg, rgba(99, 102, 241, .22) 0%, rgba(79, 70, 229, .14) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 26px rgba(2, 6, 23, .34);
    color: #c7d2fe;
}

body.theme-dark .dashboard-live-sortable-item.is-draggable.is-drag-armed .dashboard-section-order-chip,
[data-bs-theme='dark'] .dashboard-live-sortable-item.is-draggable.is-drag-armed .dashboard-section-order-chip {
    background: rgba(99, 102, 241, .2);
    color: #e0e7ff;
}

body.theme-dark .dashboard-live-sortable-item.is-dragging .dashboard-section-live-shell,
[data-bs-theme='dark'] .dashboard-live-sortable-item.is-dragging .dashboard-section-live-shell {
    box-shadow: 0 28px 58px rgba(2, 6, 23, .46);
}

@media (max-width: 991.98px) {
    .dashboard-page-root.is-dashboard-editing .dashboard-shell-header {
        opacity: 1;
    }

    .dashboard-live-sortable-item.is-dragging {
        transform: scale(1.01);
    }
}


/* Dashboard edit mode premium+ */
.dashboard-page-root {
    position: relative;
}

.dashboard-page-root > * {
    position: relative;
    z-index: 1;
}

.dashboard-page-root.is-dashboard-editing::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(99, 102, 241, 0.08), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.24), rgba(241, 245, 249, 0.34));
    backdrop-filter: blur(2px) saturate(.96);
}

.dashboard-page-root.is-dashboard-editing .dashboard-widget-hub,
.dashboard-page-root.is-dashboard-editing .dashboard-section-grid,
.dashboard-page-root.is-dashboard-editing .dashboardCustomizePanel,
.dashboard-page-root.is-dashboard-editing .dashboard-hero-shell {
    z-index: 2;
}

.dashboard-live-widget-item {
    position: relative;
}

.dashboard-widget-live-shell {
    position: relative;
    height: 100%;
}

.dashboard-widget-edit-chrome {
    display: none;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
    padding: .78rem .9rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,250,252,.96));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.dashboard-page-root.is-dashboard-editing .dashboard-widget-edit-chrome {
    display: flex;
}

.dashboard-widget-drag-handle {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .95rem;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,242,255,.95));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.14);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: grab;
    flex: 0 0 auto;
}

.dashboard-widget-drag-handle:hover,
.dashboard-widget-drag-handle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.dashboard-widget-drag-handle:active {
    cursor: grabbing;
    transform: scale(.98);
}

.dashboard-widget-drag-handle i {
    font-size: 1rem;
}

.dashboard-widget-edit-copy {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.dashboard-widget-edit-copy strong {
    color: #0f172a;
    font-size: .92rem;
}

.dashboard-widget-edit-copy small {
    color: #64748b;
}

.dashboard-widget-order-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2rem;
    padding: 0 .75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255,255,255,.88);
    font-weight: 700;
    color: #334155;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.dashboard-page-root.is-dashboard-editing .dashboard-live-widget-item.is-draggable {
    cursor: default;
}

.dashboard-page-root.is-dashboard-editing .dashboard-live-widget-item.is-draggable:hover {
    transform: translateY(-2px);
}

.dashboard-page-root.is-dashboard-editing .dashboard-live-widget-item.is-dragging {
    opacity: .92;
    z-index: 6;
    transform: scale(1.018) rotate(.25deg);
    filter: saturate(1.02);
}

.dashboard-page-root.is-dashboard-editing .dashboard-smart-widget-grid:has(.is-dragging) .dashboard-live-widget-item:not(.is-dragging) {
    opacity: .82;
    transform: scale(.992);
}

.dashboard-widget-placeholder {
    min-height: 210px;
    border-radius: 1.45rem;
    border: 2px dashed rgba(99, 102, 241, 0.32);
    background: linear-gradient(135deg, rgba(238,242,255,.72), rgba(248,250,252,.92));
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.dashboard-widget-placeholder::after {
    content: "Widget buraya bırak";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #4f46e5;
    font-weight: 700;
    letter-spacing: .01em;
}

.dashboard-page-root.is-dashboard-editing .dashboard-widget-hub {
    border-color: rgba(99, 102, 241, 0.14);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

body.theme-dark .dashboard-page-root.is-dashboard-editing::before,
[data-bs-theme='dark'] .dashboard-page-root.is-dashboard-editing::before {
    background:
        radial-gradient(circle at 15% 10%, rgba(129, 140, 248, 0.16), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(15, 23, 42, 0.5));
}

body.theme-dark .dashboard-widget-edit-chrome,
[data-bs-theme='dark'] .dashboard-widget-edit-chrome {
    background: linear-gradient(135deg, rgba(15,23,42,.94), rgba(30,41,59,.92));
    border-color: rgba(129, 140, 248, 0.22);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.42);
}

body.theme-dark .dashboard-widget-drag-handle,
[data-bs-theme='dark'] .dashboard-widget-drag-handle {
    background: linear-gradient(180deg, rgba(30,41,59,.96), rgba(49,46,129,.72));
    border-color: rgba(129, 140, 248, 0.28);
    color: #c7d2fe;
}

body.theme-dark .dashboard-widget-edit-copy strong,
[data-bs-theme='dark'] .dashboard-widget-edit-copy strong {
    color: #f8fafc;
}

body.theme-dark .dashboard-widget-edit-copy small,
[data-bs-theme='dark'] .dashboard-widget-edit-copy small {
    color: #cbd5e1;
}

body.theme-dark .dashboard-widget-order-chip,
[data-bs-theme='dark'] .dashboard-widget-order-chip {
    background: rgba(15,23,42,.82);
    color: #e2e8f0;
    border-color: rgba(148,163,184,.18);
}

@media (max-width: 991.98px) {
    .dashboard-widget-edit-chrome {
        flex-wrap: wrap;
    }

    .dashboard-widget-order-chip {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .dashboard-page-root.is-dashboard-editing::before {
        backdrop-filter: blur(1.5px) saturate(.95);
    }

    .dashboard-widget-drag-handle {
        width: 2.45rem;
        height: 2.45rem;
    }
}


/* v89 - premium toggle cards + widget header polish */
.dashboard-toggle-card {
    overflow: hidden;
    align-items: center;
    padding: 1rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.98) 100%);
}

.dashboard-toggle-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .26rem;
    border-radius: 1rem;
    background: rgba(79, 70, 229, .18);
}

.dashboard-toggle-card .form-check-input {
    margin-top: 0;
    align-self: center;
}

.dashboard-toggle-card .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.dashboard-toggle-copy {
    min-width: 0;
    display: grid;
    gap: .16rem;
    flex: 1 1 auto;
}

.dashboard-toggle-visual {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 12px 26px rgba(15, 23, 42, .07);
}

.dashboard-toggle-visual i { font-size: 1.08rem; }
.dashboard-toggle-visual-primary { background: linear-gradient(180deg, rgba(79,70,229,.16), rgba(79,70,229,.09)); color: #4338ca; }
.dashboard-toggle-visual-success { background: linear-gradient(180deg, rgba(16,185,129,.16), rgba(16,185,129,.09)); color: #047857; }
.dashboard-toggle-visual-warning { background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.10)); color: #b45309; }
.dashboard-toggle-visual-secondary { background: linear-gradient(180deg, rgba(100,116,139,.18), rgba(100,116,139,.10)); color: #475569; }
.dashboard-toggle-visual-info { background: linear-gradient(180deg, rgba(14,165,233,.16), rgba(14,165,233,.08)); color: #0369a1; }

.dashboard-toggle-card-primary::before { background: linear-gradient(180deg, rgba(79,70,229,.65), rgba(99,102,241,.28)); }
.dashboard-toggle-card-success::before { background: linear-gradient(180deg, rgba(16,185,129,.7), rgba(52,211,153,.28)); }
.dashboard-toggle-card-warning::before { background: linear-gradient(180deg, rgba(245,158,11,.72), rgba(251,191,36,.32)); }
.dashboard-toggle-card-secondary::before { background: linear-gradient(180deg, rgba(100,116,139,.72), rgba(148,163,184,.32)); }
.dashboard-toggle-card-info::before { background: linear-gradient(180deg, rgba(14,165,233,.72), rgba(56,189,248,.32)); }

.dashboard-toggle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.dashboard-toggle-card .form-check-input:checked ~ .dashboard-toggle-status {
    background: rgba(79, 70, 229, .12);
    color: #312e81;
    border-color: rgba(79, 70, 229, .14);
}

.dashboard-toggle-status {
    border: 1px solid transparent;
    min-width: 5rem;
}

.widget-switch-card {
    align-items: center;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.98) 100%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.widget-switch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.widget-switch-visual {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 26px rgba(15, 23, 42, .07);
}
.widget-switch-visual i { font-size: 1.06rem; }
.widget-switch-visual-primary { background: linear-gradient(180deg, rgba(79,70,229,.16), rgba(79,70,229,.09)); color: #4338ca; }
.widget-switch-visual-warning { background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.10)); color: #b45309; }
.widget-switch-visual-success { background: linear-gradient(180deg, rgba(16,185,129,.16), rgba(16,185,129,.09)); color: #047857; }

.widget-switch-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: .22rem;
}

.widget-switch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .15rem;
}

.widget-switch-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: .18rem .58rem;
    border-radius: 999px;
    background: rgba(15,23,42,.05);
    border: 1px solid rgba(148,163,184,.18);
    color: #475569;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.widget-switch-card .form-check-input:checked ~ .widget-switch-visual {
    transform: translateY(-1px) scale(1.02);
}

.dashboard-widget-edit-chrome {
    gap: .9rem;
    align-items: center;
}

.dashboard-widget-edit-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 22px rgba(15, 23, 42, .08);
}
.dashboard-widget-edit-icon i { font-size: 1rem; }
.dashboard-widget-edit-icon-primary { background: linear-gradient(180deg, rgba(79,70,229,.16), rgba(79,70,229,.09)); color: #4338ca; }
.dashboard-widget-edit-icon-warning { background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.10)); color: #b45309; }
.dashboard-widget-edit-icon-success { background: linear-gradient(180deg, rgba(16,185,129,.16), rgba(16,185,129,.09)); color: #047857; }

.dashboard-widget-edit-eyebrow {
    display: inline-block;
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6366f1;
}

.dashboard-widget-edit-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-widget-size-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.95rem;
    padding: .22rem .62rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.84);
    color: #475569;
    font-size: .72rem;
    font-weight: 700;
}

.dashboard-smart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
}

.dashboard-smart-title-group {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.dashboard-smart-icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 14px 28px rgba(15, 23, 42, .07);
}
.dashboard-smart-icon i { font-size: 1.05rem; }
.dashboard-smart-icon-primary { background: linear-gradient(180deg, rgba(79,70,229,.16), rgba(79,70,229,.09)); color: #4338ca; }
.dashboard-smart-icon-warning { background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.10)); color: #b45309; }
.dashboard-smart-icon-success { background: linear-gradient(180deg, rgba(16,185,129,.16), rgba(16,185,129,.09)); color: #047857; }

.dashboard-smart-title-group h2 {
    line-height: 1.15;
}

.dashboard-smart-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .26rem .7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .05);
    color: #475569;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}

body.theme-dark .dashboard-toggle-card,
[data-bs-theme='dark'] .dashboard-toggle-card,
body.theme-dark .widget-switch-card,
[data-bs-theme='dark'] .widget-switch-card {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96));
}

body.theme-dark .dashboard-toggle-status,
[data-bs-theme='dark'] .dashboard-toggle-status,
body.theme-dark .widget-switch-chip,
[data-bs-theme='dark'] .widget-switch-chip,
body.theme-dark .dashboard-widget-size-chip,
[data-bs-theme='dark'] .dashboard-widget-size-chip,
body.theme-dark .dashboard-smart-meta-chip,
[data-bs-theme='dark'] .dashboard-smart-meta-chip {
    background: rgba(148,163,184,.10);
    border-color: rgba(148,163,184,.16);
    color: #dbe4f0;
}

body.theme-dark .dashboard-widget-edit-icon,
[data-bs-theme='dark'] .dashboard-widget-edit-icon,
body.theme-dark .dashboard-smart-icon,
[data-bs-theme='dark'] .dashboard-smart-icon {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 26px rgba(2,6,23,.34);
}

body.theme-dark .dashboard-widget-edit-eyebrow,
[data-bs-theme='dark'] .dashboard-widget-edit-eyebrow {
    color: #c7d2fe;
}

@media (max-width: 991.98px) {
    .dashboard-smart-header,
    .dashboard-widget-edit-chrome {
        flex-wrap: wrap;
    }

    .dashboard-widget-edit-meta {
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .dashboard-toggle-card,
    .widget-switch-card {
        flex-wrap: wrap;
    }

    .dashboard-toggle-visual,
    .widget-switch-visual {
        width: 2.7rem;
        height: 2.7rem;
    }

    .dashboard-smart-title-group {
        width: 100%;
    }

    .dashboard-smart-meta-chip {
        margin-left: 3.75rem;
    }
}

/* v90 - premium dashboard finish */
.dashboard-edit-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-edit-summary-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(148, 163, 184, .16);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .05);
}

.dashboard-edit-summary-icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.54), 0 12px 24px rgba(15, 23, 42, .08);
}

.dashboard-edit-summary-card strong {
    display: block;
    margin-top: .15rem;
    font-size: .96rem;
    line-height: 1.35;
    color: #0f172a;
}

.dashboard-edit-summary-label {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.dashboard-edit-summary-card.tone-primary .dashboard-edit-summary-icon {
    background: linear-gradient(180deg, rgba(79,70,229,.16), rgba(79,70,229,.09));
    color: #4338ca;
}

.dashboard-edit-summary-card.tone-success .dashboard-edit-summary-icon {
    background: linear-gradient(180deg, rgba(16,185,129,.16), rgba(16,185,129,.09));
    color: #047857;
}

.dashboard-edit-summary-card.tone-warning .dashboard-edit-summary-icon {
    background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.10));
    color: #b45309;
}

.widget-sorter-item {
    align-items: center;
    gap: .9rem;
    padding: .95rem 1rem;
}

.widget-sorter-icon {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 12px 22px rgba(15, 23, 42, .07);
}

.sorter-tone-primary .widget-sorter-icon {
    background: linear-gradient(180deg, rgba(79,70,229,.16), rgba(79,70,229,.09));
    color: #4338ca;
}

.sorter-tone-success .widget-sorter-icon {
    background: linear-gradient(180deg, rgba(16,185,129,.16), rgba(16,185,129,.09));
    color: #047857;
}

.sorter-tone-warning .widget-sorter-icon {
    background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.10));
    color: #b45309;
}

.sorter-tone-secondary .widget-sorter-icon {
    background: linear-gradient(180deg, rgba(100,116,139,.18), rgba(100,116,139,.10));
    color: #475569;
}

.sorter-tone-info .widget-sorter-icon {
    background: linear-gradient(180deg, rgba(14,165,233,.16), rgba(14,165,233,.08));
    color: #0369a1;
}

.widget-sorter-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: .16rem;
}

.widget-sorter-copy span {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.widget-sorter-copy small {
    color: #64748b;
    line-height: 1.45;
}

.widget-sorter-width {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .24rem .68rem;
    border-radius: 999px;
    background: rgba(15,23,42,.05);
    border: 1px solid rgba(148,163,184,.18);
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.widget-sorter-grip {
    color: #94a3b8;
    font-size: 1rem;
    margin-left: .15rem;
}

.widget-sorter-item:hover .widget-sorter-grip {
    color: var(--accent);
}

.dashboard-toggle-card,
.widget-switch-card {
    position: relative;
    overflow: hidden;
}

.dashboard-toggle-card::after,
.widget-switch-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(99,102,241,0), rgba(99,102,241,.28), rgba(99,102,241,0));
    opacity: 0;
    transition: opacity .18s ease;
}

.dashboard-toggle-card.is-enabled,
.widget-switch-card.is-enabled {
    border-color: rgba(99,102,241,.18);
    box-shadow: 0 18px 36px rgba(79,70,229,.09);
}

.dashboard-toggle-card.is-enabled::after,
.widget-switch-card.is-enabled::after {
    opacity: 1;
}

.dashboard-toggle-card.is-enabled .dashboard-toggle-status {
    background: rgba(79,70,229,.12);
    color: #312e81;
    border-color: rgba(79,70,229,.16);
}

.widget-switch-card.is-enabled .widget-switch-chip[data-widget-switch-status] {
    background: rgba(79,70,229,.12);
    color: #312e81;
    border-color: rgba(79,70,229,.16);
}

.dashboard-smart-header {
    align-items: flex-start;
}

.dashboard-smart-header-copy {
    min-width: 0;
    display: grid;
    gap: .2rem;
}

.dashboard-smart-subtitle {
    color: #64748b;
    font-size: .82rem;
    line-height: 1.45;
    margin-top: .05rem;
}

.dashboard-smart-meta-chip,
.dashboard-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
}

.dashboard-inline-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.dashboard-inline-chip {
    min-height: 1.95rem;
    padding: .24rem .68rem;
    border-radius: 999px;
    background: rgba(15,23,42,.05);
    border: 1px solid rgba(148,163,184,.16);
    color: #475569;
    font-size: .74rem;
    font-weight: 700;
}

.dashboard-smart-metrics {
    gap: .85rem;
}

.dashboard-smart-metric {
    padding: .9rem .95rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
}

.dashboard-smart-metric strong {
    font-size: 1.18rem;
}

.dashboard-widget-edit-copy {
    gap: .22rem;
}

.dashboard-widget-edit-copy strong {
    line-height: 1.32;
}

.dashboard-widget-edit-copy small {
    line-height: 1.45;
}

.dashboard-widget-edit-meta {
    gap: .5rem;
}

.dashboard-widget-order-chip,
.dashboard-widget-size-chip {
    box-shadow: 0 10px 18px rgba(15, 23, 42, .05);
}

.dashboard-page-root.is-dashboard-editing .dashboard-hero-shell,
.dashboard-page-root.is-dashboard-editing .dashboard-pref-card {
    box-shadow: 0 24px 48px rgba(15, 23, 42, .09);
}

body.theme-dark .dashboard-edit-summary-card,
[data-bs-theme='dark'] .dashboard-edit-summary-card,
body.theme-dark .widget-sorter-width,
[data-bs-theme='dark'] .widget-sorter-width,
body.theme-dark .dashboard-inline-chip,
[data-bs-theme='dark'] .dashboard-inline-chip {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96));
    border-color: rgba(148,163,184,.16);
    color: #dbe4f0;
}

body.theme-dark .dashboard-edit-summary-card strong,
[data-bs-theme='dark'] .dashboard-edit-summary-card strong,
body.theme-dark .widget-sorter-copy span,
[data-bs-theme='dark'] .widget-sorter-copy span {
    color: #f8fafc;
}

body.theme-dark .dashboard-edit-summary-label,
[data-bs-theme='dark'] .dashboard-edit-summary-label,
body.theme-dark .widget-sorter-copy small,
[data-bs-theme='dark'] .widget-sorter-copy small,
body.theme-dark .dashboard-smart-subtitle,
[data-bs-theme='dark'] .dashboard-smart-subtitle {
    color: #94a3b8;
}

body.theme-dark .widget-switch-card.is-enabled .widget-switch-chip[data-widget-switch-status],
[data-bs-theme='dark'] .widget-switch-card.is-enabled .widget-switch-chip[data-widget-switch-status],
body.theme-dark .dashboard-toggle-card.is-enabled .dashboard-toggle-status,
[data-bs-theme='dark'] .dashboard-toggle-card.is-enabled .dashboard-toggle-status {
    background: rgba(99,102,241,.18);
    color: #e0e7ff;
    border-color: rgba(129,140,248,.22);
}

body.theme-dark .widget-sorter-icon,
[data-bs-theme='dark'] .widget-sorter-icon,
body.theme-dark .dashboard-edit-summary-icon,
[data-bs-theme='dark'] .dashboard-edit-summary-icon {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 26px rgba(2, 6, 23, .34);
}

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

    .widget-sorter-item {
        align-items: flex-start;
    }

    .widget-sorter-width {
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    .widget-sorter-item {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .widget-sorter-copy {
        width: calc(100% - 3.45rem);
    }

    .widget-sorter-width {
        margin-left: 3.45rem;
    }

    .widget-sorter-grip {
        margin-left: auto;
    }

    .dashboard-inline-chip-row {
        gap: .38rem;
    }

    .dashboard-smart-metric strong {
        font-size: 1.08rem;
    }
}


.settings-page-alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.settings-service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, .08);
    color: var(--bs-primary);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.settings-service-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.settings-service-summary-card,
.settings-service-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
    box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
}

.settings-service-summary-card {
    padding: 1rem 1.05rem;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .45rem;
}

.settings-service-summary-card.primary { border-color: rgba(59,130,246,.18); }
.settings-service-summary-card.accent { border-color: rgba(168,85,247,.18); }
.settings-service-summary-card.success { border-color: rgba(16,185,129,.18); }

.settings-service-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .25rem;
}

.settings-service-card {
    padding: 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-service-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}


.settings-service-card .settings-switch-card {
    min-height: auto;
    width: 100%;
    margin-top: 0 !important;
}

.settings-service-card .settings-field-card {
    min-height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
}

.settings-service-card .settings-field-card label {
    margin: 0;
}

.settings-service-card .settings-field-card .form-control {
    width: 100%;
    min-width: 0;
}

.settings-service-card .settings-field-card .form-text,
.settings-service-card .settings-field-card .text-danger {
    margin-top: 0;
}

.settings-service-card .settings-switch-card + .settings-field-card,
.settings-service-card .settings-switch-card + .row,
.settings-service-card .settings-field-card + .settings-service-mini-stats,
.settings-service-card .row + .settings-service-mini-stats {
    margin-top: 0 !important;
}

.settings-service-card .settings-service-mini-stats {
    margin-top: 0 !important;
}

.settings-service-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.settings-service-mini-stats > div,
.settings-service-health-item {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(248,250,252,.7);
    padding: .75rem .85rem;
}

.settings-service-mini-stats span,
.settings-service-health-item span {
    display: block;
    font-size: .8rem;
    color: #64748b;
    margin-bottom: .25rem;
}

.settings-service-mini-stats strong,
.settings-service-health-item strong {
    font-size: .96rem;
    color: #0f172a;
}

.settings-service-sidebar-stack {
    display: grid;
    gap: 1rem;
}

.settings-service-health-list {
    display: grid;
    gap: .75rem;
}

.settings-service-timeline {
    display: grid;
    gap: .9rem;
}

.settings-service-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.settings-service-dot {
    width: .85rem;
    height: .85rem;
    border-radius: 999px;
    margin-top: .35rem;
    flex: 0 0 auto;
    box-shadow: 0 0 0 6px rgba(99,102,241,.08);
}

.settings-service-dot.primary { background: #2563eb; box-shadow: 0 0 0 6px rgba(37,99,235,.12); }
.settings-service-dot.accent { background: #8b5cf6; box-shadow: 0 0 0 6px rgba(139,92,246,.12); }
.settings-service-dot.success { background: #10b981; box-shadow: 0 0 0 6px rgba(16,185,129,.12); }

.settings-service-timeline-item strong {
    display: block;
    font-size: .92rem;
    color: #0f172a;
    margin-bottom: .1rem;
}

.settings-service-timeline-item small {
    color: #64748b;
}

.settings-service-alert {
    padding: 1rem 1.05rem;
}

.settings-inline-note.service-note {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
    border-radius: 999px;
    background: rgba(59,130,246,.08);
    color: #1d4ed8;
    font-size: .86rem;
}

.theme-dark .settings-service-summary-card,
.theme-dark .settings-service-card,
.theme-dark .settings-service-mini-stats > div,
.theme-dark .settings-service-health-item {
    border-color: rgba(148, 163, 184, .14);
    background: rgba(15, 23, 42, .7);
    box-shadow: 0 18px 38px rgba(2, 6, 23, .32);
}

.theme-dark .settings-service-mini-stats span,
.theme-dark .settings-service-health-item span,
.theme-dark .settings-service-timeline-item small {
    color: #94a3b8;
}

.theme-dark .settings-service-mini-stats strong,
.theme-dark .settings-service-health-item strong,
.theme-dark .settings-service-timeline-item strong {
    color: #e2e8f0;
}

@media (max-width: 1199.98px) {
    .settings-service-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .settings-service-card {
        padding: 1rem;
    }

    .settings-service-card .row.g-3 > [class*="col-"] {
        width: 100%;
    }

    .settings-service-card .settings-field-card {
        padding: .95rem 1rem;
    }

    .settings-service-summary-grid,
    .settings-service-mini-stats {
        grid-template-columns: 1fr;
    }

    .settings-inline-note.service-note {
        width: 100%;
        justify-content: flex-start;
        border-radius: 1rem;
        white-space: normal;
    }
}


/* Notification center premium refresh */
.notification-center-shell {
    gap: 1.25rem;
}

.notification-center-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background: linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(244,247,255,.96) 55%, rgba(251,248,255,.98) 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.notification-center-hero::before {
    content: "";
    position: absolute;
    inset: auto -4rem -5rem auto;
    width: 15rem;
    height: 15rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(99, 102, 241, .16) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}

.notification-center-title {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 800;
    color: #0f172a;
}

.notification-center-subtitle {
    max-width: 52rem;
    color: #5b6474;
    font-size: 1rem;
}

.notification-center-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.notification-center-summary-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-height: 100%;
    border-radius: 1.25rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(8px);
}

.notification-center-summary-card .summary-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.notification-center-summary-card .summary-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: .25rem;
}

.notification-center-summary-card .summary-value {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0f172a;
    margin-bottom: .2rem;
}

.notification-center-summary-card .summary-help {
    color: #667085;
    font-size: .9rem;
}

.notification-center-summary-card.summary-primary .summary-icon { background: rgba(59, 130, 246, .14); color: #2563eb; }
.notification-center-summary-card.summary-accent .summary-icon { background: rgba(124, 58, 237, .14); color: #7c3aed; }
.notification-center-summary-card.summary-warning .summary-icon { background: rgba(245, 158, 11, .16); color: #d97706; }
.notification-center-summary-card.summary-danger .summary-icon { background: rgba(239, 68, 68, .14); color: #dc2626; }

.notification-center-filter-card {
    border-radius: 1.5rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.notification-center-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-top: .25rem;
}

.notification-center-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .82rem;
    font-weight: 700;
}

.filter-chip.info { background: #e8f1ff; color: #2563eb; }
.filter-chip.warning { background: #fff4dd; color: #b45309; }
.filter-chip.danger { background: #feecec; color: #dc2626; }

.notification-center-list {
    gap: 1rem;
}

.notification-center-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}

.notification-center-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.notification-center-card.is-info { border-left: 4px solid #3b82f6; }
.notification-center-card.is-warning { border-left: 4px solid #f59e0b; }
.notification-center-card.is-danger { border-left: 4px solid #ef4444; }

.notification-center-card-main {
    flex: 1 1 640px;
    min-width: 0;
}

.notification-center-card-side {
    flex: 0 0 250px;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, .18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
}

.notification-side-caption {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: .75rem;
}

.notification-center-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .9rem;
}

.notification-trigger-chip,
.notification-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .82rem;
    font-weight: 700;
}

.notification-trigger-chip.is-info { background: #e8f1ff; color: #2563eb; }
.notification-trigger-chip.is-warning { background: #fff4dd; color: #b45309; }
.notification-trigger-chip.is-danger { background: #feecec; color: #dc2626; }
.notification-meta-chip { background: #f8fafc; color: #475569; border: 1px solid rgba(148, 163, 184, .2); }

.notification-center-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    margin-bottom: .5rem;
}

.notification-center-card-message {
    color: #5b6474;
    max-width: 58rem;
}

.notification-center-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.notification-meta-box {
    border-radius: 1rem;
    padding: .9rem 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .16);
}

.notification-meta-box .meta-label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: .25rem;
}

.notification-meta-box strong {
    color: #0f172a;
    font-weight: 700;
}

.notification-center-empty {
    border-radius: 1.5rem;
}

@media (max-width: 1199.98px) {
    .notification-center-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .notification-center-card-side {
        flex: 1 1 100%;
    }

    .notification-center-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

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

    .notification-center-card-meta {
        grid-template-columns: 1fr;
    }

    .notification-center-hero-actions .btn,
    .notification-center-card-side .btn {
        width: 100%;
    }
}

body.theme-dark .notification-center-hero {
    background: linear-gradient(145deg, rgba(15, 23, 42, .96) 0%, rgba(17, 24, 39, .94) 55%, rgba(30, 27, 75, .94) 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

body.theme-dark .notification-center-title,
body.theme-dark .notification-center-card-title,
body.theme-dark .notification-center-summary-card .summary-value {
    color: #f8fafc;
}

body.theme-dark .notification-center-subtitle,
body.theme-dark .notification-center-summary-card .summary-help,
body.theme-dark .notification-center-card-message {
    color: #cbd5e1;
}

body.theme-dark .notification-center-summary-card,
body.theme-dark .notification-center-filter-card,
body.theme-dark .notification-center-card,
body.theme-dark .notification-center-empty {
    background: rgba(15, 23, 42, .84);
    border-color: rgba(148, 163, 184, .16);
}

body.theme-dark .notification-meta-chip,
body.theme-dark .notification-meta-box,
body.theme-dark .notification-center-card-side {
    background: rgba(15, 23, 42, .72);
    border-color: rgba(148, 163, 184, .18);
    color: #dbe5f4;
}

body.theme-dark .notification-meta-box .meta-label,
body.theme-dark .notification-side-caption {
    color: #94a3b8;
}


@media (max-width: 1199.98px) {
    .notes-summary-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .notes-summary-grid-4,
    .notes-highlight-grid {
        grid-template-columns: 1fr;
    }
}

body.theme-dark .notes-side-card,
body.theme-dark .notes-highlight-board,
body.theme-dark .notes-highlight-card {
    background: linear-gradient(180deg, rgba(17,24,39,.96) 0%, rgba(15,23,42,.98) 100%);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.32);
}

body.theme-dark .notes-category-row {
    background: rgba(15, 23, 42, .68);
    border-color: rgba(148, 163, 184, .16);
    color: #e2e8f0;
}

body.theme-dark .notes-category-count {
    background: rgba(99, 102, 241, .18);
    color: #c7d2fe;
}

body.theme-dark .notes-highlight-card h4 {
    color: #f8fafc;
}

body.theme-dark .notes-highlight-card p,
body.theme-dark .notes-highlight-link {
    color: #cbd5e1;
}

/* Tarihte Bugün - premium detay ve filtre iyileştirmeleri */
.history-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.history-filter-collapse-toggle {
    flex-shrink: 0;
}

.history-filter-snapshot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
    padding: .95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(124, 58, 237, .12);
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(255, 255, 255, .96));
}

.history-filter-snapshot strong {
    display: block;
    color: #111827;
    margin-bottom: .15rem;
}

.history-filter-snapshot p {
    margin: 0;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.55;
}

.history-card-shell {
    position: relative;
}

.history-card-excerpt {
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-reference-row.is-muted {
    padding: .7rem .8rem;
    border-radius: .95rem;
    border: 1px solid rgba(15, 23, 42, .07);
    background: rgba(248, 250, 252, .92);
}

.history-reference-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .68rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, .08);
    color: #6d28d9;
    font-size: .76rem;
    font-weight: 700;
}

.history-card-actions-primary,
.history-card-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}

.history-card-actions-primary {
    padding-top: .15rem;
}

.history-card-actions-primary form,
.history-card-actions-secondary form {
    margin: 0;
}

.history-card-detail-toggle {
    box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}

.history-upcoming-actions {
    margin-top: .25rem;
}

.history-card-detail {
    margin-top: .9rem;
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.history-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, .95fr);
    gap: 1rem;
}

.history-detail-section-title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .55rem;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #7c3aed;
}

.history-detail-text {
    margin: 0;
    color: #334155;
    line-height: 1.75;
}

.history-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .9rem;
}

.history-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .78rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .05);
    color: #334155;
    font-size: .8rem;
    font-weight: 600;
}

.history-detail-side {
    display: grid;
    gap: .8rem;
    align-content: start;
}

.history-media-placeholder {
    min-height: 176px;
    display: grid;
    place-items: center;
    gap: .5rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(148, 163, 184, .45);
    background: linear-gradient(135deg, rgba(248, 250, 252, .94), rgba(255, 255, 255, .98));
    color: #64748b;
    text-align: center;
}

.history-media-placeholder.compact {
    min-height: 132px;
}

.history-media-placeholder i {
    font-size: 1.25rem;
    color: #94a3b8;
}

.history-filter-reset {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #6d28d9;
    font-weight: 700;
}

.history-filter-reset:hover {
    text-decoration: underline;
}

.history-empty-state .btn {
    min-width: 160px;
}

@media (max-width: 1199.98px) {
    .history-filter-head {
        flex-direction: column;
    }

    .history-filter-collapse-toggle {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .history-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .history-filter-snapshot,
    .history-card-actions-primary,
    .history-card-actions-secondary,
    .history-reference-row.is-muted {
        flex-direction: column;
        align-items: stretch;
    }

    .history-reference-row.is-muted .history-reference-link,
    .history-card-actions-primary .btn,
    .history-card-actions-secondary .btn,
    .history-card-actions-primary form,
    .history-card-actions-secondary form {
        width: 100%;
    }

    .history-card-actions-primary form .btn,
    .history-card-actions-secondary form .btn {
        width: 100%;
    }
}

body.theme-dark .history-filter-snapshot,
body.theme-dark .history-card-detail,
body.theme-dark .history-reference-row.is-muted,
body.theme-dark .history-media-placeholder {
    background: rgba(15, 23, 42, .84);
    border-color: rgba(148, 163, 184, .18);
    color: #e5e7eb;
}

body.theme-dark .history-filter-snapshot strong,
body.theme-dark .history-detail-text,
body.theme-dark .history-reference-link,
body.theme-dark .history-filter-reset {
    color: #e5e7eb;
}

body.theme-dark .history-filter-snapshot p,
body.theme-dark .history-media-placeholder,
body.theme-dark .history-card-excerpt {
    color: #94a3b8;
}

body.theme-dark .history-detail-meta span {
    background: rgba(148, 163, 184, .14);
    color: #e5e7eb;
}

body.theme-dark .history-reference-pill {
    background: rgba(99, 102, 241, .16);
    color: #c7d2fe;
}
