@keyframes tabScreenEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

html.tab-anim-ready .screen.active {
    animation: tabScreenEnter 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@media (prefers-reduced-motion: reduce) {
    html.tab-anim-ready .screen.active {
        animation: none;
    }
}

.tasks-hero {
    margin: 10px 0 14px;
    padding: 0 2px;
}

.tasks-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
}

.tasks-hero-icon {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24.5px;
    flex-shrink: 0;
    gap: 3.76px;
}

.tasks-hero-title {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 30.624px;
    font-weight: 800;
    font-stretch: expanded;
    letter-spacing: -1.7859px;
    line-height: 30.361px;
    color: #fff;
}

.tasks-hero-sub {
    grid-row: 2;
    grid-column: 2;
    margin: 0;
    max-width: 170px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14.462px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.26);
    letter-spacing: -1.281px;
    line-height: 15.905px;
}

.tasks-card {
    margin-top: 20px;
    padding: 15px 15px 52px;
    min-height: 420px;
    border-radius: 28.219px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    overflow: clip;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tasks-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0.8px;
    box-sizing: border-box;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.20) 20%,
        rgba(255, 255, 255, 0.08) 55%,
        rgba(255, 255, 255, 0) 88%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 16px;
    background: rgba(76, 76, 76, 0.09);
    border: 0.62px solid rgba(255, 255, 255, 0.12);
    overflow: clip;
    position: relative;
}

.task-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0.62px;
    box-sizing: border-box;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 12%,
        rgba(255, 255, 255, 0) 92%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.task-num {
    position: absolute;
    left: -26px;
    top: -41px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 121.365px;
    font-weight: 800;
    font-stretch: expanded;
    line-height: 120.32px;
    letter-spacing: -7.0776px;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    white-space: nowrap;
}

.task-name {
    flex: 1 1 0;
    max-width: 150px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17.815px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -1.5781px;
    line-height: 18px;
    white-space: normal;
    word-break: break-word;
}

.task-btn {
    flex-shrink: 0;
    min-width: 107px;
    height: 36.342px;
    border: none;
    border-radius: 32.707px;
    background: var(--orange);
    color: #fff;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14.162px;
    font-weight: 600;
    letter-spacing: -0.3724px;
    line-height: 19.052px;
    cursor: pointer;
    box-shadow: 0 0 53.083px rgba(255, 152, 49, 0.18);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s, opacity 0.2s;
}

.task-btn:active { transform: scale(0.96); }

.task-btn.done {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    opacity: 0.5;
    pointer-events: none;
}

.tasks-empty {
    text-align: center;
    margin-top: 24px;
    position: relative;
    z-index: 1;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14.462px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.26);
    letter-spacing: -1.281px;
    line-height: 15.905px;
}
