/* Container & Global */
.pt-compact-container { max-width: 500px; margin: 15px auto; padding: 0 10px; font-family: 'Roboto', sans-serif; box-sizing: border-box; }

/* Header & Description */
.pt-header-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 10px; }
.pt-main-title { font-size: 1.5rem; font-weight: 700; color: ; margin: 0; line-height: 1.1; flex: 1; }
.pt-status-container { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }
.pt-label-hero { font-size: 0.8rem; font-weight: 600; text-transform: capitalize; color: #64748b; margin-bottom: 4px; }
.pt-status-pill { padding: 4px 12px; border-radius: 8px; border: 1px solid; background: #fff; }
.pt-value-hero { font-size: 1rem; font-weight: 500; display: block; }

.pt-description-text { font-size: 1rem !important; line-height: 1.4; color: #334155; margin-top: 10px; margin-bottom: 15px; transition: all 0.3s ease; }
.pt-description-text.is-truncated { display: -webkit-box !important; -webkit-line-clamp: 1 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.pt-read-more-btn { background: none; border: none; color: #2563eb; font-weight: 700; font-size: 0.8rem !important; cursor: pointer; padding: 0; margin: 5px 0 15px 0 !important; text-decoration: underline; display: none; }
.pt-read-more-btn:hover { background: none !important;color: #999;}
.pt-archive-btn{
    background: none !important;
    color: #999 !important;
}
.pt-archive-btn:hover{
    color: #4AAB3E !important;
}
/* --- Slimmed Down Subtask Bars --- */
.pt-sub-bar { 
    height: 26px; /* Reduced from 36px */
    background: #f1f5f9; 
    border-radius: 4px; 
    overflow: hidden; 
    position: relative; 
    border: 1px solid #e2e8f0;
    margin-bottom: 6px;
}

.pt-sub-fill { 
    position: absolute;
    top: 0;
    left: 0;
    height: 100%; 
    z-index: 1; 
    transition: width 1s ease-in-out;
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

.pt-bar-label-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.pt-bar-task-name, 
.pt-bar-percent {
    color: #ffffff !important;
    font-size: 0.8rem; /* Reduced from 1.1rem to fit slim bar */
    font-weight: 400; 
    /*-webkit-text-stroke: 1px #000 !important;*/
     text-shadow: 0.5px 0.5px 0 #000, -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000 !important; 
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* Card & UI */
.pt-compact-card { position: relative; background: #fff; border-radius: 12px; padding: 20px 16px; margin-bottom: 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.pt-date-box { border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; margin-bottom: 12px; color: #64748b; font-size: 0.8rem; }
#pt-search-input { width: 100%; padding: 6px 6px 6px 20px; border-radius: 10px; border: 2px solid #e2e8f0; font-size: 1rem; font-weight: 600; }
.pt-search-wrapper { position: relative; margin-bottom: 20px; }
.pt-search-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; }

/* Mobile Tweaks - Single Clean Block */
@media screen and (max-width: 480px) {
    .pt-sub-bar { height: 22px; }
    .pt-bar-task-name, .pt-bar-percent { font-size: 0.8rem;-webkit-text-stroke: 1px #000; }
    .pt-main-title { font-size: 1.1rem; color: #606060 !important; }
    .pt-description-text { font-size: 1.1rem; }
    .pt-value-hero { font-size: 1.1rem; }
}