:root {
    --bg: #192126;
    --panel: #12191d;
    --panel-2: #0f1518;
    --line: #2d3942;
    --muted: #98a4ae;
    --text: #f2f4f5;
    --green: #1ed891;
    --green-dark: #155f44;
    --danger: #ff5365;
    --warning: #ff9d24;
    --soft: #29323c;
    --rail: #20d68d;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: inherit;
    line-height: 1;
    vertical-align: middle;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: 75px 227px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
}

.rail {
    position: relative;
    z-index: 3;
    background: var(--rail);
    color: #071316;
    border-right: 1px solid rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.brand {
    height: 65px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 8px 8px 21px;
    background: #192126;
    color: #fff;
    overflow: hidden;
}

.brand-mark {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 39px;
}

.brand-a {
    position: absolute;
    left: 0;
    top: -7px;
    font-size: 50px;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    color: #ffd000;
    text-shadow: 8px 0 #007cff, 14px 0 #ff4b24;
    transform: skew(-9deg);
}

.brand-eye {
    position: absolute;
    left: 21px;
    top: 18px;
    width: 17px;
    height: 9px;
    border-radius: 50%;
    background: #12d888;
    border: 2px solid #102126;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 88px;
    margin-left: -7px;
    font-size: 15px;
    line-height: 14px;
    text-transform: uppercase;
    color: #2093ff;
}

.brand-text strong {
    color: #ffc617;
    font-size: 16px;
    font-weight: 800;
}

.rail-nav {
    display: flex;
    flex-direction: column;
}

.rail-item {
    position: relative;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-bottom: 1px solid rgba(13, 27, 30, .35);
    color: #061214;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.rail-item:nth-child(5) {
    border-bottom: 2px solid rgba(13, 27, 30, .55);
}

.rail-item.active {
    background: var(--rail);
}

.rail-icon {
    font-size: 29px;
    height: 30px;
}

.rail-item:nth-child(2) {
    background: #151c20;
    color: #fff;
}

.new-badge {
    position: absolute;
    right: 8px;
    top: 22px;
    height: 9px;
    padding: 0 3px;
    border-radius: 1px;
    background: #0ad87a;
    color: #021211;
    font-size: 6px;
    line-height: 9px;
    font-weight: 800;
}

.task-sidebar {
    background: #10161a;
    border-right: 1px solid #26313a;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.02);
    padding: 65px 9px 20px 10px;
}

.idea-board {
    height: 73px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px;
    margin-top: -65px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #25313a;
    border-left: 0;
    border-radius: 0 4px 4px 0;
}

.idea-board .material-symbols-rounded {
    font-size: 30px;
}

.task-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.task-link {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px;
    border-radius: 4px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
}

.task-link span:not(.material-symbols-rounded) {
    white-space: nowrap;
}

.task-link .material-symbols-rounded {
    font-size: 26px;
}

.task-link.active {
    background: var(--green-dark);
    color: #fff;
}

.task-link.active .material-symbols-rounded {
    color: var(--green);
}

.menu-divider {
    height: 2px;
    background: #2d373f;
    margin: 5px 0 8px;
}

.workspace {
    min-width: 0;
    background: #192126;
}

.topbar {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 0 25px 0 352px;
    border-top: 1px solid #6e7661;
    border-bottom: 1px solid #151b1f;
    box-shadow: 0 1px 7px rgba(0,0,0,.22);
}

.search-box {
    width: 376px;
    height: 45px;
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    background: #10161a;
    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #d7dde1;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
}

.search-box input::placeholder {
    color: #99a5ae;
    opacity: 1;
}

.search-box button {
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
}

.top-actions {
    position: absolute;
    right: 27px;
    top: 0;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9ca9b3;
    font-size: 27px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #ffa51f;
    background: #11181b;
    font-size: 24px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-left: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #3c27aa;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 56px;
}

.profile-copy strong {
    color: #fff;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .4px;
}

.profile-copy small {
    color: #a7b1b9;
    font-size: 13px;
    line-height: 1;
}

.content {
    height: calc(100vh - 66px);
    overflow: auto;
    padding: 13px 49px 40px 58px;
}

.dashboard-add-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 15;
    width: 71px;
    height: 71px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 20px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .32);
    font-size: 38px;
    line-height: 1;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.dashboard-add-btn:hover {
    background: #23e49b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .38);
    transform: translateY(-1px);
}

