.panel-action, .completed-link, .modal-close, .button { border: 0; cursor: pointer; font: inherit; }
.panel-action { margin-left: auto; border: 1px solid rgba(178,147,255,.4); border-radius: 999px; padding: 4px 9px; background: rgba(178,147,255,.1); color: #d6c8ff; font-size: 11px; }
.task-list { display: grid; gap: 3px; padding: 4px 12px 6px; max-height: 328px; overflow-y: auto; }
.task-group { display: grid; gap: 3px; }.task-group-title { margin: 8px 6px 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.task-row { display: grid; grid-template-columns: 4px 18px minmax(0,1fr) auto; gap: 7px; align-items: center; padding: 7px 6px; border-radius: 8px; background: rgba(4,12,23,.22); }.task-row:hover { background: rgba(178,147,255,.08); }
.task-check { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); cursor: pointer; }.task-main { min-width: 0; cursor: pointer; }.task-title { display: block; overflow: hidden; color: #dce7f5; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.task-title.completed { color: var(--muted); text-decoration: line-through; }
.task-description, .task-location, .task-reminder { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.task-location { color: #aeb9ca; }.task-meta { display:flex; align-items:center; gap:10px; min-width:0; }.task-meta > * { min-width:0; }
.task-due { color: var(--muted); font-size: 10px; white-space: nowrap; }.task-priority { width: 4px; height: 24px; border-radius: 5px; background: #77879a; }.task-priority.p1 { background: var(--green); }.task-priority.p2 { background: var(--blue); }.task-priority.p3 { background: #ff9d5c; }.task-priority.p4 { background: var(--red); }
.task-empty, .task-status { margin: 8px 6px 12px; color: var(--muted); font-size: 11px; }.task-error { color: #ff9a9f; }.completed-link { margin: 2px 18px 15px; padding: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }.completed-link:hover { color: var(--violet); }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(2,7,14,.76); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.task-modal { width: min(100%,430px); border: 1px solid rgba(178,147,255,.35); border-radius: 17px; padding: 20px; background: #111f34; box-shadow: 0 30px 80px rgba(0,0,0,.45); }.modal-heading, .modal-actions, .form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.modal-heading { margin-bottom: 16px; }.modal-heading h2 { font-size: 19px; }.modal-close { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--muted); font-size: 22px; line-height: 1; }.modal-close:hover { color: var(--text); }
#task-form { display: grid; gap: 12px; } #task-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; } #task-form input, #task-form textarea, #task-form select { width: 100%; border: 1px solid var(--line); border-radius: 8px; outline: none; padding: 9px 10px; background: rgba(3,10,19,.55); color: var(--text); font: inherit; } #task-form input:focus, #task-form textarea:focus, #task-form select:focus { border-color: var(--violet); }.form-row > label { flex: 1; }.task-form-error { min-height: 16px; margin: 0; color: #ff9a9f; font-size: 11px; }.modal-actions { justify-content: flex-end; margin-top: 2px; }.button { border-radius: 8px; padding: 9px 14px; font-size: 12px; }.button.primary { background: var(--violet); color: #0d1422; font-weight: 700; }.button.secondary { background: rgba(255,255,255,.07); color: var(--muted); }.button.danger { margin-right: auto; background: rgba(255,98,107,.14); color: #ff9a9f; }

/* TODO + Notifications visual pass: compact mission-control treatment. */
.todo-panel { border: 1px solid transparent; background: linear-gradient(150deg, rgba(25,31,61,.96), rgba(10,18,38,.96)) padding-box, linear-gradient(135deg, rgba(137,119,224,.58), rgba(72,127,190,.28) 58%, rgba(52,211,153,.16)) border-box; box-shadow: -8px -7px 30px rgba(124,96,204,.08), 0 18px 46px rgba(0,0,0,.22); }
.todo-panel > .panel-heading, .push-panel > .panel-heading { padding: 4px 16px 5px; border-bottom: 1px solid rgba(137,119,224,.18); }
.todo-panel-heading-label, .push-panel-heading-label { display: flex; flex-direction: column; gap: 3px; color: #f1f3fb; font-size: 14px; font-weight: 800; letter-spacing: .07em; line-height: 1.05; }
.todo-panel-heading-label small, .push-panel-heading-label small { color: #aeb6d2; font-size: 9px; font-weight: 650; letter-spacing: .14em; line-height: 1.15; }
.panel-action { border: 1px solid rgba(137,119,224,.46); border-radius: 999px; padding: 5px 10px; background: rgba(137,119,224,.12); color: #ddd7ff; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.panel-action:hover { border-color: rgba(180,167,255,.72); background: rgba(137,119,224,.2); }
.task-list { gap: 4px; padding: 7px 12px 5px; }
.task-group { gap: 3px; }
.task-group-title { margin: 7px 6px 2px; color: #aeb6d2; font-size: 9px; }
.task-row { gap: 8px; padding: 8px 7px; border: 1px solid rgba(123,145,191,.1); border-radius: 9px; background: rgba(4,12,23,.28); }
.task-row:hover { border-color: rgba(137,119,224,.3); background: rgba(95,88,161,.1); }
.task-description, .task-location { line-height: 1.35; }
.task-location { color: #b1bdd2; }
.task-due { color: #aeb6d2; }
.task-priority { height: 28px; }
.task-priority.p1 { background: #8b9bb3; }
.task-priority.p2 { background: var(--cyan); }
.task-priority.p3 { background: #e6ad62; }
.task-priority.p4 { background: var(--red); }
.task-row:has(.task-priority.p4) { border-left-color: rgba(240,79,91,.42); }
.task-row:has(.task-priority.p4) .task-due { color: #f09a9e; }
.completed-link { margin: 5px 16px 5px; color: #9ca9c0; font-size: 10px; text-decoration: none; }
.completed-link:hover { color: #d3c8ff; }
.push-panel { border: 1px solid transparent; background: linear-gradient(150deg, rgba(25,31,61,.96), rgba(10,18,38,.96)) padding-box, linear-gradient(135deg, rgba(137,119,224,.5), rgba(72,127,190,.3) 58%, rgba(52,211,153,.16)) border-box; box-shadow: -8px -7px 30px rgba(124,96,204,.07), 0 18px 46px rgba(0,0,0,.22); }
.push-content { padding: 11px 16px 13px; }
.push-status { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #c0c9da; font-size: 11px; line-height: 1.4; }
.push-status-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #9aa9bd; box-shadow: 0 0 8px currentColor; color: #9aa9bd; }
.push-status-dot.success { background: #62d19b; color: #62d19b; }
.push-status-dot.error { background: #f08086; color: #f08086; }
.push-status.error { color: #f0a0a5; }
.push-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.push-actions .button { padding: 6px 9px; border: 1px solid rgba(123,145,191,.2); border-radius: 999px; font-size: 10px; }
@media (max-width: 1320px) { .push-panel { margin: 0; } }
.push-status-dot.warning { background: #e6ad62; color: #e6ad62; }
.push-status.warning { color: #e6c17d; }

.task-row-readonly { grid-template-columns: 4px minmax(0, 1fr) auto; } .task-row-readonly .task-main { cursor: default; }

.task-group-counts { display:grid; gap:2px; margin-left:auto; color:#aeb6d2; font-size:9px; font-weight:600; line-height:1.15; white-space:nowrap; }
.task-group-counts[hidden] { display:none; }
.todo-panel > .panel-heading { gap:8px; height: 58px; }
.task-form-group { display:grid; gap:6px; }
.task-form-group-label { color:var(--muted); font-size:11px; }
.copy-deadline-button { justify-self:start; padding:0; border:0; background:transparent; color:#aeb6d2; font:inherit; font-size:10px; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.copy-deadline-button:hover:not(:disabled) { color:#d6c8ff; }
.copy-deadline-button:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width: 420px) { .task-group-counts { font-size:7px; } .todo-panel > .panel-heading { gap:5px; } }

@media (min-width: 1321px) {
    .right-column > .todo-panel:not([hidden]) { display:flex; flex-direction:column; min-height:0; margin-bottom:0; }
    .right-column > .todo-panel:not([hidden]) > .task-list { flex:1 1 auto; max-height:none; min-height:0; }
}
@media (min-width: 1321px) {
    .right-column > .todo-panel:not([hidden]) > .task-list { align-content:start; grid-auto-rows:max-content; }
    .right-column > .todo-panel:not([hidden]) .task-group { align-content:start; grid-auto-rows:max-content; align-self:start; }
    .right-column > .todo-panel:not([hidden]) .task-row { align-self:start; }
}

/* Tasks focused-view calendar */
.tasks-calendar-panel { margin-top:14px; padding:12px; border-color:rgba(140,164,255,.22); background:linear-gradient(155deg,rgba(18,30,52,.96),rgba(8,17,31,.94)); }
.tasks-calendar-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 2px 10px; }
.tasks-calendar-heading h3 { margin:0; color:#dbe9fa; font-size:12px; letter-spacing:.13em; }
.tasks-calendar-heading > span { color:#8fa5bd; font-size:11px; }
.tasks-calendar-scroll { overflow-x:auto; padding-bottom:5px; scrollbar-color:rgba(106,146,190,.38) rgba(6,14,27,.35); scrollbar-width:thin; }
.tasks-calendar-grid { min-width:980px; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.tasks-calendar-weekday { text-align:center; padding:5px 7px; color:#829bb4; font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.tasks-calendar-day { min-width:0; min-height:116px; padding:7px; border:1px solid rgba(125,158,195,.14); border-radius:10px; background:rgba(9,20,36,.66); display:flex; flex-direction:column; }
.tasks-calendar-day.weekend { background:rgba(17,31,50,.76); }
.tasks-calendar-day.holiday { border-color:rgba(255,176,104,.55); background:linear-gradient(145deg,rgba(92,54,34,.24),rgba(12,24,40,.78)); }
.tasks-calendar-day.today { border-color:rgba(68,208,221,.72); background:linear-gradient(145deg,rgba(29,99,116,.26),rgba(10,24,40,.9)); box-shadow:inset 0 0 0 1px rgba(68,208,221,.12); }
.tasks-calendar-day-heading { min-height:25px; display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:center; align-content:center; gap:3px 6px; padding-bottom:5px; border-bottom:1px solid rgba(130,158,190,.12); }
.tasks-calendar-day-heading > strong { color:#eff6fc; font-size:11px; line-height:16px; white-space:nowrap; }
.tasks-calendar-count { align-self:center; min-width:19px; padding:2px 5px; border-radius:99px; color:#baf7fa; background:rgba(47,175,191,.18); font-size:10px; font-weight:700; text-align:center; }
.tasks-calendar-nameday { grid-column:3; justify-self:end; max-width:100%; overflow:hidden; color:#8fa5bb; font-size:10px; line-height:13px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.tasks-calendar-day-list { display:flex; flex-direction:column; gap:4px; min-height:0; max-height:70px; margin-top:5px; overflow-y:auto; padding-right:3px; scrollbar-width:thin; scrollbar-color:rgba(102,139,180,.35) transparent; }
.tasks-calendar-task { display:flex; flex:0 0 auto; min-height:32px; padding:4px 5px; gap:5px; border-radius:6px; cursor:pointer; }
.tasks-calendar-task .task-priority { width:3px; min-width:3px; height:22px; }
.tasks-calendar-task .task-main { min-width:0; flex:1; }
.tasks-calendar-task .task-title { display:block; overflow:hidden; font-size:10px; line-height:13px; text-overflow:ellipsis; white-space:nowrap; }
.tasks-calendar-task-time { color:#91a8bc; font-size:9px; white-space:nowrap; }
.tasks-calendar-task.calendar-completed { opacity:.58; background:rgba(76,91,108,.16); }
.tasks-calendar-task.calendar-completed .task-title { color:#aab6c1; text-decoration:line-through; }
.tasks-calendar-task[role="button"]:focus-visible { outline:2px solid #57c9d9; outline-offset:1px; }
@media(max-width:720px) { .tasks-calendar-panel { margin-top:12px; padding:10px; } .tasks-calendar-grid { min-width:910px; } .tasks-calendar-day { min-height:126px; } }
.tasks-calendar-day.holiday.today { border-color:rgba(255,190,111,.82); box-shadow:inset 0 0 0 1px rgba(255,190,111,.18),0 0 14px rgba(255,160,80,.08); }
