:root { 
    --primary: #007bff; 
    --bg: #f0f2f5; 
    --text: #1c1e21; 
    --danger: #dc3545;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    margin: 0; 
    padding: 20px; 
}

.container { 
    max-width: 500px; 
    margin: 0 auto; 
    background: #fff; 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.back-nav {
    text-decoration: none; 
    color: #65676b; 
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

h1 { 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
}

.anchor-box { 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    border: 1px solid #ddd; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.start-anchor { 
    background: #e7f3ff; 
    border-color: #007bff; 
}

.end-anchor { 
    background: #fdf2f2; 
    border-color: var(--danger); 
    margin-top: 15px; 
}

.item-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
    border-bottom: 1px solid #eee; 
}

.item-info { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.badge { 
    font-size: 0.65rem; 
    padding: 3px 6px; 
    border-radius: 4px; 
    color: white; 
    text-transform: uppercase; 
    font-weight: bold; 
}

.badge-task { background: #007bff; }
.badge-milestone { background: #6f42c1; }

input[type="time"] { 
    border: 1px solid #ddd; 
    padding: 5px; 
    border-radius: 4px; 
    font-family: monospace; 
    font-size: 1rem; 
}

.avg-label { 
    font-size: 0.75rem; 
    color: #65676b; 
    display: block; 
}

.btn-start { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    background: var(--primary); 
    color: white; 
    border: none;
    text-align: center; 
    border-radius: 8px; 
    margin-top: 20px; 
    font-weight: bold; 
    cursor: pointer;
}