.dashboard-add-btn:active {
    transform: translateY(1px) scale(.98);
}

.dashboard-add-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .78);
    outline-offset: 3px;
}

.dashboard-add-btn.is-hidden {
    display: none;
}

.period-strip {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-bottom: 39px;
}

.pill {
    min-width: 83px;
    height: 37px;
    border: 0;
    border-radius: 18px;
    padding: 0 20px;
    color: #a0aab3;
    background: #29323c;
    font-size: 14px;
    font-weight: 700;
}

.pill.active {
    min-width: 135px;
    color: #092118;
    background: var(--green);
    font-weight: 500;
    font-size: 15px;
}

.pill.active span {
    margin-right: 10px;
    color: #fff;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 1125px;
    margin: 0 auto 28px;
}

.stat-card {
    position: relative;
    height: 80px;
    border-radius: 6px;
    background: #1a2227;
    border: 1px solid #2b3841;
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: 31px 34px;
    align-items: center;
    padding: 13px 11px 7px;
    box-shadow: inset 0 -2px currentColor, inset 2px 0 currentColor;
}

.stat-card.danger { color: var(--danger); }
.stat-card.warning { color: var(--warning); }
.stat-card.success { color: var(--green); }

.stat-label {
    color: #bcc2c7;
    font-size: 13px;
    font-weight: 800;
    grid-column: 2;
}

.stat-card strong {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    grid-column: 2;
    font-weight: 800;
}

.status-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    margin-right: 9px;
    flex: 0 0 auto;
    vertical-align: -4px;
}

.status-icon.danger { color: var(--danger); background: var(--danger); }
.status-icon.warning { color: var(--warning); background: var(--warning); }
.status-icon.success { color: var(--green); background: var(--green); }
.status-icon.dot {
    border-radius: 50%;
}

.status-icon.ring {
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.status-icon.check {
    border-radius: 50%;
}

.status-icon.check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 7px;
    height: 11px;
    border: solid #101819;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.status-icon.clock {
    border-radius: 50%;
}

.status-icon.clock::before,
.status-icon.clock::after {
    content: "";
    position: absolute;
    background: #112023;
    border-radius: 2px;
    left: 9px;
    top: 5px;
    width: 2px;
    height: 7px;
}

.status-icon.clock::after {
    transform-origin: bottom center;
    transform: rotate(126deg);
    top: 8px;
    height: 6px;
}

.status-icon.pie {
    border-radius: 50%;
    background: conic-gradient(currentColor 0deg 255deg, transparent 255deg 360deg);
}

.filters {
    display: grid;
    grid-template-columns: 188px 238px 238px 188px 250px 114px;
    gap: 9px;
    justify-content: center;
    margin-bottom: 15px;
}

.filter-select,
.clear-btn,
.table-search {
    height: 44px;
    border-radius: 5px;
}

.filter-select {
    border: 0;
    background: #10161a;
    color: #f5f5f5;
    padding: 0 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
}

.chevron {
    width: 11px;
    height: 11px;
    border-right: 3px solid #9da8b1;
    border-bottom: 3px solid #9da8b1;
    transform: rotate(45deg) translateY(-3px);
}

.table-search {
    display: block;
}

.table-search input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 1px solid #303e47;
    border-radius: 5px;
    color: #e7eaec;
    padding: 0 20px;
    font-size: 12px;
    outline: 0;
}

.table-search input::placeholder {
    color: #c5ccd1;
}

.clear-btn {
    border: 0;
    color: #b5bec6;
    background: #29323c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
}

