/* Taskly v17 / Feature pages — retain the established BestUI palette and layout */
.feature-view{animation:v17Enter .42s cubic-bezier(.22,1,.36,1) both; min-width:0; padding-bottom:32px}
@keyframes v17Enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.feature-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}
.feature-heading h2{font-size:clamp(21px,2vw,29px);font-weight:850;line-height:1.5;margin:4px 0 2px}
.feature-heading p{margin:0;font-size:13px;line-height:1.9;color:var(--muted,#8a95ad)}
.feature-kicker{display:inline-flex;color:var(--brand-b,#4F39F6);font-weight:800;font-size:11px;letter-spacing:.2px}
.feature-space-label{color:#6b55f8}
.feature-card{min-width:0;background:#fff;border:1px solid #e9edf8;border-radius:22px;box-shadow:0 18px 35px rgba(61,71,121,.045);padding:22px}
html[data-theme="dark"] .feature-card{background:#131b2d;border-color:#273550;box-shadow:none;color:#f1f3ff}
.feature-view button{font-family:inherit;cursor:pointer}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,300px);gap:16px;align-items:start}
.calendar-toolbar,.calendar-navigation,.calendar-toolbar-actions{display:flex;align-items:center;gap:12px}
.calendar-toolbar{justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.calendar-navigation h3{min-width:152px;text-align:center;margin:0;font-size:17px;font-weight:900}
.calendar-icon-btn{height:36px;width:36px;display:grid;place-items:center;background:#f4f5fe;border:1px solid #e4e7f7;color:#5144bd;border-radius:11px}
.calendar-icon-btn svg{width:16px;height:16px;transform:rotate(90deg)}
#calendarNext svg{transform:rotate(-90deg)}
.calendar-toolbar .btn{padding:8px 15px;font-size:12px;min-height:36px}
.view-segment{display:flex;background:#eff1f9;border-radius:12px;padding:4px;gap:3px;white-space:nowrap}
.view-segment button{border:0;background:transparent;color:#6d7995;border-radius:9px;padding:7px 14px;font-size:12px;font-weight:800;transition:background .2s,color .2s,box-shadow .2s}
.view-segment button.active{background:#fff;color:#4F39F6;box-shadow:0 3px 12px rgba(47,59,115,.09)}
html[data-theme="dark"] .view-segment{background:#1d2640}
html[data-theme="dark"] .view-segment button{color:#bec6dc}
html[data-theme="dark"] .view-segment button.active{background:#373259;color:#d3cbff}
html[data-theme="dark"] .calendar-icon-btn{background:#202943;color:#d2caff;border-color:#394263}
.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #e9ecf6;border-radius:13px 13px 0 0;overflow:hidden;background:#f7f8ff}
.calendar-weekdays span{font-size:11px;font-weight:800;color:#8c97af;text-align:center;padding:12px 2px}
.calendar-cells{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-inline-start:1px solid #e9ecf6;border-top:0;}
.calendar-day{min-width:0;min-height:117px;background:#fff;border:0;border-inline-end:1px solid #e9ecf6;border-bottom:1px solid #e9ecf6;display:flex;align-items:flex-start;flex-direction:column;gap:7px;position:relative;padding:10px;transition:background .2s,box-shadow .2s;overflow:hidden;text-align:right}
.calendar-day:hover{background:#faf9ff}
.calendar-day.outside{background:#fafbfe;opacity:.43}
.calendar-day.has-tasks{background:linear-gradient(155deg,#f8f6ff,#f2efff);}
.calendar-day.selected{box-shadow:inset 0 0 0 2px #7663ff;z-index:1}
.calendar-date-badge{width:31px;height:31px;display:grid;place-items:center;font-size:12px;border-radius:10px;font-weight:850;color:#56627e}
.calendar-day.has-tasks .calendar-date-badge{background:linear-gradient(135deg,#5d47f6,#8069fd);color:white;box-shadow:0 6px 12px rgba(95,76,235,.2)}
.calendar-day.is-today .calendar-date-badge{border:1px solid #927fff;color:#5642d1}
.calendar-day.is-today.has-tasks .calendar-date-badge{color:white;border-color:transparent}
.calendar-day-count{font-size:10px;font-weight:850;color:#5c46d8}
.calendar-preview-items{display:grid;gap:4px;width:100%}
.calendar-task-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;border-radius:6px;background:#e8e1ff;color:#513cca;padding:4px 6px;font-weight:700;max-width:100%}
.calendar-task-label.is-done{background:#e2f5ef;color:#14795d}
.calendar-more{color:#745bda;font-size:10px}
.calendar-cells.week-only .calendar-day{min-height:260px}
.calendar-legend{display:flex;gap:18px;padding-top:15px;font-size:11px;color:#8a96ae}
.calendar-legend span{display:flex;align-items:center;gap:7px}
.calendar-legend i{width:10px;height:10px;border-radius:4px;background:#6e57f7;display:inline-block}
.calendar-legend .legend-today{background:transparent;border:2px solid #8c78eb}
html[data-theme="dark"] .calendar-weekdays{background:#202840;border-color:#303b55}
html[data-theme="dark"] .calendar-weekdays span{color:#a5afc9}
html[data-theme="dark"] .calendar-cells{border-color:#293550}
html[data-theme="dark"] .calendar-day{background:#151d31;border-color:#293550}
html[data-theme="dark"] .calendar-day:hover{background:#202942}
html[data-theme="dark"] .calendar-day.outside{background:#0e1525}
html[data-theme="dark"] .calendar-day.has-tasks{background:linear-gradient(150deg,#221d43,#1a2137)}
html[data-theme="dark"] .calendar-date-badge{color:#b4c0dc}
html[data-theme="dark"] .calendar-day-count{color:#c8baff}
html[data-theme="dark"] .calendar-task-label{background:#352c63;color:#e4dfff}
html[data-theme="dark"] .calendar-task-label.is-done{background:#163c36;color:#94e6d0}
.calendar-agenda{position:sticky;top:18px}
.agenda-top{display:grid;gap:10px;margin-bottom:11px}
.agenda-top span{font-size:11px;font-weight:800;color:#6953e2}
.agenda-top strong{font-size:15px;line-height:1.75}
.agenda-count{font-size:12px;color:#8e9ab1;padding-bottom:16px;border-bottom:1px solid #edf0f8}
.agenda-tasks{display:grid;gap:9px;padding-top:14px}
.agenda-task{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #e8eaf8;background:#f9faff;text-align:right;padding:12px;border-radius:13px;transition:background .2s,border-color .2s;min-width:0}
.agenda-task:hover{background:#f3f0ff;border-color:#baaeff}
.agenda-priority{width:4px;height:33px;flex:none;border-radius:4px;background:#aaa}
.agenda-priority.priority-high{background:#e85c7a}.agenda-priority.priority-medium{background:#e0a44f}.agenda-priority.priority-low{background:#21ad8b}
.agenda-task-info{display:grid;min-width:0;gap:5px;flex:1}
.agenda-task-info strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;color:#233250}
.agenda-task-info small{font-size:10px;color:#8b96ac;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.agenda-arrow{color:#917afa;font-weight:900}
.agenda-empty{min-height:230px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;color:#7e8ca8;font-size:12px}
.agenda-empty-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:19px;background:#f0edff;color:#7358ed;font-size:29px}
.agenda-empty strong{color:#4b5780}
html[data-theme="dark"] .agenda-count{border-color:#33405b}
html[data-theme="dark"] .agenda-task{background:#1c263d;border-color:#303c59}
html[data-theme="dark"] .agenda-task-info strong,html[data-theme="dark"] .agenda-empty strong{color:#e5ebfa}
html[data-theme="dark"] .agenda-task:hover{background:#252c4a}
html[data-theme="dark"] .agenda-empty-icon{background:#312652}
.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.report-kpi{min-height:118px;border:1px solid #e7eafa;border-radius:19px;background:linear-gradient(135deg,#fff,#f7f8ff);padding:17px 19px;display:grid;align-content:space-between;gap:5px}
.report-kpi span{font-size:18px;width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:#eeeaff;color:#5a42ed;font-weight:900}
.report-kpi strong{font-size:27px;font-weight:900;color:#233154}
.report-kpi small{font-size:11px;color:#8b94ac}
.report-kpi.mint span{background:#def8ee;color:#0c9d77}.report-kpi.blue span{background:#e4edff;color:#4b76db}.report-kpi.amber span{background:#fff1df;color:#c58a22}
html[data-theme="dark"] .report-kpi{background:linear-gradient(135deg,#1c2540,#141c2e);border-color:#2a3552}
html[data-theme="dark"] .report-kpi strong{color:#edf1ff}
.report-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.report-widget{min-height:335px}
.widget-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:23px}
.widget-header h3{font-size:15px;font-weight:900;margin:0}
.widget-header small{font-size:11px;color:#8c99b1}
.donut-layout{display:flex;align-items:center;gap:18px;min-width:0}
.donut-graphic{position:relative;width:190px;min-width:150px;max-width:48%;aspect-ratio:1}
.donut-graphic svg{width:100%;height:100%;overflow:visible}
.donut-graphic svg circle{transition:stroke-dasharray .3s}
.donut-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none}
.donut-center strong{font-weight:900;font-size:24px}
.donut-center small{font-size:11px;color:#8e9ab1}
.chart-legend{flex:1;min-width:0;display:grid;gap:15px}
.legend-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
.legend-row span{display:flex;align-items:center;gap:7px;min-width:0}
.legend-row i{width:10px;height:10px;flex:none;border-radius:50%}
.legend-row b{font-weight:850}
.horizontal-bars{display:grid;gap:20px;padding:7px 1px;max-height:360px;overflow-y:auto}
.hbar-row{display:grid;gap:9px}
.hbar-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#69748f}
.hbar-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbar-label b{color:var(--ink,#263450)}
.hbar-track{height:10px;border-radius:14px;background:#edf0fa;overflow:hidden}
.hbar-track span{display:block;height:100%;border-radius:14px;min-width:0;transition:width .35s}
.week-chart{display:flex;align-items:stretch;justify-content:space-between;gap:8px;min-height:238px;margin:6px 0 0}
.week-bar-col{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;gap:10px;justify-content:flex-end}
.week-bar-col b{font-size:11px;color:#5949d3}
.week-bar-track{height:168px;width:min(70%,44px);display:flex;align-items:end;background:#f0effd;border-radius:12px 12px 5px 5px;overflow:hidden}
.week-bar-track span{display:block;width:100%;background:linear-gradient(180deg,#8C78EB,#4F39F6);border-radius:10px 10px 4px 4px;min-height:2px}
.week-bar-col small{font-size:10px;color:#8590a9;text-align:center;line-height:1.6}
.chart-empty{text-align:center;color:#9ca3b9;padding:50px 0}
html[data-theme="dark"] .hbar-track,html[data-theme="dark"] .week-bar-track{background:#303750}
html[data-theme="dark"] .hbar-label,html[data-theme="dark"] .week-bar-col small{color:#afb9d5}
html[data-theme="dark"] .hbar-label b{color:#eef1ff}
.profile-page-card{max-width:680px;padding:27px}
.profile-image-row{display:flex;align-items:center;gap:25px}
.profile-picture{width:106px;height:106px;flex:none;border-radius:30px;border:4px solid #fff;box-shadow:0 9px 28px rgba(79,57,246,.17);overflow:hidden;background:#f0eeff}
.profile-picture img{width:100%;height:100%;object-fit:cover}
.profile-upload-actions{display:grid;gap:9px}
.profile-upload-actions strong{font-size:16px}
.profile-upload-actions p{font-size:11px;color:#8895ae;margin:0}
.profile-upload-buttons{display:flex;gap:9px;flex-wrap:wrap}
.profile-upload-buttons .btn{font-size:12px;min-height:38px;padding:9px 14px}
.upload-picture-btn{cursor:pointer}
.profile-divider{height:1px;background:#e9edf7;margin:27px 0}
.feature-field{display:grid;gap:12px;font-weight:800;font-size:13px;max-width:470px}
.feature-field span strong{color:#e85e77}
.feature-field input{border:1px solid #e3e8f6;background:#f9faff;color:#293858;border-radius:12px;padding:13px 16px;outline:none;width:100%;font-size:13px}
.feature-field input:focus{border-color:#8c78eb;box-shadow:0 0 0 3px rgba(140,120,235,.12)}
.profile-actions{margin-top:25px;display:flex;justify-content:flex-start}
.profile-edit-link{width:100%;text-align:center;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid rgba(111,99,190,.2);background:rgba(255,255,255,.1);color:inherit;border-radius:12px;padding:10px;font-size:12px;font-weight:750;cursor:pointer;margin:0 0 12px}
.profile-edit-link svg{width:15px;height:15px}
html[data-theme="light"] .profile-edit-link{background:rgba(255,255,255,.63);color:#403c80}
html[data-theme="dark"] .feature-field input{background:#1a243a;border-color:#36435d;color:#f0f2ff}
html[data-theme="dark"] .profile-divider{background:#2f3a56}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.settings-card h3{margin:0;font-weight:900;font-size:17px}
.settings-card>p{color:#8c99b1;font-size:12px;margin:8px 0 23px}
.settings-option{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:19px 0;border-top:1px solid #e9edf7}
.settings-option strong{font-size:12px;display:block}
.settings-option small{display:block;margin-top:6px;font-size:10px;color:#8f9bb2}
.switch-toggle{width:45px;height:25px;flex:none;position:relative;cursor:pointer}
.switch-toggle input{opacity:0;position:absolute;width:100%;height:100%;cursor:pointer;margin:0;z-index:2}
.switch-toggle span{position:absolute;inset:0;background:#d6dbea;border-radius:30px;transition:background .22s}
.switch-toggle span:after{content:"";position:absolute;width:19px;height:19px;right:3px;top:3px;background:#fff;border-radius:50%;transition:transform .22s;box-shadow:0 2px 5px rgba(20,30,60,.15)}
.switch-toggle input:checked+span{background:linear-gradient(115deg,#4f39f6,#8c78eb)}
.switch-toggle input:checked+span:after{transform:translateX(-20px)}
.switch-toggle input:focus-visible+span{outline:2px solid #8c78eb;outline-offset:3px}
.settings-profile-button{display:flex;align-items:center;gap:9px;margin-top:15px}
.settings-profile-button svg{width:16px;height:16px}
html[data-theme="dark"] .settings-option{border-color:#2e3953}
body.dense-tasks .tasks-table td{padding-top:8px!important;padding-bottom:8px!important}
body.dense-tasks .task-card{padding-block:9px!important}
body.badges-off #notifyBadge{display:none!important}
body.taskly-reduced-motion *,body.taskly-reduced-motion *::before,body.taskly-reduced-motion *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
@media(max-width:1280px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.calendar-agenda{position:static}.calendar-agenda .agenda-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.settings-grid,.report-charts{grid-template-columns:1fr}.feature-card{padding:18px}.calendar-day{min-height:92px;padding:7px}.calendar-task-label{font-size:9px}.calendar-cells.week-only .calendar-day{min-height:190px}}
@media(max-width:600px){.feature-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:16px}.calendar-main{padding:12px!important}.calendar-toolbar{gap:10px;margin-bottom:12px}.calendar-navigation h3{min-width:116px;font-size:14px}.calendar-toolbar-actions{width:100%;justify-content:space-between}.calendar-weekdays span{font-size:9px;padding:9px 1px}.calendar-day{min-height:76px;gap:4px;padding:4px}.calendar-date-badge{width:25px;height:25px;font-size:10px}.calendar-day-count{font-size:8px}.calendar-preview-items,.calendar-more{display:none}.calendar-cells.week-only .calendar-day{min-height:130px}.calendar-agenda .agenda-tasks{grid-template-columns:1fr}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.report-kpi{padding:13px;min-height:105px}.donut-layout{gap:9px}.donut-graphic{min-width:128px}.chart-legend{gap:10px}.legend-row{font-size:10px}.report-widget{min-height:280px}.feature-card{border-radius:17px}.profile-image-row{align-items:flex-start;gap:13px}.profile-picture{width:76px;height:76px;border-radius:22px}.profile-upload-actions p{line-height:1.6}.profile-upload-buttons{gap:5px}.profile-upload-buttons .btn{padding:7px 9px;font-size:10px}.settings-option{align-items:center}.settings-option .view-segment button{padding:6px 9px}}