.clear-btn .material-symbols-rounded {
    font-size: 21px;
}

.view-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.view-switch button {
    height: 41px;
    border: 0;
    border-radius: 21px;
    padding: 0 25px;
    background: #29323c;
    color: #9da7b0;
    font-size: 17px;
    font-weight: 700;
}

.view-switch button.active {
    background: var(--green);
    color: #fff;
}

.view-switch button.active span {
    margin-left: 10px;
}

.report-tabs {
    display: grid;
    grid-template-columns: repeat(9, auto);
    justify-content: center;
    gap: 38px;
    border-bottom: 1px solid #44505a;
    max-width: 1500px;
    margin: 0 auto 54px;
}

.report-tabs button {
    position: relative;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #9ea9b2;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.report-tabs button .material-symbols-rounded {
    font-size: 24px;
}

.report-tabs button.active {
    color: #fff;
    font-weight: 800;
}

.report-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4px;
    border-radius: 3px 3px 0 0;
    background: var(--green);
}

.table-section {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
}

.download-btn {
    position: absolute;
    right: 23px;
    top: -51px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 37px;
}

.report-table {
    width: 100%;
    min-width: 1080px;
}

.table-row {
    display: grid;
    grid-template-columns: 24.3% 8.15% 8.15% 10.95% 10.85% 11.5% 11.45% 7.3% 7.35%;
}

.table-head {
    height: 58px;
    border: 1px solid #58636a;
    background: #0f1518;
}

.table-head > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-right: 2px solid #58636a;
    color: #f3f4f5;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.table-head > div:last-child {
    border-right: 0;
}

.info-dot {
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    margin-left: 7px;
    border-radius: 50%;
    background: #fff;
    color: #14191c;
    font-size: 12px;
    font-weight: 900;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 43px;
}

.empty-state h1 {
    margin: 0 0 8px;
    color: #f2f3f4;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
}

.empty-state p {
    margin: 0;
    color: #9ca6af;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 1400px) {
    body {
        overflow: auto;
    }

    .content {
        min-width: 1180px;
    }
}

@media (max-width: 1650px) {
    .topbar {
        padding-left: 25px;
        justify-content: center;
    }
}

/* Compact sizing requested: smaller text, controls, cards, and section spacing. */
body {
    font-size: 13px;
}

.app-shell {
    grid-template-columns: 64px 205px minmax(0, 1fr);
}

.brand {
    height: 56px;
    padding: 7px 6px 7px 16px;
}

.brand-mark {
    flex-basis: 46px;
    width: 46px;
    height: 33px;
}

.brand-a {
    top: -6px;
    font-size: 42px;
}

.brand-eye {
    left: 17px;
    top: 15px;
    width: 14px;
    height: 8px;
}

.brand-text {
    min-width: 78px;
    font-size: 13px;
    line-height: 12px;
}

.brand-text strong {
    font-size: 14px;
}

.rail-item {
    min-height: 62px;
    gap: 5px;
    font-size: 13px;
}

.rail-icon {
    height: 25px;
    font-size: 24px;
}

.new-badge {
    right: 6px;
    top: 17px;
}

.task-sidebar {
    padding: 56px 8px 16px 9px;
}

.idea-board {
    height: 62px;
    gap: 10px;
    margin-top: -56px;
    font-size: 16px;
}

.idea-board .material-symbols-rounded {
    font-size: 25px;
}

.task-menu {
    gap: 5px;
    padding-top: 8px;
}

.task-link {
    height: 35px;
    gap: 9px;
    padding: 0 9px;
    font-size: 16px;
}

.task-link .material-symbols-rounded {
    font-size: 22px;
}

.menu-divider {
    margin: 4px 0 6px;
}

.topbar {
    height: 56px;
    padding-right: 22px;
}

.search-box {
    width: 340px;
    height: 38px;
    grid-template-columns: 1fr 42px;
}

.search-box input {
    padding: 0 14px;
    font-size: 12px;
}

.search-box button {
    font-size: 24px;
}

.top-actions {
    right: 24px;
    height: 56px;
    gap: 12px;
    font-size: 23px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 21px;
}

.profile {
    gap: 9px;
    margin-left: 12px;
}

.avatar {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.profile-copy {
    gap: 3px;
}

.profile-copy strong {
    font-size: 13px;
}

.profile-copy small {
    font-size: 12px;
}

.content {
    height: calc(100vh - 56px);
    padding: 12px 42px 32px 50px;
}

.dashboard-add-btn {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 34px;
}

.period-strip {
    gap: 8px;
    margin-bottom: 30px;
}

.pill {
    min-width: 74px;
    height: 31px;
    border-radius: 16px;
    padding: 0 17px;
    font-size: 12px;
}

.pill.active {
    min-width: 116px;
    font-size: 13px;
}

.pill.active span {
    margin-right: 8px;
}

.custom-range {
    display: none;
    justify-content: center;
    gap: 6px;
    margin: -18px 0 20px;
}

.custom-range.is-visible {
    display: flex;
}

.date-card {
    position: relative;
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: #121a1f;
    color: #fff;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.date-card .material-symbols-rounded {
    color: var(--green);
    font-size: 22px;
}

.date-card span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-card small {
    color: #99a5ae;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.date-card strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 800;
}

.date-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    cursor: pointer;
    color-scheme: dark;
}

.stats-grid {
    gap: 10px;
    max-width: 1015px;
    margin-bottom: 24px;
}

.stat-card {
    height: 66px;
    grid-template-columns: 26px 1fr;
    grid-template-rows: 25px 28px;
    padding: 10px 10px 6px;
}

.stat-label {
    font-size: 11px;
}

.stat-card strong {
    font-size: 20px;
}

.status-icon {
    width: 17px;
    height: 17px;
    margin-right: 7px;
}

.status-icon.check::after {
    left: 5px;
    top: 3px;
    width: 6px;
    height: 10px;
    border-width: 0 2px 2px 0;
}

.status-icon.clock::before,
.status-icon.clock::after {
    left: 8px;
    top: 4px;
    height: 6px;
}

.status-icon.clock::after {
    top: 7px;
    height: 5px;
}

.filters {
    grid-template-columns: 168px 214px 214px 168px 226px 104px;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-select,
.clear-btn,
.table-search {
    height: 37px;
}

.filter-select {
    padding: 0 18px;
    font-size: 12px;
}

.chevron {
    width: 9px;
    height: 9px;
    border-right-width: 2px;
    border-bottom-width: 2px;
}

.table-search input {
    padding: 0 16px;
    font-size: 11px;
}

.clear-btn {
    gap: 6px;
    font-size: 15px;
}

.clear-btn .material-symbols-rounded {
    font-size: 18px;
}

.view-switch {
    gap: 8px;
    margin-bottom: 10px;
}

.view-switch button {
    height: 35px;
    border-radius: 18px;
    padding: 0 21px;
    font-size: 15px;
}

.view-switch button.active span {
    margin-left: 8px;
}

.report-tabs {
    gap: 31px;
    max-width: 1380px;
    margin-bottom: 45px;
}

.report-tabs button {
    height: 39px;
    gap: 5px;
    font-size: 16px;
}

.report-tabs button .material-symbols-rounded {
    font-size: 20px;
}

.report-tabs button.active::after {
    height: 3px;
}

.table-section {
    max-width: 1380px;
}

.download-btn {
    right: 20px;
    top: -43px;
    font-size: 32px;
}

.report-table {
    min-width: 980px;
}

.table-head {
    height: 49px;
}

.table-head > div {
    font-size: 12px;
}

.info-dot {
    width: 15px;
    height: 15px;
    margin-left: 6px;
    font-size: 10px;
}

.empty-state {
    padding-top: 36px;
}

.empty-state h1 {
    font-size: 24px;
}

.empty-state p {
    font-size: 12px;
}

[data-page] {
    display: none;
}

[data-page].is-active {
    display: block;
}

.my-tasks-view,
.delegated-tasks-view,
.all-tasks-view,
.deleted-tasks-view,
.task-templates-view {
    min-height: 100%;
    margin: -12px -42px -32px -50px;
    padding: 18px 28px 0;
    background: linear-gradient(180deg, #173b31 0, #143a30 126px, #192126 126px);
}

.tasks-toolbar {
    display: grid;
    grid-template-columns: 130px 116px 88px 136px 136px minmax(150px, 1fr) 112px 142px 30px 130px;
    align-items: end;
    gap: 5px;
    max-width: 1280px;
    margin: 0 auto 27px;
}

.all-tasks-toolbar {
    grid-template-columns: 128px 134px 82px 128px minmax(120px, 1fr) 102px 126px 126px 132px;
    max-width: 1260px;
    width: 100%;
}

.deleted-tasks-toolbar {
    display: grid;
    grid-template-columns: max-content 100px 150px minmax(220px, 288px);
    align-items: center;
    gap: 8px;
    justify-content: center;
    max-width: 100%;
    margin: 2px auto 36px;
}

.deleted-period-strip {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: max-content;
}

.deleted-period-strip button {
    min-width: 78px;
    height: 37px;
    border: 0;
    border-radius: 19px;
    padding: 0 11px;
    background: #29323c;
    color: #a0aab3;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.deleted-period-strip button.active {
    min-width: 84px;
    background: var(--green);
    color: #082017;
}

.deleted-period-strip button.active span {
    margin-right: 10px;
    color: #fff;
}

.deleted-search {
    height: 46px;
}

.template-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 250px) 186px 186px 108px 138px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.template-title {
    margin: -7px 0 17px;
    color: #a8b4bd;
    text-align: center;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 500;
}

.template-search,
.template-select,
.template-reset,
.template-add {
    height: 58px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
}

.template-search input {
    width: 100%;
    height: 100%;
    border: 1px solid #2d3942;
    border-radius: 5px;
    outline: 0;
    background: #1a2227;
    color: #fff;
    padding: 0 19px;
    font-size: 13px;
    font-weight: 800;
}

.template-search input::placeholder {
    color: #a7b2bb;
    opacity: 1;
}

.template-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #10161a;
    background: #1a2227;
    color: #fff;
    padding: 0 10px;
}

.template-reset,
.template-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
}

.template-reset {
    background: #29323c;
    color: #a8b4bd;
}

.template-add {
    background: var(--green);
    color: #fff;
    font-size: 18px;
}

.template-reset .material-symbols-rounded,
.template-add .material-symbols-rounded {
    font-size: 20px;
}

.template-empty {
    border-top-color: rgba(92, 119, 112, .45);
}

.assign-task-btn,
.task-filter-btn,
.export-task-btn,
.import-task-btn,
.saved-filter-btn,
.tasks-select,
.tasks-search,
.tasks-view-toggle,
.sort-dir-btn {
    height: 38px;
    border: 0;
    border-radius: 4px;
    font-weight: 800;
}

.assign-task-btn,
.task-filter-btn,
.export-task-btn,
.import-task-btn,
.saved-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
}

.assign-task-btn,
.task-filter-btn,
.export-task-btn,
.import-task-btn {
    background: var(--green);
}

.saved-filter-btn {
    background: #36aff8;
}

.assign-task-btn .material-symbols-rounded,
.task-filter-btn .material-symbols-rounded,
.export-task-btn .material-symbols-rounded,
.import-task-btn .material-symbols-rounded,
.saved-filter-btn .material-symbols-rounded {
    font-size: 20px;
}

.tasks-date,
.tasks-sort {
    position: relative;
    display: flex;
    flex-direction: column;
}

.tasks-date {
    z-index: 8;
}

.tasks-date > span,
.tasks-sort > span {
    position: absolute;
    top: -18px;
    left: 5px;
    color: #a8b4bd;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.tasks-select {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 9px;
    border: 1px solid var(--green);
    background: #12191d;
    color: #fff;
    font-size: 13px;
}

.tasks-sort .tasks-select {
    border-color: #092023;
    box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}

.tasks-sort {
    z-index: 7;
}

.tasks-sort-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 28;
    width: 100%;
    min-width: 186px;
    display: none;
    overflow: hidden;
    border: 1px solid #10161a;
    border-radius: 6px;
    background: #151d22;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .38);
}

.tasks-sort-menu.is-open {
    display: block;
}

.tasks-sort-menu button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 9px;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
}

.tasks-sort-menu button.active,
.tasks-sort-menu button:hover {
    background: #333c41;
}

.tasks-range-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 7px);
    z-index: 30;
    width: 232px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    border: 1px solid #2d3b44;
    border-radius: 6px;
    background: #12191d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}

.tasks-range-menu.is-open {
    display: grid;
}

.tasks-range-menu > button {
    height: 31px;
    border: 0;
    border-radius: 4px;
    background: #202a32;
    color: #aeb9c2;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.tasks-range-menu > button.active,
.tasks-range-menu > button:hover {
    background: var(--green);
    color: #072017;
}

.tasks-custom-range {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 4px;
}

.tasks-custom-range.is-visible {
    display: grid;
}

.tasks-custom-range .date-card {
    width: 100%;
    height: 52px;
}

.tasks-custom-range .date-card strong {
    font-size: 12px;
}

.tasks-search {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    background: #1a2227;
    color: #9ca8b2;
}

.tasks-search .material-symbols-rounded {
    justify-self: center;
    font-size: 20px;
}

.tasks-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.tasks-search input::placeholder {
    color: #9ca8b2;
    opacity: 1;
}

.tasks-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    border-radius: 25px;
    background: rgba(21, 40, 38, .75);
    color: #9fb0b8;
}

.tasks-view-toggle button {
    width: 19px;
    height: 29px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 24px;
}

.tasks-view-toggle button.active {
    color: var(--green);
}

.sort-dir-btn {
    background: transparent;
    color: #fff;
    font-size: 27px;
}

.parent-toggle {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.parent-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.parent-toggle i {
    position: relative;
    width: 50px;
    height: 32px;
    flex: 0 0 50px;
    border: 2px solid #918d9b;
    border-radius: 18px;
    background: #303842;
}

.parent-toggle i::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 6px;
    top: 5px;
    border-radius: 50%;
    background: #9aa8b3;
}

.parent-toggle input:checked + i::after {
    left: 23px;
    background: var(--green);
}

.task-status-tabs {
    display: flex;
    justify-content: center;
    gap: 36px;
    max-width: 930px;
    margin: 0 auto;
    border-bottom: 2px solid rgba(92, 119, 112, .5);
}

.task-status-tabs button {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 0 13px;
    border: 0;
    background: transparent;
    color: #9daab3;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.task-status-tabs button.active {
    color: #fff;
    font-weight: 800;
}

.task-status-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--green);
}

.task-page-view {
    min-height: 100%;
    margin: -12px -42px -32px -50px;
    padding: 20px 34px;
    background: linear-gradient(180deg, #173b31 0, #143a30 126px, #192126 126px);
}

.task-page-head {
    max-width: 1180px;
    height: 74px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 12px;
    margin: 0 auto 16px;
}

.task-page-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(30, 216, 145, .16);
    color: var(--green);
    font-size: 28px;
}

.task-page-head strong,
.task-page-head small {
    display: block;
}

.task-page-head strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.task-page-head small {
    margin-top: 5px;
    color: #a8b4bd;
    font-size: 13px;
    font-weight: 700;
}

.task-page-tools {
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 142px 136px;
    gap: 8px;
    margin: 0 auto 30px;
}

.task-page-empty {
    max-width: 1180px;
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    margin: 0 auto;
    border-top: 1px solid rgba(92, 119, 112, .45);
    color: #9daab3;
    text-align: center;
}

.task-page-empty .material-symbols-rounded {
    color: rgba(30, 216, 145, .7);
    font-size: 42px;
}

.task-page-empty strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
}

.task-page-empty span {
    font-size: 13px;
    font-weight: 700;
}

.assign-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 12, 14, .18);
}

.assign-modal.is-open {
    display: flex;
}

.assign-dialog {
    width: 535px;
    min-height: 160px;
    padding: 15px 15px 16px;
    background: #192126;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.assign-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.assign-dialog h2 {
    margin: 0;
    color: #aeb9c2;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.assign-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border: 0;
    border-radius: 50%;
    background: #11181d;
    color: #9ba7b0;
    font-size: 23px;
}

.assign-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.assign-option {
    height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 2px solid #2c3942;
    border-radius: 7px;
    background: #1b2328;
    color: #fff;
    text-align: center;
    font-size: 15px;
    line-height: 1.32;
    font-weight: 800;
}

.task-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 10, .42);
    overflow: hidden;
}

.task-filter-modal.is-open {
    display: flex;
}

body:has(.task-filter-modal.is-open) {
    overflow: hidden;
}

.task-filter-panel {
    width: min(560px, calc(100vw - 32px));
    height: min(690px, calc(100vh - 32px));
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    background: #1a2227;
    color: #fff;
    border: 1px solid rgba(91, 106, 115, .38);
    border-radius: 7px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .48);
    overflow: hidden;
}

.task-filter-head {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 20px;
    border-top: 1px solid rgba(166, 180, 172, .32);
}

.task-filter-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
}

.task-filter-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #9aa8b3;
    font-size: 30px;
}

.task-filter-top {
    display: grid;
    grid-template-columns: 132px 158px;
    gap: 8px;
    padding: 7px 20px 10px;
}

.task-filter-period,
.task-filter-saved {
    height: 42px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
}

.task-filter-period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 0 10px;
    border: 1px solid var(--green);
    background: #141c21;
    color: #fff;
}

.task-filter-saved,
.task-filter-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    background: #36aff8;
    color: #fff;
}

.task-filter-saved .material-symbols-rounded,
.task-filter-save .material-symbols-rounded {
    font-size: 19px;
}

.task-filter-body {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    min-height: 0;
    border-top: 1px solid #11181d;
}

.task-filter-tabs {
    display: flex;
    flex-direction: column;
    background: #11171b;
    border-right: 1px solid #0b1013;
}

.task-filter-tabs button {
    position: relative;
    height: 52px;
    border: 0;
    background: transparent;
    color: #9aa8b3;
    padding: 0 16px 0 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 800;
}

.task-filter-tabs button.active {
    background: #1b2328;
    color: #aeb9c2;
}

.task-filter-tabs button.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 11px;
    background: var(--green);
}

.task-filter-results {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 10px 18px;
}

.task-filter-search {
    height: 52px;
    display: block;
}

.task-filter-search input {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 5px;
    outline: 0;
    background: #10161a;
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
}

.task-filter-search input::placeholder {
    color: #9aa8b3;
    opacity: 1;
}

.task-filter-empty {
    flex: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: #9aa8b3;
}

.task-filter-empty strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.task-filter-empty span {
    font-size: 13px;
    font-weight: 800;
}

.task-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 14px 20px;
    background: #1a2227;
}

.task-filter-actions button {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.task-filter-clear {
    background: #29323c;
    color: #99a5ae !important;
}

.task-filter-apply {
    background: var(--green);
}

.task-filter-save {
    background: #36aff8;
}

.task-filter-actions .material-symbols-rounded {
    font-size: 19px;
}

.assign-option:hover,
.assign-option:focus-visible {
    border-color: var(--green);
    outline: 0;
}

.assign-option .material-symbols-rounded {
    color: var(--green);
    font-size: 33px;
}
